PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.radiation-dose-summary@0.1.0
    https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDS-sharing-verification.json
{
  "description": "TestScript to validate the sharing data between RDSP actor and a FHIR Server.",
  "_filename": "TestScript-RDS-sharing-verification.json",
  "package_name": "hl7.fhir.uv.radiation-dose-summary",
  "date": "2021-07-17",
  "variable": [ {
    "name": "patientIdentifier",
    "description": "Enter the patient identifier as used in the RDSR: tag(0010,0020) Patient ID",
    "defaultValue": "PAT3421"
  }, {
    "name": "deviceIdentifier",
    "description": "Enter the Device identifier as used in the RDSR: tag(0018,1000) Device Serial Number",
    "defaultValue": "767ER"
  }, {
    "name": "practitionerFamily",
    "description": "Enter the Practitioner family name as used in the RDSR: TID 1020(Person Participant).EV (113871, DCM, Person ID)",
    "defaultValue": "Moore"
  }, {
    "name": "practitionerGiven",
    "description": "Enter the Practitioner given name as used in the RDSR: TID 1020(Person Participant).EV (113871, DCM, Person ID)",
    "defaultValue": "John"
  }, {
    "name": "studyInstanceUID",
    "description": "Enter the Study Instance UID identifying the image study: tag(0020,000D) Study Instance UID",
    "defaultValue": "1.2.840.121.3.32.0.1.25"
  }, {
    "name": "patientResourceId",
    "path": "Bundle/entry/resource/Patient/id",
    "sourceId": "patient-search-response"
  }, {
    "name": "deviceResourceId",
    "path": "Bundle/entry/resource/Device/id",
    "sourceId": "device-search-response"
  }, {
    "name": "practitionerResourceId",
    "path": "Bundle/entry/resource/Practitioner/id",
    "sourceId": "practitioner-search-response"
  }, {
    "name": "imagingStudyResourceId",
    "path": "Bundle/entry/resource/ImagingStudy/id",
    "sourceId": "imagingstudy-search-response"
  } ],
  "publisher": "HL7 Imaging Integration Working Group",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "name": "TestScript_RDS_Sharing_Verification",
  "copyright": "HL7 2021",
  "type": null,
  "experimental": null,
  "resourceType": "TestScript",
  "title": null,
  "package_version": "0.1.0",
  "status": "active",
  "id": "8655084e-d618-48b3-8940-14ddf396824e",
  "kind": null,
  "url": "https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDS-sharing-verification.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": "RDS_Sharing_Verification",
    "action": [ {
      "operation": {
        "type": {
          "code": "search",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "?identifier=${patientIdentifier}",
        "resource": "Patient",
        "responseId": "patient-search-response",
        "description": "Search for matching Patient related to the identifier ${patientIdentifier}",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "expression": "Bundle.total.toInteger() >= 1",
        "description": "Confirm that the total number of response is greater than 1.",
        "warningOnly": false
      }
    } ],
    "description": "This is a test to validate the sharing of data between RDSP actor and a FHIR Server. The RDSP actor gathers an RDSR from an irradiating modality (a CT RDSR, an X-Ray RDSR or an RRDSR). Once Data collected, the RDSP will collect the right IDs for the patient, practitioner, ImagingStudy and Device from the FHIR Server, then it will generate the radiation summary resources and share them with the FHIR Server. You can refer to the complete description under : http://hl7.org/fhir/uv/radiation-dose-summary/testing.html#scenario-1-rdsr-summary-to-fhir. This test is executed after this workflow is performed, and the scripts will check the data are well received by the FHIR Server."
  }, {
    "name": "search_device",
    "action": [ {
      "operation": {
        "type": {
          "code": "search",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "?identifier=${deviceIdentifier}",
        "resource": "Device",
        "responseId": "device-search-response",
        "description": "Search for matching Device related to the identifier ${deviceIdentifier}",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "expression": "Bundle.total.toInteger() >= 1",
        "description": "Confirm that the total number of response is greater than 1.",
        "warningOnly": false
      }
    } ],
    "description": "Search by device identifier"
  }, {
    "name": "search_practitioner",
    "action": [ {
      "operation": {
        "type": {
          "code": "search",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "?family=${practitionerFamily}&given=${practitionerGiven}",
        "resource": "Practitioner",
        "responseId": "practitioner-search-response",
        "description": "Search for matching Practitioner related to the family name ${practitionerFamily} and the given name ${practitionerGiven}",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "expression": "Bundle.total.toInteger() >= 1",
        "description": "Confirm that the total number of response is greater than 1.",
        "warningOnly": false
      }
    } ],
    "description": "Search by practitioner name"
  }, {
    "name": "search_ImagingStudy",
    "action": [ {
      "operation": {
        "type": {
          "code": "search",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "?identifier=urn:oid:${studyInstanceUID}",
        "resource": "ImagingStudy",
        "responseId": "imagingstudy-search-response",
        "description": "Search for matching ImagingStudy related to the studyInstanceUID ${studyInstanceUID}",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "expression": "Bundle.total.toInteger() >= 1",
        "description": "Confirm that the total number of response is greater than 1.",
        "warningOnly": false
      }
    } ],
    "description": "Search by ImagingStudy identifier"
  }, {
    "name": "search_rds",
    "action": [ {
      "operation": {
        "type": {
          "code": "search",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "?code=73569-6&device=${deviceResourceId}&patient=${patientResourceId}&part-of=${imagingStudyResourceId}",
        "resource": "Observation",
        "responseId": "rds-search-response",
        "description": "Search for matching Radiation Dose Summary related to the described parameters",
        "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 resource by patient, device and part-of parameters"
  } ]
}