From 9b282598bce9ef3c4fdb789df323621fb4bef41d Mon Sep 17 00:00:00 2001 From: KazeemHamzat Date: Tue, 7 Apr 2026 14:34:01 +0100 Subject: [PATCH 1/6] Update StructureDefinition\NHSDigital-MedicationRequest Update StructureDefinition\NHSDigital-MedicationRequest --- ...dicationRequest-WithoutGroupID-Example.xml | 69 +++++++++++++++++++ .../NHSDigital-MedicationRequest.xml | 11 +-- fhirpkg.lock.json | 2 +- 3 files changed, 72 insertions(+), 10 deletions(-) create mode 100644 MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml diff --git a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml new file mode 100644 index 00000000..454bbfd4 --- /dev/null +++ b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/StructureDefinition/NHSDigital-MedicationRequest.xml b/StructureDefinition/NHSDigital-MedicationRequest.xml index 69ff9ec1..a7f27f63 100644 --- a/StructureDefinition/NHSDigital-MedicationRequest.xml +++ b/StructureDefinition/NHSDigital-MedicationRequest.xml @@ -2,11 +2,11 @@ - + <status value="draft" /> - <date value="2025-12-15T00:00:00+00:00" /> + <date value="2026-04-07T00:00:00+00:00" /> <publisher value="NHS England" /> <contact> <name value="NHS England" /> @@ -59,12 +59,6 @@ <human value="dispenseRequest.numberOfRepeatsAllowed should be populated for continuous-repeat-dispensing MedicationRequests." /> <expression value="(courseOfTherapyType.coding.code.startsWith('acute') or courseOfTherapyType.coding.code = 'continuous') or (courseOfTherapyType.coding.code.startsWith('continuous-repeat-dispensing') and dispenseRequest.exists() and dispenseRequest.numberOfRepeatsAllowed.exists())" /> </constraint> - <constraint> - <key value="eps-10" /> - <severity value="error" /> - <human value="For continuous-repeat-dispensing (intent=reflex-order) basedOn must be populated" /> - <expression value="(courseOfTherapyType.coding.code = 'acute') or (courseOfTherapyType.coding.code = 'continuous') or (courseOfTherapyType.coding.code = 'continuous-repeat-dispensing' and intent !='reflex-order') or (courseOfTherapyType.coding.code = 'continuous-repeat-dispensing' and intent ='reflex-order' and dispenseRequest.exists() and basedOn.exists())" /> - </constraint> <constraint> <key value="eps-11" /> <severity value="error" /> @@ -383,7 +377,6 @@ <short value="groupIdentifier (Short Form Prescription ID)" /> <definition value="The purpose of the Short Form Prescription ID is to identify the prescription during its lifecycle within the Spine (i.e. prescribe, dispense & claim). The prescription UUID is retained to provide the link through to the Spine medication record within the PSIS and must be included as the first identifier within the prescription message. The format of the Short Form Prescription ID is as follows; `<RandomNumber>-<PracticeODSCode/ClinicODSCode>-<PracticeSequence/ClinicSequence><CheckDigit>` Where; `<RandomNumber>` is a locally generated random number each time a Prescription ID is generated of length 6 hexadecimal characters. `<PracticeODSCode/ClinicODSCode>` is the unique ODS code for the practice or clinic code (aka cost centre) as defined within the Spine SDS of length 6 characters. Where the prescriber ODS code is shorter than 6 characters it must be zero-padded up to six characters from the start of the ODS code, e.g. “0A1B2C”. `<PracticeSequence/ClinicSequence>` is an incremental sequence number starting from 00000 that is reset after FFFFF back to zero of length 5 hexadecimal characters. For systems that support multiple practices or clinics, a sequence number per practice/clinic is required. This is to ensure uniqueness of prescriptions within the Spine EPS component during the prescription lifecycle. `<CheckDigit>` is calculated on the entire ID using the ISO/IEC 7064:2003 MOD 37-2 standard. The check digit algorithm is identical to that using for EPS Release 1. Note. Hyphens are always included to separate the ID into 3 blocks of 6 characters. Note. The implementation of the MOD 37-2 standard uses a “+” character for char 36 opposed to a “*” character. Short Form Prescription ID example (for illustration purposes only); **83C40E-A23856-00123W** ```json "groupIdentifier": { ... "system": "https://fhir.nhs.uk/Id/prescription-order-number", "value": "DC2C66-A1B2C3-23407B" }, ```" /> <comment value="ITK HL7v3 Mapping = The groupIdentifier is equivalent to ParentPrescription.id (prescription-order-number). The extension is used to carry the ParentPrescription.id (UUID)." /> - <min value="1" /> <mustSupport value="true" /> </element> <element id="MedicationRequest.groupIdentifier.extension"> diff --git a/fhirpkg.lock.json b/fhirpkg.lock.json index f149b185..06a46399 100644 --- a/fhirpkg.lock.json +++ b/fhirpkg.lock.json @@ -1,5 +1,5 @@ { - "updated": "2025-07-25T17:27:50.0661131+01:00", + "updated": "2026-04-07T12:57:28.4297209+01:00", "dependencies": { "hl7.fhir.r4.core": "4.0.1", "fhir.r4.ukcore.stu3.currentbuild": "0.0.3-pre-release" From ac4562272178a3b9cbe5df1df4c132337f0fd77b Mon Sep 17 00:00:00 2001 From: KazeemHamzat <kazeem.hamzat@nhs.net> Date: Tue, 7 Apr 2026 14:45:57 +0100 Subject: [PATCH 2/6] Add Extension-EPS-RepeatInformation Add Extension-EPS-RepeatInformation --- .../MedicationRequest-WithoutGroupID-Example.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml index 454bbfd4..a9fd6466 100644 --- a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml +++ b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml @@ -3,6 +3,14 @@ <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-PendingCancellation"> <valueBoolean value="false" /> </extension> + <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"> + <extension url="numberOfRepeatsAllowed"> + <valueInteger value="5" /> + </extension> + <extension url="numberOfRepeatsIssued"> + <valueInteger value="2" /> + </extension> + </extension> <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation"> <extension url="dispenseStatus"> <valueCoding> From c4c368a3e1513343f2e36cb2e0975f7ab240f5ec Mon Sep 17 00:00:00 2001 From: KazeemHamzat <kazeem.hamzat@nhs.net> Date: Tue, 7 Apr 2026 15:55:48 +0100 Subject: [PATCH 3/6] Update MedicationRequest-WithoutGroupID-Example Update MedicationRequest-WithoutGroupID-Example --- .../MedicationRequest-WithoutGroupID-Example.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml index a9fd6466..799d8346 100644 --- a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml +++ b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml @@ -3,12 +3,13 @@ <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-PendingCancellation"> <valueBoolean value="false" /> </extension> - <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"> - <extension url="numberOfRepeatsAllowed"> - <valueInteger value="5" /> + <extension + url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"> + <extension url="numberOfPrescriptionsIssued"> + <valueUnsignedInt value="3" /> </extension> - <extension url="numberOfRepeatsIssued"> - <valueInteger value="2" /> + <extension url="authorisationExpiryDate"> + <valueDateTime value="2026-12-31" /> </extension> </extension> <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation"> From e4ea72185ed990245b53d5d9dc46e0168161a4ee Mon Sep 17 00:00:00 2001 From: KazeemHamzat <kazeem.hamzat@nhs.net> Date: Tue, 7 Apr 2026 16:07:58 +0100 Subject: [PATCH 4/6] Update MedicationRequest-WithoutGroupID-Example Update MedicationRequest-WithoutGroupID-Example --- MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml index 799d8346..acf7d999 100644 --- a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml +++ b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml @@ -50,7 +50,7 @@ </subject> <courseOfTherapyType> <coding> - <system value="http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy" /> + <system value="https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy" /> <code value="continuous-repeat-dispensing" /> <display value="Continuous long term (repeat dispensing)" /> </coding> From fba6fc915a01458701d999b67bf828af8af4a4bd Mon Sep 17 00:00:00 2001 From: KazeemHamzat <kazeem.hamzat@nhs.net> Date: Tue, 7 Apr 2026 16:50:55 +0100 Subject: [PATCH 5/6] Update MedicationRequest-WithoutGroupID-Example Update MedicationRequest-WithoutGroupID-Example --- MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml index acf7d999..22ae9f3a 100644 --- a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml +++ b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml @@ -1,5 +1,5 @@ <MedicationRequest xmlns="http://hl7.org/fhir"> - <id value="MedicationRequest-Prescription-Example" /> + <id value="MedicationRequest-WithoutGroupID-Example" /> <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-PendingCancellation"> <valueBoolean value="false" /> </extension> From 456ff2bda117deb493f84d825deeebf722d7006b Mon Sep 17 00:00:00 2001 From: KazeemHamzat <kazeem.hamzat@nhs.net> Date: Wed, 8 Apr 2026 11:56:15 +0100 Subject: [PATCH 6/6] Update MedicationRequest-WithoutGroupID-Example Update MedicationRequest-WithoutGroupID-Example --- .../MedicationRequest-WithoutGroupID-Example.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml index 22ae9f3a..a59348be 100644 --- a/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml +++ b/MedicationRequest/MedicationRequest-WithoutGroupID-Example.xml @@ -26,13 +26,6 @@ <value value="a54219b8-f741-4c47-b662-e4f8dfa49ab6" /> </identifier> <status value="active" /> - <statusReason> - <coding> - <system value="https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason" /> - <code value="0004" /> - <display value="Clinical grounds" /> - </coding> - </statusReason> <intent value="reflex-order" /> <medicationCodeableConcept> <coding>