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

TestScript: Acknowledgement_TestScript_receive-OK

Official URL: http://medcomfhir.dk/ig/acknowledgementtestscript/acknowledgement-receive-ok Version: 2.0.0
Active as of 2023-05-25 Responsible: MedCom Computable Name: AcknowledgementTestScript

Copyright/Legal: MedCom 2023

Receive Acknowledgement - OK

Generated Narrative: TestScript

Resource TestScript "acknowledgement-receive-ok"

Profile: AEGIS Touchstone Testing TestScript Profile

url: http://medcomfhir.dk/ig/acknowledgementtestscript/acknowledgement-receive-ok

version: 2.0.0

name: AcknowledgementTestScript

title: Receive Acknowledgement - OK

status: active

date: 2023-05-25

publisher: MedCom

contact: MedCom: mailto:fhir@medcom.dk

description: Receive Acknowledgement - OK

copyright: MedCom 2023

Origins

-IndexProfile
*1FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null')

Destinations

-IndexProfile
*1FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null')

fixture

id

create-ok-01

autocreate: false

autodelete: false

resource: /FHIRSandbox/MedCom/Acknowledgement/draft/Receive/Fixtures/Acknowledgement-fixture-ok.xml

variable

name: destinationUri-ok

expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint

sourceId: create-ok-01

variable

name: bundleid-ok-01

expression: Bundle.id

sourceId: create-ok-01

variable

name: messageHeaderid-ok

expression: Bundle.entry[0].fullUrl

sourceId: create-ok-01

setup

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null')BundleSystem-generated search and delete operations from conditional delete on Bundle MessageHeader.destination.endpointxmltrue?message.destination-uri=${destinationUri-ok}

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlSourceId
*Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null')BundleCreate the Bundle resource in XML format on the destination server.xmlxmltruecreate-ok-01

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlParamsSourceId
*Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null')BundleUpdate the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-ok-01.xmlxmltrue/${bundleid-ok-01}create-ok-01

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false

test

id

message-read-ok-01

name: Get a ok message 01

description: GET a message. The expected response is a 200(OK) with a payload of the message resource in XML format.

action

Operations

-TypeResourceDescriptionAcceptDestinationEncodeRequestUrlOriginParams
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')BundleReceive messagexml1true1/${bundleid-ok-01}

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false