finish removing population type
This commit is contained in:
parent
f98c2b2f03
commit
fcd6484657
|
@ -57,7 +57,6 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Meta40_50;
|
|||
import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Narrative40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.resources40_50.MarketingStatus40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.resources40_50.Population40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.resources40_50.ProdCharacteristic40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.resources40_50.ProductShelfLife40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.resources40_50.SubstanceAmount40_50;
|
||||
|
@ -151,8 +150,6 @@ public class Type40_50 {
|
|||
return ParameterDefinition40_50.convertParameterDefinition((org.hl7.fhir.r4.model.ParameterDefinition) src);
|
||||
if (src instanceof org.hl7.fhir.r4.model.Period)
|
||||
return Period40_50.convertPeriod((org.hl7.fhir.r4.model.Period) src);
|
||||
if (src instanceof org.hl7.fhir.r4.model.Population)
|
||||
return Population40_50.convertPopulation((org.hl7.fhir.r4.model.Population) src);
|
||||
if (src instanceof org.hl7.fhir.r4.model.ProdCharacteristic)
|
||||
return ProdCharacteristic40_50.convertProdCharacteristic((org.hl7.fhir.r4.model.ProdCharacteristic) src);
|
||||
if (src instanceof org.hl7.fhir.r4.model.ProductShelfLife)
|
||||
|
@ -272,8 +269,6 @@ public class Type40_50 {
|
|||
return ParameterDefinition40_50.convertParameterDefinition((org.hl7.fhir.r5.model.ParameterDefinition) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.Period)
|
||||
return Period40_50.convertPeriod((org.hl7.fhir.r5.model.Period) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.Population)
|
||||
return Population40_50.convertPopulation((org.hl7.fhir.r5.model.Population) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.ProdCharacteristic)
|
||||
return ProdCharacteristic40_50.convertProdCharacteristic((org.hl7.fhir.r5.model.ProdCharacteristic) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.ProductShelfLife)
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
package org.hl7.fhir.convertors.conv40_50.resources40_50;
|
||||
|
||||
import org.hl7.fhir.convertors.context.ConversionContext40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.datatypes40_50.BackboneElement40_50;
|
||||
import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public class Population40_50 {
|
||||
public static org.hl7.fhir.r5.model.Population convertPopulation(org.hl7.fhir.r4.model.Population src) throws FHIRException {
|
||||
if (src == null) return null;
|
||||
org.hl7.fhir.r5.model.Population tgt = new org.hl7.fhir.r5.model.Population();
|
||||
BackboneElement40_50.copyBackboneElement(src, tgt);
|
||||
if (src.hasAge()) tgt.setAge(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getAge()));
|
||||
if (src.hasGender()) tgt.setGender(CodeableConcept40_50.convertCodeableConcept(src.getGender()));
|
||||
if (src.hasRace()) tgt.setRace(CodeableConcept40_50.convertCodeableConcept(src.getRace()));
|
||||
if (src.hasPhysiologicalCondition())
|
||||
tgt.setPhysiologicalCondition(CodeableConcept40_50.convertCodeableConcept(src.getPhysiologicalCondition()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
public static org.hl7.fhir.r4.model.Population convertPopulation(org.hl7.fhir.r5.model.Population src) throws FHIRException {
|
||||
if (src == null) return null;
|
||||
org.hl7.fhir.r4.model.Population tgt = new org.hl7.fhir.r4.model.Population();
|
||||
BackboneElement40_50.copyBackboneElement(src, tgt);
|
||||
if (src.hasAge()) tgt.setAge(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getAge()));
|
||||
if (src.hasGender()) tgt.setGender(CodeableConcept40_50.convertCodeableConcept(src.getGender()));
|
||||
if (src.hasRace()) tgt.setRace(CodeableConcept40_50.convertCodeableConcept(src.getRace()));
|
||||
if (src.hasPhysiologicalCondition())
|
||||
tgt.setPhysiologicalCondition(CodeableConcept40_50.convertCodeableConcept(src.getPhysiologicalCondition()));
|
||||
return tgt;
|
||||
}
|
||||
}
|
|
@ -57,7 +57,6 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Meta43_50;
|
|||
import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Narrative43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.resources43_50.MarketingStatus43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.resources43_50.Population43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.resources43_50.ProdCharacteristic43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.resources43_50.ProductShelfLife43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.resources43_50.SubstanceAmount43_50;
|
||||
|
@ -151,8 +150,6 @@ public class Type43_50 {
|
|||
return ParameterDefinition43_50.convertParameterDefinition((org.hl7.fhir.r4b.model.ParameterDefinition) src);
|
||||
if (src instanceof org.hl7.fhir.r4b.model.Period)
|
||||
return Period43_50.convertPeriod((org.hl7.fhir.r4b.model.Period) src);
|
||||
if (src instanceof org.hl7.fhir.r4b.model.Population)
|
||||
return Population43_50.convertPopulation((org.hl7.fhir.r4b.model.Population) src);
|
||||
if (src instanceof org.hl7.fhir.r4b.model.ProdCharacteristic)
|
||||
return ProdCharacteristic43_50.convertProdCharacteristic((org.hl7.fhir.r4b.model.ProdCharacteristic) src);
|
||||
if (src instanceof org.hl7.fhir.r4b.model.ProductShelfLife)
|
||||
|
@ -270,8 +267,6 @@ public class Type43_50 {
|
|||
return ParameterDefinition43_50.convertParameterDefinition((org.hl7.fhir.r5.model.ParameterDefinition) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.Period)
|
||||
return Period43_50.convertPeriod((org.hl7.fhir.r5.model.Period) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.Population)
|
||||
return Population43_50.convertPopulation((org.hl7.fhir.r5.model.Population) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.ProdCharacteristic)
|
||||
return ProdCharacteristic43_50.convertProdCharacteristic((org.hl7.fhir.r5.model.ProdCharacteristic) src);
|
||||
if (src instanceof org.hl7.fhir.r5.model.ProductShelfLife)
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
package org.hl7.fhir.convertors.conv43_50.resources43_50;
|
||||
|
||||
import org.hl7.fhir.convertors.context.ConversionContext43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.datatypes43_50.BackboneElement43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public class Population43_50 {
|
||||
public static org.hl7.fhir.r5.model.Population convertPopulation(org.hl7.fhir.r4b.model.Population src) throws FHIRException {
|
||||
if (src == null) return null;
|
||||
org.hl7.fhir.r5.model.Population tgt = new org.hl7.fhir.r5.model.Population();
|
||||
BackboneElement43_50.copyBackboneElement(src, tgt);
|
||||
if (src.hasAge()) tgt.setAge(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getAge()));
|
||||
if (src.hasGender()) tgt.setGender(CodeableConcept43_50.convertCodeableConcept(src.getGender()));
|
||||
if (src.hasRace()) tgt.setRace(CodeableConcept43_50.convertCodeableConcept(src.getRace()));
|
||||
if (src.hasPhysiologicalCondition())
|
||||
tgt.setPhysiologicalCondition(CodeableConcept43_50.convertCodeableConcept(src.getPhysiologicalCondition()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
public static org.hl7.fhir.r4b.model.Population convertPopulation(org.hl7.fhir.r5.model.Population src) throws FHIRException {
|
||||
if (src == null) return null;
|
||||
org.hl7.fhir.r4b.model.Population tgt = new org.hl7.fhir.r4b.model.Population();
|
||||
BackboneElement43_50.copyBackboneElement(src, tgt);
|
||||
if (src.hasAge()) tgt.setAge(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getAge()));
|
||||
if (src.hasGender()) tgt.setGender(CodeableConcept43_50.convertCodeableConcept(src.getGender()));
|
||||
if (src.hasRace()) tgt.setRace(CodeableConcept43_50.convertCodeableConcept(src.getRace()));
|
||||
if (src.hasPhysiologicalCondition())
|
||||
tgt.setPhysiologicalCondition(CodeableConcept43_50.convertCodeableConcept(src.getPhysiologicalCondition()));
|
||||
return tgt;
|
||||
}
|
||||
}
|
|
@ -339,18 +339,6 @@ public class TypeConvertor {
|
|||
throw new FHIRException("Unable to convert a "+b.fhirType()+"("+b.getClass().getName()+") to a CodeableConcept");
|
||||
}
|
||||
|
||||
public static Population castToPopulation(Base b) throws FHIRException {
|
||||
if (b == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (b instanceof Population)
|
||||
return (Population) b;
|
||||
else
|
||||
throw new FHIRException("Unable to convert a "+b.fhirType()+"("+b.getClass().getName()+") to a Population");
|
||||
}
|
||||
|
||||
|
||||
public static Coding castToCoding(Base b) throws FHIRException {
|
||||
if (b == null) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue