Radiation Dose Summary for Diagnostic Procedures on FHIR
0.1.0 - STU 1 Ballot

Publication Build: This will be filled in by the publication tooling

## TestScript: TestScript_RDSP_Simulator

Generated Narrative

Resource "RDSP-Simulator"

url: `https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSP-Simulator.json`

version: 0.1.0

name: TestScript_RDSP_Simulator

status: active

date: 2021-07-17

publisher: HL7 Imaging Integration Working Group

contact: http://www.hl7.org/Special/committees/imagemgt, HL7 Imaging Integration Workgroup: http://www.hl7.org/Special/committees/imagemgt, Abderrazek Boufahja: abderrazek.boufahja@ge.com

description: TestScript to validate the FHIR Server capabilities against an RDSP actor.

jurisdiction: World (m49.htm#001)

copyright: HL7 2021

### Destinations

- | Index | Profile
* | 1 | FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'FHIR Server')

> fixture

> autocreate: false

> autodelete: false

> resource: Bundle/Bundle-RDS-resources

> variable

> name: rdsResourceId

> path: Bundle/entry/resource/Observation/id

> sourceId: bundle-post-response

> variable

> name: patientResourceId

> path: Bundle/entry/resource/Patient/id

> sourceId: bundle-post-response

> variable

> name: deviceResourceId

> path: Bundle/entry/resource/Device/id

> sourceId: bundle-post-response

> variable

> name: practitionerResourceId

> path: Bundle/entry/resource/Practitioner/id

> sourceId: bundle-post-response

> variable

> name: imagingStudyResourceId

> path: Bundle/entry/resource/ImagingStudy/id

> sourceId: bundle-post-response

> test

> name: RDS-Queries-verification-POST

> description: This is a Test to validate the FHIR server capabilities according to Radiation Dose Summary searching possibilities.

> > action

> > ### Operations

> > - | Type | Description | Accept | ContentType | Destination | EncodeRequestUrl | ResponseId | SourceId
> > * | Transaction (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code transaction = 'Transaction', stated as 'null') | Submit a bundle of resources creating the radiation dose summary | json | json | 1 | true | bundle-post-response | rds-post-json

> > action

> > ### Asserts

> > - | Description | Direction | Operator | ResponseCode | WarningOnly
> > * | Confirm that the returned HTTP status is 200(OK) or 201(Created). | response | in | 200,201 | false

> > action

> > ### Asserts

> > - | Description | Direction | Resource | WarningOnly
> > * | Confirm that the response body contains a Bundle | response | Bundle | false

> test

> name: RDS-Queries-verification-read

> description: Read the posted Observation as a Radiation Dose Summary resource

> > action

> > ### Operations

> > - | Type | Resource | Description | Accept | EncodeRequestUrl | Params | ResponseId
> > * | Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null') | Observation | Read the Observation ${rdsResourceId} | json | true | /${rdsResourceId} | rds-read-response

> > action

> > ### Asserts

> > - | Description | Direction | Operator | ResponseCode | WarningOnly
> > * | Confirm that the returned HTTP status is 200(OK) or 201(Created). | response | in | 200,201 | false

> teardown

> > action

> > ### Operations

> > - | Type | Resource | Description | Accept | EncodeRequestUrl | Params
> > * | Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null') | Observation | Relete the Observation ${rdsResourceId} | json | true | /${rdsResourceId}

> > action

> > ### Operations

> > - | Type | Resource | Description | Accept | EncodeRequestUrl | Params
> > * | Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null') | ImagingStudy | Relete the ImagingStudy ${imagingStudyResourceId} | json | true | /${imagingStudyResourceId}

> > action

> > ### Operations

> > - | Type | Resource | Description | Accept | EncodeRequestUrl | Params
> > * | Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null') | Patient | Relete the Patient ${patientResourceId} | json | true | /${patientResourceId}

> > action

> > ### Operations

> > - | Type | Resource | Description | Accept | EncodeRequestUrl | Params
> > * | Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null') | Practitioner | Relete the Practitioner ${practitionerResourceId} | json | true | /${practitionerResourceId}