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

This page is part of the Radiation Dose Summary for Diagnostic Procedures on FHIR (v0.1.0: STU 1 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

TestScript: TestScript_RDSC_Simulator

Generated Narrative

Resource "RDSC-Simulator"

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

version: 0.1.0

name: TestScript_RDSC_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 searching capabilities.

jurisdiction: World (m49.htm#001)

copyright: HL7 2021

Destinations

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

variable

name: rdsResourceId

defaultValue: 2535717

description: Enter the resource ID of the Observation describing a Radiation Dose Summary, registered in your server.

variable

name: patientId

expression: Observation.subject.reference.replaceMatches('.*Patient/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: deviceId

expression: Observation.device.reference.replaceMatches('.*Device/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: practitionerId

expression: Observation.performer.reference.replaceMatches('.*Practitioner/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: imagingStudyId

expression: Observation.partOf.reference.replaceMatches('.*(MedicationAdministration|MedicationDispense|MedicationStatement|Procedure|Immunization|ImagingStudy)/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: date

path: Observation/effectiveDateTime/@value

sourceId: rds-read-response

variable

name: identifier

path: Observation/identifier/value

sourceId: rds-read-response

test

name: Observation_read

description: Read provided Observation - the radiation dose summary

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')ObservationRead the Radiation Dose Summary observation ${rdsResourceId}jsontrue/${rdsResourceId}rds-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Observation is not empty.responsenotEmptyObservation/idfalse

test

name: Observation_search_patient

description: Search radiation dose summary by patient

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')ObservationSearch Radiation Dose Summary using the patientId ${patientId}jsontrue?code=73569-6&patient=${patientId}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_device

description: Search radiation dose summary by device

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')ObservationSearch Radiation Dose Summary using the deviceId ${deviceId}jsontrue?code=73569-6&device=${deviceId}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_partof

description: Search radiation dose summary by part-of

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')ObservationSearch Radiation Dose Summary using the ImagingStudy ID ${imagingStudyId}jsontrue?code=73569-6&part-of=${imagingStudyId}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_identifier

description: Search radiation dose summary by identifier

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')ObservationSearch Radiation Dose Summary using the identifier of the Observation ${identifier}jsontrue?code=73569-6&identifier=${identifier}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_date

description: Search radiation dose summary by date

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')ObservationSearch Radiation Dose Summary using the date of the Observation ${date}jsontrue?code=73569-6&date=${date}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_read_patient

description: Read patient resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')PatientRead the Patient ${patientId}jsontrue/${patientId}patient-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Patient is not empty.responsenotEmptyidfalse

test

name: Observation_read_device

description: Read device resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')DeviceRead the Device ${deviceId}jsontrue/${deviceId}device-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Device is not empty.responsenotEmptyidfalse

test

name: Observation_read_practitioner

description: Read practitioner resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')PractitionerRead the Practitioner ${practitionerId}jsontrue/${practitionerId}practitioner-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Practitioner is not empty.responsenotEmptyidfalse

test

name: Observation_read_imagingstudy

description: Read imagingstudy resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')ImagingStudyRead the ImagingStudy ${imagingStudyId}jsontrue/${imagingStudyId}imagingstudy-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned ImagingStudy is not empty.responsenotEmptyidfalse