fix problem with R3 expansion
This commit is contained in:
parent
bd1b90b9a5
commit
f31b611e93
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue