3.0.0 - CI Build

Care Connect Messaging - Local Development build (v3.0.0). See the Directory of published versions

Notification Discharge FHIR Transaction - 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 "notification-discharge-transaction"];
  fhir:Bundle.identifier [
     fhir:Identifier.system [ fhir:value "https://fhir.mytrust.nhs.uk/Id/RCB/MATSYSTEM" ];
     fhir:Identifier.value [ fhir:value "13403891320453338089" ]
  ];
  fhir:Bundle.type [ fhir:value "transaction"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:oid:1fe9a302-1575-44e0-b8a8-9de72b5576fe" ];
     fhir:Bundle.entry.resource <urn:oid:1fe9a302-1575-44e0-b8a8-9de72b5576fe>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "MessageHeader" ]     ]
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:oid:24ffdbb6-db4a-4be2-94f6-8f4831d48f80" ];
     fhir:Bundle.entry.resource <urn:oid:24ffdbb6-db4a-4be2-94f6-8f4831d48f80>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Encounter" ];
       fhir:Bundle.entry.request.ifNoneExist [ fhir:value "Encounter?identifier=http://terminology.hl7.org/CodeSystem/v2-0203|11554" ]     ]
  ], [
     fhir:index 2;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:oid:45fe8f76-8f1f-4b26-bac8-5c5127a6ff66" ];
     fhir:Bundle.entry.resource <urn:oid:45fe8f76-8f1f-4b26-bac8-5c5127a6ff66>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Patient" ];
       fhir:Bundle.entry.request.ifNoneExist [ fhir:value "Patient?identifier=https://fhir.nhs.uk/Id/nhs-number|3333333333" ]     ]
  ], [
     fhir:index 3;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:oid:a17ba089-4543-451f-b3b3-100a5fa48387" ];
     fhir:Bundle.entry.resource <urn:oid:a17ba089-4543-451f-b3b3-100a5fa48387>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Location" ];
       fhir:Bundle.entry.request.ifNoneExist [ fhir:value "Location?identifier=https://fhir.myepr.co.uk/Id/Ward|MATWRD" ]     ]
  ].

<urn:oid:1fe9a302-1575-44e0-b8a8-9de72b5576fe> a fhir: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 with Details</b></p><p><b>event</b>: notification-discharge (Details: [not stated] code notification-discharge = 'notification-discharge', stated as 'notification-discharge')</p><h3>Destinations</h3><table class=\"grid\"><tr><td>-</td><td><b>Name</b></td><td><b>Target</b></td><td><b>Endpoint</b></td></tr><tr><td>*</td><td>PAS</td><td>PAS</td><td><a href=\"PAS\">PAS</a></td></tr></table><p><b>sender</b>: RCB</p><p><b>timestamp</b>: 31 Mar 2010, 17:30:00</p><h3>Sources</h3><table class=\"grid\"><tr><td>-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td>*</td><td>MATSYSTEM</td><td><a href=\"MATSYSTEM\">MATSYSTEM</a></td></tr></table><p><b>focus</b>: <a href=\"#urnoid24ffdbb6-db4a-4be2-94f6-8f4831d48f80\">Generated Summary: unknown resource entry</a></p></div>"
  ];
  fhir:MessageHeader.event [
     fhir:Coding.code [ fhir:value "notification-discharge" ];
     fhir:Coding.display [ fhir:value "notification-discharge" ]
  ];
  fhir:MessageHeader.destination [
     fhir:index 0;
     fhir:MessageHeader.destination.name [ fhir:value "PAS" ];
     fhir:MessageHeader.destination.target [
       fhir:Reference.display [ fhir:value "PAS" ]     ];
     fhir:MessageHeader.destination.endpoint [ fhir:value "PAS" ]
  ];
  fhir:MessageHeader.sender [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ];
       fhir:Identifier.value [ fhir:value "RCB" ]     ];
     fhir:Reference.display [ fhir:value "RCB" ]
  ];
  fhir:MessageHeader.timestamp [ fhir:value "2010-03-31T17:30:00.000+01:00"^^xsd:dateTime];
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.name [ fhir:value "MATSYSTEM" ];
     fhir:MessageHeader.source.endpoint [ fhir:value "MATSYSTEM" ]
  ];
  fhir:MessageHeader.focus [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "urn:oid:24ffdbb6-db4a-4be2-94f6-8f4831d48f80" ]
  ].

