FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: TestScript/RDSP-Simulator

Packagehl7.fhir.uv.radiation-dose-summary
TypeTestScript
IdRDSP-Simulator
FHIR VersionR4
Sourcehttp://hl7.org/fhir/uv/radiation-dose-summary/https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSP-Simulator.html
URLhttp://hl7.org/fhir/uv/radiation-dose-summary/TestScript/RDSP-Simulator
Version1.0.0
Statusactive
Date2021-07-17
NameTestScript_RDSP_Simulator
Realmuv
Authorityhl7
DescriptionTestScript to validate the FHIR Server capabilities against an RDSP actor.
CopyrightHL7 2021

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestScript RDSP-Simulator

StructureDefinition Work Group: ii

url: TestScript TestScript_RDSP_Simulator

version: 1.0.0

name: TestScript_RDSP_Simulator

status: Active

date: 2021-07-17

publisher: HL7 International / Imaging Integration

contact: http://www.hl7.org/Special/committees/imagemgt, HL7 Imaging Integration Workgroup: http://www.hl7.org/Special/committees/imagemgt, Abderrazek Boufahja: abderrazek.boufahja@gehealthcare.com

description:

TestScript to validate the FHIR Server capabilities against an RDSP actor.

jurisdiction: Global (Whole world)

copyright:

HL7 2021

Destinations

-IndexProfile
*1Test script profile destination type FHIR-Server: FHIR Server

fixture

id

rds-post-json

autocreate: false

autodelete: false

resource: Bundle: type = transaction

variable

name: rdsResourceId

path: Bundle/entry/resource/Observation/id

sourceId: bundle-post-response

variable

name: patientResourceId

path: Bundle/entry/resource/Patient/id

sourceId: bundle-post-response

variable

name: deviceResourceId

path: Bundle/entry/resource/Device/id

sourceId: bundle-post-response

variable

name: practitionerResourceId

path: Bundle/entry/resource/Practitioner/id

sourceId: bundle-post-response

variable

name: imagingStudyResourceId

path: Bundle/entry/resource/ImagingStudy/id

sourceId: bundle-post-response

test

name: RDS-Queries-verification-POST

description: This is a Test to validate the FHIR server capabilities according to Radiation Dose Summary searching possibilities.

action

Operations

-TypeDescriptionAcceptContentTypeDestinationEncodeRequestUrlResponseIdSourceId
*Test script operation code transaction: TransactionSubmit a bundle of resources creating the radiation dose summaryjsonjson1truebundle-post-responserds-post-json

action

Asserts

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

action

Asserts

-DescriptionDirectionResourceWarningOnly
*Confirm that the response body contains a BundleresponseBundlefalse

test

name: RDS-Queries-verification-read

description: Read the posted Observation as a Radiation Dose Summary resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Test script operation code read: ReadObservationRead the Observation ${rdsResourceId}jsontrue/${rdsResourceId}rds-read-response

action

Asserts

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

teardown

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code delete: DeleteObservationRelete the Observation ${rdsResourceId}jsontrue/${rdsResourceId}

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code delete: DeleteImagingStudyRelete the ImagingStudy ${imagingStudyResourceId}jsontrue/${imagingStudyResourceId}

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code delete: DeletePatientRelete the Patient ${patientResourceId}jsontrue/${patientResourceId}

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code delete: DeletePractitionerRelete the Practitioner ${practitionerResourceId}jsontrue/${practitionerResourceId}

Source

{
  "resourceType": "TestScript",
  "id": "RDSP-Simulator",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "ii"
    }
  ],
  "url": "http://hl7.org/fhir/uv/radiation-dose-summary/TestScript/RDSP-Simulator",
  "version": "1.0.0",
  "name": "TestScript_RDSP_Simulator",
  "status": "active",
  "date": "2021-07-17",
  "publisher": "HL7 International / Imaging Integration",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/imagemgt"
        }
      ]
    },
    {
      "name": "HL7 Imaging Integration Workgroup",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/imagemgt"
        }
      ]
    },
    {
      "name": "Abderrazek Boufahja",
      "telecom": [
        {
          "system": "email",
          "value": "abderrazek.boufahja@gehealthcare.com"
        }
      ]
    }
  ],
  "description": "TestScript to validate the FHIR Server capabilities against an RDSP actor.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "copyright": "HL7 2021",
  "destination": [
    {
      "index": 1,
      "profile": {
        "system": "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
        "code": "FHIR-Server",
        "display": "FHIR Server"
      }
    }
  ],
  "fixture": [
    {
      "id": "rds-post-json",
      "autocreate": false,
      "autodelete": false,
      "resource": {
        "reference": "Bundle/Bundle-RDS-resources"
      }
    }
  ],
  "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"
    }
  ],
  "test": [
    {
      "name": "RDS-Queries-verification-POST",
      "description": "This is a Test to validate the FHIR server capabilities according to Radiation Dose Summary searching possibilities.",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "transaction"
            },
            "description": "Submit a bundle of resources creating the radiation dose summary",
            "accept": "json",
            "contentType": "json",
            "destination": 1,
            "encodeRequestUrl": true,
            "responseId": "bundle-post-response",
            "sourceId": "rds-post-json"
          }
        },
        {
          "assert": {
            "description": "Confirm that the returned HTTP status is 200(OK) or 201(Created).",
            "direction": "response",
            "operator": "in",
            "responseCode": "200,201",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm that the response body contains a Bundle",
            "direction": "response",
            "resource": "Bundle",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "RDS-Queries-verification-read",
      "description": "Read the posted Observation as a Radiation Dose Summary resource",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Observation",
            "description": "Read the Observation ${rdsResourceId}",
            "accept": "json",
            "encodeRequestUrl": true,
            "params": "/${rdsResourceId}",
            "responseId": "rds-read-response"
          }
        },
        {
          "assert": {
            "description": "Confirm that the returned HTTP status is 200(OK) or 201(Created).",
            "direction": "response",
            "operator": "in",
            "responseCode": "200,201",
            "warningOnly": false
          }
        }
      ]
    }
  ],
  "teardown": {
    "action": [
      {
        "operation": {
          "type": {
            "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
            "code": "delete"
          },
          "resource": "Observation",
          "description": "Relete the Observation ${rdsResourceId}",
          "accept": "json",
          "encodeRequestUrl": true,
          "params": "/${rdsResourceId}"
        }
      },
      {
        "operation": {
          "type": {
            "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
            "code": "delete"
          },
          "resource": "ImagingStudy",
          "description": "Relete the ImagingStudy ${imagingStudyResourceId}",
          "accept": "json",
          "encodeRequestUrl": true,
          "params": "/${imagingStudyResourceId}"
        }
      },
      {
        "operation": {
          "type": {
            "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
            "code": "delete"
          },
          "resource": "Patient",
          "description": "Relete the Patient ${patientResourceId}",
          "accept": "json",
          "encodeRequestUrl": true,
          "params": "/${patientResourceId}"
        }
      },
      {
        "operation": {
          "type": {
            "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
            "code": "delete"
          },
          "resource": "Practitioner",
          "description": "Relete the Practitioner ${practitionerResourceId}",
          "accept": "json",
          "encodeRequestUrl": true,
          "params": "/${practitionerResourceId}"
        }
      }
    ]
  }
}