Just released a new version, which deals with domain types (one being DvQuantity). I haven’t seen any example with units, so probably is not yet core. Will have a look to the extension. Do you have a link to it?
For the text vs string, do you think there could be some kind of decision tree to choose one or the other? (e.g. if we have answerOption it should be a string).
I’ll have a look at the enableBehaviour & linkid issue
That seems to make sense. Just so you know, my openEHR knowledge is currently very limited so I am not very aware of the different data types and/or structures.
The length of text elements are left up to the implementers when we construct archetypes and templates, it’s not possible (or IMO desirable) to do it in the information model.
I’m not sure I understand the significance of the text/string division? I’ve found the definition of String, but I’m struggling to find Text…
string - Question with a short (few words to short sentence) free-text entry answer (valueString).
text - Question with a long (potentially multi-paragraph) free-text entry answer (valueString).
This means that our form rendrer will render a text data type as a textarea, and a string a an input
I mean, instead of the loinc bindings, treat the original openEHR object as what’s giving the meaning. The units part with answerOption I think it’s ok
The URI may be an OID (urn:oid:…) or a UUID (urn:uuid:…). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7’s list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
I’ve added two examples generated from that OPT, one where the code values are included, and one where they are missing
Example of ValueSet missing code values:
<?xml version="1.0" encoding="UTF-8"?>
<ValueSet xmlns="http://hl7.org/fhir">
<id value="ValueSet-report-v1-_testname_en_-R4"/>
<meta>
<profile value="http://hl7.org/fhir/StructureDefinition/shareablevalueset"/>
</meta>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<p> Value set *Test name (en). *The name of the imaging examination or procedure performed. (en)</p>
<p> Developed by: openEHR community</p>
<p> Generated with LinkEHR</p>
<p> This value set includes codes from terminology NCRP</p>
<ul>
<li>SSC0AA: </li>
</ul>
</div>
</text>
<url value="http://linkehr.com/fhir/ValueSet-report-v1-_testname_en_-R4"/>
<version value="20200428"/>
<name value="*Test name (en)"/>
<status value="active"/>
<experimental value="false"/>
<publisher value="openEHR"/>
<description value="*The name of the imaging examination or procedure performed. (en)"/>
<compose>
<include>
<system value="http://openehr.org/ckm/archetypes/openEHR-EHR-OBSERVATION.imaging_exam_result.v0"/>
<concept>
<code value=""/>
<display value=""/>
</concept>
</include>
</compose>
</ValueSet>
Example of ValueSet not missing code values:
<?xml version="1.0" encoding="UTF-8"?>
<ValueSet xmlns="http://hl7.org/fhir">
<id value="ValueSet-report-v1-erdetnoentilstandertilstede_-R4"/>
<meta>
<profile value="http://hl7.org/fhir/StructureDefinition/shareablevalueset"/>
</meta>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<p> Value set Er det noen tilstander tilstede?. Tilstedeværelse av relevante tilstander.</p>
<p> Developed by: openEHR community</p>
<p> Generated with LinkEHR</p>
<p> This value set includes codes from archetype openEHR-EHR-COMPOSITION.report.v1 internal terminology</p>
<ul>
<li>at0031: Tilstede</li>
<li>at0032: Fraværende</li>
<li>at0033: Ukjent</li>
</ul>
</div>
</text>
<url value="http://linkehr.com/fhir/ValueSet-report-v1-erdetnoentilstandertilstede_-R4"/>
<version value="20200428"/>
<name value="Er det noen tilstander tilstede?"/>
<status value="active"/>
<experimental value="false"/>
<publisher value="openEHR"/>
<description value="Tilstedeværelse av relevante tilstander."/>
<compose>
<include>
<system value="http://openehr.org/ckm/archetypes/openEHR-EHR-OBSERVATION.condition_screening.v0"/>
<concept>
<code value="at0031"/>
<display value="Tilstede"/>
</concept>
<concept>
<code value="at0032"/>
<display value="Fraværende"/>
</concept>
<concept>
<code value="at0033"/>
<display value="Ukjent"/>
</concept>
</include>
</compose>
</ValueSet>