{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Observation-ForLIS-BaseMember",
  "name": "Observation-ForLIS-BaseMember",
  "status": "active",
  "experimental": false,
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Observation-ForLIS",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta.tag:observationTags",
        "path": "Observation.meta.tag",
        "sliceName": "observationTags",
        "short": "Tags applied to Observation",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://apiframework.dedalus.eu/fhir/ValueSet/Tags-ForObservation"
          }
        }
      },
      {
        "id": "Observation.meta.tag:observationTags.system",
        "path": "Observation.meta.tag.system",
        "min": 1,
        "fixedUri": "http://apiframework.dedalus.eu/fhir/ValueSet/Tags-ForObservation"
      },
      {
        "id": "Observation.meta.tag:observationTags.code",
        "path": "Observation.meta.tag.code",
        "min": 1
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:referenceRangeSummary",
        "path": "Observation.extension",
        "sliceName": "referenceRangeSummary",
        "definition": "An extension added to allow a single textual summary of all the referenceRange indication",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-ObservationReferenceRangeSummary"
          }
        ]
      },
      {
        "id": "Observation.extension:referenceRangeSummary.valueString:valueString",
        "path": "Observation.extension.valueString",
        "sliceName": "valueString",
        "min": 1
      },
      {
        "id": "Observation.extension:performerExtended",
        "path": "Observation.extension",
        "sliceName": "performerExtended",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-observation-extendedPerformer"
          }
        ]
      },
      {
        "id": "Observation.extension:performerExtended.extension:actor",
        "path": "Observation.extension.extension",
        "sliceName": "actor",
        "min": 1
      },
      {
        "id": "Observation.extension:performerExtended.extension:role",
        "path": "Observation.extension.extension",
        "sliceName": "role"
      },
      {
        "id": "Observation.extension:performerExtended.extension:role.valueCodeableConcept:valueCodeableConcept",
        "path": "Observation.extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "binding": {
          "strength": "extensible",
          "description": "Practictioner Role Value Set",
          "valueSetUri": "http://apiframework.dedalus.eu/fhir/ValueSet/PractitionerRole"
        }
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "string"
          },
          {
            "code": "boolean"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Attachment",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Attachment-WithSupportForInlineData"
          },
          {
            "code": "time"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "mustSupport": true
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.related.type",
        "path": "Observation.related.type",
        "min": 1
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Observation-ForLIS",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Sequence"
          }
        ]
      },
      {
        "id": "Observation.related:principalObservation",
        "path": "Observation.related",
        "sliceName": "principalObservation",
        "definition": "This relationship is used for observations that represent the same results contained in a parent observation using a different unit of measure",
        "max": "1"
      },
      {
        "id": "Observation.related:principalObservation.type",
        "path": "Observation.related.type",
        "min": 1,
        "fixedCode": "derived-from"
      },
      {
        "id": "Observation.related:principalObservation.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "Observation-ForLIS-BaseMember",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.component.extension:qualifier",
        "path": "Observation.component.extension",
        "sliceName": "qualifier",
        "short": "The .component.qualifier should be used to enhance the semantic interpretation of the value.",
        "definition": "When the .component.qualifier does not add any useful information it could be empty.\r\nThe qualifier must be set to define the property of results that either:\r\n- have same datatype (i.e. two datatype of String that adds note for test and note for result) in order to preserve a classification of the clinical data for further use like filling a document layout \r\n- represent a specific semantic interpretation like antibiotic susceptibility test."
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "string"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Attachment",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Attachment-WithSupportForInlineData"
          },
          {
            "code": "time"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Observation.component.interpretation",
        "path": "Observation.component.interpretation",
        "mustSupport": true
      },
      {
        "id": "Observation.component.referenceRange",
        "path": "Observation.component.referenceRange",
        "mustSupport": true
      }
    ]
  }
}