PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.radiation-dose-summary@0.1.0
    https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSP-Simulator.json
{
  "description": "TestScript to validate the FHIR Server capabilities against an RDSP actor.",
  "_filename": "TestScript-RDSP-Simulator.json",
  "package_name": "hl7.fhir.uv.radiation-dose-summary",
  "date": "2021-07-17",
  "variable": [ {
    "name": "rdsResourceId",
    "path": "Bundle/entry/resource/Observation/id",
    "sourceId": "bundle-post-response"
  }, {
    "name": "patientResourceId",
    "path": "Bundle/entry/resource/Patient/id",
    "sourceId": "bundle-post-response"
  }, {
    "name": "deviceResourceId",
    "path": "Bundle/entry/resource/Device/id",
    "sourceId": "bundle-post-response"
  }, {
    "name": "practitionerResourceId",
    "path": "Bundle/entry/resource/Practitioner/id",
    "sourceId": "bundle-post-response"
  }, {
    "name": "imagingStudyResourceId",
    "path": "Bundle/entry/resource/ImagingStudy/id",
    "sourceId": "bundle-post-response"
  } ],
  "publisher": "HL7 Imaging Integration Working Group",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "name": "TestScript_RDSP_Simulator",
  "copyright": "HL7 2021",
  "type": null,
  "experimental": null,
  "resourceType": "TestScript",
  "title": null,
  "package_version": "0.1.0",
  "status": "active",
  "id": "9dc6e71e-65c1-47a3-8e9d-65b27806a38f",
  "kind": null,
  "url": "https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSP-Simulator.json",
  "fixture": [ {
    "id": "rds-post-json",
    "resource": {
      "reference": "Bundle/Bundle-RDS-resources"
    },
    "autocreate": false,
    "autodelete": false
  } ],
  "version": "0.1.0",
  "teardown": {
    "action": [ {
      "operation": {
        "type": {
          "code": "delete",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "/${rdsResourceId}",
        "resource": "Observation",
        "description": "Relete the Observation ${rdsResourceId}",
        "encodeRequestUrl": true
      }
    }, {
      "operation": {
        "type": {
          "code": "delete",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "/${imagingStudyResourceId}",
        "resource": "ImagingStudy",
        "description": "Relete the ImagingStudy ${imagingStudyResourceId}",
        "encodeRequestUrl": true
      }
    }, {
      "operation": {
        "type": {
          "code": "delete",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "/${patientResourceId}",
        "resource": "Patient",
        "description": "Relete the Patient ${patientResourceId}",
        "encodeRequestUrl": true
      }
    }, {
      "operation": {
        "type": {
          "code": "delete",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "params": "/${practitionerResourceId}",
        "resource": "Practitioner",
        "description": "Relete the Practitioner ${practitionerResourceId}",
        "encodeRequestUrl": true
      }
    } ]
  },
  "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-Queries-verification-POST",
    "action": [ {
      "operation": {
        "type": {
          "code": "transaction",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "accept": "json",
        "sourceId": "rds-post-json",
        "responseId": "bundle-post-response",
        "contentType": "json",
        "description": "Submit a bundle of resources creating the radiation dose summary",
        "destination": 1,
        "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": {
        "resource": "Bundle",
        "direction": "response",
        "description": "Confirm that the response body contains a Bundle",
        "warningOnly": false
      }
    } ],
    "description": "This is a Test to validate the FHIR server capabilities according to Radiation Dose Summary searching possibilities."
  }, {
    "name": "RDS-Queries-verification-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 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"
      }
    } ],
    "description": "Read the posted Observation as a Radiation Dose Summary resource"
  } ]
}