@@ -151,29 +151,17 @@ Feature: Producer - createDocumentReference - Success Scenarios
151151
152152 # Create document reference with relatesTo - not code='replaces'
153153 # Create document reference with relatesTo - multiple
154- # Create of each pointer type:
155- # TODO:
156- # - MENTAL_HEALTH_PLAN = "http://snomed.info/sct|736253002"
157- # - EMERGENCY_HEALTHCARE_PLAN = "http://snomed.info/sct|887701000000100"
158- # - EOL_COORDINATION_SUMMARY = "http://snomed.info/sct|861421000000109"
159- # - RESPECT_FORM = "http://snomed.info/sct|1382601000000107"
160- # - NEWS2_CHART = "http://snomed.info/sct|1363501000000100"
161- # - CONTINGENCY_PLAN = "http://snomed.info/sct|325691000000100"
162- # - EOL_CARE_PLAN = "http://snomed.info/sct|736373009"
163- # - LLOYD_GEORGE_FOLDER = "http://snomed.info/sct|16521000000101"
164- # - ADVANCED_CARE_PLAN = "http://snomed.info/sct|736366004"
165- # - TREATMENT_ESCALATION_PLAN = "http://snomed.info/sct|735324008"
166- Scenario : Successfully create a Summary record pointer
154+ Scenario Outline : Successfully create a document pointer of type
167155 Given the application 'DataShare' (ID 'z00z-y11y-x22x' ) is registered to access the API
168156 And the organisation 'ANGY1' is authorised to access pointer types:
169- | system | value |
170- | http ://snomed .info /sct | 824321000000109 |
157+ | system | value |
158+ | http ://snomed .info /sct | < pointer - type > |
171159 When producer 'ANGY1' creates a DocumentReference with values:
172160 | property | value |
173161 | subject | 9278693472 |
174162 | status | current |
175- | type | 824321000000109 |
176- | category | 823651000000106 |
163+ | type | < pointer - type > |
164+ | category | < pointer - category > |
177165 | custodian | ANGY1 |
178166 | author | HAR1 |
179167 | url | https ://example .org /my -doc .pdf |
@@ -202,56 +190,32 @@ Feature: Producer - createDocumentReference - Success Scenarios
202190 | property | value |
203191 | subject | 9278693472 |
204192 | status | current |
205- | type | 824321000000109 |
206- | category | 823651000000106 |
193+ | type | < pointer - type > |
194+ | category | < pointer - category > |
207195 | custodian | ANGY1 |
208196 | author | HAR1 |
209197 | url | https ://example .org /my -doc .pdf |
210198
211- Scenario : Successfully create a Personalised care and support plan pointer
212- Given the application 'DataShare' (ID 'z00z-y11y-x22x' ) is registered to access the API
213- And the organisation 'ANGY1' is authorised to access pointer types:
214- | system | value |
215- | http ://snomed .info /sct | 2181441000000107 |
216- When producer 'ANGY1' creates a DocumentReference with values:
217- | property | value |
218- | subject | 9278693472 |
219- | status | current |
220- | type | 2181441000000107 |
221- | category | 734163000 |
222- | custodian | ANGY1 |
223- | author | HAR1 |
224- | url | https ://example .org /my -doc .pdf |
225- Then the response status code is 201
226- And the response is an OperationOutcome with 1 issue
227- And the OperationOutcome contains the issue:
228- """
229- {
230- "severity": "information",
231- "code": "informational",
232- "details": {
233- "coding": [
234- {
235- "system": "https://fhir.nhs.uk/ValueSet/NRL-ResponseCode",
236- "code": "RESOURCE_CREATED",
237- "display": "Resource created"
238- }
239- ]
240- },
241- "diagnostics": "The document has been created"
242- }
243- """
244- And the response has a Location header
245- And the Location header starts with '/producer/FHIR/R4/DocumentReference/ANGY1-'
246- And the resource in the Location header exists with values:
247- | property | value |
248- | subject | 9278693472 |
249- | status | current |
250- | type | 2181441000000107 |
251- | category | 734163000 |
252- | custodian | ANGY1 |
253- | author | HAR1 |
254- | url | https ://example .org /my -doc .pdf |
199+ Examples : Care Plans
200+ | pointer -type | pointer -category | type -name |
201+ | 736253002 | 734163000 | MENTAL_HEALTH_PLAN |
202+ | 887701000000100 | 734163000 | EMERGENCY_HEALTHCARE_PLAN |
203+ | 861421000000109 | 734163000 | EOL_COORDINATION_SUMMARY |
204+ | 1382601000000107 | 734163000 | RESPECT_FORM |
205+ | 325691000000100 | 734163000 | CONTINGENCY_PLAN |
206+ | 736373009 | 734163000 | EOL_CARE_PLAN |
207+ | 16521000000101 | 734163000 | LLOYD_GEORGE_FOLDER |
208+ | 736366004 | 734163000 | ADVANCED_CARE_PLAN |
209+ | 735324008 | 734163000 | TREATMENT_ESCALATION_PLAN |
210+ | 2181441000000107 | 734163000 | PERSONALISED_CARE_AND_SUPPORT_PLAN |
211+
212+ Examples : Observations
213+ | pointer -type | pointer -category | type -name |
214+ | 1363501000000100 | 1102421000000108 | NEWS2_CHART |
215+
216+ Examples : Clinical Notes
217+ | pointer -type | pointer -category | type -name |
218+ | 824321000000109 | 823651000000106 | SUMMARY_RECORD |
255219
256220# Create with content and contact details
257221# Create with contact details only
0 commit comments