{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-composition-view-birth",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-composition-view-birth",
  "version": "dv0.0.1",
  "name": "NCDHC Composition Birth View Profile",
  "title": "NCDHC Composition Birth View",
  "status": "draft",
  "date": "2019-12-06",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "purpose": "To generate a Custom View to represent birth sumarry view",
  "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",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-composition-view-base",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition",
        "path": "Composition",
        "short": "NCDHC Composition Birth View Profile"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-baby"
          }
        ]
      },
      {
        "id": "Composition.section",
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Composition.section:NewbornDelivery",
        "path": "Composition.section",
        "sliceName": "NewbornDelivery",
        "short": "This section represents details from Newborn Delivery Health Interaction"
      },
      {
        "id": "Composition.section:NewbornDelivery.title",
        "path": "Composition.section.title",
        "fixedString": "Newborn Delivery"
      },
      {
        "id": "Composition.section:NewbornDelivery.code",
        "path": "Composition.section.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "169811007"
            }
          ]
        }
      },
      {
        "id": "Composition.section:NewbornDelivery.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty. A generic message \"Sorry, the Newborn Delivery record is currently unavailable\" can be shown if the data is not yet available to the system."
      },
      {
        "id": "Composition.section:NewbornImmunisation",
        "path": "Composition.section",
        "sliceName": "NewbornImmunisation",
        "short": "This section represents details from Newborn Immunisation Health Interaction",
        "max": "1"
      },
      {
        "id": "Composition.section:NewbornImmunisation.title",
        "path": "Composition.section.title",
        "fixedString": "Newborn Immunisation"
      },
      {
        "id": "Composition.section:NewbornImmunisation.code",
        "path": "Composition.section.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "1347121000168105"
            }
          ]
        }
      },
      {
        "id": "Composition.section:NewbornImmunisation.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty. A generic message \"Sorry, the Newborn Immunisation record is currently unavailable\" can be shown if the data is not yet available to the system."
      },
      {
        "id": "Composition.section:NewbornExamination",
        "path": "Composition.section",
        "sliceName": "NewbornExamination",
        "short": "This section represents details from Newborn Examination Health Interaction",
        "max": "1"
      },
      {
        "id": "Composition.section:NewbornExamination.title",
        "path": "Composition.section.title",
        "fixedString": "Newborn Examination"
      },
      {
        "id": "Composition.section:NewbornExamination.code",
        "path": "Composition.section.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "170099002"
            }
          ]
        }
      },
      {
        "id": "Composition.section:NewbornExamination.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty. A generic message \"Sorry, the Newborn Examination record is currently unavailable\" can be shown if the data is not yet available to the system."
      },
      {
        "id": "Composition.section:NewbornBloodspotScreen",
        "path": "Composition.section",
        "sliceName": "NewbornBloodspotScreen",
        "short": "This section represents details from Newborn Bloodspot Screen Health Interaction",
        "max": "1"
      },
      {
        "id": "Composition.section:NewbornBloodspotScreen.title",
        "path": "Composition.section.title",
        "fixedString": "Newborn Bloodspot Screen"
      },
      {
        "id": "Composition.section:NewbornBloodspotScreen.code",
        "path": "Composition.section.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "428447008"
            }
          ]
        }
      },
      {
        "id": "Composition.section:NewbornBloodspotScreen.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty. A generic message \"Sorry, the Newborn Bloodspot Screen record is currently unavailable\" can be shown if the data is not yet available to the system."
      },
      {
        "id": "Composition.section:NewbornHearingScreen",
        "path": "Composition.section",
        "sliceName": "NewbornHearingScreen",
        "short": "This section represents details from Newborn Hearing Screen Health Interaction",
        "max": "1"
      },
      {
        "id": "Composition.section:NewbornHearingScreen.title",
        "path": "Composition.section.title",
        "fixedString": "Newborn Hearing Screen"
      },
      {
        "id": "Composition.section:NewbornHearingScreen.code",
        "path": "Composition.section.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "417491009"
            }
          ]
        }
      },
      {
        "id": "Composition.section:NewbornHearingScreen.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty. A generic message \"Sorry, the Newborn Hearing Screen record is currently unavailable\" can be shown if the data is not yet available to the system."
      },
      {
        "id": "Composition.section:NewbornDischarge",
        "path": "Composition.section",
        "sliceName": "NewbornDischarge",
        "short": "This section represents details from Newborn Discharge Health Interaction",
        "max": "1"
      },
      {
        "id": "Composition.section:NewbornDischarge.title",
        "path": "Composition.section.title",
        "fixedString": "Newborn Discharge"
      },
      {
        "id": "Composition.section:NewbornDischarge.code",
        "path": "Composition.section.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "58000006"
            }
          ]
        }
      },
      {
        "id": "Composition.section:NewbornDischarge.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty. A generic message \"Sorry, the Newborn Discharge record is currently unavailable\" can be shown if the data is not yet available to the system."
      }
    ]
  }
}