{
  "resourceType": "StructureDefinition",
  "id": "el-observation-octevaluation",
  "url": "http://fhir.essilorluxottica.com/fhir/StructureDefinition/el-observation-octevaluation",
  "version": "1.0.0",
  "name": "ELOCTEvaluation",
  "title": "EL OCT Evaluation Profile",
  "status": "draft",
  "description": "The profile for OCT Evaluation observations.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta.extension",
        "path": "Observation.meta.extension",
        "min": 1
      },
      {
        "id": "Observation.meta.extension:organization",
        "path": "Observation.meta.extension",
        "sliceName": "organization",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.essilorluxottica.com/fhir/StructureDefinition/el-meta-organization-extension"
            ]
          }
        ]
      },
      {
        "id": "Observation.meta.tag",
        "path": "Observation.meta.tag",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.essilorluxottica.com/fhir/ValueSet/el-metatag-vs"
        }
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "patternCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "exam",
              "system": "http://terminology.hl7.org/CodeSystem/observation-category"
            }
          ]
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "oct",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-sectioncode-cs",
              "display": "Optical Coherence Tomography"
            }
          ]
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.essilorluxottica.com/fhir/StructureDefinition/el-patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "min": 1
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.essilorluxottica.com/fhir/ValueSet/el-eyelocation-single-vs"
        }
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open",
          "description": "Slice based on the component.code value"
        },
        "min": 1
      },
      {
        "id": "Observation.component:octRNFL",
        "path": "Observation.component",
        "sliceName": "octRNFL",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:octRNFL.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "octRNFL",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "OCT Retinal Nerve Fiber Layer Finding"
            }
          ]
        }
      },
      {
        "id": "Observation.component:octRNFL.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:octGCL",
        "path": "Observation.component",
        "sliceName": "octGCL",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:octGCL.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "octGCL",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "OCT Ganglion Cell Layer Finding"
            }
          ]
        }
      },
      {
        "id": "Observation.component:octGCL.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:octMacularThickness",
        "path": "Observation.component",
        "sliceName": "octMacularThickness",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:octMacularThickness.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "octMacularThickness",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "OCT Macular Thickness Finding"
            }
          ]
        }
      },
      {
        "id": "Observation.component:octMacularThickness.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:octAxialLength",
        "path": "Observation.component",
        "sliceName": "octAxialLength",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:octAxialLength.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "octAxialLength",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "OCT Axial Length Finding"
            }
          ]
        }
      },
      {
        "id": "Observation.component:octAxialLength.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:octOpticNerve",
        "path": "Observation.component",
        "sliceName": "octOpticNerve",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:octOpticNerve.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "octOpticNerve",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "OCT Optic Nerve Finding"
            }
          ]
        }
      },
      {
        "id": "Observation.component:octOpticNerve.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:octRetina",
        "path": "Observation.component",
        "sliceName": "octRetina",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:octRetina.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "octRetina",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "OCT Retina Finding"
            }
          ]
        }
      },
      {
        "id": "Observation.component:octRetina.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:octAnteriorSegment",
        "path": "Observation.component",
        "sliceName": "octAnteriorSegment",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:octAnteriorSegment.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "octAnteriorSegment",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "OCT Anterior Segment Finding"
            }
          ]
        }
      },
      {
        "id": "Observation.component:octAnteriorSegment.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}