0.1.0 - ci-build

ConditionListtestscripts, published by MedCom. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/medcomdk/dk-medcom-ConditionList-test-scripts/ and changes regularly. See the Directory of published versions

TestScript: Conditionlist Testscript Unique Timestamp

Official URL: http://medcomfhir.dk/ig/conditionlisttestscript/Multiple-Conditions-Unique-Timestamp Version: 0.1.0
Active as of 2025-04-01 Computable Name: ConditionListTestScript

Copyright/Legal: MedCom 2025

Validate Bundle.timestamp for a ConditionList with multiple conditions to ensure that it is unique

Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript

url: TestScript Send: Conditionlist Testscript Unique Timestamp

version: 0.1.0

name: ConditionListTestScript

title: Send: Conditionlist Testscript Unique Timestamp

status: Active

date: 2025-04-01

publisher: MedCom

contact: MedCom: www.medcom.dk

description:

Validate Bundle.timestamp for a ConditionList with multiple conditions to ensure that it is unique

copyright:

MedCom 2025

Origins

-IndexProfile
*1Test script profile origin type FHIR-Client: FHIR Client

Destinations

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

fixture

id

create-CList-01

autocreate: false

autodelete: false

resource: ./fixtures/fixtures.json

profile: http://medcomfhir.dk/ig/conditionlist/StructureDefinition/medcom-conditionlist-bundle

test

id

ConditionList-create-CList-01

name: Create a ConditionList CList Message 01

description: Post ConditionList to the server.

action

Operations

-TypeResourceDescriptionDestinationEncodeRequestUrlOriginResponseIdSourceId
*Test script operation code create: CreateBundlePost a ConditionList1true1create-message-CListcreate-CList-01

action

Asserts

-DescriptionDirectionResourceWarningOnly
*Confirm that the client request payload contains a Bundle resource type.requestBundlefalse

action

Asserts

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

action

Asserts

-DescriptionDirectionValidateProfileIdWarningOnly
*Validate the bundle against medcomConditionList profilerequestMedComConditionListBundlefalse

action

Asserts

-DescriptionDirectionExpressionWarningOnly
*Confirm more that one entry with resourceType 'Condition' in bundlerequestBundle.entry.resource.ofType(Condition).count() > 1false

action

Asserts

-DescriptionDirectionExpressionWarningOnly
*Validate that bundle timestamp is not reused from other timestampsrequest(Bundle.entry.resource.ofType(Condition).select(recordedDate.toString() | onset.toString() | abatement.toString()) contains Bundle.timestamp.toString() ).not()false