Create Link

The Healthcare Data Repository FHIR server uses the $mdm-create-link operation to create an MDM link from a Golden Resource to a Target Resource.

This operation takes the following parameters:

Table 12-6 Parameters to Create an MDM link from a Golden Resource to a Target Resource

Name Type Description
goldenResourceId String ID of the Golden Resource.
resourceid String ID of the target resource.
matchResult String Optional matchResult. If omitted, it automatically set the default to MATCH, otherwise the value should be MATCH, POSSIBLE_MATCH or NO_MATCH.

The $mdm-create-link operation will automatically update their linkSource set to MANUAL.

Example:

POST : http://localhost:7001/oracle-fhir-server/fhir/$mdm-create-link

Request Body
{
  "resourceType": "Parameters",
  "parameter": [ {
    "name": "goldenResourceId",
    "valueString": "Patient/50006"
  }, {
    "name": "resourceId",
    "valueString": "Patient/50005"
  }, {
    "name": "matchResult",
    "valueString": "MATCH"
  } ]
}

The operation returns the Golden Resource. For the query above, Patient resource will be returned.