{
  "resourceType": "StructureDefinition",
  "url": "http://d4solutions.dedalus.eu/fhir/StructureDefinition/Observation-RapidTest-COVID19",
  "name": "Observation-RapidTest-COVID19",
  "status": "active",
  "experimental": false,
  "description": "Observation-RapidTest-COVID19",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta.tag",
        "path": "Observation.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/observation-category"
        }
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/observation-category"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "min": 1,
        "fixedCode": "laboratory"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://d4solutions.dedalus.eu/fhir/CodeSystem/ObservationCodes-COVID19"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "RAPID-TEST"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://d4solutions.dedalus.eu/fhir/StructureDefinition/Patient-COVID19",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://d4solutions.dedalus.eu/fhir/ValueSet/RapidTestResultCodes-COVID19"
        }
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding",
        "path": "Observation.valueCodeableConcept.coding",
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding.system",
        "path": "Observation.valueCodeableConcept.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding.code",
        "path": "Observation.valueCodeableConcept.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.valueCodeableConcept.coding.display",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}