Fix issue processing CDA generic type names

This commit is contained in:
Grahame Grieve 2024-04-12 22:14:31 +10:00
parent 30a532f23b
commit 63852b4082
1 changed files with 5 additions and 1 deletions

View File

@ -5062,7 +5062,11 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
if (type.startsWith("http://hl7.org/fhir/StructureDefinition/")) {
return typeTail(type);
} else if (type.startsWith("http://hl7.org/cda/stds/core/StructureDefinition/")) {
return "CDA."+typeTail(type);
String tt = typeTail(type);
if (tt.contains("-")) {
tt = '`'+tt.replace("-", "_")+'`';
}
return "CDA."+tt;
} else {
return typeTail(type); // todo?
}