3.0.0 - CI Build

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

Patient Create 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 "patient-create-transaction"];
  fhir:Bundle.identifier [
     fhir:Identifier.system [ fhir:value "https://fhir.mytrust.nhs.uk/Id/RCB/PAS" ];
     fhir:Identifier.value [ fhir:value "13403891320453338075" ]
  ];
  fhir:Bundle.type [ fhir:value "transaction"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:oid:53c1b969-614b-47cf-a5d6-7c3edcbb1377" ];
     fhir:Bundle.entry.resource <urn:oid:53c1b969-614b-47cf-a5d6-7c3edcbb1377>;
     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:cb3fe42f-02f6-4266-a056-8a30dda8d5f1" ];
     fhir:Bundle.entry.resource <urn:oid:cb3fe42f-02f6-4266-a056-8a30dda8d5f1>;
     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" ]     ]
  ].

<urn:oid:53c1b969-614b-47cf-a5d6-7c3edcbb1377> 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>: patient-create (Details: [not stated] code patient-create = 'patient-create', stated as 'patient-create')</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>ROUTE</td><td>ROUTE</td><td><a href=\"ROUTE\">ROUTE</a></td></tr></table><p><b>sender</b>: RCB</p><p><b>timestamp</b>: 2 Jan 2010, 12:15: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>PAS</td><td><a href=\"PAS\">PAS</a></td></tr></table><p><b>focus</b>: <a href=\"#urnoidcb3fe42f-02f6-4266-a056-8a30dda8d5f1\">Generated Summary: unknown resource entry</a></p></div>"
  ];
  fhir:MessageHeader.event [
     fhir:Coding.code [ fhir:value "patient-create" ];
     fhir:Coding.display [ fhir:value "patient-create" ]
  ];
  fhir:MessageHeader.destination [
     fhir:index 0;
     fhir:MessageHeader.destination.name [ fhir:value "ROUTE" ];
     fhir:MessageHeader.destination.target [
       fhir:Reference.display [ fhir:value "ROUTE" ]     ];
     fhir:MessageHeader.destination.endpoint [ fhir:value "ROUTE" ]
  ];
  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-01-02T12:15:00.000+00:00"^^xsd:dateTime];
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.name [ fhir:value "PAS" ];
     fhir:MessageHeader.source.endpoint [ fhir:value "PAS" ]
  ];
  fhir:MessageHeader.focus [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "urn:oid:cb3fe42f-02f6-4266-a056-8a30dda8d5f1" ]
  ].

<urn:oid:cb3fe42f-02f6-4266-a056-8a30dda8d5f1> 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-11-12</p><p><b>address</b>: MALTON YO32 5TT (HOME)</p><h3>Contacts</h3><table class=\"grid\"><tr><td>-</td><td><b>Name</b></td><td><b>Address</b></td></tr><tr><td>*</td><td>FRANCESCA SMITH </td><td>MALTON YO32 5TT (HOME)</td></tr></table><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-11-12"^^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.contact [
     fhir:index 0;
     fhir:Patient.contact.name [
       fhir:HumanName.family [ fhir:value "SMITH" ];
       fhir:HumanName.given [
         fhir:value "FRANCESCA";
         fhir:index 0       ];
       fhir:HumanName.prefix [
         fhir:value "MRS";
         fhir:index 0       ]     ];
     fhir:Patient.contact.address [
       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" ]
  ].

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

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