Starter FHIR Implementation Guide, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/Starter-FHIR-IG/ and changes regularly. See the Directory of published versions
Active as of 2024-11-08 |
@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:StructureMap ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "CHTPatientToFHIRR4Patient"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap CHTPatientToFHIRR4Patient</b></p><a name=\"CHTPatientToFHIRR4Patient\"> </a><a name=\"hcCHTPatientToFHIRR4Patient\"> </a><a name=\"CHTPatientToFHIRR4Patient-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://jembi.org/fhir/StructureMap/CHTPatientToFHIRR4Patient<span style=\"color: navy\">" = "</span>CHTPatientToFHIRR4Patient<span style=\"color: navy\">"\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-CHTPatientLogicalModel.html\" title=\"CHT Patient Logical Model\">http://jembi.org/fhir/StructureDefinition/CHTPatientLogicalModel</a><span style=\"color: navy\">" </span><b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/patient.html\" title=\"Patient\">http://hl7.org/fhir/StructureDefinition/Patient</a><span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n\r\n<b>group </b>CHTPatientToFHIRR4Patient<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>CHTPatientLogicalModel, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Patient<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src._id<b> as </b><span style=\"color: maroon\">srcID</span><span style=\"color: navy\"><b> -> </b></span>tgt.id = <span style=\"color: maroon\">srcID</span> <i>"SetPatientResourceId"</i><span style=\"color: navy\">;</span>\r\n src.name<b> as </b><span style=\"color: maroon\">srcName</span><span style=\"color: navy\"><b> -> </b></span>tgt.name<b> as </b><span style=\"color: maroon\">pName</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcName<span style=\"color: navy\"><b> -> </b></span>pName.text = <span style=\"color: maroon\">srcName</span> <i>"SetPatientFullName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.phone<b> as </b><span style=\"color: maroon\">srcPhoneNumber</span><span style=\"color: navy\"><b> -> </b></span>tgt.telecom<b> as </b><span style=\"color: maroon\">pTelecom</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcPhoneNumber<span style=\"color: navy\"><b> -> </b></span>pTelecom.system = <span style=\"color: blue\">'phone'</span> <i>"SetPatientTelecomCodeAsPhone"</i><span style=\"color: navy\">;</span>\r\n srcPhoneNumber<span style=\"color: navy\"><b> -> </b></span>pTelecom.value = <span style=\"color: maroon\">srcPhoneNumber</span> <i>"SetPatientTelecomValue"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.date_of_birth<b> as </b><span style=\"color: maroon\">dob</span><span style=\"color: navy\"><b> -> </b></span>tgt.birthDate = <span style=\"color: maroon\">dob</span> <i>"SetPatientBirthDate"</i><span style=\"color: navy\">;</span>\r\n src.sex<b> as </b><span style=\"color: maroon\">sex</span><span style=\"color: navy\"><b> -> </b></span>tgt.gender = <span style=\"color: maroon\">sex</span> <i>"SetPatientGender"</i><span style=\"color: navy\">;</span>\r\n src.patient_id<b> as </b><span style=\"color: maroon\">srcBusinessID</span><span style=\"color: navy\"><b> -> </b></span>tgt.identifier<b> as </b><span style=\"color: maroon\">tgtBusinessID</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcBusinessID<span style=\"color: navy\"><b> -> </b></span>tgtBusinessID.value = <span style=\"color: maroon\">srcBusinessID</span> <i>"SetBusinessIDValue"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"patientId"</i><span style=\"color: navy\">;</span>\r\n src.nationality<b> as </b><span style=\"color: maroon\">nationality</span><span style=\"color: navy\"><b> -> </b></span>tgt.extension = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Extension'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">nationalityExt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> nationality<span style=\"color: navy\"><b> -> </b></span>nationalityExt.url = <span style=\"color: blue\">'http://hl7.org/fhir/StructureDefinition/patient-nationality'</span> <i>"SetNationalityUrl"</i><span style=\"color: navy\">;</span>\r\n nationality<span style=\"color: navy\"><b> -> </b></span>nationalityExt.extension = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Extension'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">countryCodeExtension</span><b> then</b><span style=\"color: navy\"> {\r\n</span> nationality<span style=\"color: navy\"><b> -> </b></span>countryCodeExtension.url = <span style=\"color: blue\">'code'</span> <i>"SetCountryCodeUrl"</i><span style=\"color: navy\">;</span>\r\n nationality<span style=\"color: navy\"><b> -> </b></span>countryCodeExtension.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">countryCode</span><b> then</b><span style=\"color: navy\"> {\r\n</span> nationality<span style=\"color: navy\"><b> -> </b></span>countryCode.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {\r\n</span> nationality<span style=\"color: navy\"><b> -> </b></span>coding.system = <span style=\"color: blue\">'urn:iso:std:iso:3166'</span> <i>"SetCountryCodeSystem"</i><span style=\"color: navy\">;</span>\r\n nationality<span style=\"color: navy\"><b> -> </b></span>coding.code = <span style=\"color: maroon\">nationality</span> <i>"SetCountryCodeCode"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"SetCountryCodeCoding"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"ProcessCountryCodeCodeableConcept"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"ProcessCountryCode"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
] ; #
fhir:url [ fhir:v "http://jembi.org/fhir/StructureMap/CHTPatientToFHIRR4Patient"^^xsd:anyURI] ; #
fhir:version [ fhir:v "1.0.1"] ; #
fhir:name [ fhir:v "CHTPatientToFHIRR4Patient"] ; #
fhir:status [ fhir:v "active"] ; #
fhir:date [ fhir:v "2024-11-08T15:08:21+02:00"^^xsd:dateTime] ; #
fhir:publisher [ fhir:v "Jembi Health Systems"] ; #
fhir:contact ( [
fhir:name [ fhir:v "Jembi Health Systems" ] ;
( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.jembi.org/" ] ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "info@jembi.org" ] ] )
] [
fhir:name [ fhir:v "Richard Langford" ] ;
( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "richard.langford@jembi.org" ] ;
fhir:use [ fhir:v "work" ] ] )
] ) ; #
fhir:jurisdiction ( [
( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ] ;
fhir:display [ fhir:v "World" ] ] )
] ) ; #
fhir:structure ( [
fhir:url [
fhir:v "http://jembi.org/fhir/StructureDefinition/CHTPatientLogicalModel"^^xsd:anyURI ;
fhir:link <http://jembi.org/fhir/StructureDefinition/CHTPatientLogicalModel> ] ;
fhir:mode [ fhir:v "source" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Patient> ] ;
fhir:mode [ fhir:v "target" ]
] ) ; #
fhir:group ( [
fhir:name [ fhir:v "CHTPatientToFHIRR4Patient" ] ;
fhir:typeMode [ fhir:v "none" ] ;
( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "CHTPatientLogicalModel" ] ;
fhir:mode [ fhir:v "source" ] ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "target" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetPatientResourceId" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "_id" ] ;
fhir:variable [ fhir:v "srcID" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "srcID" ] ] ) ] ) ] [
fhir:name [ fhir:v "name" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "srcName" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "pName" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetPatientFullName" ] ;
( fhir:source [
fhir:context [ fhir:v "srcName" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "pName" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "srcName" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "phone" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "phone" ] ;
fhir:variable [ fhir:v "srcPhoneNumber" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "pTelecom" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetPatientTelecomCodeAsPhone" ] ;
( fhir:source [
fhir:context [ fhir:v "srcPhoneNumber" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "pTelecom" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "phone" ] ] ) ] ) ] [
fhir:name [ fhir:v "SetPatientTelecomValue" ] ;
( fhir:source [
fhir:context [ fhir:v "srcPhoneNumber" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "pTelecom" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "srcPhoneNumber" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "SetPatientBirthDate" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "date_of_birth" ] ;
fhir:variable [ fhir:v "dob" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "dob" ] ] ) ] ) ] [
fhir:name [ fhir:v "SetPatientGender" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "sex" ] ;
fhir:variable [ fhir:v "sex" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "gender" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "sex" ] ] ) ] ) ] [
fhir:name [ fhir:v "patientId" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "patient_id" ] ;
fhir:variable [ fhir:v "srcBusinessID" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "tgtBusinessID" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetBusinessIDValue" ] ;
( fhir:source [
fhir:context [ fhir:v "srcBusinessID" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtBusinessID" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "srcBusinessID" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "nationality" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "nationality" ] ;
fhir:variable [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "nationalityExt" ] ;
fhir:transform [ fhir:v "create" ] ;
( fhir:parameter [
fhir:value [ fhir:v "Extension" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetNationalityUrl" ] ;
( fhir:source [
fhir:context [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "nationalityExt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "http://hl7.org/fhir/StructureDefinition/patient-nationality" ] ] ) ] ) ] [
fhir:name [ fhir:v "ProcessCountryCode" ] ;
( fhir:source [
fhir:context [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "nationalityExt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "countryCodeExtension" ] ;
fhir:transform [ fhir:v "create" ] ;
( fhir:parameter [
fhir:value [ fhir:v "Extension" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetCountryCodeUrl" ] ;
( fhir:source [
fhir:context [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "countryCodeExtension" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "code" ] ] ) ] ) ] [
fhir:name [ fhir:v "ProcessCountryCodeCodeableConcept" ] ;
( fhir:source [
fhir:context [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "countryCodeExtension" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "countryCode" ] ;
fhir:transform [ fhir:v "create" ] ;
( fhir:parameter [
fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetCountryCodeCoding" ] ;
( fhir:source [
fhir:context [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "countryCode" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
( fhir:parameter [
fhir:value [ fhir:v "Coding" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetCountryCodeSystem" ] ;
( fhir:source [
fhir:context [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "urn:iso:std:iso:3166" ] ] ) ] ) ] [
fhir:name [ fhir:v "SetCountryCodeCode" ] ;
( fhir:source [
fhir:context [ fhir:v "nationality" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "nationality" ] ] ) ] ) ] ) ] ) ] ) ] ) ] )
] ) . #
IG © 2021+ Jembi Health Systems. Package jembi.starter.ig#1.0.1 based on FHIR 4.0.1. Generated 2024-12-11
Links: Table of Contents |
QA Report