Radiation Dose Summary for Diagnostic Procedures on FHIR
0.1.0 - ci-build International flag

Radiation Dose Summary for Diagnostic Procedures on FHIR, published by HL7 Imaging Integration Working Group. This is not an authorized publication; it is the continuous build for version 0.1.0). This version is based on the current content of https://github.com/HL7/fhir-radiation-dose-summary-ig/ and changes regularly. See the Directory of published versions

: TestScript_RDSC_Simulator - TTL Representation

Active as of 2021-07-17

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:TestScript ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "RDSC-Simulator"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: TestScript</b><a name=\"RDSC-Simulator\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource TestScript &quot;RDSC-Simulator&quot; </p></div><p><b>url</b>: <code>https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSC-Simulator.json</code></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScript_RDSC_Simulator</p><p><b>status</b>: active</p><p><b>date</b>: 2021-07-17</p><p><b>publisher</b>: HL7 Imaging Integration Working Group</p><p><b>contact</b>: <a href=\"http://www.hl7.org/Special/committees/imagemgt\">http://www.hl7.org/Special/committees/imagemgt</a>, HL7 Imaging Integration Workgroup: <a href=\"http://www.hl7.org/Special/committees/imagemgt\">http://www.hl7.org/Special/committees/imagemgt</a>, Abderrazek Boufahja: <a href=\"mailto:abderrazek.boufahja@ge.com\">abderrazek.boufahja@ge.com</a></p><p><b>description</b>: TestScript to validate the FHIR Server searching capabilities.</p><p><b>jurisdiction</b>: Global (Whole world) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (m49.htm#001)</span></p><p><b>copyright</b>: HL7 2021</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td>FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'FHIR Server')</td></tr></table><blockquote><p><b>variable</b></p><p><b>name</b>: rdsResourceId</p><p><b>defaultValue</b>: 2535717</p><p><b>description</b>: Enter the resource ID of the Observation describing a Radiation Dose Summary, registered in your server.</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: patientId</p><p><b>expression</b>: Observation.subject.reference.replaceMatches('.*Patient/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: deviceId</p><p><b>expression</b>: Observation.device.reference.replaceMatches('.*Device/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: practitionerId</p><p><b>expression</b>: Observation.performer.reference.replaceMatches('.*Practitioner/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: imagingStudyId</p><p><b>expression</b>: Observation.partOf.reference.replaceMatches('.*(MedicationAdministration|MedicationDispense|MedicationStatement|Procedure|Immunization|ImagingStudy)/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: date</p><p><b>path</b>: Observation/effectiveDateTime/@value</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: identifier</p><p><b>path</b>: Observation/identifier/value</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read</p><p><b>description</b>: Read provided Observation - the radiation dose summary</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>Observation</td><td>Read the Radiation Dose Summary observation ${rdsResourceId}</td><td>json</td><td>true</td><td>/${rdsResourceId}</td><td>rds-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Observation is not empty.</td><td>response</td><td>notEmpty</td><td>Observation/id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_patient</p><p><b>description</b>: Search radiation dose summary by patient</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td>Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')</td><td>Observation</td><td>Search Radiation Dose Summary using the patientId ${patientId}</td><td>json</td><td>true</td><td>?code=73569-6&amp;patient=${patientId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_device</p><p><b>description</b>: Search radiation dose summary by device</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td>Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')</td><td>Observation</td><td>Search Radiation Dose Summary using the deviceId ${deviceId}</td><td>json</td><td>true</td><td>?code=73569-6&amp;device=${deviceId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_partof</p><p><b>description</b>: Search radiation dose summary by part-of</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td>Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')</td><td>Observation</td><td>Search Radiation Dose Summary using the ImagingStudy ID ${imagingStudyId}</td><td>json</td><td>true</td><td>?code=73569-6&amp;part-of=${imagingStudyId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_identifier</p><p><b>description</b>: Search radiation dose summary by identifier</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td>Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')</td><td>Observation</td><td>Search Radiation Dose Summary using the identifier of the Observation ${identifier}</td><td>json</td><td>true</td><td>?code=73569-6&amp;identifier=${identifier}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_date</p><p><b>description</b>: Search radiation dose summary by date</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td>Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')</td><td>Observation</td><td>Search Radiation Dose Summary using the date of the Observation ${date}</td><td>json</td><td>true</td><td>?code=73569-6&amp;date=${date}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_patient</p><p><b>description</b>: Read patient resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>Patient</td><td>Read the Patient ${patientId}</td><td>json</td><td>true</td><td>/${patientId}</td><td>patient-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Patient is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_device</p><p><b>description</b>: Read device resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>Device</td><td>Read the Device ${deviceId}</td><td>json</td><td>true</td><td>/${deviceId}</td><td>device-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Device is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_practitioner</p><p><b>description</b>: Read practitioner resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>Practitioner</td><td>Read the Practitioner ${practitionerId}</td><td>json</td><td>true</td><td>/${practitionerId}</td><td>practitioner-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Practitioner is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_imagingstudy</p><p><b>description</b>: Read imagingstudy resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>ImagingStudy</td><td>Read the ImagingStudy ${imagingStudyId}</td><td>json</td><td>true</td><td>/${imagingStudyId}</td><td>imagingstudy-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned ImagingStudy is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote></div>"
  ] ; # 
  fhir:url [ fhir:v "https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSC-Simulator.json"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "TestScript_RDSC_Simulator"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2021-07-17"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 Imaging Integration Working Group"] ; # 
  fhir:contact ( [
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/imagemgt" ]     ] )
  ] [
fhir:name [ fhir:v "HL7 Imaging Integration Workgroup" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/imagemgt" ]     ] )
  ] [
fhir:name [ fhir:v "Abderrazek Boufahja" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "abderrazek.boufahja@ge.com" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "TestScript to validate the FHIR Server searching capabilities."] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ]     ] )
  ] ) ; # 
  fhir:copyright [ fhir:v "HL7 2021"] ; # 
  fhir:destination ( [
fhir:index [ fhir:v "1"^^xsd:integer ] ;
fhir:profile [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"^^xsd:anyURI ] ;
fhir:code [ fhir:v "FHIR-Server" ] ;
fhir:display [ fhir:v "FHIR Server" ]     ]
  ] ) ; # 
  fhir:variable ( [
fhir:name [ fhir:v "rdsResourceId" ] ;
fhir:defaultValue [ fhir:v "2535717" ] ;
fhir:description [ fhir:v "Enter the resource ID of the Observation describing a Radiation Dose Summary, registered in your server." ]
  ] [
fhir:name [ fhir:v "patientId" ] ;
fhir:expression [ fhir:v "Observation.subject.reference.replaceMatches('.*Patient/','').replaceMatches('/_history.*','')" ] ;
fhir:sourceId [ fhir:v "rds-read-response" ]
  ] [
fhir:name [ fhir:v "deviceId" ] ;
fhir:expression [ fhir:v "Observation.device.reference.replaceMatches('.*Device/','').replaceMatches('/_history.*','')" ] ;
fhir:sourceId [ fhir:v "rds-read-response" ]
  ] [
fhir:name [ fhir:v "practitionerId" ] ;
fhir:expression [ fhir:v "Observation.performer.reference.replaceMatches('.*Practitioner/','').replaceMatches('/_history.*','')" ] ;
fhir:sourceId [ fhir:v "rds-read-response" ]
  ] [
fhir:name [ fhir:v "imagingStudyId" ] ;
fhir:expression [ fhir:v "Observation.partOf.reference.replaceMatches('.*(MedicationAdministration|MedicationDispense|MedicationStatement|Procedure|Immunization|ImagingStudy)/','').replaceMatches('/_history.*','')" ] ;
fhir:sourceId [ fhir:v "rds-read-response" ]
  ] [
fhir:name [ fhir:v "date" ] ;
fhir:path [ fhir:v "Observation/effectiveDateTime/@value" ] ;
fhir:sourceId [ fhir:v "rds-read-response" ]
  ] [
fhir:name [ fhir:v "identifier" ] ;
fhir:path [ fhir:v "Observation/identifier/value" ] ;
fhir:sourceId [ fhir:v "rds-read-response" ]
  ] ) ; # 
  fhir:test ( [
fhir:name [ fhir:v "Observation_read" ] ;
fhir:description [ fhir:v "Read provided Observation - the radiation dose summary" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:resource [ fhir:v "Observation" ] ;
fhir:description [ fhir:v "Read the Radiation Dose Summary observation ${rdsResourceId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "/${rdsResourceId}" ] ;
fhir:responseId [ fhir:v "rds-read-response" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK) or 201(Created)." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "in" ] ;
fhir:responseCode [ fhir:v "200,201" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned Observation is not empty." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "notEmpty" ] ;
fhir:path [ fhir:v "Observation/id" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_search_patient" ] ;
fhir:description [ fhir:v "Search radiation dose summary by patient" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "search" ]         ] ;
fhir:resource [ fhir:v "Observation" ] ;
fhir:description [ fhir:v "Search Radiation Dose Summary using the patientId ${patientId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "?code=73569-6&patient=${patientId}" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the total number of response is greater than 1." ] ;
fhir:expression [ fhir:v "Bundle.total.toInteger() >= 1" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_search_device" ] ;
fhir:description [ fhir:v "Search radiation dose summary by device" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "search" ]         ] ;
fhir:resource [ fhir:v "Observation" ] ;
fhir:description [ fhir:v "Search Radiation Dose Summary using the deviceId ${deviceId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "?code=73569-6&device=${deviceId}" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the total number of response is greater than 1." ] ;
fhir:expression [ fhir:v "Bundle.total.toInteger() >= 1" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_search_partof" ] ;
fhir:description [ fhir:v "Search radiation dose summary by part-of" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "search" ]         ] ;
fhir:resource [ fhir:v "Observation" ] ;
fhir:description [ fhir:v "Search Radiation Dose Summary using the ImagingStudy ID ${imagingStudyId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "?code=73569-6&part-of=${imagingStudyId}" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the total number of response is greater than 1." ] ;
fhir:expression [ fhir:v "Bundle.total.toInteger() >= 1" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_search_identifier" ] ;
fhir:description [ fhir:v "Search radiation dose summary by identifier" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "search" ]         ] ;
fhir:resource [ fhir:v "Observation" ] ;
fhir:description [ fhir:v "Search Radiation Dose Summary using the identifier of the Observation ${identifier}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "?code=73569-6&identifier=${identifier}" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the total number of response is greater than 1." ] ;
fhir:expression [ fhir:v "Bundle.total.toInteger() >= 1" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_search_date" ] ;
fhir:description [ fhir:v "Search radiation dose summary by date" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "search" ]         ] ;
fhir:resource [ fhir:v "Observation" ] ;
fhir:description [ fhir:v "Search Radiation Dose Summary using the date of the Observation ${date}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "?code=73569-6&date=${date}" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the total number of response is greater than 1." ] ;
fhir:expression [ fhir:v "Bundle.total.toInteger() >= 1" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_read_patient" ] ;
fhir:description [ fhir:v "Read patient resource" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:resource [ fhir:v "Patient" ] ;
fhir:description [ fhir:v "Read the Patient ${patientId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "/${patientId}" ] ;
fhir:responseId [ fhir:v "patient-read-response" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK) or 201(Created)." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "in" ] ;
fhir:responseCode [ fhir:v "200,201" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned Patient is not empty." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "notEmpty" ] ;
fhir:path [ fhir:v "id" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_read_device" ] ;
fhir:description [ fhir:v "Read device resource" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:resource [ fhir:v "Device" ] ;
fhir:description [ fhir:v "Read the Device ${deviceId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "/${deviceId}" ] ;
fhir:responseId [ fhir:v "device-read-response" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK) or 201(Created)." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "in" ] ;
fhir:responseCode [ fhir:v "200,201" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned Device is not empty." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "notEmpty" ] ;
fhir:path [ fhir:v "id" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_read_practitioner" ] ;
fhir:description [ fhir:v "Read practitioner resource" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:resource [ fhir:v "Practitioner" ] ;
fhir:description [ fhir:v "Read the Practitioner ${practitionerId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "/${practitionerId}" ] ;
fhir:responseId [ fhir:v "practitioner-read-response" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK) or 201(Created)." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "in" ] ;
fhir:responseCode [ fhir:v "200,201" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned Practitioner is not empty." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "notEmpty" ] ;
fhir:path [ fhir:v "id" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:name [ fhir:v "Observation_read_imagingstudy" ] ;
fhir:description [ fhir:v "Read imagingstudy resource" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:resource [ fhir:v "ImagingStudy" ] ;
fhir:description [ fhir:v "Read the ImagingStudy ${imagingStudyId}" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:params [ fhir:v "/${imagingStudyId}" ] ;
fhir:responseId [ fhir:v "imagingstudy-read-response" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK) or 201(Created)." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "in" ] ;
fhir:responseCode [ fhir:v "200,201" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned ImagingStudy is not empty." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "notEmpty" ] ;
fhir:path [ fhir:v "id" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] ) . #