{
  "resourceType": "StructureDefinition",
  "url": "http://oped.de/orthelligent/fhir/StructureDefinition/OrthelligentFitIndex",
  "name": "OrthelligentFitIndex",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "short": "Classification of type of fit index",
        "definition": "A code that classifies the type of fit index: overall fit index, category fit index, or test fit index.",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "short": "FitIndex (percentage value)",
        "definition": "This is fit index value of the respective measurement:\r\n- the overall fit index calculated from category fit indices\r\n- the category fit index calculated from all test fit indices of the category\r\n- an individual test fit index calculated from an atomic test result of the target body part measurement in relation to a reference value (mostly: the healthy body part or a reference value of healthy individual)",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "string"
          },
          {
            "code": "boolean"
          },
          {
            "code": "integer"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "time"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "short": "CategoryFitIndex (Indices)",
        "definition": "Category fit indices this overall fit index is calculated from",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://oped.de/orthelligent/fhir/StructureDefinition/OrthelligentCategoryFitIndex"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "short": "Possible additional input values for the fit index",
        "definition": "If additional values are required for calculating the fit index (other than derivedFrom elements), they are to be listed here.",
        "max": "1"
      }
    ]
  }
}