MediRecords FHIR Implementation Guide
20220217 - ci-build


: Webhook Bundle for patient.created event - 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 "webhook-patient.created"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2022-03-04T01:43:30Z"^^xsd:dateTime ]
  ];
  fhir:Bundle.type [ fhir:value "collection"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:1e5cae20-85bf-11e8-b401-ffccd711ad9c" ];
     fhir:Bundle.entry.resource <urn:uuid:1e5cae20-85bf-11e8-b401-ffccd711ad9c>
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:6d6d7ce8-65c2-11e6-a20e-7b5deed40054" ];
     fhir:Bundle.entry.resource <urn:uuid:6d6d7ce8-65c2-11e6-a20e-7b5deed40054>
  ], [
     fhir:index 2;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:ade47c8c-9eed-11ea-a6fa-3f7e286deed9" ];
     fhir:Bundle.entry.resource <urn:uuid:ade47c8c-9eed-11ea-a6fa-3f7e286deed9>
  ].

<urn:uuid:1e5cae20-85bf-11e8-b401-ffccd711ad9c> a fhir:Patient;
  fhir:Resource.id [ fhir:value "1e5cae20-85bf-11e8-b401-ffccd711ad9c"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2021-10-11T01:43:30Z"^^xsd:dateTime ];
     fhir:Meta.profile [
       fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-patient-core";
       fhir:index 0;
       fhir:link <https://fhir.medirecords.com/StructureDefinition/mr-patient-core>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Patient</b><a name=\"1e5cae20-85bf-11e8-b401-ffccd711ad9c\"> </a></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 Patient \"1e5cae20-85bf-11e8-b401-ffccd711ad9c\" Updated \"2021-10-11 01:43:30+0000\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-mr-patient-core.html\">MediRecords Core Patient</a></p></div><p><b>English As Second Language Indicator Extension</b>: false</p><p><b>Ethnicity</b>: Scottish <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-mr-patient-ethnicity-code.html\">MediRecords Patient Ethnicity CodeSystem</a>#155)</span></p><p><b>identifier</b>: Medicare Number: 32788511952</p><p><b>name</b>: Mila Grey (OFFICIAL), Mila, Don Mila(OLD)</p><p><b>telecom</b>: ph: 0410999999(MOBILE), <a href=\"mailto:mila.grey@xyz.com\">mila.grey@xyz.com</a></p><p><b>gender</b>: female</p><p><b>birthDate</b>: 1990-11-29</p><p><b>address</b>: </p><ul><li>abc lane Sydney NSW 2000 AU (HOME)</li><li>12 MLK BLVD Tampa FL 33131 US (WORK)</li></ul><p><b>generalPractitioner</b>: <a href=\"#Practitioner_6d6d7ce8-65c2-11e6-a20e-7b5deed40054\">See above (Practitioner/6d6d7ce8-65c2-11e6-a20e-7b5deed40054)</a></p><p><b>managingOrganization</b>: <a href=\"#Organization_ade47c8c-9eed-11ea-a6fa-3f7e286deed9\">See above (Organization/ade47c8c-9eed-11ea-a6fa-3f7e286deed9)</a></p></div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-eng-secondlang-ind-extn" ];
     fhir:Extension.valueBoolean [ fhir:value "false"^^xsd:boolean ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org.au/fhir/StructureDefinition/ethnicity" ];
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "https://fhir.medirecords.com/CodeSystem/mr-patient-ethnicity-code" ];
         fhir:Coding.code [ fhir:value "155" ];
         fhir:Coding.display [ fhir:value "Scottish" ]       ]     ]
  ];
  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 "MC" ];
         fhir:Coding.display [ fhir:value "Patient's Medicare Number" ]       ];
       fhir:CodeableConcept.text [ fhir:value "Medicare Number" ]     ];
     fhir:Identifier.system [ fhir:value "http://ns.electronichealth.net.au/id/medicare-number" ];
     fhir:Identifier.value [ fhir:value "32788511952" ];
     fhir:Identifier.period [
       fhir:Period.end [ fhir:value "2025-02"^^xsd:gYearMonth ]     ]
  ];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.use [ fhir:value "official" ];
     fhir:HumanName.family [ fhir:value "Grey" ];
     fhir:HumanName.given [
       fhir:value "Mila";
       fhir:index 0     ];
     fhir:HumanName.prefix [
       fhir:value "Mrs";
       fhir:index 0     ]
  ], [
     fhir:index 1;
     fhir:HumanName.use [ fhir:value "usual" ];
     fhir:HumanName.text [ fhir:value "Mila" ]
  ], [
     fhir:index 2;
     fhir:HumanName.use [ fhir:value "old" ];
     fhir:HumanName.text [ fhir:value "Don Mila" ]
  ];
  fhir:Patient.telecom [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "0410999999" ];
     fhir:ContactPoint.use [ fhir:value "mobile" ];
     fhir:ContactPoint.rank [ fhir:value "1"^^xsd:positiveInteger ]
  ], [
     fhir:index 1;
     fhir:ContactPoint.system [ fhir:value "email" ];
     fhir:ContactPoint.value [ fhir:value "mila.grey@xyz.com" ];
     fhir:ContactPoint.use [ fhir:value "home" ]
  ];
  fhir:Patient.gender [ fhir:value "female"];
  fhir:Patient.birthDate [
     fhir:value "1990-11-29"^^xsd:date;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator" ];
       fhir:Extension.valueCoding [
         fhir:Coding.system [ fhir:value "https://healthterminologies.gov.au/fhir/CodeSystem/date-accuracy-indicator-1" ];
         fhir:Coding.code [ fhir:value "AAA" ];
         fhir:Coding.display [ fhir:value "Day, month and year are accurate" ]       ]     ]
  ];
  fhir:Patient.address [
     fhir:index 0;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-address-isprimary-extn" ];
       fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]     ];
     fhir:Address.use [ fhir:value "home" ];
     fhir:Address.type [ fhir:value "physical" ];
     fhir:Address.line [
       fhir:value "abc lane";
       fhir:index 0     ];
     fhir:Address.city [ fhir:value "Sydney" ];
     fhir:Address.state [ fhir:value "NSW" ];
     fhir:Address.postalCode [ fhir:value "2000" ];
     fhir:Address.country [ fhir:value "AU" ]
  ], [
     fhir:index 1;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-address-isprimary-extn" ];
       fhir:Extension.valueBoolean [ fhir:value "false"^^xsd:boolean ]     ];
     fhir:Address.use [ fhir:value "work" ];
     fhir:Address.type [ fhir:value "physical" ];
     fhir:Address.line [
       fhir:value "12 MLK BLVD";
       fhir:index 0     ];
     fhir:Address.city [ fhir:value "Tampa" ];
     fhir:Address.state [ fhir:value "FL" ];
     fhir:Address.postalCode [ fhir:value "33131" ];
     fhir:Address.country [ fhir:value "US" ]
  ];
  fhir:Patient.generalPractitioner [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "Practitioner/6d6d7ce8-65c2-11e6-a20e-7b5deed40054" ]
  ];
  fhir:Patient.managingOrganization [
     fhir:Reference.reference [ fhir:value "Organization/ade47c8c-9eed-11ea-a6fa-3f7e286deed9" ]
  ].

