{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Medicationscreeningquestionnaire-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-medicationscreeningquestionnaire-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-OBSERVATION.medication_screening.v1"
    }
  ],
  "version": "0",
  "name": "Medicationscreeningquestionnaire",
  "title": "Medication screening questionnaire",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "Series of questions and associated answers used to screen for the use of medications.",
  "purpose": "To create a framework for recording answers to pre-defined screening questions about the use of any specified medication or grouping of medications.",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "openEHR",
      "uri": "http://openehr.org",
      "name": "openEHR Mapping"
    },
    {
      "identity": "openEHR-natural",
      "uri": "http://openehr.org",
      "name": "openEHR natural path"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "StructureDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "snapshot": {
    "element": [
      {
        "id": "Medication_screening_questionnaire",
        "path": "Medication_screening_questionnaire",
        "short": "Medication screening questionnaire",
        "definition": "Series of questions and associated answers used to screen for the use of medications.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.protocol",
        "path": "Medication_screening_questionnaire.protocol",
        "short": "Tree",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.protocol",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.protocol.Extension",
        "path": "Medication_screening_questionnaire.protocol.Extension",
        "short": "Extension",
        "definition": "Additional information required to extend the model with local content or to align with other reference models or formalisms.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_screening_questionnaire.protocol.Extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series",
        "path": "Medication_screening_questionnaire.Event_Series",
        "short": "Event Series",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event",
        "short": "Any event",
        "definition": "Default, unspecified point in time or interval event which may be explicitly defined in a template or at run-time.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data",
        "short": "Tree",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Screening_purpose",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Screening_purpose",
        "short": "Screening purpose",
        "definition": "The context or reason for screening.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Screening_purpose",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Screening_purpose.value",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Screening_purpose.value",
        "short": "Screening purpose",
        "definition": "The context or reason for screening.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Screening_purpose.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_",
        "short": "Any medications used?",
        "definition": "Is there a history of use of any medication related to the screening purpose?",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_CODED_TEXT",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_CODED_TEXT",
        "short": "Any medications used?",
        "definition": "Is there a history of use of any medication related to the screening purpose?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_TEXT",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_TEXT",
        "short": "Any medications used?",
        "definition": "Is there a history of use of any medication related to the screening purpose?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_BOOLEAN",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_BOOLEAN",
        "short": "Any medications used?",
        "definition": "Is there a history of use of any medication related to the screening purpose?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Any_medications_used_.value_DV_BOOLEAN",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Description",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Description",
        "short": "Description",
        "definition": "Narrative description about the history of use of any medication relevant for the screening purpose.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Description",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Description.value",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Description.value",
        "short": "Description",
        "definition": "Narrative description about the history of use of any medication relevant for the screening purpose.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Description.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication",
        "short": "Specific medication",
        "definition": "Details about a specified medication or grouping of medications relevant for the screening purpose.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Medication_name",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Medication_name",
        "short": "Medication name",
        "definition": "Name of medication or grouping of medication.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Medication_name",
          "min": 1,
          "max": "1"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Medication_name.value",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Medication_name.value",
        "short": "Medication name",
        "definition": "Name of medication or grouping of medication.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Medication_name.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used",
        "short": "Used",
        "definition": "Is there a history of use of a specific medication or group of medications?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_CODED_TEXT",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_CODED_TEXT",
        "short": "Used",
        "definition": "Is there a history of use of a specific medication or group of medications?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_TEXT",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_TEXT",
        "short": "Used",
        "definition": "Is there a history of use of a specific medication or group of medications?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_BOOLEAN",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_BOOLEAN",
        "short": "Used",
        "definition": "Is there a history of use of a specific medication or group of medications?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Used.value_DV_BOOLEAN",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose",
        "short": "Latest dose",
        "definition": "The date and/or time of administation of the most recent dose of the medication or group of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose.value_DV_DATE_TIME",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose.value_DV_DATE_TIME",
        "short": "Latest dose",
        "definition": "The date and/or time of administation of the most recent dose of the medication or group of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose.value_DV_DATE_TIME",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose.value_DV_TEXT",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose.value_DV_TEXT",
        "short": "Latest dose",
        "definition": "The date and/or time of administation of the most recent dose of the medication or group of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Latest_dose.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing",
        "short": "Timing",
        "definition": "Indication of timing related to the use of the medication or grouping of medications.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_DURATION",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_DURATION",
        "short": "Timing",
        "definition": "Indication of timing related to the use of the medication or grouping of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_DURATION",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Duration"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_INTERVAL_DV_DURATION_",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_INTERVAL_DV_DURATION_",
        "short": "Timing",
        "definition": "Indication of timing related to the use of the medication or grouping of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_INTERVAL_DV_DURATION_",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_TEXT",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_TEXT",
        "short": "Timing",
        "definition": "Indication of timing related to the use of the medication or grouping of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_DATE_TIME",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_DATE_TIME",
        "short": "Timing",
        "definition": "Indication of timing related to the use of the medication or grouping of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_DATE_TIME",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_INTERVAL_DV_DATE_TIME_",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_INTERVAL_DV_DATE_TIME_",
        "short": "Timing",
        "definition": "Indication of timing related to the use of the medication or grouping of medications.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Timing.value_DV_INTERVAL_DV_DATE_TIME_",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Additional_details",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Additional_details",
        "short": "Additional details",
        "definition": "Structured details or questions about the specific medication or grouping of medications.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Additional_details",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Comment",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Comment",
        "short": "Comment",
        "definition": "Additional narrative about the specific medication question, not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Comment",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Comment.value",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Comment.value",
        "short": "Comment",
        "definition": "Additional narrative about the specific medication question, not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Specific_medication.Comment.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_screening_questionnaire.Event_Series.Any_event.data.Additional_details",
        "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Additional_details",
        "short": "Additional details",
        "definition": "Structured details or questions about the screening for medications.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_screening_questionnaire.Event_Series.Any_event.data.Additional_details",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}