{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-observation-emotional-health-and-wellbeing",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-emotional-health-and-wellbeing",
  "version": "dv0.0.1",
  "name": "NCDHCEmotionalHealthAndWellbeingObservationProfile",
  "title": "NCDHC Emotional Health and Wellbeing Observation",
  "status": "draft",
  "date": "2020-02-21",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "description": "Observation to note issues affecting the mental, emotional state, (e.g. stress, anxiety, depression emotional or psychiatric issues)",
  "purpose": "To record issues affecting the mental, emotional state, (e.g. stress, anxiety, depression emotional or psychiatric issues)",
  "copyright": "Copyright © 2019 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/.",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.info/sct",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-base",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "NCDHC Emotional Health and Wellbeing Observation"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Emotional Health and Wellbeing",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Observation.code.coding:EmotionalHealthAndWellbeingSNOMED-CT",
        "path": "Observation.code.coding",
        "sliceName": "EmotionalHealthAndWellbeingSNOMED-CT",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "363800008"
        }
      },
      {
        "id": "Observation.code.coding:EmotionalHealthAndWellbeingSNOMED-CT.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-expectant-mother"
          }
        ]
      },
      {
        "id": "Observation.effectiveDateTime:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "short": "Date when Issues affecting the mental, emotional state, (e.g. stress, anxiety, depression emotional or psychiatric issues) were discussed"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "Statement about what was observed.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-emotional-health-discussion-outcome-1"
        }
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "short": "Comment on any concerns identified",
        "mustSupport": true
      }
    ]
  }
}