{
  "resourceType": "StructureDefinition",
  "url": "https://IrisObservation.org/fhir/StructureDefinition/MyObservation",
  "name": "IrisObservation",
  "status": "draft",
  "description": "HearingTest result based on observation created for the Furore FHIR modelling training",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "constraint": [
          {
            "key": "Iris-1",
            "severity": "error",
            "human": "ValueQuantity or Note are not available",
            "expression": "value.ofType(Quantity).exists() or note.exists()"
          }
        ]
      },
      {
        "id": "Observation.extension:laterality",
        "path": "Observation.extension",
        "sliceName": "laterality",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://laterality.org/fhir/StructureDefinition/Laterality"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "Who the observation is about",
        "definition": "The patient this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "https://IrisPatient.org/fhir/StructureDefinition/MyPatient"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "condition": [
          "Iris-1"
        ]
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "condition": [
          "Iris-1"
        ]
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "min": 1
      },
      {
        "id": "Observation.bodySite.extension:extAnatomicalLocationLaterality",
        "path": "Observation.bodySite.extension",
        "sliceName": "extAnatomicalLocationLaterality",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/ext-AnatomicalLocation.Laterality"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "min": 1
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "short": "Audiogram that the observation is made from",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Media"
            ]
          }
        ]
      }
    ]
  }
}