{ "description": "TestScript to validate the FHIR Server searching capabilities.", "_filename": "TestScript-RDSC-Simulator.json", "package_name": "hl7.fhir.uv.radiation-dose-summary", "date": "2021-07-17", "variable": [ { "name": "rdsResourceId", "description": "Enter the resource ID of the Observation describing a Radiation Dose Summary, registered in your server.", "defaultValue": "2535717" }, { "name": "patientId", "sourceId": "rds-read-response", "expression": "Observation.subject.reference.replaceMatches('.*Patient/','').replaceMatches('/_history.*','')" }, { "name": "deviceId", "sourceId": "rds-read-response", "expression": "Observation.device.reference.replaceMatches('.*Device/','').replaceMatches('/_history.*','')" }, { "name": "practitionerId", "sourceId": "rds-read-response", "expression": "Observation.performer.reference.replaceMatches('.*Practitioner/','').replaceMatches('/_history.*','')" }, { "name": "imagingStudyId", "sourceId": "rds-read-response", "expression": "Observation.partOf.reference.replaceMatches('.*(MedicationAdministration|MedicationDispense|MedicationStatement|Procedure|Immunization|ImagingStudy)/','').replaceMatches('/_history.*','')" }, { "name": "date", "path": "Observation/effectiveDateTime/@value", "sourceId": "rds-read-response" }, { "name": "identifier", "path": "Observation/identifier/value", "sourceId": "rds-read-response" } ], "publisher": "HL7 Imaging Integration Working Group", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm" } ] } ], "name": "TestScript_RDSC_Simulator", "copyright": "HL7 2021", "type": null, "experimental": null, "resourceType": "TestScript", "title": null, "package_version": "0.1.0", "status": "active", "id": "cb26b53c-9c6b-42fc-88a5-48d4c0512eee", "kind": null, "url": "https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSC-Simulator.json", "version": "0.1.0", "contact": [ { "telecom": [ { "value": "http://www.hl7.org/Special/committees/imagemgt", "system": "url" } ] }, { "name": "HL7 Imaging Integration Workgroup", "telecom": [ { "value": "http://www.hl7.org/Special/committees/imagemgt", "system": "url" } ] }, { "name": "Abderrazek Boufahja", "telecom": [ { "value": "abderrazek.boufahja@ge.com", "system": "email" } ] } ], "destination": [ { "index": 1, "profile": { "code": "FHIR-Server", "system": "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types", "display": "FHIR Server" } } ], "test": [ { "name": "Observation_read", "action": [ { "operation": { "type": { "code": "read", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "/${rdsResourceId}", "resource": "Observation", "responseId": "rds-read-response", "description": "Read the Radiation Dose Summary observation ${rdsResourceId}", "encodeRequestUrl": true } }, { "assert": { "operator": "in", "direction": "response", "description": "Confirm that the returned HTTP status is 200(OK) or 201(Created).", "warningOnly": false, "responseCode": "200,201" } }, { "assert": { "path": "Observation/id", "operator": "notEmpty", "direction": "response", "description": "Confirm that the returned Observation is not empty.", "warningOnly": false } } ], "description": "Read provided Observation - the radiation dose summary" }, { "name": "Observation_search_patient", "action": [ { "operation": { "type": { "code": "search", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "?code=73569-6&patient=${patientId}", "resource": "Observation", "description": "Search Radiation Dose Summary using the patientId ${patientId}", "encodeRequestUrl": true } }, { "assert": { "expression": "Bundle.total.toInteger() >= 1", "description": "Confirm that the total number of response is greater than 1.", "warningOnly": false } } ], "description": "Search radiation dose summary by patient" }, { "name": "Observation_search_device", "action": [ { "operation": { "type": { "code": "search", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "?code=73569-6&device=${deviceId}", "resource": "Observation", "description": "Search Radiation Dose Summary using the deviceId ${deviceId}", "encodeRequestUrl": true } }, { "assert": { "expression": "Bundle.total.toInteger() >= 1", "description": "Confirm that the total number of response is greater than 1.", "warningOnly": false } } ], "description": "Search radiation dose summary by device" }, { "name": "Observation_search_partof", "action": [ { "operation": { "type": { "code": "search", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "?code=73569-6&part-of=${imagingStudyId}", "resource": "Observation", "description": "Search Radiation Dose Summary using the ImagingStudy ID ${imagingStudyId}", "encodeRequestUrl": true } }, { "assert": { "expression": "Bundle.total.toInteger() >= 1", "description": "Confirm that the total number of response is greater than 1.", "warningOnly": false } } ], "description": "Search radiation dose summary by part-of" }, { "name": "Observation_search_identifier", "action": [ { "operation": { "type": { "code": "search", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "?code=73569-6&identifier=${identifier}", "resource": "Observation", "description": "Search Radiation Dose Summary using the identifier of the Observation ${identifier}", "encodeRequestUrl": true } }, { "assert": { "expression": "Bundle.total.toInteger() >= 1", "description": "Confirm that the total number of response is greater than 1.", "warningOnly": false } } ], "description": "Search radiation dose summary by identifier" }, { "name": "Observation_search_date", "action": [ { "operation": { "type": { "code": "search", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "?code=73569-6&date=${date}", "resource": "Observation", "description": "Search Radiation Dose Summary using the date of the Observation ${date}", "encodeRequestUrl": true } }, { "assert": { "expression": "Bundle.total.toInteger() >= 1", "description": "Confirm that the total number of response is greater than 1.", "warningOnly": false } } ], "description": "Search radiation dose summary by date" }, { "name": "Observation_read_patient", "action": [ { "operation": { "type": { "code": "read", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "/${patientId}", "resource": "Patient", "responseId": "patient-read-response", "description": "Read the Patient ${patientId}", "encodeRequestUrl": true } }, { "assert": { "operator": "in", "direction": "response", "description": "Confirm that the returned HTTP status is 200(OK) or 201(Created).", "warningOnly": false, "responseCode": "200,201" } }, { "assert": { "path": "id", "operator": "notEmpty", "direction": "response", "description": "Confirm that the returned Patient is not empty.", "warningOnly": false } } ], "description": "Read patient resource" }, { "name": "Observation_read_device", "action": [ { "operation": { "type": { "code": "read", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "/${deviceId}", "resource": "Device", "responseId": "device-read-response", "description": "Read the Device ${deviceId}", "encodeRequestUrl": true } }, { "assert": { "operator": "in", "direction": "response", "description": "Confirm that the returned HTTP status is 200(OK) or 201(Created).", "warningOnly": false, "responseCode": "200,201" } }, { "assert": { "path": "id", "operator": "notEmpty", "direction": "response", "description": "Confirm that the returned Device is not empty.", "warningOnly": false } } ], "description": "Read device resource" }, { "name": "Observation_read_practitioner", "action": [ { "operation": { "type": { "code": "read", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "/${practitionerId}", "resource": "Practitioner", "responseId": "practitioner-read-response", "description": "Read the Practitioner ${practitionerId}", "encodeRequestUrl": true } }, { "assert": { "operator": "in", "direction": "response", "description": "Confirm that the returned HTTP status is 200(OK) or 201(Created).", "warningOnly": false, "responseCode": "200,201" } }, { "assert": { "path": "id", "operator": "notEmpty", "direction": "response", "description": "Confirm that the returned Practitioner is not empty.", "warningOnly": false } } ], "description": "Read practitioner resource" }, { "name": "Observation_read_imagingstudy", "action": [ { "operation": { "type": { "code": "read", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "accept": "json", "params": "/${imagingStudyId}", "resource": "ImagingStudy", "responseId": "imagingstudy-read-response", "description": "Read the ImagingStudy ${imagingStudyId}", "encodeRequestUrl": true } }, { "assert": { "operator": "in", "direction": "response", "description": "Confirm that the returned HTTP status is 200(OK) or 201(Created).", "warningOnly": false, "responseCode": "200,201" } }, { "assert": { "path": "id", "operator": "notEmpty", "direction": "response", "description": "Confirm that the returned ImagingStudy is not empty.", "warningOnly": false } } ], "description": "Read imagingstudy resource" } ] }