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
Official URL: http://medcomfhir.dk/ig/conditionlisttestscript/maximum-example | Version: 0.1.0 | |||
Active as of 2025-04-01 | Computable Name: ConditionListTestScript | |||
Copyright/Legal: MedCom 2025 |
Validate that a ConditionList contains a condition with all content, including optional, present and that these elements specifically contains: category:status = 723506003 (resolved), category:type = encounter-diagnosis, clinicalStatus = resolved. No note (DA: Tillægstekst) must be present.
Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript
url: TestScript Send: ConditionList_Testscript_Send-max-example
version: 0.1.0
name: ConditionListTestScript
title: Send: ConditionList_Testscript_Send-max-example
status: Active
date: 2025-04-01
publisher: MedCom
contact: MedCom: www.medcom.dk
description:
Validate that a ConditionList contains a condition with all content, including optional, present and that these elements specifically contains: category:status = 723506003 (resolved), category:type = encounter-diagnosis, clinicalStatus = resolved. No note (DA: Tillægstekst) must be present.
copyright:
MedCom 2025
Index | Profile |
1 | Test script profile origin type FHIR-Client: FHIR Client |
Index | Profile |
1 | Test script profile destination type FHIR-Server: FHIR Server |
fixture
id
create-CList-01autocreate: false
autodelete: false
resource:
./fixtures/fixtures.json
profile: http://medcomfhir.dk/ig/conditionlist/StructureDefinition/medcom-conditionlist-bundle
test
id
ConditionList-create-CList-01name: Create a ConditionList CList Message 01
description: Post ConditionList to the server.
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin ResponseId SourceId Test script operation code create: Create Bundle Post a ConditionList 1 true 1 create-message-CList create-CList-01 action
Asserts
Description Direction Resource WarningOnly Confirm that the client request payload contains a Bundle resource type. request Bundle false action
Asserts
Description Direction Operator ResponseCode WarningOnly Confirm that the returned HTTP status is okay or created. response in 200,201 false action
Asserts
Description Direction ValidateProfileId WarningOnly Validate the bundle against medcomConditionList profile request MedComConditionListBundle false action
Asserts
Description Direction Expression WarningOnly ConfValidate that the SKS-D codes, including code, system, and if available, display value. request Bundle.entry.resource.ofType(Condition).code.coding.where(select(system = 'urn:oid:1.2.208.176.2.4.12' and code.exists() )).count() = Bundle.entry.resource.ofType(Condition).count() false action
Asserts
Description Direction Expression WarningOnly Validate that there is a display value attached to all SKS codes request Bundle.entry.resource.ofType(Condition).code.coding.where(system = 'urn:oid:1.2.208.176.2.4.12').display.count() = Bundle.entry.resource.ofType(Condition).code.coding.where(system = 'urn:oid:1.2.208.176.2.4.12').count() true action
Asserts
Description Direction Expression WarningOnly Validate existance of ICPC-2 codes, including code, system, and if available, display value. request Bundle.entry.resource.ofType(Condition).code.coding.where(system = 'urn:oid:1.2.208.176.2.31').select(code | system | display).count() > 1 false action
Asserts
Description Direction Expression WarningOnly Validate that there is a display value attached to all ICPC2 codes request Bundle.entry.resource.ofType(Condition).code.coding.where(system = 'urn:oid:1.2.208.176.2.31').display.count() = Bundle.entry.resource.ofType(Condition).code.coding.where(system = 'urn:oid:1.2.208.176.2.31').count() true action
Asserts
Description Direction Expression WarningOnly Validate that a code.text (DA: diagnosetekst) exists request Bundle.entry.resource.ofType(Condition).code.text.exists() false action
Asserts
Description Direction Expression WarningOnly Validate the existance of category:status system = http://snomed.info/sct and code = 723506003 request Bundle.entry.resource.ofType(Condition).category.coding.where(system = 'http://snomed.info/sct' and code = '723506003').exists() false action
Asserts
Description Direction Expression WarningOnly Validate existance of category:type and that system = http://terminology.hl7.org/CodeSystem/condition-category and code = problem-list-item request Bundle.entry.resource.ofType(Condition).category.coding.where(system = 'http://terminology.hl7.org/CodeSystem/condition-category' and code = 'problem-list-item' ).exists() false action
Asserts
Description Direction Expression WarningOnly Validate existance of onsetDateTime request Bundle.entry.resource.ofType(Condition).onset.exists() false action
Asserts
Description Direction Expression WarningOnly Validate existance of abatementDateTime request Bundle.entry.resource.ofType(Condition).abatement.exists() false action
Asserts
Description Direction Expression WarningOnly Validate existance of recordedDate request Bundle.entry.resource.ofType(Condition).recordedDate.exists() false action
Asserts
Description Direction Expression WarningOnly Validate existance of clinicalStatus coding code exists request Bundle.entry.resource.ofType(Condition).clinicalStatus.coding.code.exists() true action
Asserts
Description Direction Expression WarningOnly Validate existance of clinicalStatus coding system exists request Bundle.entry.resource.ofType(Condition).clinicalStatus.coding.system.exists() true action
Asserts
Description Direction Expression WarningOnly It is not allowed to share a Condition.note.text (Danish: Tillægstekst). Validate that a document is made without any conditions containing a Condition.note.text. request Bundle.entry.resource.ofType(Condition).note.text.exists().not() false