{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-observation-ultrasound-scan-obstetric",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-ultrasound-scan-obstetric",
  "version": "dv1.0.0",
  "name": "NCDHCObstetericUltrasoundScanObservationProfile",
  "title": "NCDHC Obsteteric Ultrasound Scan Observation",
  "status": "draft",
  "date": "2020-03-10",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "description": "NCDHC Obsteteric Ultrasound Scan Observation",
  "copyright": "Copyright © 2020 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.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-base",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Observation.code.coding:UltrasoundScanObstetricSNOMED-CT",
        "path": "Observation.code.coding",
        "sliceName": "UltrasoundObstetricSNOMED-CT",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "268445003"
        }
      },
      {
        "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/Time when ultrasound scan was performed",
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueDateTime",
        "path": "Observation.valueDateTime",
        "sliceName": "valueDateTime",
        "short": "Estimated date of delivery",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}