Skip to content

Commit

Permalink
[ERSSUP-65227]-[]-[Further OAS files]-[DMW]
Browse files Browse the repository at this point in the history
  • Loading branch information
nhsd-david-wass committed Dec 7, 2022
1 parent c754cbf commit 3a54223
Show file tree
Hide file tree
Showing 24 changed files with 630 additions and 212 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/eRS-AttachmentType",
"code": "GUIDANCE_REQUEST",
"display": "Guidance Request"
"code": "ADVICE_REQUEST",
"display": "Advice Request"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"id": "03f55377-33e0-4ad2-9ecc-0788342f24a1",
"meta": {
"versionId": "1"
"versionId": 1
},
"resourceType": "DocumentReference",
"type": {
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/eRS-AttachmentType",
"code": "GUIDANCE_REQUEST",
"display": "Guidance Request"
"code": "ADVICE_REQUEST",
"display": "Advice Request"
}
]
},
Expand All @@ -23,6 +23,11 @@
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "Binary/959724e3-8719-4ff3-ae37-5198c450e0f6",
"size": 18592,
"title": "upload.png",
"creation": "2022-01-31",
"extension": [
{
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-eRS-AttachedBy",
Expand All @@ -33,12 +38,7 @@
}
}
}
],
"contentType": "application/pdf",
"url": "Binary/959724e3-8719-4ff3-ae37-5198c450e0f6",
"size": 18592,
"title": "upload.png",
"creation": "2022-01-31"
]
}
}
],
Expand All @@ -56,7 +56,7 @@
"id": "author",
"practitioner": {
"identifier": {
"system": "http://fhir.nhs.net/Id/sds-user-id",
"system": "https://fhir.nhs.uk/Id/sds-user-id",
"value": "103264992985"
},
"display": "DR AA BHATIA"
Expand All @@ -72,7 +72,7 @@
{
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction",
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1",
"code": "REFERRING_CLINICIAN"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resourceType": "ServiceRequest",
"id": "a.832db7fa-ebdd-44b6-ab3b-8329c2d43149",
"meta": {
"versionId": "5"
"versionId": 5
},
"subject": {
"identifier": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@
{
"reference": "HealthcareService/54b0506d-49af-4245-9d40-d7d64902055e"
}
],
],
"payload": [
{
"contentReference": {
"reference": "DocumentReference/6f693b93-fc6f-4aa1-955e-d9548b5a6a9a"
}
}
],
"note": [
},
{
"text": "Please advise me on this patient who ...(information about patient)"
"contentString": "Please advise me on this patient who ...(information about patient)"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "cf8d99c4-b4b1-4ad3-b5b0-2381bee8c6e8",
"meta": {
"versionId": "1"
"versionId": 1
},
"resourceType": "Communication",
"status": "completed",
Expand All @@ -21,30 +21,25 @@
{
"coding": [
{
"system": "https://fhir.nhs.uk/R4/CodeSystem/eRS-CommunicationSentBy-1",
"system": "https://fhir.nhs.uk/CodeSystem/eRS-CommunicationSentBy",
"code": "REQUESTER"
}
]
}
],
"recipient": [
{
"extension": [
{
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-HealthcareService-Reference-1",
"valueReference": {
"identifier": {
"system": "http://fhir.nhs.net/Id/ers-service",
"value": "11014"
}
}
}
]
"reference": "HealthcareService/54b0506d-49af-4245-9d40-d7d64902055e"
}
],
"note": [
"payload": [
{
"contentReference": {
"reference": "DocumentReference/6f693b93-fc6f-4aa1-955e-d9548b5a6a9a"
}
},
{
"text": "Please advise me on this patient who ...(information about patient)"
"contentString": "Please advise me on this patient who ...(information about patient)"
}
],
"contained": [
Expand All @@ -53,7 +48,7 @@
"id": "sender",
"practitioner": {
"identifier": {
"system": "http://fhir.nhs.net/Id/sds-user-id",
"system": "https://fhir.nhs.uk/Id/sds-user-id",
"value": "103264992985"
},
"display": "DR AA BHATIA"
Expand All @@ -69,7 +64,7 @@
{
"coding": [
{
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1",
"code": "REFERRING_CLINICIAN"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resourceType": "QuestionnaireResponse",
"id": "d9d4cf80-3f9d-4435-9f3b-e6efb09ad654",
"meta": {
"versionId": "2"
"versionId": 2
},
"questionnaire": "https://fhir.nhs.uk/Questionnaire/ERS-ShortList",
"basedOn": [
Expand All @@ -14,7 +14,7 @@
"identifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9912003888"
},
}
},
"status": "completed",
"authored" : "2022-01-11T16:40:00+00:00",
Expand All @@ -24,7 +24,7 @@
"id": "source",
"practitioner": {
"identifier": {
"system": "http://fhir.nhs.net/Id/sds-user-id",
"system": "https://fhir.nhs.uk/Id/sds-user-id",
"value": "103264992985"
},
"display": "DR AA BHATIA"
Expand All @@ -40,7 +40,7 @@
{
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction",
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1",
"code": "REFERRING_CLINICIAN"
}
]
Expand Down
28 changes: 28 additions & 0 deletions specification/components/r4/schemas/Attachment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
title: Attachment
description: 'Attachment details'
type: object
required:
- url
properties:
extension:
type: array
items:
$ref: 'extensions/Extension-eRS-AttachedBy.yaml'
contentType:
type: string
example: 'application/pdf'
url:
type: string
example: 'Binary/959724e3-8719-4ff3-ae37-5198c450e0f6'
size:
type: integer
example: 123
title:
type: string
example: 'upload.png'
creation:
type: string
format: date
example: '2021-04-22'


20 changes: 20 additions & 0 deletions specification/components/r4/schemas/Patient.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: Patient
description: 'Patient that is the subject of the request'
type: object
required:
- identifier
properties:
identifier:
description: 'Reference to the patient'
required:
- system
- value
properties:
system:
type: string
enum:
- 'https://fhir.nhs.uk/Id/nhs-number'
example: 'https://fhir.nhs.uk/Id/nhs-number'
value:
type: string
example: '9912003888'
133 changes: 133 additions & 0 deletions specification/components/r4/schemas/eRS-Communication.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
title: eRS-Communication
description: 'An A & G Communication'
type: object
required:
- resourceType
- status
- basedOn
- subject
- category
- recipient
- payload
properties:
id:
type: string
example: 'cf8d99c4-b4b1-4ad3-b5b0-2381bee8c6e8'
meta:
type: object
required:
- versionId
properties:
versionId:
type: integer
example: 1
resourceType:
type: string
enum:
- Communication
example: Communication
subject:
$ref: 'Patient.yaml'
status:
type: string
enum:
- 'completed'
example: 'completed'
received:
type: string
format: date-time
example: '2021-04-22T08:30:00.000Z'
basedOn:
type: array
items:
type: object
required:
- reference
properties:
reference:
type: string
example: 'ServiceRequest/a.832db7fa-ebdd-44b6-ab3b-8329c2d43149'
category:
type: array
items:
type: object
required:
- coding
properties:
coding:
type: array
items:
type: object
required:
- system
- code
properties:
system:
type: string
enum:
- 'https://fhir.nhs.uk/CodeSystem/eRS-CommunicationSentBy'
example : 'https://fhir.nhs.uk/CodeSystem/eRS-CommunicationSentBy'
code:
type: string
enum:
- REQUESTER
- RESPONDER
- REFERRER_CLINICAL_INFORMATION_UPDATED
example: 'REQUESTER'
recipient:
type: array
items:
type: object
required:
- reference
properties:
reference:
type: string
example: 'HealthcareService/54b0506d-49af-4245-9d40-d7d64902055e'
payload:
type: array
items:
anyOf:
- description: 'attached document reference'
type: object
required:
- contentReference
properties:
contentReference:
type: object
required:
- reference
properties:
reference:
type: string
example: 'DocumentReference/6f693b93-fc6f-4aa1-955e-d9548b5a6a9a'
- description: 'Text of advice request'
type: object
required:
- contentString
properties:
contentString:
type: string
example: 'Please advise me on this patient who ...(information about patient)'
contained:
type: array
nullable: true
description: |
| Field | Cardinality | Notes |
| --------------------------------------- | ----------- | ----------------------------------------------- |
| `PractitionerRole` | `1..1` | The Practitioner Role Deatials of the requester |
items:
anyOf:
- $ref: 'PractitionerRole.yaml'
sender:
type: object
required:
- reference
properties:
reference:
type: string
enum:
- '#sender'
example: '#sender'


Loading

0 comments on commit 3a54223

Please sign in to comment.