PackagesCanonicalsLogsProblems
    Packages
    nostalgic-ie.fhir.core@0.2.0
    https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-eprescription-crossborder
{
  "description": "An ePrescription issued in Ireland to be dispensed in another EU Member State, or issued in another Member State to be dispensed in Ireland. A sender (NePS or the National Contact Point for eHealth) marks a cross-border prescription by claiming this profile in Bundle.meta.profile. No invented tag is used (ADR-003). It adds the legal requirements HIQA cites for cross-border prescriptions: patient date of birth (EP 1.4.1), prescriber telephone and secure email (EP 2.10.1, 2.10.2), and an electronic signature (EP 2.13).",
  "_filename": "StructureDefinition-ie-core-bundle-eprescription-crossborder.json",
  "package_name": "nostalgic-ie.fhir.core",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "IECoreBundleEPrescriptionCrossBorder",
  "abstract": false,
  "type": "Bundle",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "IE Core Bundle (ePrescription, cross-border)",
  "package_version": "0.2.0",
  "status": "draft",
  "id": "ff64e811-3e41-4698-ab40-7069345c1788",
  "kind": "resource",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-eprescription-crossborder",
  "version": "0.2.0",
  "differential": {
    "element": [ {
      "id": "Bundle",
      "path": "Bundle",
      "constraint": [ {
        "key": "ie-bnd-xb-1",
        "human": "A cross-border prescription SHALL give a secure contact email for the prescriber (the requester, its practitioner, or its organisation) (HIQA EP 2.10.2; a legal requirement cross-border)",
        "source": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-eprescription-crossborder",
        "severity": "error",
        "expression": "entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'email').exists())"
      }, {
        "key": "ie-bnd-xb-2",
        "human": "A cross-border prescription SHALL carry a prescriber signature covering every prescription item, referenced by fullUrl or by relative reference (HIQA EP 2.13; a legal requirement)",
        "source": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-eprescription-crossborder",
        "severity": "error",
        "expression": "entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference))"
      } ]
    }, {
      "id": "Bundle.entry",
      "min": 4,
      "path": "Bundle.entry"
    }, {
      "id": "Bundle.entry:signature",
      "min": 1,
      "path": "Bundle.entry",
      "comment": "HIQA EP 2.13 Signature: a legal requirement for a prescription issued in another EU Member State to be dispensed in Ireland. Required in both directions here for symmetry (see open issues).",
      "sliceName": "signature"
    } ]
  },
  "baseDefinition": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-eprescription"
}