0.4.4 - ci-build

StandardPatientHealthRecordIG, published by MITRE. This is not an authorized publication; it is the continuous build for version 0.4.4). This version is based on the current content of https://github.com/HL7/standard-patient-health-record-ig/ and changes regularly. See the Directory of published versions

: HKCategorySamplePregnancyToObservation - JSON Representation

Draft as of 2023-09-13

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "HKCategorySamplePregnancyToObservation",
  "text" : {
    "status" : "additional",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>"
  },
  "url" : "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation",
  "version" : "0.4.4",
  "name" : "HKCategorySamplePregnancyToObservation",
  "status" : "draft",
  "date" : "2023-09-13T16:34:31+00:00",
  "publisher" : "MITRE",
  "contact" : [
    {
      "name" : "MITRE",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://open-health-manager.github.io/standard-patient-health-record-ig"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample",
      "mode" : "source",
      "alias" : "HKCategorySamplePregnancy"
    },
    {
      "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus",
      "mode" : "target",
      "alias" : "UsCoreObservationPregnancyStatus"
    }
  ],
  "group" : [
    {
      "name" : "HKCategorySamplePregnancyToObservation",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "sample",
          "type" : "HKCategorySamplePregnancy",
          "mode" : "source"
        },
        {
          "name" : "observation",
          "type" : "UsCoreObservationPregnancyStatus",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "set status",
          "source" : [
            {
              "context" : "sample"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            }
          ]
        },
        {
          "name" : "set category",
          "source" : [
            {
              "context" : "sample"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "category"
            },
            {
              "context" : "category",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding"
            }
          ],
          "rule" : [
            {
              "name" : "set category code system",
              "source" : [
                {
                  "context" : "sample"
                }
              ],
              "target" : [
                {
                  "context" : "coding",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://terminology.hl7.org/CodeSystem/observation-category"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "set category code",
              "source" : [
                {
                  "context" : "sample"
                }
              ],
              "target" : [
                {
                  "context" : "coding",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "social-history"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "set code",
          "source" : [
            {
              "context" : "sample"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code"
            },
            {
              "context" : "code",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding"
            }
          ],
          "rule" : [
            {
              "name" : "set code system",
              "source" : [
                {
                  "context" : "sample"
                }
              ],
              "target" : [
                {
                  "context" : "coding",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://loinc.org"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "set code",
              "source" : [
                {
                  "context" : "sample"
                }
              ],
              "target" : [
                {
                  "context" : "coding",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "82810-3"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "startDate to effectiveDateTime",
          "source" : [
            {
              "context" : "sample",
              "element" : "startDate",
              "variable" : "startDate"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "effectiveDateTime",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "startDate"
                }
              ]
            }
          ]
        },
        {
          "name" : "set valueCodeableConcept",
          "source" : [
            {
              "context" : "sample"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "valueCodeableConcept",
              "variable" : "value"
            },
            {
              "context" : "value",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding"
            }
          ],
          "rule" : [
            {
              "name" : "set value system",
              "source" : [
                {
                  "context" : "sample"
                }
              ],
              "target" : [
                {
                  "context" : "coding",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://snomed.info/sct"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "set value",
              "source" : [
                {
                  "context" : "sample"
                }
              ],
              "target" : [
                {
                  "context" : "coding",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "77386006"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}