-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ERSSUP-65227]-[]-[Initial A and G examples]-[DMW]
- Loading branch information
1 parent
bd73360
commit c754cbf
Showing
22 changed files
with
1,485 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
sandbox/src/mocks/r4/createDocumentReference/requests/AdviceRequestAttachment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"resourceType": "DocumentReference", | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-AttachmentType", | ||
"code": "GUIDANCE_REQUEST", | ||
"display": "Guidance Request" | ||
} | ||
] | ||
}, | ||
"status": "current", | ||
"subject": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"content": [ | ||
{ | ||
"attachment": { | ||
"contentType": "application/pdf", | ||
"url": "Binary/959724e3-8719-4ff3-ae37-5198c450e0f6", | ||
"size": 18592, | ||
"title": "upload.png", | ||
"creation": "2022-01-31" | ||
} | ||
} | ||
], | ||
"context": { | ||
"related" : [ | ||
{ | ||
"type": "ServiceRequest", | ||
"reference": "ServiceRequest/a.832db7fa-ebdd-44b6-ab3b-8329c2d43149" | ||
} | ||
] | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
sandbox/src/mocks/r4/createDocumentReference/responses/AdviceRequestAttachment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"id": "03f55377-33e0-4ad2-9ecc-0788342f24a1", | ||
"meta": { | ||
"versionId": "1" | ||
}, | ||
"resourceType": "DocumentReference", | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-AttachmentType", | ||
"code": "GUIDANCE_REQUEST", | ||
"display": "Guidance Request" | ||
} | ||
] | ||
}, | ||
"status": "current", | ||
"subject": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"content": [ | ||
{ | ||
"attachment": { | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-eRS-AttachedBy", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/sds-user-id", | ||
"value": "987654321" | ||
} | ||
} | ||
} | ||
], | ||
"contentType": "application/pdf", | ||
"url": "Binary/959724e3-8719-4ff3-ae37-5198c450e0f6", | ||
"size": 18592, | ||
"title": "upload.png", | ||
"creation": "2022-01-31" | ||
} | ||
} | ||
], | ||
"context": { | ||
"related" : [ | ||
{ | ||
"type": "ServiceRequest", | ||
"reference": "ServiceRequest/a.832db7fa-ebdd-44b6-ab3b-8329c2d43149" | ||
} | ||
] | ||
}, | ||
"contained": [ | ||
{ | ||
"resourceType": "PractitionerRole", | ||
"id": "author", | ||
"practitioner": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/sds-user-id", | ||
"value": "103264992985" | ||
}, | ||
"display": "DR AA BHATIA" | ||
}, | ||
"organization": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C81007" | ||
}, | ||
"display": "VERNON STREET MEDICAL CTR" | ||
}, | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction", | ||
"code": "REFERRING_CLINICIAN" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"author": { | ||
"reference": "#author" | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
sandbox/src/mocks/r4/createServiceRequest/requests/createIncomplete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"resourceType": "ServiceRequest", | ||
"subject": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"category": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/message-category-servicerequest", | ||
"code": "request" | ||
} | ||
] | ||
} | ||
], | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/ServiceRequest-Code", | ||
"code": "advice-and-guidance" | ||
} | ||
] | ||
}, | ||
"priority": "routine", | ||
"intent": "order", | ||
"status": "draft", | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-eRS-Referral", | ||
"extension": [ | ||
{ | ||
"url": "sourceSystem", | ||
"valueCode": "ers" | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State", | ||
"extension": [ | ||
{ | ||
"url": "state", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-ReferralState", | ||
"code": "INCOMPLETE", | ||
"display": "Incomplete" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"contained": [ | ||
{ | ||
"resourceType": "PractitionerRole", | ||
"id": "requester", | ||
"practitioner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/sds-user-id", | ||
"value": "103264992985" | ||
}, | ||
"display": "DR AA BHATIA" | ||
}, | ||
"organization": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C81007" | ||
}, | ||
"display": "VERNON STREET MEDICAL CTR" | ||
}, | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1", | ||
"code": "REFERRING_CLINICIAN" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"requester": { | ||
"reference": "#requester" | ||
} | ||
} |
97 changes: 97 additions & 0 deletions
97
sandbox/src/mocks/r4/createServiceRequest/responses/createdIncomplete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"resourceType": "ServiceRequest", | ||
"id": "a.832db7fa-ebdd-44b6-ab3b-8329c2d43149", | ||
"meta": { | ||
"versionId": "5" | ||
}, | ||
"subject": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"category": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/message-category-servicerequest", | ||
"code": "request" | ||
} | ||
] | ||
} | ||
], | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/ServiceRequest-Code", | ||
"code": "advice-and-guidance" | ||
} | ||
] | ||
}, | ||
"priority": "routine", | ||
"intent": "order", | ||
"status": "draft", | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-eRS-Referral", | ||
"extension": [ | ||
{ | ||
"url": "sourceSystem", | ||
"valueCode": "ers" | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State", | ||
"extension": [ | ||
{ | ||
"url": "state", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-ReferralState", | ||
"code": "INCOMPLETE", | ||
"display": "Incomplete" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"identifier": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/Id/UBRN", | ||
"value": "111111111112" | ||
} | ||
], | ||
"contained": [ | ||
{ | ||
"resourceType": "PractitionerRole", | ||
"id": "requester", | ||
"practitioner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/sds-user-id", | ||
"value": "103264992985" | ||
}, | ||
"display": "DR AA BHATIA" | ||
}, | ||
"organization": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C81007" | ||
}, | ||
"display": "VERNON STREET MEDICAL CTR" | ||
}, | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1", | ||
"code": "REFERRING_CLINICIAN" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"requester": { | ||
"reference": "#requester" | ||
} | ||
} |
Oops, something went wrong.