Skip to main content

๐Ÿšฆ TS-07 - begincondition / endcondition / endmoments

Descriptionโ€‹

See if software in test can handle begincondition / endcondition / endmoment elements and their usages, as stated in MS Cookbook :

Example
...
<transaction>
...
<item>
<id S="ID-KMEHR" SV="1.0">2</id>
<cd S="CD-ITEM" SV="1.11">medication</cd>
...
<!-- endmoment -->
<endmoment>
<!-- The focus on the test -->
<date>2022-05-10</date>
</endmoment>
</item>
<!-- begincondition -->
<item>
<id S="ID-KMEHR" SV="1.0">3</id>
<cd S="CD-ITEM" SV="1.11">healthcareelement</cd>
<content>
<cd S="CD-ITEM-MS" SV="1.0">begincondition</cd>
</content>
<content>
<!-- The focus on the test -->
<text L="nl">Begin condition instructions</text>
</content>
</item>
<!-- endcondition -->
<item>
<id S="ID-KMEHR" SV="1.0">3</id>
<cd S="CD-ITEM" SV="1.4">healthcareelement</cd>
<content>
<cd S="CD-ITEM-MS" SV="1.0">endcondition</cd>
</content>
<content>
<!-- The focus on the test -->
<text L="nl">End condition instructions</text>
</content>
</item>

...
</transaction>
...

Test casesโ€‹

Begin ConditionEnd ConditionEnd Moment
Drug 001falsefalsefalse
Drug 002truefalsefalse
Drug 003falsetruefalse
Drug 004truetruefalse
Drug 005falsefalsetrue
Drug 006truefalsetrue
Drug 007falsetruetrue
Drug 008truetruetrue

Filesโ€‹

Expected resultsโ€‹

For each medication of the test cases :

  • Medication must be present the May 5th, 2022
  • If End Date is specified, display it (e.g. "May 10, 2022")
  • If Begin Condition is specified, display it (e.g. "Begin condition 002")
  • If End Condition is specified, display it (e.g. "End condition 003")