* Add new copyBackboneElement methods Plus bring BackboneElement40_50 closer to matching Element40_50 * BackboneElement 40_50 * Undo replacement in commented code. * add new conv30_50 copyBackboneElement methods * BackboneElement 30_50 * add new conv30_40 copyBackboneElement methods * Fix typos + reference * BackboneElement 30_40 * add new conv14_50 copyBackboneElement methods * BackboneElement 14_50 * add new conv14_40 copyBackboneElement methods * BackboneElement 14_40 * add new conv14_30 copyBackboneElement methods * BackboneElement 14_30 * add new conv10_50 copyBackboneElement methods * BackboneElement 10_50 * Add new conv10_40 copyBackboneElement methods * BackboneElement 10_40 * Add new conv10_30 copyBackboneElement methods * BackboneElement 10_30 * Remove incorrect, commented code * Add minimal examples for backbone element tests * Add test code Co-authored-by: dotasek <david.otasek@smilecdr.com>
This commit is contained in:
parent
a221e6b009
commit
b213d00f6d
|
@ -2,9 +2,11 @@ package org.hl7.fhir.convertors.conv10_30;
|
|||
|
||||
import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30;
|
||||
import org.hl7.fhir.convertors.context.ConversionContext10_30;
|
||||
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.BackboneElement10_30;
|
||||
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Element10_30;
|
||||
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Type10_30;
|
||||
import org.hl7.fhir.convertors.conv10_30.resources10_30.Resource10_30;
|
||||
import org.hl7.fhir.convertors.conv10_40.datatypes10_40.BackboneElement10_40;
|
||||
import org.hl7.fhir.dstu2.model.CodeableConcept;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
|
@ -42,12 +44,15 @@ public class VersionConvertor_10_30 {
|
|||
|
||||
private final BaseAdvisor_10_30 advisor;
|
||||
private final Element10_30 elementConvertor;
|
||||
|
||||
private final BackboneElement10_30 backboneElementConvertor;
|
||||
private final Resource10_30 resourceConvertor;
|
||||
private final Type10_30 typeConvertor;
|
||||
|
||||
public VersionConvertor_10_30(@Nonnull BaseAdvisor_10_30 advisor) {
|
||||
this.advisor = advisor;
|
||||
this.elementConvertor = new Element10_30(advisor);
|
||||
this.backboneElementConvertor = new BackboneElement10_30();
|
||||
this.resourceConvertor = new Resource10_30(advisor);
|
||||
this.typeConvertor = new Type10_30(advisor);
|
||||
}
|
||||
|
@ -136,4 +141,15 @@ public class VersionConvertor_10_30 {
|
|||
elementConvertor.copyElement(src, tgt, ConversionContext10_30.INSTANCE.path(), var);
|
||||
}
|
||||
|
||||
public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu3.model.BackboneElement src,
|
||||
@Nonnull org.hl7.fhir.dstu2.model.BackboneElement tgt,
|
||||
String... var) throws FHIRException {
|
||||
backboneElementConvertor.copyBackboneElement(src, tgt, var);
|
||||
}
|
||||
|
||||
public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2.model.BackboneElement src,
|
||||
@Nonnull org.hl7.fhir.dstu3.model.BackboneElement tgt,
|
||||
String... var) throws FHIRException {
|
||||
backboneElementConvertor.copyBackboneElement(src, tgt, var);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package org.hl7.fhir.convertors.conv10_30.datatypes10_30;
|
||||
|
||||
import org.hl7.fhir.convertors.context.ConversionContext10_30;
|
||||
import org.hl7.fhir.convertors.context.ConversionContext10_40;
|
||||
import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Extension10_40;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public class BackboneElement10_30 {
|
||||
static public void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src,
|
||||
org.hl7.fhir.dstu3.model.BackboneElement tgt,
|
||||
String ... var) throws FHIRException {
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt, var);
|
||||
for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_30.convertExtension(e));
|
||||
}
|
||||
}
|
||||
|
||||
static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src,
|
||||
org.hl7.fhir.dstu2.model.BackboneElement tgt,
|
||||
String ... var) throws FHIRException {
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt, var);
|
||||
for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_30.convertExtension(e));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -60,9 +60,7 @@ public class AllergyIntolerance10_30 {
|
|||
if (src == null)
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Extension extension : src.getModifierExtension())
|
||||
tgt.addExtension(Extension10_30.convertExtension(extension));
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSubstance())
|
||||
tgt.setSubstance(CodeableConcept10_30.convertCodeableConcept(src.getSubstance()));
|
||||
if (src.hasCertainty())
|
||||
|
|
|
@ -74,7 +74,7 @@ public class Appointment10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasActor())
|
||||
|
@ -90,7 +90,7 @@ public class Appointment10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasActor())
|
||||
|
|
|
@ -121,7 +121,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole())
|
||||
tgt.addRole(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasReference())
|
||||
|
@ -150,7 +150,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole())
|
||||
tgt.addRole(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasReference())
|
||||
|
@ -179,7 +179,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAddressElement())
|
||||
tgt.setAddressElement(String10_30.convertString(src.getAddressElement()));
|
||||
if (src.hasType())
|
||||
|
@ -191,7 +191,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAddressElement())
|
||||
tgt.setAddressElement(String10_30.convertString(src.getAddressElement()));
|
||||
if (src.hasType())
|
||||
|
@ -203,7 +203,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasReference())
|
||||
|
@ -230,7 +230,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasReference())
|
||||
|
@ -257,7 +257,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(String10_30.convertString(src.getTypeElement()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -269,7 +269,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(String10_30.convertString(src.getTypeElement()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -387,7 +387,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSiteElement())
|
||||
tgt.setSiteElement(String10_30.convertString(src.getSiteElement()));
|
||||
if (src.hasIdentifier())
|
||||
|
@ -400,7 +400,7 @@ public class AuditEvent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSiteElement())
|
||||
tgt.setSiteElement(String10_30.convertString(src.getSiteElement()));
|
||||
if (src.hasIdentifier())
|
||||
|
|
|
@ -55,7 +55,7 @@ public class Bundle10_30 {
|
|||
if (advisor.ignoreEntry(src, FhirPublication.DSTU2))
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())
|
||||
tgt.addLink(convertBundleLinkComponent(t));
|
||||
if (src.hasFullUrlElement())
|
||||
|
@ -79,7 +79,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink())
|
||||
tgt.addLink(convertBundleLinkComponent(t));
|
||||
if (src.hasFullUrlElement())
|
||||
|
@ -99,7 +99,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMethod())
|
||||
tgt.setMethodElement(convertHTTPVerb(src.getMethodElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -119,7 +119,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMethod())
|
||||
tgt.setMethodElement(convertHTTPVerb(src.getMethodElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -139,7 +139,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatusElement())
|
||||
tgt.setStatusElement(String10_30.convertString(src.getStatusElement()));
|
||||
if (src.hasLocationElement())
|
||||
|
@ -155,7 +155,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatusElement())
|
||||
tgt.setStatusElement(String10_30.convertString(src.getStatusElement()));
|
||||
if (src.hasLocationElement())
|
||||
|
@ -171,7 +171,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertSearchEntryMode(src.getModeElement()));
|
||||
if (src.hasScoreElement())
|
||||
|
@ -183,7 +183,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertSearchEntryMode(src.getModeElement()));
|
||||
if (src.hasScoreElement())
|
||||
|
@ -195,7 +195,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasRelationElement())
|
||||
tgt.setRelationElement(String10_30.convertString(src.getRelationElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -207,7 +207,7 @@ public class Bundle10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasRelationElement())
|
||||
tgt.setRelationElement(String10_30.convertString(src.getRelationElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
|
|
@ -69,7 +69,7 @@ public class CarePlan10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress())
|
||||
tgt.addProgress(Annotation10_30.convertAnnotation(t));
|
||||
if (src.hasReference())
|
||||
|
@ -83,7 +83,7 @@ public class CarePlan10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress())
|
||||
tgt.addProgress(Annotation10_30.convertAnnotation(t));
|
||||
if (src.hasReference())
|
||||
|
@ -97,7 +97,7 @@ public class CarePlan10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCategory())
|
||||
tgt.setCategory(CodeableConcept10_30.convertCodeableConcept(src.getCategory()));
|
||||
if (src.hasCode())
|
||||
|
@ -132,7 +132,7 @@ public class CarePlan10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCategory())
|
||||
tgt.setCategory(CodeableConcept10_30.convertCodeableConcept(src.getCategory()));
|
||||
if (src.hasCode())
|
||||
|
|
|
@ -72,7 +72,7 @@ public class ClinicalImpression10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasItem())
|
||||
tgt.setItem(CodeableConcept10_30.convertCodeableConcept(src.getItem()));
|
||||
return tgt;
|
||||
|
@ -82,7 +82,7 @@ public class ClinicalImpression10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasItemCodeableConcept())
|
||||
try {
|
||||
if (src.hasItemCodeableConcept())
|
||||
|
|
|
@ -77,7 +77,7 @@ public class Communication10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -87,7 +87,7 @@ public class Communication10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
|
|
@ -83,7 +83,7 @@ public class CommunicationRequest10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -93,7 +93,7 @@ public class CommunicationRequest10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
|
|
@ -141,7 +141,7 @@ public class Composition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setMode(src.getMode().stream()
|
||||
.map(Composition10_30::convertCompositionAttestationMode)
|
||||
.collect(Collectors.toList()));
|
||||
|
@ -156,7 +156,7 @@ public class Composition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setMode(src.getMode().stream()
|
||||
.map(Composition10_30::convertCompositionAttestationMode)
|
||||
.collect(Collectors.toList()));
|
||||
|
@ -171,7 +171,7 @@ public class Composition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode())
|
||||
tgt.addCode(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
@ -184,7 +184,7 @@ public class Composition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode())
|
||||
tgt.addCode(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
@ -247,7 +247,7 @@ public class Composition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTitleElement())
|
||||
tgt.setTitleElement(String10_30.convertString(src.getTitleElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -274,7 +274,7 @@ public class Composition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTitleElement())
|
||||
tgt.setTitleElement(String10_30.convertString(src.getTitleElement()));
|
||||
if (src.hasCode())
|
||||
|
|
|
@ -214,7 +214,7 @@ public class ConceptMap10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasElementElement())
|
||||
tgt.setPropertyElement(Uri10_30.convertUri(src.getElementElement()));
|
||||
if (src.hasCodeSystemElement())
|
||||
|
@ -228,7 +228,7 @@ public class ConceptMap10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasPropertyElement())
|
||||
tgt.setElementElement(Uri10_30.convertUri(src.getPropertyElement()));
|
||||
if (src.hasSystemElement())
|
||||
|
@ -244,7 +244,7 @@ public class ConceptMap10_30 {
|
|||
return res;
|
||||
for (org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent t : src.getTarget()) {
|
||||
org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.addTarget(convertTargetElementComponent(t));
|
||||
res.add(new SourceElementComponentWrapper<>(tgt, src.getCodeSystem(), t.getCodeSystem()));
|
||||
|
@ -256,7 +256,7 @@ public class ConceptMap10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setCodeSystem(g.getSource());
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement()));
|
||||
|
@ -269,7 +269,7 @@ public class ConceptMap10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setCodeSystem(g.getTarget());
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement()));
|
||||
|
@ -288,7 +288,7 @@ public class ConceptMap10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement()));
|
||||
if (src.hasEquivalence())
|
||||
|
|
|
@ -91,7 +91,7 @@ public class Condition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(cc));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_30.convertReference(t));
|
||||
|
@ -102,7 +102,7 @@ public class Condition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.addCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_30.convertReference(t));
|
||||
|
@ -113,7 +113,7 @@ public class Condition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSummary())
|
||||
tgt.setSummary(CodeableConcept10_30.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment())
|
||||
|
@ -125,7 +125,7 @@ public class Condition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSummary())
|
||||
tgt.setSummary(CodeableConcept10_30.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAssessment())
|
||||
|
|
|
@ -179,7 +179,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertDocumentMode(src.getModeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
@ -193,7 +193,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertDocumentMode(src.getModeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
@ -245,7 +245,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -257,7 +257,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -269,7 +269,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint())
|
||||
tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
if (src.hasReliableCacheElement())
|
||||
|
@ -285,7 +285,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint())
|
||||
tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
if (src.hasReliableCacheElement())
|
||||
|
@ -301,7 +301,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasProtocol())
|
||||
tgt.setProtocol(Coding10_30.convertCoding(src.getProtocol()));
|
||||
if (src.hasAddressElement())
|
||||
|
@ -313,7 +313,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasProtocol())
|
||||
tgt.setProtocol(Coding10_30.convertCoding(src.getProtocol()));
|
||||
if (src.hasAddressElement())
|
||||
|
@ -325,7 +325,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(Coding10_30.convertCoding(src.getCode()));
|
||||
if (src.hasCategory())
|
||||
|
@ -347,7 +347,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(Coding10_30.convertCoding(src.getCode()));
|
||||
if (src.hasCategory())
|
||||
|
@ -369,7 +369,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
@ -394,7 +394,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
@ -429,7 +429,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDefinition())
|
||||
|
@ -441,7 +441,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDefinition())
|
||||
|
@ -453,7 +453,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfile())
|
||||
|
@ -483,7 +483,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfile())
|
||||
|
@ -513,7 +513,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDefinitionElement())
|
||||
|
@ -529,7 +529,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDefinitionElement())
|
||||
|
@ -545,7 +545,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement()));
|
||||
if (src.hasBlobElement())
|
||||
|
@ -557,7 +557,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement()));
|
||||
if (src.hasBlobElement())
|
||||
|
@ -569,7 +569,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCorsElement())
|
||||
tgt.setCorsElement(Boolean10_30.convertBoolean(src.getCorsElement()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService())
|
||||
|
@ -585,7 +585,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCorsElement())
|
||||
tgt.setCorsElement(Boolean10_30.convertBoolean(src.getCorsElement()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService())
|
||||
|
@ -601,7 +601,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasVersionElement())
|
||||
|
@ -615,7 +615,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasVersionElement())
|
||||
|
@ -755,7 +755,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
@ -767,7 +767,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
@ -861,7 +861,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
@ -873,7 +873,7 @@ public class Conformance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentationElement())
|
||||
|
|
|
@ -15,7 +15,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.AgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.AgentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setActor(Reference10_30.convertReference(src.getEntity()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole())
|
||||
|
@ -27,7 +27,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.ActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ActorComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasActor())
|
||||
tgt.setEntity(Reference10_30.convertReference(src.getActor()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole())
|
||||
|
@ -39,7 +39,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -49,7 +49,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -139,7 +139,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -149,7 +149,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -159,7 +159,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -169,7 +169,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -179,7 +179,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu3.model.Contract.SignatoryComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(Coding10_30.convertCoding(src.getType()));
|
||||
if (src.hasParty())
|
||||
|
@ -193,7 +193,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu2.model.Contract.SignatoryComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(Coding10_30.convertCoding(src.getType()));
|
||||
if (src.hasParty())
|
||||
|
@ -207,7 +207,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.TermActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermActorComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasActor())
|
||||
tgt.setEntity(Reference10_30.convertReference(src.getActor()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole())
|
||||
|
@ -219,7 +219,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.TermAgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermAgentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setActor(Reference10_30.convertReference(src.getEntity()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole())
|
||||
|
@ -231,7 +231,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasIssuedElement())
|
||||
|
@ -260,7 +260,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasIssuedElement())
|
||||
|
@ -289,7 +289,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity()));
|
||||
if (src.hasIdentifier())
|
||||
|
@ -313,7 +313,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity()));
|
||||
if (src.hasIdentifier())
|
||||
|
@ -337,7 +337,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity()));
|
||||
if (src.hasIdentifier())
|
||||
|
@ -361,7 +361,7 @@ public class Contract10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity()));
|
||||
if (src.hasIdentifier())
|
||||
|
|
|
@ -124,7 +124,7 @@ public class DataElement10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentityElement())
|
||||
tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement()));
|
||||
if (src.hasUriElement())
|
||||
|
@ -140,7 +140,7 @@ public class DataElement10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentityElement())
|
||||
tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement()));
|
||||
if (src.hasUriElement())
|
||||
|
|
|
@ -71,7 +71,7 @@ public class DetectedIssue10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAction())
|
||||
tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasDate())
|
||||
|
@ -85,7 +85,7 @@ public class DetectedIssue10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAction())
|
||||
tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasDate())
|
||||
|
|
|
@ -70,7 +70,7 @@ public class DeviceComponent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSpecType())
|
||||
tgt.setSpecType(CodeableConcept10_30.convertCodeableConcept(src.getSpecType()));
|
||||
if (src.hasComponentId())
|
||||
|
@ -84,7 +84,7 @@ public class DeviceComponent10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSpecType())
|
||||
tgt.setSpecType(CodeableConcept10_30.convertCodeableConcept(src.getSpecType()));
|
||||
if (src.hasComponentId())
|
||||
|
|
|
@ -70,7 +70,7 @@ public class DeviceMetric10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement()));
|
||||
if (src.hasState())
|
||||
|
@ -84,7 +84,7 @@ public class DeviceMetric10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement()));
|
||||
if (src.hasState())
|
||||
|
|
|
@ -89,7 +89,7 @@ public class DiagnosticReport10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCommentElement())
|
||||
tgt.setCommentElement(String10_30.convertString(src.getCommentElement()));
|
||||
if (src.hasLink())
|
||||
|
@ -101,7 +101,7 @@ public class DiagnosticReport10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCommentElement())
|
||||
tgt.setCommentElement(String10_30.convertString(src.getCommentElement()));
|
||||
if (src.hasLink())
|
||||
|
|
|
@ -77,7 +77,7 @@ public class DocumentManifest10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasP())
|
||||
tgt.setP(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getP()));
|
||||
return tgt;
|
||||
|
@ -87,7 +87,7 @@ public class DocumentManifest10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasP())
|
||||
tgt.setP(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getP()));
|
||||
return tgt;
|
||||
|
@ -97,7 +97,7 @@ public class DocumentManifest10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasRef())
|
||||
|
@ -109,7 +109,7 @@ public class DocumentManifest10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasRef())
|
||||
|
|
|
@ -131,7 +131,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAttachment())
|
||||
tgt.setAttachment(Attachment10_30.convertAttachment(src.getAttachment()));
|
||||
if (src.hasFormat())
|
||||
|
@ -143,7 +143,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAttachment())
|
||||
tgt.setAttachment(Attachment10_30.convertAttachment(src.getAttachment()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(Coding10_30.convertCoding(t));
|
||||
|
@ -154,7 +154,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEncounter())
|
||||
tgt.setEncounter(Reference10_30.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getEvent())
|
||||
|
@ -176,7 +176,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEncounter())
|
||||
tgt.setEncounter(Reference10_30.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent())
|
||||
|
@ -198,7 +198,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasRef())
|
||||
|
@ -210,7 +210,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasRef())
|
||||
|
@ -222,7 +222,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement()));
|
||||
if (src.hasTarget())
|
||||
|
@ -234,7 +234,7 @@ public class DocumentReference10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement()));
|
||||
if (src.hasTarget())
|
||||
|
|
|
@ -145,7 +145,7 @@ public class Encounter10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasPreAdmissionIdentifier())
|
||||
tgt.setPreAdmissionIdentifier(Identifier10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
if (src.hasOrigin())
|
||||
|
@ -171,7 +171,7 @@ public class Encounter10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasPreAdmissionIdentifier())
|
||||
tgt.setPreAdmissionIdentifier(Identifier10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
if (src.hasOrigin())
|
||||
|
@ -197,7 +197,7 @@ public class Encounter10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLocation())
|
||||
tgt.setLocation(Reference10_30.convertReference(src.getLocation()));
|
||||
if (src.hasStatus())
|
||||
|
@ -211,7 +211,7 @@ public class Encounter10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLocation())
|
||||
tgt.setLocation(Reference10_30.convertReference(src.getLocation()));
|
||||
if (src.hasStatus())
|
||||
|
@ -275,7 +275,7 @@ public class Encounter10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
@ -289,7 +289,7 @@ public class Encounter10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
|
|
@ -127,7 +127,7 @@ public class EpisodeOfCare10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatus())
|
||||
tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement()));
|
||||
if (src.hasPeriod())
|
||||
|
@ -139,7 +139,7 @@ public class EpisodeOfCare10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatus())
|
||||
tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement()));
|
||||
if (src.hasPeriod())
|
||||
|
|
|
@ -124,7 +124,7 @@ public class FamilyMemberHistory10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasOutcome())
|
||||
|
@ -138,7 +138,7 @@ public class FamilyMemberHistory10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasOutcome())
|
||||
|
|
|
@ -64,7 +64,7 @@ public class Group10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -80,7 +80,7 @@ public class Group10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -96,7 +96,7 @@ public class Group10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(Reference10_30.convertReference(src.getEntity()));
|
||||
if (src.hasPeriod())
|
||||
|
@ -110,7 +110,7 @@ public class Group10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupMemberComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(Reference10_30.convertReference(src.getEntity()));
|
||||
if (src.hasPeriod())
|
||||
|
|
|
@ -178,7 +178,7 @@ public class HealthcareService10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setDaysOfWeek(src.getDaysOfWeek().stream()
|
||||
.map(HealthcareService10_30::convertDaysOfWeek)
|
||||
.collect(Collectors.toList()));
|
||||
|
@ -195,7 +195,7 @@ public class HealthcareService10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setDaysOfWeek(src.getDaysOfWeek().stream()
|
||||
.map(HealthcareService10_30::convertDaysOfWeek)
|
||||
.collect(Collectors.toList()));
|
||||
|
@ -212,7 +212,7 @@ public class HealthcareService10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement()));
|
||||
if (src.hasDuring())
|
||||
|
@ -224,7 +224,7 @@ public class HealthcareService10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement()));
|
||||
if (src.hasDuring())
|
||||
|
|
|
@ -86,7 +86,7 @@ public class ImagingStudy10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasUidElement())
|
||||
tgt.setUidElement(Oid10_30.convertOid(src.getUidElement()));
|
||||
if (src.hasNumberElement())
|
||||
|
@ -114,7 +114,7 @@ public class ImagingStudy10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasUidElement())
|
||||
tgt.setUidElement(Oid10_30.convertOid(src.getUidElement()));
|
||||
if (src.hasNumberElement())
|
||||
|
@ -142,7 +142,7 @@ public class ImagingStudy10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasUidElement())
|
||||
tgt.setUidElement(Oid10_30.convertOid(src.getUidElement()));
|
||||
if (src.hasNumberElement())
|
||||
|
@ -158,7 +158,7 @@ public class ImagingStudy10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasUidElement())
|
||||
tgt.setUidElement(Oid10_30.convertOid(src.getUidElement()));
|
||||
if (src.hasNumberElement())
|
||||
|
|
|
@ -116,7 +116,7 @@ public class Immunization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason())
|
||||
tgt.addReason(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotGiven())
|
||||
|
@ -128,7 +128,7 @@ public class Immunization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason())
|
||||
tgt.addReason(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotGiven())
|
||||
|
@ -140,7 +140,7 @@ public class Immunization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Immunization.ImmunizationReactionComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationReactionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement()));
|
||||
if (src.hasDetail())
|
||||
|
@ -154,7 +154,7 @@ public class Immunization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Immunization.ImmunizationReactionComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationReactionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement()));
|
||||
if (src.hasDetail())
|
||||
|
@ -168,7 +168,7 @@ public class Immunization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDoseSequenceElement())
|
||||
tgt.setDoseSequenceElement(PositiveInt10_30.convertPositiveInt(src.getDoseSequenceElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -192,7 +192,7 @@ public class Immunization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDoseSequenceElement())
|
||||
tgt.setDoseSequenceElement(PositiveInt10_30.convertPositiveInt(src.getDoseSequenceElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
|
|
@ -43,7 +43,7 @@ public class ImmunizationRecommendation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement()));
|
||||
if (src.hasVaccineCode())
|
||||
|
@ -67,7 +67,7 @@ public class ImmunizationRecommendation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement()));
|
||||
if (src.hasVaccineCode())
|
||||
|
@ -91,7 +91,7 @@ public class ImmunizationRecommendation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -103,7 +103,7 @@ public class ImmunizationRecommendation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -115,7 +115,7 @@ public class ImmunizationRecommendation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDoseSequence())
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -131,7 +131,7 @@ public class ImmunizationRecommendation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDoseSequence())
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
if (src.hasDescriptionElement())
|
||||
|
|
|
@ -238,7 +238,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertGuideDependencyType(src.getTypeElement()));
|
||||
if (src.hasUriElement())
|
||||
|
@ -250,7 +250,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertGuideDependencyType(src.getTypeElement()));
|
||||
if (src.hasUriElement())
|
||||
|
@ -262,7 +262,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfile())
|
||||
|
@ -274,7 +274,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfile())
|
||||
|
@ -286,7 +286,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -300,7 +300,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -314,7 +314,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setExample(src.getPurpose() == org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
|
@ -333,7 +333,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.getExample())
|
||||
tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE);
|
||||
else
|
||||
|
@ -355,7 +355,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSourceElement())
|
||||
tgt.setSourceElement(Uri10_30.convertUri(src.getSourceElement()));
|
||||
if (src.hasTitleElement())
|
||||
|
@ -375,7 +375,7 @@ public class ImplementationGuide10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSourceElement())
|
||||
tgt.setSourceElement(Uri10_30.convertUri(src.getSourceElement()));
|
||||
if (src.hasNameElement())
|
||||
|
|
|
@ -194,14 +194,14 @@ public class List10_30 {
|
|||
}
|
||||
|
||||
public static void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt) throws FHIRException {
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_30.convertExtension(e));
|
||||
}
|
||||
}
|
||||
|
||||
public static void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.dstu2.model.BackboneElement tgt) throws FHIRException {
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_30.convertExtension(e));
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ public class Location10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLongitudeElement())
|
||||
tgt.setLongitudeElement(Decimal10_30.convertDecimal(src.getLongitudeElement()));
|
||||
if (src.hasLatitudeElement())
|
||||
|
@ -132,7 +132,7 @@ public class Location10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLongitudeElement())
|
||||
tgt.setLongitudeElement(Decimal10_30.convertDecimal(src.getLongitudeElement()));
|
||||
if (src.hasLatitudeElement())
|
||||
|
|
|
@ -45,7 +45,7 @@ public class Medication10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContainer())
|
||||
tgt.setContainer(CodeableConcept10_30.convertCodeableConcept(src.getContainer()));
|
||||
for (org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent t : src.getContent())
|
||||
|
@ -57,7 +57,7 @@ public class Medication10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasContainer())
|
||||
tgt.setContainer(CodeableConcept10_30.convertCodeableConcept(src.getContainer()));
|
||||
for (org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent t : src.getContent())
|
||||
|
@ -69,7 +69,7 @@ public class Medication10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent tgt = new org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasItemReference())
|
||||
tgt.setItem((org.hl7.fhir.dstu2.model.Reference) ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getItem()));
|
||||
if (src.hasAmount())
|
||||
|
@ -81,7 +81,7 @@ public class Medication10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasItem())
|
||||
tgt.setItem(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getItem()));
|
||||
if (src.hasAmount())
|
||||
|
|
|
@ -186,7 +186,7 @@ public class MedicationDispense10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(CodeableConcept10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason())
|
||||
|
@ -200,7 +200,7 @@ public class MedicationDispense10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(CodeableConcept10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason())
|
||||
|
|
|
@ -17,7 +17,7 @@ public class MessageHeader10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasTarget())
|
||||
|
@ -31,7 +31,7 @@ public class MessageHeader10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasTarget())
|
||||
|
@ -103,7 +103,7 @@ public class MessageHeader10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifierElement())
|
||||
tgt.setIdentifierElement(Id10_30.convertId(src.getIdentifierElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -117,7 +117,7 @@ public class MessageHeader10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifierElement())
|
||||
tgt.setIdentifierElement(Id10_30.convertId(src.getIdentifierElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -131,7 +131,7 @@ public class MessageHeader10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasSoftwareElement())
|
||||
|
@ -149,7 +149,7 @@ public class MessageHeader10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasSoftwareElement())
|
||||
|
|
|
@ -209,7 +209,7 @@ public class NamingSystem10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -225,7 +225,7 @@ public class NamingSystem10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement()));
|
||||
if (src.hasValueElement())
|
||||
|
|
|
@ -112,7 +112,7 @@ public class Observation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -128,7 +128,7 @@ public class Observation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -144,7 +144,7 @@ public class Observation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLow())
|
||||
tgt.setLow(SimpleQuantity10_30.convertSimpleQuantity(src.getLow()));
|
||||
if (src.hasHigh())
|
||||
|
@ -162,7 +162,7 @@ public class Observation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLow())
|
||||
tgt.setLow(SimpleQuantity10_30.convertSimpleQuantity(src.getLow()));
|
||||
if (src.hasHigh())
|
||||
|
@ -180,7 +180,7 @@ public class Observation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertObservationRelationshipType(src.getTypeElement()));
|
||||
if (src.hasTarget())
|
||||
|
@ -192,7 +192,7 @@ public class Observation10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertObservationRelationshipType(src.getTypeElement()));
|
||||
if (src.hasTarget())
|
||||
|
|
|
@ -131,7 +131,7 @@ public class OperationDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasStrength())
|
||||
tgt.setStrengthElement(ElementDefinition10_30.convertBindingStrength(src.getStrengthElement()));
|
||||
if (src.hasValueSet())
|
||||
|
@ -143,7 +143,7 @@ public class OperationDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasStrength())
|
||||
tgt.setStrengthElement(ElementDefinition10_30.convertBindingStrength(src.getStrengthElement()));
|
||||
if (src.hasValueSet())
|
||||
|
@ -155,7 +155,7 @@ public class OperationDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(Code10_30.convertCode(src.getNameElement()));
|
||||
if (src.hasUse())
|
||||
|
@ -183,7 +183,7 @@ public class OperationDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(Code10_30.convertCode(src.getNameElement()));
|
||||
if (src.hasUse())
|
||||
|
|
|
@ -281,7 +281,7 @@ public class OperationOutcome10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSeverity())
|
||||
tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -298,7 +298,7 @@ public class OperationOutcome10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSeverity())
|
||||
tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement()));
|
||||
if (src.hasCode())
|
||||
|
|
|
@ -59,7 +59,7 @@ public class Organization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasPurpose())
|
||||
tgt.setPurpose(CodeableConcept10_30.convertCodeableConcept(src.getPurpose()));
|
||||
if (src.hasName())
|
||||
|
@ -75,7 +75,7 @@ public class Organization10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasPurpose())
|
||||
tgt.setPurpose(CodeableConcept10_30.convertCodeableConcept(src.getPurpose()));
|
||||
if (src.hasName())
|
||||
|
|
|
@ -30,7 +30,7 @@ public class Parameters10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasValue())
|
||||
|
@ -46,7 +46,7 @@ public class Parameters10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasValue())
|
||||
|
|
|
@ -13,7 +13,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu3.model.Patient.AnimalComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSpecies())
|
||||
tgt.setSpecies(CodeableConcept10_30.convertCodeableConcept(src.getSpecies()));
|
||||
if (src.hasBreed())
|
||||
|
@ -27,7 +27,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu2.model.Patient.AnimalComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSpecies())
|
||||
tgt.setSpecies(CodeableConcept10_30.convertCodeableConcept(src.getSpecies()));
|
||||
if (src.hasBreed())
|
||||
|
@ -41,7 +41,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu3.model.Patient.ContactComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship())
|
||||
tgt.addRelationship(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasName())
|
||||
|
@ -63,7 +63,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRelationship())
|
||||
tgt.addRelationship(CodeableConcept10_30.convertCodeableConcept(t));
|
||||
if (src.hasName())
|
||||
|
@ -210,7 +210,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLanguage())
|
||||
tgt.setLanguage(CodeableConcept10_30.convertCodeableConcept(src.getLanguage()));
|
||||
if (src.hasPreferredElement())
|
||||
|
@ -222,7 +222,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLanguage())
|
||||
tgt.setLanguage(CodeableConcept10_30.convertCodeableConcept(src.getLanguage()));
|
||||
if (src.hasPreferredElement())
|
||||
|
@ -234,7 +234,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOther())
|
||||
tgt.setOther(Reference10_30.convertReference(src.getOther()));
|
||||
if (src.hasType())
|
||||
|
@ -246,7 +246,7 @@ public class Patient10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOther())
|
||||
tgt.setOther(Reference10_30.convertReference(src.getOther()));
|
||||
if (src.hasType())
|
||||
|
|
|
@ -115,7 +115,7 @@ public class Person10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu3.model.Person.PersonLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTarget())
|
||||
tgt.setTarget(Reference10_30.convertReference(src.getTarget()));
|
||||
if (src.hasAssurance())
|
||||
|
@ -127,7 +127,7 @@ public class Person10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasTarget())
|
||||
tgt.setTarget(Reference10_30.convertReference(src.getTarget()));
|
||||
if (src.hasAssurance())
|
||||
|
|
|
@ -64,7 +64,7 @@ public class Practitioner10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())
|
||||
tgt.addIdentifier(Identifier10_30.convertIdentifier(t));
|
||||
if (src.hasCode())
|
||||
|
@ -80,7 +80,7 @@ public class Practitioner10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier())
|
||||
tgt.addIdentifier(Identifier10_30.convertIdentifier(t));
|
||||
if (src.hasCode())
|
||||
|
|
|
@ -110,7 +110,7 @@ public class Procedure10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAction())
|
||||
tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasManipulated())
|
||||
|
@ -122,7 +122,7 @@ public class Procedure10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAction())
|
||||
tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasManipulated())
|
||||
|
@ -134,7 +134,7 @@ public class Procedure10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasActor())
|
||||
tgt.setActor(Reference10_30.convertReference(src.getActor()));
|
||||
if (src.hasRole())
|
||||
|
@ -146,7 +146,7 @@ public class Procedure10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasActor())
|
||||
tgt.setActor(Reference10_30.convertReference(src.getActor()));
|
||||
if (src.hasRole())
|
||||
|
|
|
@ -8,7 +8,7 @@ public class ProcessRequest10_30 {
|
|||
public static org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent convertItemsComponent(org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent src) throws FHIRException {
|
||||
if (src == null || src.isEmpty()) return null;
|
||||
org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent tgt = new org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSequenceLinkIdElement())
|
||||
tgt.setSequenceLinkIdElement(Integer10_30.convertInteger(src.getSequenceLinkIdElement()));
|
||||
return tgt;
|
||||
|
@ -17,7 +17,7 @@ public class ProcessRequest10_30 {
|
|||
public static org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent convertItemsComponent(org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent src) throws FHIRException {
|
||||
if (src == null || src.isEmpty()) return null;
|
||||
org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent tgt = new org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSequenceLinkIdElement())
|
||||
tgt.setSequenceLinkIdElement(Integer10_30.convertInteger(src.getSequenceLinkIdElement()));
|
||||
return tgt;
|
||||
|
|
|
@ -64,7 +64,7 @@ public class Provenance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasWhoReference())
|
||||
tgt.setActor(Reference10_30.convertReference(src.getWhoReference()));
|
||||
return tgt;
|
||||
|
@ -74,7 +74,7 @@ public class Provenance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasActor())
|
||||
tgt.setWho(Reference10_30.convertReference(src.getActor()));
|
||||
return tgt;
|
||||
|
@ -84,7 +84,7 @@ public class Provenance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasRole())
|
||||
tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement()));
|
||||
if (src.hasWhatReference() && src.getWhatReference().hasReference())
|
||||
|
@ -98,7 +98,7 @@ public class Provenance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasRole())
|
||||
tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement()));
|
||||
if (src.hasReference())
|
||||
|
|
|
@ -83,7 +83,7 @@ public class Questionnaire10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(Coding10_30.convertCoding(t));
|
||||
|
@ -105,7 +105,7 @@ public class Questionnaire10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_30.convertCoding(t));
|
||||
|
@ -182,7 +182,7 @@ public class Questionnaire10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_30.convertCoding(t));
|
||||
|
@ -206,7 +206,7 @@ public class Questionnaire10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(Coding10_30.convertCoding(t));
|
||||
|
|
|
@ -13,7 +13,7 @@ public class QuestionnaireResponse10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
@ -32,7 +32,7 @@ public class QuestionnaireResponse10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
@ -99,7 +99,7 @@ public class QuestionnaireResponse10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
@ -117,7 +117,7 @@ public class QuestionnaireResponse10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasValue())
|
||||
tgt.setValue(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getValue()));
|
||||
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem())
|
||||
|
@ -129,7 +129,7 @@ public class QuestionnaireResponse10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasValue())
|
||||
tgt.setValue(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getValue()));
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup())
|
||||
|
@ -141,7 +141,7 @@ public class QuestionnaireResponse10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
|
|
@ -64,7 +64,7 @@ public class RiskAssessment10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOutcome())
|
||||
tgt.setOutcome(CodeableConcept10_30.convertCodeableConcept(src.getOutcome()));
|
||||
if (src.hasProbability())
|
||||
|
@ -82,7 +82,7 @@ public class RiskAssessment10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOutcome())
|
||||
tgt.setOutcome(CodeableConcept10_30.convertCodeableConcept(src.getOutcome()));
|
||||
if (src.hasProbability())
|
||||
|
|
|
@ -43,7 +43,7 @@ public class Specimen10_30 {
|
|||
if (src == null)
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenCollectionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCollector())
|
||||
tgt.setCollector(Reference10_30.convertReference(src.getCollector()));
|
||||
if (src.hasCollected())
|
||||
|
@ -61,7 +61,7 @@ public class Specimen10_30 {
|
|||
if (src == null)
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())
|
||||
tgt.addIdentifier(Identifier10_30.convertIdentifier(t));
|
||||
if (src.hasDescription())
|
||||
|
@ -81,7 +81,7 @@ public class Specimen10_30 {
|
|||
if (src == null)
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Specimen.SpecimenTreatmentComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenTreatmentComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescription())
|
||||
tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement()));
|
||||
if (src.hasProcedure())
|
||||
|
|
|
@ -230,7 +230,7 @@ public class StructureDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement())
|
||||
tgt.addElement(ElementDefinition10_30.convertElementDefinition(t));
|
||||
return tgt;
|
||||
|
@ -240,7 +240,7 @@ public class StructureDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
List<String> slicePaths = new ArrayList<String>();
|
||||
for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
|
||||
if (t.hasSlicing())
|
||||
|
@ -306,7 +306,7 @@ public class StructureDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentityElement())
|
||||
tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement()));
|
||||
if (src.hasUriElement())
|
||||
|
@ -322,7 +322,7 @@ public class StructureDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentityElement())
|
||||
tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement()));
|
||||
if (src.hasUriElement())
|
||||
|
@ -338,7 +338,7 @@ public class StructureDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement())
|
||||
tgt.addElement(ElementDefinition10_30.convertElementDefinition(t));
|
||||
return tgt;
|
||||
|
@ -348,7 +348,7 @@ public class StructureDefinition10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
List<String> slicePaths = new ArrayList<String>();
|
||||
for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
|
||||
if (t.hasSlicing())
|
||||
|
|
|
@ -60,7 +60,7 @@ public class Subscription10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement()));
|
||||
if (src.hasEndpointElement())
|
||||
|
@ -76,7 +76,7 @@ public class Subscription10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement()));
|
||||
if (src.hasEndpointElement())
|
||||
|
|
|
@ -56,7 +56,7 @@ public class Substance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasQuantity())
|
||||
tgt.setQuantity(Ratio10_30.convertRatio(src.getQuantity()));
|
||||
if (src.hasSubstance())
|
||||
|
@ -68,7 +68,7 @@ public class Substance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasQuantity())
|
||||
tgt.setQuantity(Ratio10_30.convertRatio(src.getQuantity()));
|
||||
return tgt;
|
||||
|
@ -78,7 +78,7 @@ public class Substance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasExpiryElement())
|
||||
|
@ -92,7 +92,7 @@ public class Substance10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasExpiryElement())
|
||||
|
|
|
@ -276,7 +276,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLabelElement())
|
||||
tgt.setLabelElement(String10_30.convertString(src.getLabelElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -320,7 +320,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLabelElement())
|
||||
tgt.setLabelElement(String10_30.convertString(src.getLabelElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -364,7 +364,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOperation())
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
if (src.hasAssert())
|
||||
|
@ -376,7 +376,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOperation())
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
if (src.hasAssert())
|
||||
|
@ -388,7 +388,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(Coding10_30.convertCoding(src.getType()));
|
||||
if (src.hasResourceElement())
|
||||
|
@ -424,7 +424,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(Coding10_30.convertCoding(src.getType()));
|
||||
if (src.hasResourceElement())
|
||||
|
@ -460,7 +460,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasFieldElement())
|
||||
tgt.setFieldElement(String10_30.convertString(src.getFieldElement()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -472,7 +472,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasFieldElement())
|
||||
tgt.setFieldElement(String10_30.convertString(src.getFieldElement()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -484,7 +484,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOperation())
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
return tgt;
|
||||
|
@ -494,7 +494,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOperation())
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
return tgt;
|
||||
|
@ -504,7 +504,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOperation())
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
if (src.hasAssert())
|
||||
|
@ -516,7 +516,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasOperation())
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
if (src.hasAssert())
|
||||
|
@ -652,7 +652,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAutocreateElement())
|
||||
tgt.setAutocreateElement(Boolean10_30.convertBoolean(src.getAutocreateElement()));
|
||||
if (src.hasAutodeleteElement())
|
||||
|
@ -666,7 +666,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasAutocreateElement())
|
||||
tgt.setAutocreateElement(Boolean10_30.convertBoolean(src.getAutocreateElement()));
|
||||
if (src.hasAutodeleteElement())
|
||||
|
@ -680,7 +680,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasRequiredElement())
|
||||
tgt.setRequiredElement(Boolean10_30.convertBoolean(src.getRequiredElement()));
|
||||
if (src.hasValidatedElement())
|
||||
|
@ -699,7 +699,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasRequiredElement())
|
||||
tgt.setRequiredElement(Boolean10_30.convertBoolean(src.getRequiredElement()));
|
||||
if (src.hasValidatedElement())
|
||||
|
@ -718,7 +718,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink())
|
||||
tgt.addLink(convertTestScriptMetadataLinkComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability())
|
||||
|
@ -730,7 +730,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink())
|
||||
tgt.addLink(convertTestScriptMetadataLinkComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability())
|
||||
|
@ -742,7 +742,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasUrlElement())
|
||||
tgt.setUrlElement(Uri10_30.convertUri(src.getUrlElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -754,7 +754,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasUrlElement())
|
||||
tgt.setUrlElement(Uri10_30.convertUri(src.getUrlElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -766,7 +766,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction())
|
||||
tgt.addAction(convertSetupActionComponent(t));
|
||||
return tgt;
|
||||
|
@ -776,7 +776,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction())
|
||||
tgt.addAction(convertSetupActionComponent(t));
|
||||
return tgt;
|
||||
|
@ -786,7 +786,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction())
|
||||
tgt.addAction(convertTeardownActionComponent(t));
|
||||
return tgt;
|
||||
|
@ -796,7 +796,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction())
|
||||
tgt.addAction(convertTeardownActionComponent(t));
|
||||
return tgt;
|
||||
|
@ -806,7 +806,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -820,7 +820,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasDescriptionElement())
|
||||
|
@ -834,7 +834,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasHeaderFieldElement())
|
||||
|
@ -850,7 +850,7 @@ public class TestScript10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasHeaderFieldElement())
|
||||
|
|
|
@ -23,7 +23,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement()));
|
||||
if (src.hasDisplayElement())
|
||||
|
@ -37,7 +37,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement()));
|
||||
if (src.hasDisplayElement())
|
||||
|
@ -51,7 +51,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLanguageElement())
|
||||
tgt.setLanguageElement(Code10_30.convertCode(src.getLanguageElement()));
|
||||
if (src.hasUse())
|
||||
|
@ -65,7 +65,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasLanguageElement())
|
||||
tgt.setLanguageElement(Code10_30.convertCode(src.getLanguageElement()));
|
||||
if (src.hasUse())
|
||||
|
@ -79,7 +79,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSystemElement())
|
||||
tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement()));
|
||||
if (src.hasVersionElement())
|
||||
|
@ -95,7 +95,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSystemElement())
|
||||
tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement()));
|
||||
if (src.hasVersionElement())
|
||||
|
@ -111,7 +111,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasPropertyElement())
|
||||
tgt.setPropertyElement(Code10_30.convertCode(src.getPropertyElement()));
|
||||
if (src.hasOp())
|
||||
|
@ -125,7 +125,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasPropertyElement())
|
||||
tgt.setPropertyElement(Code10_30.convertCode(src.getPropertyElement()));
|
||||
if (src.hasOp())
|
||||
|
@ -345,7 +345,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getInclude())
|
||||
tgt.addInclude(convertConceptSetComponent(t));
|
||||
|
@ -358,7 +358,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getInclude()) {
|
||||
for (org.hl7.fhir.dstu3.model.UriType ti : t.getValueSet()) tgt.addImport(ti.getValue());
|
||||
if (noSystem == null || !t.getSystem().equals(noSystem))
|
||||
|
@ -397,7 +397,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifierElement())
|
||||
tgt.setIdentifierElement(Uri10_30.convertUri(src.getIdentifierElement()));
|
||||
if (src.hasTimestampElement())
|
||||
|
@ -417,7 +417,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifierElement())
|
||||
tgt.setIdentifierElement(Uri10_30.convertUri(src.getIdentifierElement()));
|
||||
if (src.hasTimestampElement())
|
||||
|
@ -437,7 +437,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSystemElement())
|
||||
tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement()));
|
||||
if (src.hasAbstractElement())
|
||||
|
@ -457,7 +457,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasSystemElement())
|
||||
tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement()));
|
||||
if (src.hasAbstractElement())
|
||||
|
@ -477,7 +477,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasValue())
|
||||
|
@ -489,7 +489,7 @@ public class ValueSet10_30 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_30.convertString(src.getNameElement()));
|
||||
if (src.hasValue())
|
||||
|
@ -547,7 +547,7 @@ public class ValueSet10_30 {
|
|||
public static ValueSet.ConceptDefinitionComponent convertCodeSystemConcept(CodeSystem cs, ConceptDefinitionComponent src) throws FHIRException {
|
||||
if (src == null || src.isEmpty()) return null;
|
||||
ValueSet.ConceptDefinitionComponent tgt = new ValueSet.ConceptDefinitionComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setAbstract(CodeSystemUtilities.isNotSelectable(cs, src));
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
|
@ -561,7 +561,7 @@ public class ValueSet10_30 {
|
|||
public static ValueSet.ConceptDefinitionDesignationComponent convertCodeSystemDesignation(CodeSystem.ConceptDefinitionDesignationComponent src) throws FHIRException {
|
||||
if (src == null || src.isEmpty()) return null;
|
||||
ValueSet.ConceptDefinitionDesignationComponent tgt = new ValueSet.ConceptDefinitionDesignationComponent();
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
|
||||
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt);
|
||||
tgt.setUse(Coding10_30.convertCoding(src.getUse()));
|
||||
tgt.setLanguage(src.getLanguage());
|
||||
tgt.setValue(src.getValue());
|
||||
|
|
|
@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv10_40;
|
|||
|
||||
import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40;
|
||||
import org.hl7.fhir.convertors.context.ConversionContext10_40;
|
||||
import org.hl7.fhir.convertors.conv10_40.datatypes10_40.BackboneElement10_40;
|
||||
import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Element10_40;
|
||||
import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Type10_40;
|
||||
import org.hl7.fhir.convertors.conv10_40.resources10_40.Resource10_40;
|
||||
|
@ -65,12 +66,15 @@ public class VersionConvertor_10_40 {
|
|||
|
||||
private final BaseAdvisor_10_40 advisor;
|
||||
private final Element10_40 elementConvertor;
|
||||
|
||||
private final BackboneElement10_40 backboneElementConvertor;
|
||||
private final Resource10_40 resourceConvertor;
|
||||
private final Type10_40 typeConvertor;
|
||||
|
||||
public VersionConvertor_10_40(@Nonnull BaseAdvisor_10_40 advisor) {
|
||||
this.advisor = advisor;
|
||||
this.elementConvertor = new Element10_40(advisor);
|
||||
this.backboneElementConvertor = new BackboneElement10_40();
|
||||
this.resourceConvertor = new Resource10_40(advisor);
|
||||
this.typeConvertor = new Type10_40(advisor);
|
||||
}
|
||||
|
@ -166,4 +170,15 @@ public class VersionConvertor_10_40 {
|
|||
elementConvertor.copyElement(src, tgt, ConversionContext10_40.INSTANCE.path(), var);
|
||||
}
|
||||
|
||||
public void copyBackboneElement(@Nonnull org.hl7.fhir.r4.model.BackboneElement src,
|
||||
@Nonnull org.hl7.fhir.dstu2.model.BackboneElement tgt,
|
||||
String... var) throws FHIRException {
|
||||
backboneElementConvertor.copyBackboneElement(src, tgt, var);
|
||||
}
|
||||
|
||||
public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2.model.BackboneElement src,
|
||||
@Nonnull org.hl7.fhir.r4.model.BackboneElement tgt,
|
||||
String... var) throws FHIRException {
|
||||
backboneElementConvertor.copyBackboneElement(src, tgt, var);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
package org.hl7.fhir.convertors.conv10_40.datatypes10_40;
|
||||
|
||||
import org.hl7.fhir.convertors.context.ConversionContext10_40;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public class BackboneElement10_40 {
|
||||
static public void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src,
|
||||
org.hl7.fhir.r4.model.BackboneElement tgt,
|
||||
String ... var) throws FHIRException {
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt, var);
|
||||
for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_40.convertExtension(e));
|
||||
}
|
||||
}
|
||||
|
||||
static public void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src,
|
||||
org.hl7.fhir.dstu2.model.BackboneElement tgt,
|
||||
String ... var) throws FHIRException {
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt, var);
|
||||
for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_40.convertExtension(e));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -66,9 +66,9 @@ public class AllergyIntolerance10_40 {
|
|||
if (src == null)
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Extension extension : src.getModifierExtension())
|
||||
tgt.addExtension(Extension10_40.convertExtension(extension));
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
//for (org.hl7.fhir.dstu2.model.Extension extension : src.getModifierExtension())
|
||||
// tgt.addExtension(Extension10_40.convertExtension(extension));
|
||||
if (src.hasSubstance())
|
||||
tgt.setSubstance(CodeableConcept10_40.convertCodeableConcept(src.getSubstance()));
|
||||
if (src.hasCertainty())
|
||||
|
|
|
@ -74,7 +74,7 @@ public class Appointment10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasActor())
|
||||
|
@ -90,7 +90,7 @@ public class Appointment10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasActor())
|
||||
|
|
|
@ -121,7 +121,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole())
|
||||
tgt.addRole(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasReference())
|
||||
|
@ -150,7 +150,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole())
|
||||
tgt.addRole(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasWho()) {
|
||||
|
@ -181,7 +181,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasAddressElement())
|
||||
tgt.setAddressElement(String10_40.convertString(src.getAddressElement()));
|
||||
if (src.hasType())
|
||||
|
@ -193,7 +193,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasAddressElement())
|
||||
tgt.setAddressElement(String10_40.convertString(src.getAddressElement()));
|
||||
if (src.hasType())
|
||||
|
@ -205,7 +205,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier())
|
||||
tgt.getWhat().setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasReference())
|
||||
|
@ -232,7 +232,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasWhat()) {
|
||||
if (src.getWhat().hasIdentifier())
|
||||
tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getWhat().getIdentifier()));
|
||||
|
@ -261,7 +261,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(String10_40.convertString(src.getTypeElement()));
|
||||
if (src.hasValueStringType())
|
||||
|
@ -275,7 +275,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(String10_40.convertString(src.getTypeElement()));
|
||||
if (src.hasValue())
|
||||
|
@ -393,7 +393,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasSiteElement())
|
||||
tgt.setSiteElement(String10_40.convertString(src.getSiteElement()));
|
||||
if (src.hasIdentifier())
|
||||
|
@ -406,7 +406,7 @@ public class AuditEvent10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasSiteElement())
|
||||
tgt.setSiteElement(String10_40.convertString(src.getSiteElement()));
|
||||
if (src.hasObserver())
|
||||
|
|
|
@ -52,7 +52,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink())
|
||||
tgt.addLink(convertBundleLinkComponent(t));
|
||||
if (src.hasFullUrlElement())
|
||||
|
@ -74,7 +74,7 @@ public class Bundle10_40 {
|
|||
if (advisor.ignoreEntry(src, FhirPublication.DSTU2))
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
if (src.hasFullUrlElement())
|
||||
tgt.setFullUrlElement(Uri10_40.convertUri(src.getFullUrlElement()));
|
||||
|
@ -97,7 +97,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMethod())
|
||||
tgt.setMethodElement(convertHTTPVerb(src.getMethodElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -117,7 +117,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMethod())
|
||||
tgt.setMethodElement(convertHTTPVerb(src.getMethodElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -137,7 +137,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatusElement())
|
||||
tgt.setStatusElement(String10_40.convertString(src.getStatusElement()));
|
||||
if (src.hasLocationElement())
|
||||
|
@ -153,7 +153,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatusElement())
|
||||
tgt.setStatusElement(String10_40.convertString(src.getStatusElement()));
|
||||
if (src.hasLocationElement())
|
||||
|
@ -169,7 +169,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertSearchEntryMode(src.getModeElement()));
|
||||
if (src.hasScoreElement())
|
||||
|
@ -181,7 +181,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertSearchEntryMode(src.getModeElement()));
|
||||
if (src.hasScoreElement())
|
||||
|
@ -193,7 +193,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasRelationElement())
|
||||
tgt.setRelationElement(String10_40.convertString(src.getRelationElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
@ -205,7 +205,7 @@ public class Bundle10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasRelationElement())
|
||||
tgt.setRelationElement(String10_40.convertString(src.getRelationElement()));
|
||||
if (src.hasUrlElement())
|
||||
|
|
|
@ -74,7 +74,7 @@ public class CarePlan10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress())
|
||||
tgt.addProgress(Annotation10_40.convertAnnotation(t));
|
||||
if (src.hasReference())
|
||||
|
@ -88,7 +88,7 @@ public class CarePlan10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getProgress()) tgt.addProgress(Annotation10_40.convertAnnotation(t));
|
||||
if (src.hasReference())
|
||||
tgt.setReference(Reference10_40.convertReference(src.getReference()));
|
||||
|
@ -101,7 +101,7 @@ public class CarePlan10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
|
@ -133,7 +133,7 @@ public class CarePlan10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode())
|
||||
|
|
|
@ -76,7 +76,7 @@ public class Communication10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -86,7 +86,7 @@ public class Communication10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
|
|
@ -84,7 +84,7 @@ public class CommunicationRequest10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
@ -94,7 +94,7 @@ public class CommunicationRequest10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasContent())
|
||||
tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent()));
|
||||
return tgt;
|
||||
|
|
|
@ -141,7 +141,7 @@ public class Composition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setMode(Collections.singletonList(convertCompositionAttestationMode(src.getModeElement())));
|
||||
if (src.hasTimeElement())
|
||||
|
@ -155,7 +155,7 @@ public class Composition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertCompositionAttestationMode(src.getMode().get(0)));
|
||||
if (src.hasTimeElement())
|
||||
|
@ -169,7 +169,7 @@ public class Composition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode())
|
||||
tgt.addCode(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
@ -182,7 +182,7 @@ public class Composition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionEventComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode())
|
||||
tgt.addCode(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
@ -245,7 +245,7 @@ public class Composition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTitleElement())
|
||||
tgt.setTitleElement(String10_40.convertString(src.getTitleElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -272,7 +272,7 @@ public class Composition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTitleElement())
|
||||
tgt.setTitleElement(String10_40.convertString(src.getTitleElement()));
|
||||
if (src.hasCode())
|
||||
|
|
|
@ -214,7 +214,7 @@ public class ConceptMap10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasElementElement())
|
||||
tgt.setPropertyElement(Uri10_40.convertUri(src.getElementElement()));
|
||||
if (src.hasCodeSystem())
|
||||
|
@ -228,7 +228,7 @@ public class ConceptMap10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasPropertyElement())
|
||||
tgt.setElementElement(Uri10_40.convertUri(src.getPropertyElement()));
|
||||
if (src.hasSystem())
|
||||
|
@ -244,7 +244,7 @@ public class ConceptMap10_40 {
|
|||
return res;
|
||||
for (org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent t : src.getTarget()) {
|
||||
org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.addTarget(convertTargetElementComponent(t));
|
||||
res.add(new SourceElementComponentWrapper<>(tgt, src.getCodeSystem(), t.getCodeSystem()));
|
||||
|
@ -256,7 +256,7 @@ public class ConceptMap10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
tgt.setCodeSystem(g.getSource());
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement()));
|
||||
|
@ -269,7 +269,7 @@ public class ConceptMap10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
tgt.setCodeSystem(g.getTarget());
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement()));
|
||||
|
@ -288,7 +288,7 @@ public class ConceptMap10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement()));
|
||||
if (src.hasEquivalence())
|
||||
|
|
|
@ -106,7 +106,7 @@ public class Condition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.addCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_40.convertReference(t));
|
||||
|
@ -117,7 +117,7 @@ public class Condition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept cc : src.getCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(cc));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_40.convertReference(t));
|
||||
|
@ -128,7 +128,7 @@ public class Condition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasSummary())
|
||||
tgt.setSummary(CodeableConcept10_40.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getAssessment()) tgt.addAssessment(Reference10_40.convertReference(t));
|
||||
|
@ -139,7 +139,7 @@ public class Condition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionStageComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasSummary())
|
||||
tgt.setSummary(CodeableConcept10_40.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment())
|
||||
|
|
|
@ -185,7 +185,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertDocumentMode(src.getModeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
@ -199,7 +199,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertDocumentMode(src.getModeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
@ -213,7 +213,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement()));
|
||||
if (src.hasUrl())
|
||||
|
@ -225,7 +225,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement()));
|
||||
if (src.hasUrl())
|
||||
|
@ -237,7 +237,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint())
|
||||
tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
if (src.hasReliableCacheElement())
|
||||
|
@ -270,7 +270,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint())
|
||||
tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
if (src.hasReliableCacheElement())
|
||||
|
@ -304,7 +304,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasProtocol())
|
||||
tgt.setProtocol(Coding10_40.convertCoding(src.getProtocol()));
|
||||
if (src.hasAddress())
|
||||
|
@ -316,7 +316,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasProtocol())
|
||||
tgt.setProtocol(Coding10_40.convertCoding(src.getProtocol()));
|
||||
if (src.hasAddress())
|
||||
|
@ -328,7 +328,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
@ -353,7 +353,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
@ -388,7 +388,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasDefinition())
|
||||
|
@ -400,7 +400,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasDefinitionElement())
|
||||
|
@ -412,7 +412,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfile())
|
||||
|
@ -442,7 +442,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfile())
|
||||
|
@ -472,7 +472,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasDefinition())
|
||||
|
@ -488,7 +488,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasDefinition())
|
||||
|
@ -504,7 +504,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCorsElement())
|
||||
tgt.setCorsElement(Boolean10_40.convertBoolean(src.getCorsElement()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService())
|
||||
|
@ -518,7 +518,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCorsElement())
|
||||
tgt.setCorsElement(Boolean10_40.convertBoolean(src.getCorsElement()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService())
|
||||
|
@ -532,7 +532,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasVersionElement())
|
||||
|
@ -546,7 +546,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasVersionElement())
|
||||
|
@ -642,7 +642,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
@ -654,7 +654,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
@ -748,7 +748,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
@ -760,7 +760,7 @@ public class Conformance10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement()));
|
||||
if (src.hasDocumentation())
|
||||
|
|
|
@ -90,7 +90,7 @@ public class DataElement10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentityElement())
|
||||
tgt.setIdentityElement(Id10_40.convertId(src.getIdentityElement()));
|
||||
if (src.hasUriElement())
|
||||
|
|
|
@ -70,7 +70,7 @@ public class DetectedIssue10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasAction())
|
||||
tgt.setAction(CodeableConcept10_40.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasDate())
|
||||
|
@ -84,7 +84,7 @@ public class DetectedIssue10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasAction())
|
||||
tgt.setAction(CodeableConcept10_40.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasDate())
|
||||
|
|
|
@ -70,7 +70,7 @@ public class DeviceMetric10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement()));
|
||||
if (src.hasState())
|
||||
|
@ -84,7 +84,7 @@ public class DeviceMetric10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement()));
|
||||
if (src.hasState())
|
||||
|
|
|
@ -87,7 +87,7 @@ public class DiagnosticReport10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCommentElement())
|
||||
tgt.setCommentElement(String10_40.convertString(src.getCommentElement()));
|
||||
if (src.hasLink())
|
||||
|
@ -99,7 +99,7 @@ public class DiagnosticReport10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCommentElement())
|
||||
tgt.setCommentElement(String10_40.convertString(src.getCommentElement()));
|
||||
if (src.hasLink())
|
||||
|
|
|
@ -9,7 +9,7 @@ public class DocumentManifest10_40 {
|
|||
public static org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException {
|
||||
if (src == null || src.isEmpty()) return null;
|
||||
org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasRef()) tgt.setRef(Reference10_40.convertReference(src.getRef()));
|
||||
return tgt;
|
||||
|
@ -18,7 +18,7 @@ public class DocumentManifest10_40 {
|
|||
public static org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException {
|
||||
if (src == null || src.isEmpty()) return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasRef()) tgt.setRef(Reference10_40.convertReference(src.getRef()));
|
||||
return tgt;
|
||||
|
|
|
@ -123,7 +123,7 @@ public class DocumentReference10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasAttachment())
|
||||
tgt.setAttachment(Attachment10_40.convertAttachment(src.getAttachment()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(Coding10_40.convertCoding(t));
|
||||
|
@ -134,7 +134,7 @@ public class DocumentReference10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasAttachment())
|
||||
tgt.setAttachment(Attachment10_40.convertAttachment(src.getAttachment()));
|
||||
if (src.hasFormat())
|
||||
|
@ -146,7 +146,7 @@ public class DocumentReference10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasEncounter())
|
||||
tgt.addEncounter(Reference10_40.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent())
|
||||
|
@ -168,7 +168,7 @@ public class DocumentReference10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasEncounter())
|
||||
tgt.setEncounter(Reference10_40.convertReference(src.getEncounterFirstRep()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getEvent())
|
||||
|
@ -211,7 +211,7 @@ public class DocumentReference10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement()));
|
||||
if (src.hasTarget())
|
||||
|
@ -223,7 +223,7 @@ public class DocumentReference10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement()));
|
||||
if (src.hasTarget())
|
||||
|
|
|
@ -145,7 +145,7 @@ public class Encounter10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasPreAdmissionIdentifier())
|
||||
tgt.setPreAdmissionIdentifier(Identifier10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
if (src.hasOrigin())
|
||||
|
@ -171,7 +171,7 @@ public class Encounter10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasPreAdmissionIdentifier())
|
||||
tgt.setPreAdmissionIdentifier(Identifier10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
if (src.hasOrigin())
|
||||
|
@ -197,7 +197,7 @@ public class Encounter10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLocation())
|
||||
tgt.setLocation(Reference10_40.convertReference(src.getLocation()));
|
||||
if (src.hasStatus())
|
||||
|
@ -211,7 +211,7 @@ public class Encounter10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLocation())
|
||||
tgt.setLocation(Reference10_40.convertReference(src.getLocation()));
|
||||
if (src.hasStatus())
|
||||
|
@ -275,7 +275,7 @@ public class Encounter10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
@ -289,7 +289,7 @@ public class Encounter10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType())
|
||||
tgt.addType(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasPeriod())
|
||||
|
|
|
@ -127,7 +127,7 @@ public class EpisodeOfCare10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatus())
|
||||
tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement()));
|
||||
if (src.hasPeriod())
|
||||
|
@ -139,7 +139,7 @@ public class EpisodeOfCare10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasStatus())
|
||||
tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement()));
|
||||
if (src.hasPeriod())
|
||||
|
|
|
@ -120,7 +120,7 @@ public class FamilyMemberHistory10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasOutcome())
|
||||
|
@ -134,7 +134,7 @@ public class FamilyMemberHistory10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasOutcome())
|
||||
|
|
|
@ -64,7 +64,7 @@ public class Group10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -80,7 +80,7 @@ public class Group10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -96,7 +96,7 @@ public class Group10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r4.model.Group.GroupMemberComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(Reference10_40.convertReference(src.getEntity()));
|
||||
if (src.hasPeriod())
|
||||
|
@ -110,7 +110,7 @@ public class Group10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasEntity())
|
||||
tgt.setEntity(Reference10_40.convertReference(src.getEntity()));
|
||||
if (src.hasPeriod())
|
||||
|
|
|
@ -179,7 +179,7 @@ public class HealthcareService10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
tgt.setDaysOfWeek(src.getDaysOfWeek().stream()
|
||||
.map(HealthcareService10_40::convertDaysOfWeek)
|
||||
.collect(Collectors.toList()));
|
||||
|
@ -196,7 +196,7 @@ public class HealthcareService10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
tgt.setDaysOfWeek(src.getDaysOfWeek().stream()
|
||||
.map(HealthcareService10_40::convertDaysOfWeek)
|
||||
.collect(Collectors.toList()));
|
||||
|
@ -213,7 +213,7 @@ public class HealthcareService10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement()));
|
||||
if (src.hasDuring())
|
||||
|
@ -225,7 +225,7 @@ public class HealthcareService10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasDescriptionElement())
|
||||
tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement()));
|
||||
if (src.hasDuring())
|
||||
|
|
|
@ -131,7 +131,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasUri())
|
||||
tgt.setUri(src.getUri());
|
||||
return tgt;
|
||||
|
@ -141,7 +141,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
tgt.setType(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideDependencyType.REFERENCE);
|
||||
if (src.hasUri())
|
||||
tgt.setUri(src.getUri());
|
||||
|
@ -152,7 +152,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfileElement())
|
||||
|
@ -164,7 +164,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTypeElement())
|
||||
tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement()));
|
||||
if (src.hasProfile())
|
||||
|
@ -176,7 +176,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
tgt.setId(src.getId());
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
|
@ -190,7 +190,7 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent();
|
||||
tgt.setId("p" + (context.getGrouping().size() + 1));
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasName())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasDescription())
|
||||
|
@ -207,7 +207,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasExampleCanonicalType())
|
||||
tgt.setExampleFor(Canonical10_40.convertCanonicalToReference(src.getExampleCanonicalType()));
|
||||
if (src.hasName())
|
||||
|
@ -223,7 +223,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasExampleFor())
|
||||
tgt.setExample(Canonical10_40.convertReferenceToCanonical(src.getExampleFor()));
|
||||
if (src.hasName())
|
||||
|
@ -241,7 +241,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasSource()) {
|
||||
if (src.hasSourceElement())
|
||||
tgt.setName(convertUriToUrl(src.getSourceElement()));
|
||||
|
@ -259,7 +259,7 @@ public class ImplementationGuide10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameUrlType())
|
||||
tgt.setSource(src.getNameUrlType().getValue());
|
||||
if (src.hasTitleElement())
|
||||
|
|
|
@ -194,14 +194,14 @@ public class List10_40 {
|
|||
}
|
||||
|
||||
public static void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, org.hl7.fhir.dstu2.model.BackboneElement tgt) throws FHIRException {
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_40.convertExtension(e));
|
||||
}
|
||||
}
|
||||
|
||||
public static void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, org.hl7.fhir.r4.model.BackboneElement tgt) throws FHIRException {
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) {
|
||||
tgt.addModifierExtension(Extension10_40.convertExtension(e));
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ public class Location10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r4.model.Location.LocationPositionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLongitudeElement())
|
||||
tgt.setLongitudeElement(Decimal10_40.convertDecimal(src.getLongitudeElement()));
|
||||
if (src.hasLatitudeElement())
|
||||
|
@ -132,7 +132,7 @@ public class Location10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLongitudeElement())
|
||||
tgt.setLongitudeElement(Decimal10_40.convertDecimal(src.getLongitudeElement()));
|
||||
if (src.hasLatitudeElement())
|
||||
|
|
|
@ -52,7 +52,7 @@ public class Medication10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Medication.MedicationBatchComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationBatchComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLotNumber())
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
if (src.hasExpirationDate())
|
||||
|
@ -82,7 +82,7 @@ public class Medication10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasItem())
|
||||
tgt.setItem(Reference10_40.convertReference(src.getItem()));
|
||||
if (src.hasAmount())
|
||||
|
|
|
@ -204,7 +204,7 @@ public class MedicationDispense10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(CodeableConcept10_40.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReason())
|
||||
|
@ -218,7 +218,7 @@ public class MedicationDispense10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setType(CodeableConcept10_40.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason())
|
||||
|
|
|
@ -15,7 +15,7 @@ public class MessageHeader10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasTarget())
|
||||
|
@ -29,7 +29,7 @@ public class MessageHeader10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasTarget())
|
||||
|
@ -93,7 +93,7 @@ public class MessageHeader10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifierElement())
|
||||
tgt.setIdentifierElement(Id10_40.convertId(src.getIdentifierElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -107,7 +107,7 @@ public class MessageHeader10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasIdentifierElement())
|
||||
tgt.setIdentifierElement(Id10_40.convertId(src.getIdentifierElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -121,7 +121,7 @@ public class MessageHeader10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasSoftwareElement())
|
||||
|
@ -139,7 +139,7 @@ public class MessageHeader10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasSoftwareElement())
|
||||
|
|
|
@ -204,7 +204,7 @@ public class NamingSystem10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement()));
|
||||
if (src.hasValueElement())
|
||||
|
@ -220,7 +220,7 @@ public class NamingSystem10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasType())
|
||||
tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement()));
|
||||
if (src.hasValueElement())
|
||||
|
|
|
@ -116,7 +116,7 @@ public class Observation10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -132,7 +132,7 @@ public class Observation10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationComponentComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasCode())
|
||||
tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasValue())
|
||||
|
@ -148,7 +148,7 @@ public class Observation10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLow())
|
||||
tgt.setLow(SimpleQuantity10_40.convertSimpleQuantity(src.getLow()));
|
||||
if (src.hasHigh())
|
||||
|
@ -166,7 +166,7 @@ public class Observation10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLow())
|
||||
tgt.setLow(SimpleQuantity10_40.convertSimpleQuantity(src.getLow()));
|
||||
if (src.hasHigh())
|
||||
|
|
|
@ -132,7 +132,7 @@ public class OperationDefinition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasStrength())
|
||||
tgt.setStrengthElement(ElementDefinition10_40.convertBindingStrength(src.getStrengthElement()));
|
||||
Type t = ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getValueSet());
|
||||
|
@ -150,7 +150,7 @@ public class OperationDefinition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasStrength())
|
||||
tgt.setStrengthElement(ElementDefinition10_40.convertBindingStrength(src.getStrengthElement()));
|
||||
if (src.hasValueSet()) {
|
||||
|
@ -167,7 +167,7 @@ public class OperationDefinition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(Code10_40.convertCode(src.getNameElement()));
|
||||
if (src.hasUse())
|
||||
|
@ -194,7 +194,7 @@ public class OperationDefinition10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(Code10_40.convertCode(src.getNameElement()));
|
||||
if (src.hasUse())
|
||||
|
|
|
@ -281,7 +281,7 @@ public class OperationOutcome10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasSeverity())
|
||||
tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement()));
|
||||
if (src.hasCode())
|
||||
|
@ -298,7 +298,7 @@ public class OperationOutcome10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasSeverity())
|
||||
tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement()));
|
||||
if (src.hasCode())
|
||||
|
|
|
@ -59,7 +59,7 @@ public class Organization10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasPurpose())
|
||||
tgt.setPurpose(CodeableConcept10_40.convertCodeableConcept(src.getPurpose()));
|
||||
if (src.hasName())
|
||||
|
@ -75,7 +75,7 @@ public class Organization10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.r4.model.Organization.OrganizationContactComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasPurpose())
|
||||
tgt.setPurpose(CodeableConcept10_40.convertCodeableConcept(src.getPurpose()));
|
||||
if (src.hasName())
|
||||
|
|
|
@ -30,7 +30,7 @@ public class Parameters10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasValue())
|
||||
|
@ -46,7 +46,7 @@ public class Parameters10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasNameElement())
|
||||
tgt.setNameElement(String10_40.convertString(src.getNameElement()));
|
||||
if (src.hasValue())
|
||||
|
|
|
@ -42,7 +42,7 @@ public class Patient10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Patient.ContactComponent tgt = new org.hl7.fhir.r4.model.Patient.ContactComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship())
|
||||
tgt.addRelationship(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasName())
|
||||
|
@ -64,7 +64,7 @@ public class Patient10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRelationship())
|
||||
tgt.addRelationship(CodeableConcept10_40.convertCodeableConcept(t));
|
||||
if (src.hasName())
|
||||
|
@ -211,7 +211,7 @@ public class Patient10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLanguage())
|
||||
tgt.setLanguage(CodeableConcept10_40.convertCodeableConcept(src.getLanguage()));
|
||||
if (src.hasPreferredElement())
|
||||
|
@ -223,7 +223,7 @@ public class Patient10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLanguage())
|
||||
tgt.setLanguage(CodeableConcept10_40.convertCodeableConcept(src.getLanguage()));
|
||||
if (src.hasPreferredElement())
|
||||
|
@ -235,7 +235,7 @@ public class Patient10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasOther())
|
||||
tgt.setOther(Reference10_40.convertReference(src.getOther()));
|
||||
if (src.hasType())
|
||||
|
@ -247,7 +247,7 @@ public class Patient10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientLinkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasOther())
|
||||
tgt.setOther(Reference10_40.convertReference(src.getOther()));
|
||||
if (src.hasType())
|
||||
|
|
|
@ -114,7 +114,7 @@ public class Person10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTarget())
|
||||
tgt.setTarget(Reference10_40.convertReference(src.getTarget()));
|
||||
if (src.hasAssurance())
|
||||
|
@ -126,7 +126,7 @@ public class Person10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.r4.model.Person.PersonLinkComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasTarget())
|
||||
tgt.setTarget(Reference10_40.convertReference(src.getTarget()));
|
||||
if (src.hasAssurance())
|
||||
|
|
|
@ -64,7 +64,7 @@ public class Practitioner10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier())
|
||||
tgt.addIdentifier(Identifier10_40.convertIdentifier(t));
|
||||
if (src.hasCode())
|
||||
|
@ -80,7 +80,7 @@ public class Practitioner10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier())
|
||||
tgt.addIdentifier(Identifier10_40.convertIdentifier(t));
|
||||
if (src.hasCode())
|
||||
|
|
|
@ -82,7 +82,7 @@ public class Procedure10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasActor())
|
||||
tgt.setActor(Reference10_40.convertReference(src.getActor()));
|
||||
if (src.hasRole())
|
||||
|
@ -94,7 +94,7 @@ public class Procedure10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasAction())
|
||||
tgt.setAction(CodeableConcept10_40.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasManipulated())
|
||||
|
|
|
@ -89,7 +89,7 @@ public class Questionnaire10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addConcept(Coding10_40.convertCoding(t));
|
||||
|
@ -111,7 +111,7 @@ public class Questionnaire10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_40.convertCoding(t));
|
||||
|
@ -188,7 +188,7 @@ public class Questionnaire10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addConcept(Coding10_40.convertCoding(t));
|
||||
|
@ -218,7 +218,7 @@ public class Questionnaire10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_40.convertCoding(t));
|
||||
|
|
|
@ -14,7 +14,7 @@ public class QuestionnaireResponse10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
@ -31,7 +31,7 @@ public class QuestionnaireResponse10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
@ -98,7 +98,7 @@ public class QuestionnaireResponse10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
@ -114,7 +114,7 @@ public class QuestionnaireResponse10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasValue())
|
||||
tgt.setValue(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getValue()));
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup())
|
||||
|
@ -126,7 +126,7 @@ public class QuestionnaireResponse10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasValue())
|
||||
tgt.setValue(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getValue()));
|
||||
for (org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem())
|
||||
|
@ -138,7 +138,7 @@ public class QuestionnaireResponse10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasLinkIdElement())
|
||||
tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement()));
|
||||
if (src.hasTextElement())
|
||||
|
|
|
@ -64,7 +64,7 @@ public class RiskAssessment10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasOutcome())
|
||||
tgt.setOutcome(CodeableConcept10_40.convertCodeableConcept(src.getOutcome()));
|
||||
if (src.hasProbability())
|
||||
|
@ -82,7 +82,7 @@ public class RiskAssessment10_40 {
|
|||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent();
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt);
|
||||
ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt);
|
||||
if (src.hasOutcome())
|
||||
tgt.setOutcome(CodeableConcept10_40.convertCodeableConcept(src.getOutcome()));
|
||||
if (src.hasProbability())
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue