PackagesCanonicalsLogsProblems
    Packages
    ca.on.pcr.r4@1.0.0-draft1
    http://ontariohealth.ca/fhir/pcr/OperationDefinition/operation-patient-unmerge
{
  "description": "The unmerge operation is used to request a separation of managed patient identities that were previously merged and have subsequently been determined to be represent different individuals.",
  "_filename": "OperationDefinition-operation-patient-unmerge.json",
  "package_name": "ca.on.pcr.r4",
  "date": null,
  "system": false,
  "publisher": null,
  "instance": false,
  "name": "PCRPatientUnMergeOperation",
  "type": "true",
  "experimental": null,
  "resourceType": "OperationDefinition",
  "title": null,
  "package_version": "1.0.0-draft1",
  "status": "draft",
  "id": "bb2ff93c-c68d-401d-ab7f-a67ac69a43b5",
  "resource": [ "Patient" ],
  "affectsState": true,
  "kind": "operation",
  "url": "http://ontariohealth.ca/fhir/pcr/OperationDefinition/operation-patient-unmerge",
  "code": "unmerge",
  "version": "1.0.0-draft1",
  "parameter": [ {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "merged-patient",
    "type": "Reference",
    "documentation": "A direct resource reference to the **merged** patient resource (this may include an identifier).",
    "targetProfile": [ "http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-patient-contribution" ]
  }, {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "restore-patient",
    "type": "Reference",
    "documentation": "A direct resource reference to the patient to be restored from the prior merge.",
    "targetProfile": [ "http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-patient-contribution" ]
  }, {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "prior-merge-id",
    "type": "Identifier",
    "documentation": "The identifier for the event id that represents the prior merge."
  }, {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "unmerge-reason",
    "type": "CodeableConcept",
    "documentation": "Identifiers the reason for requesting the unmerge of the patient records."
  }, {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "unmerge-requester",
    "type": "Identifier",
    "documentation": "Identifies the organization that is requesting the unmerge of the patient records."
  }, {
    "max": "1",
    "min": 1,
    "use": "out",
    "name": "result",
    "type": "Parameters",
    "documentation": "The status of the response will be one of:\r\r200 OK - If the unmerge request was completed without issues\r202 Accepted - The unmerge request has been accepted and does not expect any issues and will continue processing the unmerge in the background, and you can monitor the Task for completion\r400 Bad Request - There are errors in the input parameters that need to corrected\r422 Unprocessable Entity - Business rules prevent this merge from completing\r\rThe Parameters resource will include:\r\r\nThe Input parameters to the operation\rAn OperationOutcome containing errors, warnings, and information messages\rThe resulting unmerged Patient resources\r\rNote: as this is the only out parameter, it is a resource, and it has the name 'return', the result of this operation is returned directly as a resource"
  } ]
}