Patient Master Identity Registry (PMIR)
1.5.0 - Trial-Implementation International flag

This page is part of the IHE Patient Master Identity Registry (PMIR) (v1.5.0: Trial Implementation) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: IHE Patient Master Identity Registry Message Bundle Merge Example - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "ex-PMIRBundleMerge"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Bundle";
       fhir:index 0;
       fhir:link <https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Bundle>     ]
  ];
  fhir:Bundle.type [ fhir:value "message"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "MessageHeader/ex-messageheader-merge" ];
     fhir:Bundle.entry.resource <MessageHeader/ex-messageheader-merge>
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "Bundle/ex-bundle-history-merge" ];
     fhir:Bundle.entry.resource <Bundle/ex-bundle-history-merge>
  ].

<MessageHeader/ex-messageheader-merge> a fhir:MessageHeader;
  fhir:Resource.id [ fhir:value "ex-messageheader-merge"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.MessageHeader";
       fhir:index 0;
       fhir:link <https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.MessageHeader>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MessageHeader</b></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource MessageHeader \"ex-messageheader-merge\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.PMIR.MessageHeader.html\">IHE Patient Master Identity Registry MessageHeader</a></p></div><p><b>event</b>: <code>urn:ihe:iti:pmir:2019:patient-feed</code></p><h3>Destinations</h3><table class=\"grid\"><tr><td>-</td><td><b>Endpoint</b></td></tr><tr><td>*</td><td><a href=\"http://example.com/patientEndpoint\">http://example.com/patientEndpoint</a></td></tr></table><h3>Sources</h3><table class=\"grid\"><tr><td>-</td><td><b>Endpoint</b></td></tr><tr><td>*</td><td><a href=\"http://example.com/patientSource\">http://example.com/patientSource</a></td></tr></table><p><b>focus</b>: <a href=\"#Bundle_ex-bundle-history-merge\">See above (Bundle/ex-bundle-history-merge)</a></p></div>"
  ];
  fhir:MessageHeader.eventUri [ fhir:value "urn:ihe:iti:pmir:2019:patient-feed"];
  fhir:MessageHeader.destination [
     fhir:index 0;
     fhir:MessageHeader.destination.endpoint [ fhir:value "http://example.com/patientEndpoint" ]
  ];
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.endpoint [ fhir:value "http://example.com/patientSource" ]
  ];
  fhir:MessageHeader.focus [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "Bundle/ex-bundle-history-merge" ]
  ].

<Bundle/ex-bundle-history-merge> a fhir:Bundle;
  fhir:Resource.id [ fhir:value "ex-bundle-history-merge"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Bundle.History";
       fhir:index 0;
       fhir:link <https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Bundle.History>     ]
  ];
  fhir:Bundle.type [ fhir:value "history"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.com/fhir/Patient/123" ];
     fhir:Bundle.entry.resource <http://example.com/fhir/Patient/123>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "PUT" ];
       fhir:Bundle.entry.request.url [ fhir:value "Patient/ex-patient-merge" ]     ];
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "200" ]     ]
  ].

<http://example.com/fhir/Patient/123> a fhir:Patient;
  fhir:Resource.id [ fhir:value "ex-patient-merge"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Patient.Merge";
       fhir:index 0;
       fhir:link <https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Patient.Merge>     ]
  ];
  fhir:Patient.active [ fhir:value "false"^^xsd:boolean];
  fhir:Patient.link [
     fhir:index 0;
     fhir:Patient.link.other [
       fhir:Reference.reference [ fhir:value "Patient/ex-patient-merged" ]     ];
     fhir:Patient.link.type [ fhir:value "replaced-by" ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.