{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.de/StructureDefinition/observation-de-basis-HbA1c_Wert",
  "version": "0.1",
  "name": "observation-de-HbA1c",
  "title": "Observation HbA1c",
  "status": "draft",
  "experimental": true,
  "date": "2019-09-15",
  "description": "Profil für die Verwendung der Observation Ressource für HbA1C-Wert in Deutschland",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "min": 1
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "code": [
          {
            "system": "http://loinc.org",
            "version": "2.66",
            "code": "59261-8",
            "display": "Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol"
          }
        ],
        "min": 1,
        "fixedCode": "59261-8"
      },
      {
        "id": "Observation.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.coding.display",
        "mustSupport": true
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.de/StructureDefinition/organization-de-basis/0.2"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.de/StructureDefinition/patient-de-basis/0.2"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.de/StructureDefinition/practitioner-de-basis/0.2"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueQuantity.value",
        "path": "Observation.valueQuantity.value",
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.valueQuantity.unit",
        "code": [
          {
            "system": "http://unitsofmeasure.org",
            "code": "Percent",
            "display": "%",
            "userSelected": true
          },
          {
            "system": "http://unitsofmeasure.org",
            "code": "MilliMolesPerMole",
            "display": "mmol/mol",
            "userSelected": true
          }
        ],
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueQuantity.system",
        "path": "Observation.valueQuantity.system",
        "code": [
          {
            "system": "http://unitsofmeasure.org"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "min": 1
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Sequence"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.de/StructureDefinition/observation-de-basis/0.2"
            ]
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}