CH EPR mHealth (R4)
0.1.1 - Draft Standard for Trial Use

This page is part of the CH EPR mHealth (R4) (v0.1.1: DSTU 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

BundlePmirFeed - TTL Representation

(back to description)

Raw ttl

Source view

@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 "BundlePmirFeed"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.ch/ig/ch-epr-mhealth/StructureDefinition/ch-pmir-bundle";
       fhir:index 0;
       fhir:link <http://fhir.ch/ig/ch-epr-mhealth/StructureDefinition/ch-pmir-bundle>     ]
  ];
  fhir:Bundle.type [ fhir:value "message"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.com/fhir/MessageHeader/1" ];
     fhir:Bundle.entry.resource <http://example.com/fhir/MessageHeader/1>
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.com/fhir/Bundle/abc" ];
     fhir:Bundle.entry.resource <http://example.com/fhir/Bundle/abc>
  ].

<http://example.com/fhir/MessageHeader/1> a fhir:MessageHeader;
  fhir:Resource.id [ fhir:value "1"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>id</b>: 1</p><p><b>event</b>: <a href=\"urn:ihe:iti:pmir:2019:patient-feed\">urn:ihe:iti:pmir:2019:patient-feed</a></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_abc\">See above (Bundle/abc)</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/abc" ]
  ].

<http://example.com/fhir/Bundle/abc> a fhir:Bundle;
  fhir:Resource.id [ fhir:value "abc"];
  fhir:Bundle.type [ fhir:value "history"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.com/fhir/Patient/PatientPmirFeed" ];
     fhir:Bundle.entry.resource <http://example.com/fhir/Patient/PatientPmirFeed>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Patient" ]     ];
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "200" ]     ]
  ].

<http://example.com/fhir/Patient/PatientPmirFeed> a fhir:Patient;
  fhir:Resource.id [ fhir:value "PatientPmirFeed"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>id</b>: PatientPmirFeed</p><p><b>meta</b>: </p><p><b>identifier</b>: Medical record number = 8734</p><p><b>name</b>: Franz Muster , Muster </p><p><b>gender</b>: male</p><p><b>birthDate</b>: 1995-01-27</p></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Organization;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "org1" ];
     fhir:Resource.meta [
       fhir:Meta.profile [
         fhir:value "http://fhir.ch/ig/ch-epr-mhealth/StructureDefinition/ch-pmir-provider-organization";
         fhir:index 0;
         fhir:link <http://fhir.ch/ig/ch-epr-mhealth/StructureDefinition/ch-pmir-provider-organization>       ]     ];
     fhir:Organization.identifier [
       fhir:index 0;
       fhir:Identifier.system [ fhir:value "urn:oid:2.51.1.3" ];
       fhir:Identifier.value [ fhir:value "7601000201041" ]     ];
     fhir:Organization.address [
       fhir:index 0;
       fhir:Address.use [ fhir:value "work" ];
       fhir:Address.line [
         fhir:value "Doktorgasse";
         fhir:index 0       ], [
         fhir:value "2";
         fhir:index 1       ];
       fhir:Address.city [ fhir:value "Musterhausen" ];
       fhir:Address.postalCode [ fhir:value "8888" ];
       fhir:Address.country [ fhir:value "CH" ]     ]
  ];
  fhir:Patient.identifier [
     fhir:index 0;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ];
         fhir:Coding.code [ fhir:value "MR" ]       ]     ];
     fhir:Identifier.system [ fhir:value "urn:oid:2.16.756.888888.3.1" ];
     fhir:Identifier.value [ fhir:value "8734" ]
  ];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.family [ fhir:value "Muster" ];
     fhir:HumanName.given [
       fhir:value "Franz";
       fhir:index 0     ]
  ], [
     fhir:index 1;
     fhir:HumanName.family [
       fhir:value "Muster";
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier" ];
         fhir:Extension.valueCode [ fhir:value "BR" ]       ]     ]
  ];
  fhir:Patient.gender [ fhir:value "male"];
  fhir:Patient.birthDate [ fhir:value "1995-01-27"^^xsd:date];
  fhir:Patient.managingOrganization [
     fhir:Reference.reference [ fhir:value "#org1" ]
  ].

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

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