{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-observation-vision-tested-monocularly",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-vision-tested-monocularly",
  "version": "r1.0.0",
  "name": "NCDHCEyesMonocularlyTestedObservationProfile",
  "title": "NCDHC Eyes Monocularly Tested Observation",
  "status": "draft",
  "date": "2019-02-15",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "description": "Eyes Monoculary Test",
  "purpose": "To record observations on vision test",
  "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 Vision Tested Monocularly Observation Profile"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "patternCodeableConcept": {
          "text": ""
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Eyes (Vision Tested Monocularly)",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            },
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.code.coding:eyesMonocularlyTestedSNOMED-CT",
        "path": "Observation.code.coding",
        "sliceName": "eyesMonocularlyTestedSNOMED-CT",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "363983007"
        }
      },
      {
        "id": "Observation.code.coding:eyesMonocularlyTestedSNOMED-CT.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.code.coding:eyesMonocularlyTestedSNOMED-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 Eyes Monocularly test was performed"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "To Specify if the test was conducted",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "defaultValueCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "443938003"
            }
          ]
        },
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-observation-completion-status-1"
          }
        }
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "short": "Overall outcome of the eye test",
        "binding": {
          "strength": "required",
          "description": "Normal | Review | Refer",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-observation-interpretation-1"
          }
        }
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "comment": "Additional comments"
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "target.resolve()"
            }
          ],
          "rules": "closed"
        },
        "short": "Provide Refernces for Left and Right Eye",
        "max": "2"
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          }
        ]
      },
      {
        "id": "Observation.related:leftEye",
        "path": "Observation.related",
        "sliceName": "leftEye",
        "max": "1"
      },
      {
        "id": "Observation.related:leftEye.type",
        "path": "Observation.related.type",
        "fixedCode": "has-member"
      },
      {
        "id": "Observation.related:leftEye.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-left-eye-visiual-acuity"
          }
        ]
      },
      {
        "id": "Observation.related:rightEye",
        "path": "Observation.related",
        "sliceName": "rightEye",
        "max": "1"
      },
      {
        "id": "Observation.related:rightEye.type",
        "path": "Observation.related.type",
        "fixedCode": "has-member"
      },
      {
        "id": "Observation.related:rightEye.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-right-eye-visiual-acuity"
          }
        ]
      }
    ]
  }
}