{
  "resourceType": "StructureDefinition",
  "url": "http://d4solutions.dedalus.eu/fhir/StructureDefinition/Observation-ForORD-Swab-COVID19",
  "name": "Observation-ForORD-Swab-COVID19",
  "status": "active",
  "experimental": false,
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Observation-ForORD",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta.tag",
        "path": "Observation.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://d4solutions.dedalus.eu/fhir/StructureDefinition/ProcedureRequest-ForORD-COVID19"
          }
        ]
      },
      {
        "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": "SWAB"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://d4solutions.dedalus.eu/fhir/StructureDefinition/Patient-COVID19",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "min": 1,
        "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]:valueBoolean",
        "path": "Observation.valueBoolean",
        "sliceName": "valueBoolean",
        "type": [
          {
            "code": "boolean"
          }
        ]
      }
    ]
  }
}