{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-observation-bloodspot-screen",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-bloodspot-screen",
  "version": "r1.0.0",
  "name": "NCDHCBloodSpotScreenObservationProfile",
  "title": "NCDHC Blood Spot Screen Observation",
  "status": "draft",
  "date": "2019-02-01",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "description": "A test used to detect certain rare genetic conditions and disorders of the metabolism",
  "purpose": "To record Bloodspt screen result",
  "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": "Observation",
  "baseDefinition": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-base",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "NCDHC Blood Spot Screen Observation Profile"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.\r\n\r\nCWG: Discussion on the Category to match it with Composition.type",
        "patternCodeableConcept": {
          "text": ""
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Bloospot Screen code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Observation.code.coding:bloodSpotScreenSNOMED-CT",
        "path": "Observation.code.coding",
        "sliceName": "bloodSpotScreenSNOMED-CT",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "428447008"
        }
      },
      {
        "id": "Observation.code.coding:bloodSpotScreenSNOMED-CT.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.code.coding:bloodSpotScreenSNOMED-CT.code",
        "path": "Observation.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "Reference to the Baby Patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-baby"
          }
        ]
      },
      {
        "id": "Observation.effectiveDateTime:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "short": "Date when Bloodspot Screen Test performed"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "Completed | Not Completed",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-observation-completion-status-1"
          }
        }
      }
    ]
  }
}