fix problem with R3 expansion

This commit is contained in:
Grahame Grieve 2023-11-13 16:23:07 +11:00
parent bd1b90b9a5
commit f31b611e93
2 changed files with 8 additions and 6 deletions

View File

@ -216,9 +216,10 @@ public class Resource30_40 {
public org.hl7.fhir.dstu3.model.Resource convertResource(org.hl7.fhir.r4.model.Resource src, BaseAdvisor_30_40 advisor) throws FHIRException {
if (src == null) return null;
if (src instanceof org.hl7.fhir.r4.model.Parameters) {
if (((org.hl7.fhir.r4.model.Parameters) src).hasParameterValue("profile-url"))
return ExpansionProfile30_40.convertExpansionProfile((org.hl7.fhir.r4.model.Parameters) src);
else return Parameters30_40.convertParameters((org.hl7.fhir.r4.model.Parameters) src);
// if (((org.hl7.fhir.r4.model.Parameters) src).hasParameterValue("profile-url"))
// return ExpansionProfile30_40.convertExpansionProfile((org.hl7.fhir.r4.model.Parameters) src);
// else
return Parameters30_40.convertParameters((org.hl7.fhir.r4.model.Parameters) src);
}
if (src instanceof org.hl7.fhir.r4.model.Account)
return Account30_40.convertAccount((org.hl7.fhir.r4.model.Account) src);

View File

@ -292,9 +292,10 @@ public class Resource30_50 {
public org.hl7.fhir.dstu3.model.Resource convertResource(org.hl7.fhir.r5.model.Resource src) throws FHIRException {
if (src == null) return null;
if (src instanceof org.hl7.fhir.r5.model.Parameters) {
if (((org.hl7.fhir.r5.model.Parameters) src).hasParameterValue("profile-url"))
return ExpansionProfile30_50.convertExpansionProfile((org.hl7.fhir.r5.model.Parameters) src);
else return Parameters30_50.convertParameters((org.hl7.fhir.r5.model.Parameters) src);
// if (((org.hl7.fhir.r5.model.Parameters) src).hasParameterValue("profile-url"))
// return ExpansionProfile30_50.convertExpansionProfile((org.hl7.fhir.r5.model.Parameters) src);
// else
return Parameters30_50.convertParameters((org.hl7.fhir.r5.model.Parameters) src);
}
if (src instanceof org.hl7.fhir.r5.model.ActivityDefinition)
return ActivityDefinition30_50.convertActivityDefinition((org.hl7.fhir.r5.model.ActivityDefinition) src);