Skip to content

Commit 4569345

Browse files
author
Adrian Clay
authored
Add NOPAT to DocumentReference Wiremock stubs (#1104)
This will allow us to more easily test the behaviour of incumbent systems E2E. There are two ways a DocumentReference can be given a NOPAT marking according to the GP2GP spec, this PR introduces examples for both.
1 parent 0d64930 commit 4569345

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

wiremock/stubs/__files/correctPatientStructuredRecordResponseAbsentAttachments.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,12 @@
498498
"versionId": "8017752596891037527",
499499
"profile": [
500500
"https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-DocumentReference-1"
501-
]
501+
],
502+
"security": [{
503+
"system":"http://hl7.org/fhir/v3/ActCode",
504+
"code":"NOPAT",
505+
"display":"no disclosure to patient, family or caregivers without attending provider's authorization"
506+
}]
502507
},
503508
"identifier": [
504509
{
@@ -545,6 +550,18 @@
545550
"https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-DocumentReference-1"
546551
]
547552
},
553+
"securityLabel": [
554+
{
555+
"coding": [
556+
{
557+
"system": "http://hl7.org/fhir/v3/ActCode",
558+
"code": "NOPAT",
559+
"display": "no disclosure to patient, family or caregivers without attending provider's authorization"
560+
}
561+
],
562+
"text": "no disclosure to patient, family or caregivers without attending provider's authorization"
563+
}
564+
],
548565
"identifier": [
549566
{
550567
"system": "https://EMISWeb/A82038",

0 commit comments

Comments
 (0)