Skip to content

Commit

Permalink
NPA-3543: add generalPractitioner to patient resource to enable us to…
Browse files Browse the repository at this point in the history
… surface ODS code
  • Loading branch information
James Taylor committed Sep 2, 2024
1 parent 18dd4f8 commit 6ea611f
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion specification/validated-relationships-service-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ paths:
$ref: "#/components/examples/MotherChildConsentBundle"
ConsentingAdultsConsentBundle:
$ref: "#/components/examples/ConsentingAdultsConsentBundle"
MultipleConsentBundle:
$ref: "#/components/examples/MultipleConsentBundle"

"4XX":
description: |
Errors will be returned for the first error encountered in the request. An error occurred as follows:
Expand Down Expand Up @@ -1521,6 +1524,9 @@ components:
example: "2010-10-22"
type: string
format: date
generalPractitioner:
$ref: '#/components/schemas/Reference'
description: "Patient's nominated primary care provider"

Consent:
type: object
Expand Down Expand Up @@ -1689,7 +1695,10 @@ components:

Reference:
type: object
properties:
properties:
type:
type: string
description: The resource type that the reference refers to
identifier:
$ref: '#/components/schemas/Identifier'

Expand Down Expand Up @@ -1926,6 +1935,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000017"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC0000001"
patient:
type: Patient
identifier:
Expand All @@ -1948,6 +1959,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000009"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC1234556"
name:
- id: "123456"
use: usual
Expand All @@ -1963,6 +1976,11 @@ components:
- MBE
- PhD
birthDate: "2022-10-22"
generalPractitioner:
- type: "Organization"
identifier:
value: "ODS12345"
system: "https://fhir.nhs.uk/Id/ods-organization-code"
search:
mode: include
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9"
Expand Down Expand Up @@ -2012,6 +2030,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000010"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC0000008"
patient:
type: Patient
identifier:
Expand All @@ -2031,6 +2051,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000005"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC1234567"
name:
- id: "123456"
use: usual
Expand All @@ -2043,6 +2065,11 @@ components:
prefix:
- Mrs
birthDate: "1995-10-22"
generalPractitioner:
- type: "Organization"
identifier:
value: "ODS12345"
system: "https://fhir.nhs.uk/Id/ods-organization-code"
search:
mode: include
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1"
Expand Down Expand Up @@ -2099,6 +2126,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000017"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC0000003"
patient:
type: Patient
identifier:
Expand All @@ -2121,6 +2150,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000009"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC1234567"
name:
- id: "123456"
use: usual
Expand All @@ -2136,6 +2167,11 @@ components:
- MBE
- PhD
birthDate: "2022-10-22"
generalPractitioner:
- type: "Organization"
identifier:
value: "ODS12345"
system: "https://fhir.nhs.uk/Id/ods-organization-code"
search:
mode: include
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9"
Expand Down Expand Up @@ -2176,6 +2212,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000010"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC00000234"
patient:
type: Patient
identifier:
Expand All @@ -2195,6 +2233,8 @@ components:
identifier:
- system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000005"
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
value: "ABC9999999"
name:
- id: "123456"
use: usual
Expand All @@ -2207,6 +2247,11 @@ components:
prefix:
- Mrs
birthDate: "1995-10-22"
generalPractitioner:
- type: "Organization"
identifier:
value: "ODS12345"
system: "https://fhir.nhs.uk/Id/ods-organization-code"
search:
mode: include
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1"
Expand Down

0 comments on commit 6ea611f

Please sign in to comment.