0.4.4 - ci-build

StandardPatientHealthRecordIG - Local Development build (v0.4.4). See the Directory of published versions

: HKCategorySamplePregnancyToObservation - TTL Representation

Draft as of 2023-03-03

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 "HKCategorySamplePregnancyToObservation"] ; # 
  fhir:text [
fhir:status [ fhir:v "additional" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map &quot;https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation&quot; = &quot;HKCategorySamplePregnancyToObservation&quot;\n\nuses &quot;https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample&quot; alias HKCategorySamplePregnancy as source\n\nuses &quot;http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus&quot; alias UsCoreObservationPregnancyStatus as target\n\ngroup HKCategorySamplePregnancyToObservation ( \n  source sample : HKCategorySamplePregnancy\n  target observation : UsCoreObservationPregnancyStatus\n) {\n  sample -&gt; observation.status = &quot;final&quot; &quot;set status&quot;;\n  sample -&gt; observation.category as category, category.coding as coding then {\n    sample -&gt; coding.system =  &quot;http://terminology.hl7.org/CodeSystem/observation-category&quot; &quot;set category code system&quot;;\n    sample -&gt; coding.code = &quot;social-history&quot; &quot;set category code&quot;;\n  } &quot;set category&quot;;\n  sample -&gt; observation.code as code, code.coding as coding then {\n    sample -&gt; coding.system =  &quot;http://loinc.org&quot; &quot;set code system&quot;;\n    sample -&gt; coding.code = &quot;82810-3&quot; &quot;set code&quot;;\n  } &quot;set code&quot;;\n  sample.startDate as startDate -&gt; observation.effectiveDateTime = startDate &quot;startDate to effectiveDateTime&quot;;\n  sample -&gt; observation.valueCodeableConcept as value, value.coding as coding then {\n    sample -&gt; coding.system =  &quot;http://snomed.info/sct&quot; &quot;set value system&quot;;\n    sample -&gt; coding.code = &quot;77386006&quot; &quot;set value&quot;;\n  } &quot;set valueCodeableConcept&quot;;\n}</pre></div>"
  ] ; # 
  fhir:url [ fhir:v "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.4.4"] ; # 
  fhir:name [ fhir:v "HKCategorySamplePregnancyToObservation"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2023-03-03T21:03:08+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "MITRE"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "MITRE" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://open-health-manager.github.io/standard-patient-health-record-ig" ]     ] )
  ] ) ; # 
  fhir:structure ( [
fhir:url [
fhir:v "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample"^^xsd:anyURI ;
fhir:link <https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "HKCategorySamplePregnancy" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "UsCoreObservationPregnancyStatus" ]
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "HKCategorySamplePregnancyToObservation" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "sample" ] ;
fhir:type [ fhir:v "HKCategorySamplePregnancy" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "observation" ] ;
fhir:type [ fhir:v "UsCoreObservationPregnancyStatus" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "set status" ] ;
      ( fhir:source [
fhir:context [ fhir:v "sample" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "final" ]         ] )       ] )     ] [
fhir:name [ fhir:v "set category" ] ;
      ( fhir:source [
fhir:context [ fhir:v "sample" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "category" ] ;
fhir:variable [ fhir:v "category" ]       ] [
fhir:context [ fhir:v "category" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "set category code system" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sample" ]         ] ) ;
        ( 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 "http://terminology.hl7.org/CodeSystem/observation-category" ]           ] )         ] )       ] [
fhir:name [ fhir:v "set category code" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sample" ]         ] ) ;
        ( 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 "social-history" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "set code" ] ;
      ( fhir:source [
fhir:context [ fhir:v "sample" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "code" ]       ] [
fhir:context [ fhir:v "code" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "set code system" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sample" ]         ] ) ;
        ( 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 "http://loinc.org" ]           ] )         ] )       ] [
fhir:name [ fhir:v "set code" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sample" ]         ] ) ;
        ( 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 "82810-3" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "startDate to effectiveDateTime" ] ;
      ( fhir:source [
fhir:context [ fhir:v "sample" ] ;
fhir:element [ fhir:v "startDate" ] ;
fhir:variable [ fhir:v "startDate" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effectiveDateTime" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "startDate" ]         ] )       ] )     ] [
fhir:name [ fhir:v "set valueCodeableConcept" ] ;
      ( fhir:source [
fhir:context [ fhir:v "sample" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "valueCodeableConcept" ] ;
fhir:variable [ fhir:v "value" ]       ] [
fhir:context [ fhir:v "value" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "set value system" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sample" ]         ] ) ;
        ( 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 "http://snomed.info/sct" ]           ] )         ] )       ] [
fhir:name [ fhir:v "set value" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sample" ]         ] ) ;
        ( 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 "77386006" ]           ] )         ] )       ] )     ] )
  ] ) . #