{
  "resourceType": "StructureDefinition",
  "id": "el-observation-developmentalEyeMovement",
  "url": "http://fhir.essilorluxottica.com/fhir/StructureDefinition/el-observation-developmentalEyeMovement",
  "version": "1.0.0",
  "name": "ELDevelopmentalEyeMovement",
  "title": "EL Developmental Eye Movement Profile",
  "status": "draft",
  "description": "EL Developmental Eye Movement Profile",
  "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": "developmentalEyeMovement",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-sectioncode-cs",
              "display": "Developmental Eye Movement"
            }
          ]
        }
      },
      {
        "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:DEMaccuracyPercentile",
        "path": "Observation.component",
        "sliceName": "DEMaccuracyPercentile",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DEMaccuracyPercentile.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "DEMaccuracyPercentile",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "Developmental Eye Movement Accuracy Percentile"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DEMaccuracyPercentile.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:DEMaccuracyScore",
        "path": "Observation.component",
        "sliceName": "DEMaccuracyScore",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DEMaccuracyScore.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "DEMaccuracyRawScore",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "Developmental Eye Movement Accuracy Raw Score"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DEMaccuracyScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:DEMautomaticitPercentile",
        "path": "Observation.component",
        "sliceName": "DEMautomaticitPercentile",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DEMautomaticitPercentile.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "DEMautomaticitPercentile",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "Developmental Eye Movement Automicity Percentile"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DEMautomaticitPercentile.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:DEMautomaticityScore",
        "path": "Observation.component",
        "sliceName": "DEMautomaticityScore",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DEMautomaticityScore.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "DEMautomaticityRawScore",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "Developmental Eye Movement Automicity Raw Score"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DEMautomaticityScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:DEMefficiencyGivenAutomaticityPercentile",
        "path": "Observation.component",
        "sliceName": "DEMefficiencyGivenAutomaticityPercentile",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DEMefficiencyGivenAutomaticityPercentile.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "DEMefficiencyGivenAutomaticityPercentile",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "Developmental Eye Movement Efficiency Given Automaticity Percentile"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DEMefficiencyGivenAutomaticityPercentile.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:DEMoculomotorEfficiencyPercentile",
        "path": "Observation.component",
        "sliceName": "DEMoculomotorEfficiencyPercentile",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DEMoculomotorEfficiencyPercentile.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "DEMoculomotorEfficiencyPercentile",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "Developmental Eye Movement oculomotor Efficiency Percentile"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DEMoculomotorEfficiencyPercentile.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:DEMoculomotorEfficiencyScore",
        "path": "Observation.component",
        "sliceName": "DEMoculomotorEfficiencyScore",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DEMoculomotorEfficiencyScore.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "DEMoculomotorEfficiencyRawScore",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-observation-componentcode-cs",
              "display": "Developmental Eye Movement Oculomotor Efficiency Raw Score"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DEMoculomotorEfficiencyScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}