You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I extended LFCodeableConcept and LFCoding locally (actually just modified part of the description) and then used them in LFPatient. When I used this Profile to generate PEDefinition, I found that the save method did not work properly. It still generatesCodeableConcept and Coding, but the field types are LFCodeableConcept and LFCoding
//some codeprivateList<LFCoding> codings = newArrayList<>();
//some codepublicvoidsave(PEInstancetgt, booleannulls) {
tgt.clear("extension");
for (Extensionitem : extensions) {
tgt.addChild("extension", item);
}
tgt.clear("coding");
for (LFCodingitem : codings) {
tgt.addChild("coding", item);
//Actually, it should be//item.save(tgt.makeChild("coding"), false);
}
}
The question is repeated
I extended LFCodeableConcept and LFCoding locally (actually just modified part of the description) and then used them in LFPatient. When I used this Profile to generate PEDefinition, I found that the save method did not work properly. It still generates
CodeableConcept
andCoding
, but the field types are LFCodeableConcept and LFCodingSolution
Through the phenomenon of the problem, I debug the code and find that the problem is
genSave
, the detailed code is here: https://github.com/hapifhir/org.hl7.fhir.core/blob/master/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/profilemodel/gen/PECodeGenerator.java#L456So I copied the Extension and added a bit of processing, and now it works:
The text was updated successfully, but these errors were encountered: