PackagesCanonicalsLogsProblems
    Packages
    medatixx.healthhub@1.5.0
    https://fhir.medatixx.de/HealthHub/OperationDefinition/SearchMedicationStatements
{
  "description": "Searches for medication statements (current and historical medications) for a given patient. Supports filtering by status, PZN, ATC code prefix, and an effective-date range. Returns a FHIR Bundle (searchset) of Mxx_HealthHub_MedicationStatement resources. Search parameters are passed as a FHIR Parameters resource (camelCase), consistent with the implemented IHS operations (e.g. SearchAvailableSlots).",
  "_filename": "SearchMedicationStatements.OperationDefinition.json",
  "package_name": "medatixx.healthhub",
  "date": null,
  "system": false,
  "publisher": "medatixx GmbH & Co. KG",
  "instance": false,
  "name": "SearchMedicationStatements",
  "copyright": "medatixx GmbH & Co. KG",
  "type": "true",
  "experimental": null,
  "resourceType": "OperationDefinition",
  "title": null,
  "package_version": "1.5.0",
  "status": "active",
  "id": "3a61e666-8cf6-424d-85f1-1e7f312ab363",
  "resource": [ "MedicationStatement" ],
  "affectsState": false,
  "kind": "operation",
  "url": "https://fhir.medatixx.de/HealthHub/OperationDefinition/SearchMedicationStatements",
  "code": "searchMedicationStatements",
  "version": "1.5.0",
  "parameter": [ {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "subject",
    "type": "Reference",
    "documentation": "Patient whose medication statements are searched, as a reference in the form Patient/{id} (the PVS-internal patient identifier).",
    "targetProfile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Patient" ]
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "startDate",
    "type": "date",
    "documentation": "Lower bound (inclusive) on MedicationStatement.effectivePeriod.start (ISO 8601, YYYY-MM-DD)."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "endDate",
    "type": "date",
    "documentation": "Upper bound (inclusive) on MedicationStatement.effectivePeriod.start (ISO 8601, YYYY-MM-DD)."
  }, {
    "max": "*",
    "min": 0,
    "use": "in",
    "name": "status",
    "type": "code",
    "binding": {
      "strength": "required",
      "valueSet": "https://fhir.medatixx.de/HealthHub/ValueSet/Mxx_HealthHub_VS_MedicationStatementStatus"
    },
    "documentation": "Filter by medication status. Repeating parameter; multiple values use OR logic. Valid values: active, completed, stopped. As the operation is invoked with a FHIR Parameters resource, each value MUST be supplied as its own Parameters.parameter entry named 'status' (e.g. one entry with valueCode = completed and one entry with valueCode = stopped); a single comma-separated value would not match the required ValueSet. When omitted, only current medications ('active') are returned; historical medications are requested explicitly by supplying status entries for 'completed' and 'stopped'."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "pzn",
    "type": "string",
    "documentation": "Filter by PZN (Pharmazentralnummer). Exact match, 8-digit code with leading zeros."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "atc",
    "type": "string",
    "documentation": "Filter by ATC code. Prefix match allows searching by therapeutic class (e.g., 'B01' for all antithrombotics). Case-insensitive."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "_count",
    "type": "integer",
    "documentation": "Results per page. Default: 100, maximum: 500."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "_offset",
    "type": "integer",
    "documentation": "Starting result index (0-based) for pagination."
  }, {
    "max": "1",
    "min": 1,
    "use": "out",
    "name": "return",
    "type": "Bundle",
    "documentation": "A FHIR Bundle of type searchset containing matching Mxx_HealthHub_MedicationStatement resources. Sorted by effectivePeriod.start (prescription date) descending, most recent first; entries without a start date are ordered last."
  } ]
}