mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-09 14:31:17 +00:00
Fix issue processing CDA generic type names
This commit is contained in:
parent
30a532f23b
commit
63852b4082
@ -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?
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user