Starter FHIR Implementation Guide
1.0.1 - draft International flag

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

: Map Breastfeeding Observation to Proprietary Structure - TTL Representation

Active as of 2024-12-11

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:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ObservationToProprietaryBreastfeedingStatus"] ; # 
  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 ObservationToProprietaryBreastfeedingStatus</b></p><a name=\"ObservationToProprietaryBreastfeedingStatus\"> </a><a name=\"hcObservationToProprietaryBreastfeedingStatus\"> </a><a name=\"ObservationToProprietaryBreastfeedingStatus-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>http://jembi.org/fhir/StructureMap/ObservationToProprietaryBreastfeedingStatus<span style=\"color: navy\">&quot; = &quot;</span>ObservationToProprietaryBreastfeedingStatus<span style=\"color: navy\">&quot;\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-breastfeeding-status-observation.html\" title=\"Observation - Breastfeeding Status\">http://jembi.org/fhir/StructureDefinition/breastfeeding-status-observation</a><span style=\"color: navy\">&quot; </span><b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-BreastfeedingStatusProprietaryLogicalModel.html\" title=\"Breastfeeding Status Proprietary Logical Model\">http://jembi.org/fhir/StructureDefinition/BreastfeedingStatusProprietaryLogicalModel</a><span style=\"color: navy\">&quot; </span><b>as </b><b>target</b>\r\n\r\n<b>group </b>ObservationToProprietaryBreastfeedingStatus<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Observation, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>BreastfeedingStatusProprietaryLogicalModel<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  src.status<b> as </b><span style=\"color: maroon\">status</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.observationStatus = <span style=\"color: maroon\">status</span> <i>&quot;SetObservationStatus&quot;</i><span style=\"color: navy\">;</span>\r\n  src.code<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> -&gt; </b></span>tgt.code = <span style=\"color: maroon\">code</span> <i>&quot;SetObservationCode&quot;</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  src.effective<b> as </b><span style=\"color: maroon\">authored</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.date = <span style=\"color: maroon\">authored</span> <i>&quot;SetObservationEffectiveDateTime&quot;</i><span style=\"color: navy\">;</span>\r\n  src.subject<b> as </b><span style=\"color: maroon\">subject</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    subject.extension<b> as </b><span style=\"color: maroon\">extension</span><b> where </b>(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')<b> then</b><span style=\"color: navy\"> {\r\n</span>      extension.value<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">val</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        val<span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient = <span style=\"color: maroon\">val</span> <i>&quot;SetObservationSubjectReference&quot;</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  src.performer<b> as </b><span style=\"color: maroon\">performer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    performer.extension<b> as </b><span style=\"color: maroon\">extension</span><b> where </b>(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')<b> then</b><span style=\"color: navy\"> {\r\n</span>      extension.value<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">val</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        val<span style=\"color: navy\"><b> -&gt; </b></span>tgt.performer = <span style=\"color: maroon\">val</span> <i>&quot;SetObservationPerformerReference&quot;</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  src.encounter<b> as </b><span style=\"color: maroon\">encounter</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    encounter.extension<b> as </b><span style=\"color: maroon\">extension</span><b> where </b>(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')<b> then</b><span style=\"color: navy\"> {\r\n</span>      extension.value<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">val</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        val<span style=\"color: navy\"><b> -&gt; </b></span>tgt.encounter = <span style=\"color: maroon\">val</span> <i>&quot;SetObservationEncounterReference&quot;</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  src.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> -&gt; </b></span>tgt.breastFeedingStatus = <span style=\"color: maroon\">code</span> <i>&quot;SetObservationValueCodingCode&quot;</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\">}\r\n\r\n</span></pre></div>"
  ] ; # 
  fhir:url [ fhir:v "http://jembi.org/fhir/StructureMap/ObservationToProprietaryBreastfeedingStatus"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.1"] ; # 
  fhir:name [ fhir:v "ObservationToProprietaryBreastfeedingStatus"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2024-12-11T06:22:36+00: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/breastfeeding-status-observation"^^xsd:anyURI ;
fhir:link <http://jembi.org/fhir/StructureDefinition/breastfeeding-status-observation>     ] ;
fhir:mode [ fhir:v "source" ]
  ] [
fhir:url [
fhir:v "http://jembi.org/fhir/StructureDefinition/BreastfeedingStatusProprietaryLogicalModel"^^xsd:anyURI ;
fhir:link <http://jembi.org/fhir/StructureDefinition/BreastfeedingStatusProprietaryLogicalModel>     ] ;
fhir:mode [ fhir:v "target" ]
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "ObservationToProprietaryBreastfeedingStatus" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "Observation" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "BreastfeedingStatusProprietaryLogicalModel" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "SetObservationStatus" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:variable [ fhir:v "status" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "observationStatus" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "status" ]         ] )       ] )     ] [
fhir:name [ fhir:v "code" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "code" ] ;
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 "SetObservationCode" ] ;
          ( 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 "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "code" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "SetObservationEffectiveDateTime" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "effective" ] ;
fhir:variable [ fhir:v "authored" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "date" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "authored" ]         ] )       ] )     ] [
fhir:name [ fhir:v "subject" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "subject" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
        ( fhir:source [
fhir:context [ fhir:v "subject" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extension" ] ;
fhir:condition [ fhir:v "(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "valueString" ] ;
          ( fhir:source [
fhir:context [ fhir:v "extension" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "SetObservationSubjectReference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "val" ]               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "performer" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:variable [ fhir:v "performer" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
        ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extension" ] ;
fhir:condition [ fhir:v "(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "valueString" ] ;
          ( fhir:source [
fhir:context [ fhir:v "extension" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "SetObservationPerformerReference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "val" ]               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "encounter" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "encounter" ] ;
fhir:variable [ fhir:v "encounter" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
        ( fhir:source [
fhir:context [ fhir:v "encounter" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extension" ] ;
fhir:condition [ fhir:v "(url = 'http://jembi.org/fhir/StructureDefinition/source-system-resource-reference')" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "valueString" ] ;
          ( fhir:source [
fhir:context [ fhir:v "extension" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "SetObservationEncounterReference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "encounter" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "val" ]               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "valueCodeableConcept" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
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 "SetObservationValueCodingCode" ] ;
          ( 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 "breastFeedingStatus" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "code" ]             ] )           ] )         ] )       ] )     ] )
  ] ) . #