fix json parsing of CDA

This commit is contained in:
Grahame Grieve 2023-10-13 12:39:44 +11:00
parent 33bd589fd7
commit 5f9b169261

View File

@ -220,7 +220,7 @@ public abstract class ParserBase {
}
}
for (StructureDefinition sd : context.fetchResourcesByType(StructureDefinition.class)) {
if (name.equals(sd.getType()) && sd.getDerivation() == TypeDerivationRule.SPECIALIZATION) {
if (name.equals(sd.getTypeName()) && sd.getDerivation() == TypeDerivationRule.SPECIALIZATION) {
new ContextUtilities(context).generateSnapshot(sd);
return sd;
}