<urn:uuid:6d6d7ce8-65c2-11e6-a20e-7b5deed40054> a fhir:Practitioner;
  fhir:Resource.id [ fhir:value "6d6d7ce8-65c2-11e6-a20e-7b5deed40054"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-practitioner-core";
       fhir:index 0;
       fhir:link <https://fhir.medirecords.com/StructureDefinition/mr-practitioner-core>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Practitioner</b><a name=\"6d6d7ce8-65c2-11e6-a20e-7b5deed40054\"> </a></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 Practitioner \"6d6d7ce8-65c2-11e6-a20e-7b5deed40054\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-mr-practitioner-core.html\">MediRecords Core Practitioner</a></p></div><p><b>identifier</b>: HPI-I: 8003610833334085</p><p><b>active</b>: true</p><p><b>name</b>: John Smith </p><p><b>telecom</b>: ph: 0410999888(MOBILE), <a href=\"mailto:john.smith@gpexample.com\">john.smith@gpexample.com</a>, ph: 0212450987(WORK)</p><p><b>address</b>: xzy lane Sydney NSW 2000 AU (HOME)</p><p><b>gender</b>: male</p><p><b>birthDate</b>: 1978-04-08</p><blockquote><p><b>qualification</b></p><p><b>code</b>: Doctor of Medicine <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-v2-0360.html\">degreeLicenseCertificate</a>#MD)</span></p></blockquote><blockquote><p><b>qualification</b></p><p><b>code</b>: MB chB(Hons) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></p></blockquote></div>"
  ];
  fhir:Practitioner.identifier [
     fhir:index 0;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org.au/CodeSystem/v2-0203" ];
         fhir:Coding.code [ fhir:value "NPI" ]       ];
       fhir:CodeableConcept.text [ fhir:value "HPI-I" ]     ];
     fhir:Identifier.system [ fhir:value "http://ns.electronichealth.net.au/id/hi/hpii/1.0" ];
     fhir:Identifier.value [ fhir:value "8003610833334085" ]
  ];
  fhir:Practitioner.active [ fhir:value "true"^^xsd:boolean];
  fhir:Practitioner.name [
     fhir:index 0;
     fhir:HumanName.use [ fhir:value "usual" ];
     fhir:HumanName.family [ fhir:value "Smith" ];
     fhir:HumanName.given [
       fhir:value "John";
       fhir:index 0     ]
  ];
  fhir:Practitioner.telecom [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "0410999888" ];
     fhir:ContactPoint.use [ fhir:value "mobile" ]
  ], [
     fhir:index 1;
     fhir:ContactPoint.system [ fhir:value "email" ];
     fhir:ContactPoint.value [ fhir:value "john.smith@gpexample.com" ];
     fhir:ContactPoint.use [ fhir:value "work" ]
  ], [
     fhir:index 2;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "0212450987" ];
     fhir:ContactPoint.use [ fhir:value "work" ]
  ];
  fhir:Practitioner.address [
     fhir:index 0;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-address-isprimary-extn" ];
       fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]     ];
     fhir:Address.use [ fhir:value "home" ];
     fhir:Address.type [ fhir:value "physical" ];
     fhir:Address.line [
       fhir:value "xzy lane";
       fhir:index 0     ];
     fhir:Address.city [ fhir:value "Sydney" ];
     fhir:Address.state [ fhir:value "NSW" ];
     fhir:Address.postalCode [ fhir:value "2000" ];
     fhir:Address.country [ fhir:value "AU" ]
  ];
  fhir:Practitioner.gender [ fhir:value "male"];
  fhir:Practitioner.birthDate [ fhir:value "1978-04-08"^^xsd:date];
  fhir:Practitioner.qualification [
     fhir:index 0;
     fhir:Practitioner.qualification.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0360" ];
         fhir:Coding.code [ fhir:value "MD" ];
         fhir:Coding.display [ fhir:value "Doctor of Medicine" ]       ]     ]
  ], [
     fhir:index 1;
     fhir:Practitioner.qualification.code [
       fhir:CodeableConcept.text [ fhir:value "MB chB(Hons)" ]     ]
  ].