<urn:oid:24ffdbb6-db4a-4be2-94f6-8f4831d48f80> a fhir:Encounter;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>identifier</b>: 11554</p><p><b>status</b>: finished</p><p><b>class</b>: short stay (Details: http://hl7.org/fhir/v3/ActCode code SS = 'short stay', stated as 'short stay')</p><p><b>type</b>: 82 <span style=\"background: LightGoldenRodYellow\">(Details : {https://fhir.nhs.uk/R4/CodeSystem/UKCore-AdmissionMethod code '82' = '82)</span>, 500 <span style=\"background: LightGoldenRodYellow\">(Details : {https://fhir.nhs.uk/STU3/CodeSystem/DCH-Specialty-1 code '500' = '500)</span></p><p><b>subject</b>: <a href=\"#urnoid45fe8f76-8f1f-4b26-bac8-5c5127a6ff66\">Generated Summary: unknown resource entry</a></p><blockquote><p><b>participant</b></p><p><b>type</b>: attender <span style=\"background: LightGoldenRodYellow\">(Details : {http://hl7.org/fhir/v3/ParticipationType code 'ATND' = 'attender', given as 'attender'})</span></p><p><b>individual</b>: Dr Samuel Darwin</p></blockquote><blockquote><p><b>participant</b></p><p><b>type</b>: admitter <span style=\"background: LightGoldenRodYellow\">(Details : {http://hl7.org/fhir/v3/ParticipationType code 'ADM' = 'admitter', given as 'admitter'})</span></p><p><b>individual</b>: Dr Samuel Darwin</p></blockquote><blockquote><p><b>participant</b></p><p><b>type</b>: consultant <span style=\"background: LightGoldenRodYellow\">(Details : {http://hl7.org/fhir/v3/ParticipationType code 'CON' = 'consultant', given as 'consultant'})</span></p><p><b>individual</b>: Dr Samuel Darwin</p></blockquote><p><b>period</b>: 30 Mar 2010, 11:00:00 --&gt; 31 Mar 2010, 17:15:00</p><h3>Hospitalizations</h3><table class=\"grid\"><tr><td>-</td><td><b>AdmitSource</b></td><td><b>DischargeDisposition</b></td></tr><tr><td>*</td><td>79 <span style=\"background: LightGoldenRodYellow\">(Details : {https://fhir.nhs.uk/R4/CodeSystem/UKCore-SourceOfAdmission code '79' = '79)</span></td><td>19 <span style=\"background: LightGoldenRodYellow\">(Details : {https://fhir.nhs.uk/R4/CodeSystem/UKCore-DischargeMethod code '19' = '19)</span></td></tr></table><h3>Locations</h3><table class=\"grid\"><tr><td>-</td><td><b>Location</b></td><td><b>Status</b></td></tr><tr><td>*</td><td><a href=\"#urnoida17ba089-4543-451f-b3b3-100a5fa48387\">MATWRD. Generated Summary: unknown resource entry</a></td><td>active</td></tr></table></div>"
  ];
  fhir:Encounter.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ];
     fhir:Identifier.value [ fhir:value "11554" ]
  ];
  fhir:Encounter.status [ fhir:value "finished"];
  fhir:Encounter.class [
     fhir:Coding.system [ fhir:value "http://hl7.org/fhir/v3/ActCode" ];
     fhir:Coding.code [ fhir:value "SS" ];
     fhir:Coding.display [ fhir:value "short stay" ]
  ];
  fhir:Encounter.type [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "https://fhir.nhs.uk/R4/CodeSystem/UKCore-AdmissionMethod" ];
       fhir:Coding.code [ fhir:value "82" ]     ]
  ], [
     fhir:index 1;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "https://fhir.nhs.uk/STU3/CodeSystem/DCH-Specialty-1" ];
       fhir:Coding.code [ fhir:value "500" ]     ]
  ];
  fhir:Encounter.subject [
     fhir:Reference.reference [ fhir:value "urn:oid:45fe8f76-8f1f-4b26-bac8-5c5127a6ff66" ]
  ];
  fhir:Encounter.participant [
     fhir:index 0;
     fhir:Encounter.participant.type [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/v3/ParticipationType" ];
         fhir:Coding.code [ fhir:value "ATND" ];
         fhir:Coding.display [ fhir:value "attender" ]       ]     ];
     fhir:Encounter.participant.individual [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.hl7.org.uk/Id/gmc-number" ];
         fhir:Identifier.value [ fhir:value "C3456789" ]       ];
       fhir:Reference.display [ fhir:value "Dr Samuel Darwin" ]     ]
  ], [
     fhir:index 1;
     fhir:Encounter.participant.type [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/v3/ParticipationType" ];
         fhir:Coding.code [ fhir:value "ADM" ];
         fhir:Coding.display [ fhir:value "admitter" ]       ]     ];
     fhir:Encounter.participant.individual [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.hl7.org.uk/Id/gmc-number" ];
         fhir:Identifier.value [ fhir:value "C3456789" ]       ];
       fhir:Reference.display [ fhir:value "Dr Samuel Darwin" ]     ]
  ], [
     fhir:index 2;
     fhir:Encounter.participant.type [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/v3/ParticipationType" ];
         fhir:Coding.code [ fhir:value "CON" ];
         fhir:Coding.display [ fhir:value "consultant" ]       ]     ];
     fhir:Encounter.participant.individual [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.hl7.org.uk/Id/gmc-number" ];
         fhir:Identifier.value [ fhir:value "C3456789" ]       ];
       fhir:Reference.display [ fhir:value "Dr Samuel Darwin" ]     ]
  ];
  fhir:Encounter.period [
     fhir:Period.start [ fhir:value "2010-03-30T11:00:00+01:00"^^xsd:dateTime ];
     fhir:Period.end [ fhir:value "2010-03-31T17:15:00+01:00"^^xsd:dateTime ]
  ];
  fhir:Encounter.hospitalization [
     fhir:Encounter.hospitalization.admitSource [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "https://fhir.nhs.uk/R4/CodeSystem/UKCore-SourceOfAdmission" ];
         fhir:Coding.code [ fhir:value "79" ]       ]     ];
     fhir:Encounter.hospitalization.dischargeDisposition [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "https://fhir.nhs.uk/R4/CodeSystem/UKCore-DischargeMethod" ];
         fhir:Coding.code [ fhir:value "19" ]       ]     ]
  ];
  fhir:Encounter.location [
     fhir:index 0;
     fhir:Encounter.location.location [
       fhir:Reference.reference [ fhir:value "urn:oid:a17ba089-4543-451f-b3b3-100a5fa48387" ];
       fhir:Reference.display [ fhir:value "MATWRD" ]     ];
     fhir:Encounter.location.status [ fhir:value "active" ]
  ].

