Acknowledgement Test scripts
2.0.0 - release

This page is part of the DK MedCom Acknowledgement TestScripts (v2.0.0: Release) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

: Acknowledgement_TestScript_receive-transient-error - JSON Representation

Active as of 2023-05-25

Raw json | Download


{
  "resourceType" : "TestScript",
  "id" : "acknowledgement-receive-transient-error",
  "meta" : {
    "profile" : [
      "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: TestScript</b><a name=\"acknowledgement-receive-transient-error\"> </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;acknowledgement-receive-transient-error&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"file://D:\\GitHub\\Touchstone\\testing-ig\\output/StructureDefinition-testscript.html\">AEGIS Touchstone Testing TestScript Profile</a></p></div><p><b>url</b>: <code>http://medcomfhir.dk/ig/acknowledgementtestscript/acknowledgement-receive-transient-error</code></p><p><b>version</b>: 2.0.0</p><p><b>name</b>: AcknowledgementTestScript</p><p><b>title</b>: Receive Acknowledgement - Transient Error</p><p><b>status</b>: active</p><p><b>date</b>: 2023-05-25</p><p><b>publisher</b>: MedCom</p><p><b>contact</b>: MedCom: <a href=\"mailto:mailto:fhir@medcom.dk\">mailto:fhir@medcom.dk</a></p><p><b>description</b>: Receive Acknowledgement - Transient Error</p><p><b>copyright</b>: MedCom 2023</p><h3>Origins</h3><table class=\"grid\"><tr><td>-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td>*</td><td>1</td><td>FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null')</td></tr></table><h3>Destinations</h3><table class=\"grid\"><tr><td>-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td>*</td><td>1</td><td>FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null')</td></tr></table><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>create-transient-error-01</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href=\"/FHIRSandbox/MedCom/Acknowledgement/draft/Receive/Fixtures/Acknowledgement-fixture-transient-error.xml\">/FHIRSandbox/MedCom/Acknowledgement/draft/Receive/Fixtures/Acknowledgement-fixture-transient-error.xml</a></p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: destinationUri-transient-error</p><p><b>expression</b>: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint</p><p><b>sourceId</b>: create-transient-error-01</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: bundleid-transient-error-01</p><p><b>expression</b>: Bundle.id</p><p><b>sourceId</b>: create-transient-error-01</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: messageHeaderid-transient-error</p><p><b>expression</b>: Bundle.entry[0].fullUrl</p><p><b>sourceId</b>: create-transient-error-01</p></blockquote><blockquote><p><b>setup</b></p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td>-</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>*</td><td>Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null')</td><td>Bundle</td><td>System-generated search and delete operations from conditional delete on Bundle MessageHeader.destination.endpoint</td><td>xml</td><td>true</td><td>?message.destination-uri=${destinationUri-transient-error}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>ContentType</b></td><td><b>EncodeRequestUrl</b></td><td><b>SourceId</b></td></tr><tr><td>*</td><td>Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null')</td><td>Bundle</td><td>Create the Bundle resource in XML format on the destination server.</td><td>xml</td><td>xml</td><td>true</td><td>create-transient-error-01</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>ContentType</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>SourceId</b></td></tr><tr><td>*</td><td>Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null')</td><td>Bundle</td><td>Update the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-transient-error-01.</td><td>xml</td><td>xml</td><td>true</td><td>/${bundleid-transient-error-01}</td><td>create-transient-error-01</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td>-</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>*</td><td>Confirm that the returned HTTP status is okay or created.</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>message-read-transient-error-01</blockquote><p><b>name</b>: Get a transient-error message 01</p><p><b>description</b>: GET a message. The expected response is a 200(OK) with a payload of the message resource in XML format.</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>Destination</b></td><td><b>EncodeRequestUrl</b></td><td><b>Origin</b></td><td><b>Params</b></td></tr><tr><td>*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>Bundle</td><td>Receive message</td><td>xml</td><td>1</td><td>true</td><td>1</td><td>/${bundleid-transient-error-01}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td>-</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>*</td><td>Confirm that the returned HTTP status is okay or created.</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote></blockquote></div>"
  },
  "url" : "http://medcomfhir.dk/ig/acknowledgementtestscript/acknowledgement-receive-transient-error",
  "version" : "2.0.0",
  "name" : "AcknowledgementTestScript",
  "title" : "Receive Acknowledgement - Transient Error",
  "status" : "active",
  "date" : "2023-05-25",
  "publisher" : "MedCom",
  "contact" : [
    {
      "name" : "MedCom",
      "telecom" : [
        {
          "system" : "email",
          "value" : "mailto:fhir@medcom.dk"
        }
      ]
    }
  ],
  "description" : "Receive Acknowledgement - Transient Error",
  "copyright" : "MedCom 2023",
  "origin" : [
    {
      "index" : 1,
      "profile" : {
        "system" : "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types",
        "code" : "FHIR-Client"
      }
    }
  ],
  "destination" : [
    {
      "index" : 1,
      "profile" : {
        "system" : "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
        "code" : "FHIR-Server"
      }
    }
  ],
  "fixture" : [
    {
      "id" : "create-transient-error-01",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        "reference" : "/FHIRSandbox/MedCom/Acknowledgement/draft/Receive/Fixtures/Acknowledgement-fixture-transient-error.xml"
      }
    }
  ],
  "variable" : [
    {
      "name" : "destinationUri-transient-error",
      "expression" : "Bundle.entry.resource.ofType(MessageHeader).destination.endpoint",
      "sourceId" : "create-transient-error-01"
    },
    {
      "name" : "bundleid-transient-error-01",
      "expression" : "Bundle.id",
      "sourceId" : "create-transient-error-01"
    },
    {
      "name" : "messageHeaderid-transient-error",
      "expression" : "Bundle.entry[0].fullUrl",
      "sourceId" : "create-transient-error-01"
    }
  ],
  "setup" : {
    "action" : [
      {
        "operation" : {
          "type" : {
            "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
            "code" : "delete"
          },
          "resource" : "Bundle",
          "description" : "System-generated search and delete operations from conditional delete on Bundle MessageHeader.destination.endpoint",
          "accept" : "xml",
          "encodeRequestUrl" : true,
          "params" : "?message.destination-uri=${destinationUri-transient-error}"
        }
      },
      {
        "operation" : {
          "type" : {
            "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
            "code" : "create"
          },
          "resource" : "Bundle",
          "description" : "Create the Bundle resource in XML format on the destination server.",
          "accept" : "xml",
          "contentType" : "xml",
          "encodeRequestUrl" : true,
          "sourceId" : "create-transient-error-01"
        }
      },
      {
        "operation" : {
          "type" : {
            "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
            "code" : "updateCreate"
          },
          "resource" : "Bundle",
          "description" : "Update the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-transient-error-01.",
          "accept" : "xml",
          "contentType" : "xml",
          "encodeRequestUrl" : true,
          "params" : "/${bundleid-transient-error-01}",
          "sourceId" : "create-transient-error-01"
        }
      },
      {
        "assert" : {
          "description" : "Confirm that the returned HTTP status is okay or created.",
          "direction" : "response",
          "operator" : "in",
          "responseCode" : "200,201",
          "warningOnly" : false
        }
      }
    ]
  },
  "test" : [
    {
      "id" : "message-read-transient-error-01",
      "name" : "Get a transient-error message 01",
      "description" : "GET a message. The expected response is a 200(OK) with a payload of the message resource in XML format.",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Bundle",
            "description" : "Receive message",
            "accept" : "xml",
            "destination" : 1,
            "encodeRequestUrl" : true,
            "origin" : 1,
            "params" : "/${bundleid-transient-error-01}"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned HTTP status is okay or created.",
            "direction" : "response",
            "operator" : "in",
            "responseCode" : "200,201",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}