โณ TS-13 - Durations
See if software in test can handle the formats of duration possible in KMEHR, authorized by MS Cookbook :
Example
...
<transaction>
...
<item>
<id S="ID-KMEHR" SV="1.0">2</id>
<cd S="CD-ITEM" SV="1.11">medication</cd>
...
<beginmoment>
<date>2023-01-01</date>
</beginmoment>
...
<!-- The focus of the test -->
<duration>
<decimal>5</decimal>
<unit>
<cd S="CD-TIMEUNIT" SV="2.0">d</cd>
</unit>
</duration>
...
</item>
...
</transaction>
...
Test casesโ
- All values of CD-TIMEUNIT, authorized by MS Cookbook
- Medication lines suspended by
<duration>
Filesโ
Expected resultsโ
When looking to the patient medication scheme, all these criterias must be fulfilled :
- All values of CD-TIMEUNIT, authorized by MS Cookbook must be supported and have the correct start & end period :
- Timeline
- Mermaid code
timeline
title CD-TIMEUNIT values
Drug 0002 (with "ms" unit)
: "2023-01-01T00ห00ห00"
: "2023-01-01T00ห00ห05"
Drug 0003 (with "us" unit)
: "2023-01-01T00ห00ห00"
: "2023-01-01T00ห00ห00.005"
Drug 0004 (with "ns" unit)
: "2023-01-01T00ห00ห00"
: "2023-01-01T00ห00ห00.000005"
Drug 0005 (with "s" unit)
: "2023-01-01T00ห00ห00"
: "2023-01-01T00ห00ห05"
Drug 0006 (with "min" unit)
: "2023-01-01T00ห00ห00"
: "2023-01-01T00ห05ห00"
Drug 0007 (with "hr" unit)
: "2023-01-01T00ห00ห00"
: "2023-01-01T05ห00ห00"
Drug 0008 (with "d" unit)
: "2023-01-01T00ห00ห00"
: "2023-01-06T00ห00ห00"
Drug 0009 (with "wk" unit)
: "2023-01-01T00ห00ห00"
: "2023-02-05T00ห00ห00"
Drug 0010 (with "mo" unit)
: "2023-01-01T00ห00ห00"
: "2023-06-01T00ห00ห00"
Drug 0011 (with "a" unit)
: "2023-01-01T00ห00ห00"
: "2028-01-01T00ห00ห00"
- Medication line suspended by
<duration>
must be supported and have the correct start & end periods :