fix erroneous R5 FHIRpath constraint (" -> ')
This commit is contained in:
parent
098b8d5520
commit
59320a56fc
|
@ -25,6 +25,9 @@ public class FHIRPathExpressionFixer {
|
||||||
if ("generated='generated' implies source.empty()".equals(expr)) {
|
if ("generated='generated' implies source.empty()".equals(expr)) {
|
||||||
return "generation='generated' implies source.empty()";
|
return "generation='generated' implies source.empty()";
|
||||||
}
|
}
|
||||||
|
if (expr.equals("binding.empty() or type.code.empty() or type.code.contains(\":\") or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'string') or (code = 'uri') or (code = 'Duration')).exists()")) {
|
||||||
|
return "binding.empty() or type.code.empty() or type.code.contains(':') or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'string') or (code = 'uri') or (code = 'Duration')).exists()";
|
||||||
|
}
|
||||||
// fixes to string functions in FHIRPath
|
// fixes to string functions in FHIRPath
|
||||||
// ref-1
|
// ref-1
|
||||||
if (expr.equals("reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource)")) { // R5
|
if (expr.equals("reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource)")) { // R5
|
||||||
|
|
Loading…
Reference in New Issue