National Patient System FHIR
1.0.0 - ci-build
National Patient System FHIR, published by Your Organization. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/tteddyblOak/FHIR-Teddy/ and changes regularly. See the Directory of published versions
Draft as of 2025-09-19 |
{
"resourceType" : "StructureMap",
"id" : "NationalPatientToFHIRR4Patient",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap NationalPatientToFHIRR4Patient</b></p><a name=\"NationalPatientToFHIRR4Patient\"> </a><a name=\"hcNationalPatientToFHIRR4Patient\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://moh.bw.org/fhir/StructureMap/NationalPatientToFHIRR4Patient<span style=\"color: navy\">" = "</span>NationalPatientToFHIRR4Patient<span style=\"color: navy\">"\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> "</span>http://moh.bw.org/fhir/StructureDefinition/NationalPatientToFHIRR4Patient<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>NationalPatientToFHIRR4Patient<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>NationalPatientLogicalModel, <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.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<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"url" : "http://moh.bw.org/fhir/StructureMap/NationalPatientToFHIRR4Patient",
"version" : "1.0.0",
"name" : "NationalPatientToFHIRR4Patient",
"status" : "draft",
"date" : "2025-09-19T09:50:45+00:00",
"publisher" : "Your Organization",
"contact" : [
{
"name" : "Your Organization",
"telecom" : [
{
"system" : "url",
"value" : "https://organization.url/"
},
{
"system" : "email",
"value" : "info@someorg.org"
}
]
},
{
"name" : "Richard Langford",
"telecom" : [
{
"system" : "email",
"value" : "richard.langford@jembi.org",
"use" : "work"
}
]
}
],
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001",
"display" : "World"
}
]
}
],
"structure" : [
{
"url" : "http://moh.bw.org/fhir/StructureDefinition/NationalPatientToFHIRR4Patient",
"mode" : "source"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/Patient",
"mode" : "target"
}
],
"group" : [
{
"name" : "NationalPatientToFHIRR4Patient",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"type" : "NationalPatientLogicalModel",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "Patient",
"mode" : "target"
}
],
"rule" : [
{
"name" : "name",
"source" : [
{
"context" : "src",
"element" : "name",
"variable" : "srcName"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "name",
"variable" : "pName"
}
],
"rule" : [
{
"name" : "SetPatientFullName",
"source" : [
{
"context" : "srcName"
}
],
"target" : [
{
"context" : "pName",
"contextType" : "variable",
"element" : "text",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcName"
}
]
}
]
}
]
}
]
}
]
}