National Patient System FHIR
1.0.0 - ci-build International flag

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

: Map National Patient Question to an Observation - TTL Representation

Draft as of 2025-09-19

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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 "NationalPatientToFHIRR4Patient"] ; # 
  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 NationalPatientToFHIRR4Patient</b></p><a name=\"NationalPatientToFHIRR4Patient\"> </a><a name=\"hcNationalPatientToFHIRR4Patient\"> </a><pre class=\"fml\">#xD;\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\">\"#xD;\n#xD;\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>#xD;\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>#xD;\n#xD;\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\"> {#xD;\n</span>  src.name<b> as </b><span style=\"color: maroon\">srcName</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<b> as </b><span style=\"color: maroon\">pName</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcName<span style=\"color: navy\"><b> -&gt; </b></span>pName.text = <span style=\"color: maroon\">srcName</span> <i>\"SetPatientFullName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:url [ fhir:v "http://moh.bw.org/fhir/StructureMap/NationalPatientToFHIRR4Patient"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "NationalPatientToFHIRR4Patient"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2025-09-19T09:50:45+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Your Organization"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "Your Organization" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://organization.url/" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "info@someorg.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://moh.bw.org/fhir/StructureDefinition/NationalPatientToFHIRR4Patient"^^xsd:anyURI ;
fhir:link <http://moh.bw.org/fhir/StructureDefinition/NationalPatientToFHIRR4Patient>     ] ;
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 "NationalPatientToFHIRR4Patient" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "NationalPatientLogicalModel" ] ;
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 "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 [
a fhir:id ;
fhir:v "srcName"             ]           ] )         ] )       ] )     ] )
  ] ) . #