Validating against terminology server is bringing in some new problems with profiles.
Trying to validate a ITK Medication e.g.
<Medication>
<id value="46c1a1b6-c2a5-44bc-a0df-80db5d4fb423"/>
<meta>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Medication-1"/>
</meta>
<code>
<coding>
<system value="http://snomed.info/sct"/>
<code value="117111000001108"/>
<display value="Fresubin Energy Fibre liquid unflavoured (Fresenius Kabi Ltd)"/>
</coding>
</code>
<form>
<coding>
<system value="http://snomed.info/sct"/>
<code value="35367711000001100"/>
<display value="Gastroenteral liquid"/>
</coding>
</form>
</Medication>
Results in this from the ontology server.
<issue>
<severity value="warning"/>
<code value="processing"/>
<diagnostics value="Error HTTP 422 : [157778bb-610d-4ea2-9ae1-80b1ae9922d4]: The expansion of value set http://snomed.info/sct/999000031000000106/version/20180321?fhir_vs=ecl/(^999000541000001108 |National Health Service dictionary of medicines and devices actual medicinal product simple reference set| OR ^999000551000001106 |National Health Service dictionary of medicines and devices actual medicinal product pack simple reference set| OR ^999000561000001109 |National Health Service dictionary of medicines and devices virtual medicinal product simple reference set| OR ^999000571000001104 |National Health Service dictionary of medicines and devices virtual medicinal product pack simple reference set| OR ^999000581000001102 |National Health Service dictionary of medicines and devices virtual therapeutic moiety simple reference set|) was too costly. validating CodeableConcept"/>
<location value="Medication.code"/>
</issue>
The expansion was too costly. Anyone know of a better ecl statement?? (I think the solution is to remove the valueSet from the profile though)