Skip to content

Commit d342427

Browse files
NPA-4313: Add extension to Consent schema
1 parent e74a4eb commit d342427

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

specification/examples/responses/POST_Consent/error.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ PostConsentInvalidPatientAgeError:
5252
diagnostics: "Patient age failed business validation."
5353
details:
5454
coding:
55-
- code: "MISSING_EVIDENCE"
55+
- code: "INVALID_PATIENT_AGE"
5656
display: "Patient age is invalid."
5757
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
5858
version: '1'

specification/validated-relationships-service-api.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,13 @@ paths:
542542
identifier:
543543
system: https://fhir.nhs.uk/Id/nhs-number
544544
value: "9000000012"
545+
extension:
546+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
547+
valueCodeableConcept:
548+
coding:
549+
- system: http://terminology.hl7.org/CodeSystem/consent-reason
550+
code: TBC
551+
display: TBC
545552
guardianConsentRequest:
546553
summary: Create a proxy role with court appointed deputy basis
547554
value:
@@ -584,6 +591,13 @@ paths:
584591
identifier:
585592
system: https://fhir.nhs.uk/Id/nhs-number
586593
value: "9000000012"
594+
extension:
595+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
596+
valueCodeableConcept:
597+
coding:
598+
- system: http://terminology.hl7.org/CodeSystem/consent-reason
599+
code: TBC
600+
display: TBC
587601
responses:
588602
"201":
589603
description: Consent resource successfully created
@@ -1976,6 +1990,23 @@ components:
19761990
type: string
19771991
description: The date and time when consent was collected.
19781992
format: date-time
1993+
extension:
1994+
type: array
1995+
description: Model the status reason.
1996+
items:
1997+
$ref: "#/components/schemas/Extension"
1998+
1999+
Extension:
2000+
type: object
2001+
properties:
2002+
url:
2003+
type: string
2004+
valueCodeableConcept:
2005+
type: array
2006+
description: Classification of the status of consent, bound to http://terminology.hl7.org/CodeSystem/consent-reason.
2007+
items:
2008+
$ref: "#/components/schemas/CodeableConcept"
2009+
19792010

19802011
OperationOutcome:
19812012
type: object

0 commit comments

Comments
 (0)