<urn:oid:45fe8f76-8f1f-4b26-bac8-5c5127a6ff66> a fhir:Patient;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>identifier</b>: 3333333333</p><p><b>name</b>: FREDRICA SMITH </p><p><b>telecom</b>: ph: +441234567890(HOME)</p><p><b>gender</b>: female</p><p><b>birthDate</b>: 1965-12-13</p><p><b>address</b>: MALTON YO32 5TT (HOME)</p><p><b>generalPractitioner</b>: Dr Gregory Townley</p><p><b>managingOrganization</b>: MALTON GP PRACTICE</p></div>"
  ];
  fhir:Patient.identifier [
     fhir:index 0;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1" ];
           fhir:Coding.code [ fhir:value "01" ]         ]       ]     ];
     fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ];
     fhir:Identifier.value [ fhir:value "3333333333" ]
  ];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.family [ fhir:value "SMITH" ];
     fhir:HumanName.given [
       fhir:value "FREDRICA";
       fhir:index 0     ];
     fhir:HumanName.prefix [
       fhir:value "MRS";
       fhir:index 0     ]
  ];
  fhir:Patient.telecom [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "+441234567890" ];
     fhir:ContactPoint.use [ fhir:value "home" ]
  ];
  fhir:Patient.gender [ fhir:value "female"];
  fhir:Patient.birthDate [ fhir:value "1965-12-13"^^xsd:date];
  fhir:Patient.address [
     fhir:index 0;
     fhir:Address.use [ fhir:value "home" ];
     fhir:Address.city [ fhir:value "MALTON" ];
     fhir:Address.district [ fhir:value "NORTH YORKSHIRE" ];
     fhir:Address.postalCode [ fhir:value "YO32 5TT" ]
  ];
  fhir:Patient.generalPractitioner [
     fhir:index 0;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.hl7.org.uk/Id/gmc-number" ];
       fhir:Identifier.value [ fhir:value "G5612908" ]     ];
     fhir:Reference.display [ fhir:value "Dr Gregory Townley" ]
  ];
  fhir:Patient.managingOrganization [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ];
       fhir:Identifier.value [ fhir:value "Y06601" ]     ];
     fhir:Reference.display [ fhir:value "MALTON GP PRACTICE" ]
  ].

<urn:oid:a17ba089-4543-451f-b3b3-100a5fa48387> a fhir:Location;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>identifier</b>: MATWRD</p><p><b>name</b>: MATWRD</p><p><b>managingOrganization</b>: </p><p><b>partOf</b>: </p></div>"
  ];
  fhir:Location.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "https://fhir.myepr.co.uk/Id/Ward" ];
     fhir:Identifier.value [ fhir:value "MATWRD" ]
  ];
  fhir:Location.name [ fhir:value "MATWRD"];
  fhir:Location.managingOrganization [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ];
       fhir:Identifier.value [ fhir:value "RCB" ]     ]
  ];
  fhir:Location.partOf [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-site-code" ];
       fhir:Identifier.value [ fhir:value "RCB55" ]     ]
  ].

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

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