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
Draft 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 "FHIRR4PatientToCHTPatient"] ; #
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 FHIRR4PatientToCHTPatient</b></p><a name=\"FHIRR4PatientToCHTPatient\"> </a><a name=\"hcFHIRR4PatientToCHTPatient\"> </a><a name=\"FHIRR4PatientToCHTPatient-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://jembi.org/fhir/StructureMap/FHIRR4PatientToCHTPatient<span style=\"color: navy\">" = "</span>FHIRR4PatientToCHTPatient<span style=\"color: navy\">"\r\n\r\n</span><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>source</b>\r\n<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>target</b>\r\n\r\n<b>group </b>FHIRR4PatientToCHTPatient<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Patient, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>CHTPatientLogicalModel<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><b> then</b><span style=\"color: navy\"> {\r\n</span> srcName.text<b> as </b><span style=\"color: maroon\">name</span><span style=\"color: navy\"><b> -> </b></span>tgt.name = <span style=\"color: maroon\">name</span> <i>"SetPatientFullName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.telecom<b> as </b><span style=\"color: maroon\">srcPhone</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcPhone.value<b> as </b><span style=\"color: maroon\">phone</span><span style=\"color: navy\"><b> -> </b></span>tgt.phone = <span style=\"color: maroon\">phone</span> <i>"SetPatientTelecomValue"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.birthDate<b> as </b><span style=\"color: maroon\">dob</span><span style=\"color: navy\"><b> -> </b></span>tgt.date_of_birth = <span style=\"color: maroon\">dob</span> <i>"SetPatientBirthDate"</i><span style=\"color: navy\">;</span>\r\n src.gender<b> as </b><span style=\"color: maroon\">gender</span><span style=\"color: navy\"><b> -> </b></span>tgt.sex = <span style=\"color: maroon\">gender</span> <i>"SetPatientGender"</i><span style=\"color: navy\">;</span>\r\n src.identifier<b> as </b><span style=\"color: maroon\">srcBusinessID</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcBusinessID.value<b> as </b><span style=\"color: maroon\">businessID</span><span style=\"color: navy\"><b> -> </b></span>tgt.patient_id = <span style=\"color: maroon\">businessID</span> <i>"SetBusinessIDValue"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.extension<b> as </b><span style=\"color: maroon\">nationalityExt</span><b> where </b>(url = 'http://hl7.org/fhir/StructureDefinition/patient-nationality')<b> then</b><span style=\"color: navy\"> {\r\n</span> nationalityExt.extension<b> as </b><span style=\"color: maroon\">countryCodeExtension</span><b> where </b>(url = 'code')<b> then</b><span style=\"color: navy\"> {\r\n</span> countryCodeExtension.value<span style=\"color: navy\"> : </span>CodeableConcept<b> as </b><span style=\"color: maroon\">codeableConcept</span><b> then</b><span style=\"color: navy\"> {\r\n</span> codeableConcept.coding<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {\r\n</span> coding.code<b> as </b><span style=\"color: maroon\">code</span><span style=\"color: navy\"><b> -> </b></span>tgt.nationality = <span style=\"color: maroon\">code</span> <i>"SetCountryCode"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><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/FHIRR4PatientToCHTPatient"^^xsd:anyURI] ; #
fhir:version [ fhir:v "1.0.1"] ; #
fhir:name [ fhir:v "FHIRR4PatientToCHTPatient"] ; #
fhir:status [ fhir:v "draft"] ; #
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://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Patient> ] ;
fhir:mode [ fhir:v "source" ]
] [
fhir:url [
fhir:v "http://jembi.org/fhir/StructureDefinition/CHTPatientLogicalModel"^^xsd:anyURI ;
fhir:link <http://jembi.org/fhir/StructureDefinition/CHTPatientLogicalModel> ] ;
fhir:mode [ fhir:v "target" ]
] ) ; #
fhir:group ( [
fhir:name [ fhir:v "FHIRR4PatientToCHTPatient" ] ;
fhir:typeMode [ fhir:v "none" ] ;
( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "source" ] ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "CHTPatientLogicalModel" ] ;
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:rule [
fhir:name [ fhir:v "SetPatientFullName" ] ;
( fhir:source [
fhir:context [ fhir:v "srcName" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "name" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "name" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "telecom" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "srcPhone" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetPatientTelecomValue" ] ;
( fhir:source [
fhir:context [ fhir:v "srcPhone" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "phone" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "phone" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "phone" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "SetPatientBirthDate" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:variable [ fhir:v "dob" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "date_of_birth" ] ;
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 "gender" ] ;
fhir:variable [ fhir:v "gender" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "sex" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "gender" ] ] ) ] ) ] [
fhir:name [ fhir:v "identifier" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "srcBusinessID" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetBusinessIDValue" ] ;
( fhir:source [
fhir:context [ fhir:v "srcBusinessID" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "businessID" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "patient_id" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "businessID" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "extension" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "nationalityExt" ] ;
fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/StructureDefinition/patient-nationality')" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
( fhir:source [
fhir:context [ fhir:v "nationalityExt" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "countryCodeExtension" ] ;
fhir:condition [ fhir:v "(url = 'code')" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "valueCodeableConcept" ] ;
( fhir:source [
fhir:context [ fhir:v "countryCodeExtension" ] ;
fhir:type [ fhir:v "CodeableConcept" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "codeableConcept" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
( fhir:source [
fhir:context [ fhir:v "codeableConcept" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "SetCountryCode" ] ;
( fhir:source [
fhir:context [ fhir:v "coding" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "code" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "nationality" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "code" ] ] ) ] ) ] ) ] ) ] ) ] ) ] )
] ) . #
IG © 2021+ Jembi Health Systems. Package jembi.starter.ig#1.0.1 based on FHIR 4.0.1. Generated 2024-11-17
Links: Table of Contents |
QA Report