<urn:uuid:ade47c8c-9eed-11ea-a6fa-3f7e286deed9> a fhir:Organization;
  fhir:Resource.id [ fhir:value "ade47c8c-9eed-11ea-a6fa-3f7e286deed9"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-organisation-core";
       fhir:index 0;
       fhir:link <https://fhir.medirecords.com/StructureDefinition/mr-organisation-core>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Organization</b><a name=\"ade47c8c-9eed-11ea-a6fa-3f7e286deed9\"> </a></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 Organization \"ade47c8c-9eed-11ea-a6fa-3f7e286deed9\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-mr-organisation-core.html\">MediRecords Core Organisation</a></p></div><p><b>identifier</b>: HPI-O: 8003627500000328</p><p><b>active</b>: true</p><p><b>type</b>: Healthcare Provider <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-organization-type.html\">Organization type</a>#prov)</span></p><p><b>name</b>: Healthy Live Clinic</p><p><b>telecom</b>: ph: 1234567890(WORK), <a href=\"mailto:sarahstone@c.com\">sarahstone@c.com</a></p><p><b>address</b>: Johnson Street Sydney NSW 1200 </p></div>"
  ];
  fhir:Organization.identifier [
     fhir:index 0;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org.au/CodeSystem/v2-0203" ];
         fhir:Coding.code [ fhir:value "NOI" ];
         fhir:Coding.display [ fhir:value "National Organisation Identifier" ]       ];
       fhir:CodeableConcept.text [ fhir:value "HPI-O" ]     ];
     fhir:Identifier.system [ fhir:value "http://ns.electronichealth.net.au/id/hi/hpio/1.0" ];
     fhir:Identifier.value [ fhir:value "8003627500000328" ]
  ];
  fhir:Organization.active [ fhir:value "true"^^xsd:boolean];
  fhir:Organization.type [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/organization-type" ];
       fhir:Coding.code [ fhir:value "prov" ];
       fhir:Coding.display [ fhir:value "Healthcare Provider" ]     ]
  ];
  fhir:Organization.name [ fhir:value "Healthy Live Clinic"];
  fhir:Organization.telecom [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "1234567890" ];
     fhir:ContactPoint.use [ fhir:value "work" ]
  ], [
     fhir:index 1;
     fhir:ContactPoint.system [ fhir:value "email" ];
     fhir:ContactPoint.value [ fhir:value "sarahstone@c.com" ];
     fhir:ContactPoint.use [ fhir:value "work" ]
  ];
  fhir:Organization.address [
     fhir:index 0;
     fhir:Address.type [ fhir:value "physical" ];
     fhir:Address.line [
       fhir:value "Johnson Street";
       fhir:index 0     ];
     fhir:Address.city [ fhir:value "Sydney" ];
     fhir:Address.state [ fhir:value "NSW" ];
     fhir:Address.postalCode [ fhir:value "1200" ]
  ].

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

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