Merge pull request #128 from hapifhir/wrap_all_conversion_accessors

Wrap all conversion accessors
This commit is contained in:
Grahame Grieve 2020-01-30 06:57:15 +11:00 committed by GitHub
commit 9ba52134f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
513 changed files with 68067 additions and 42297 deletions

View File

@ -10,15 +10,33 @@ public class Account10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Account tgt = new org.hl7.fhir.dstu2.model.Account(); org.hl7.fhir.dstu2.model.Account tgt = new org.hl7.fhir.dstu2.model.Account();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasStatus()) {
tgt.setStatus(convertAccountStatus(src.getStatus())); tgt.setStatus(convertAccountStatus(src.getStatus()));
}
if (src.hasActive()) {
tgt.setActivePeriod(VersionConvertor_10_30.convertPeriod(src.getActive())); tgt.setActivePeriod(VersionConvertor_10_30.convertPeriod(src.getActive()));
}
if (src.hasBalance()) {
tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance())); tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasOwner()) {
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner())); tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -27,17 +45,31 @@ public class Account10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Account tgt = new org.hl7.fhir.dstu3.model.Account(); org.hl7.fhir.dstu3.model.Account tgt = new org.hl7.fhir.dstu3.model.Account();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasName()) if (src.hasName())
tgt.setName(src.getName()); tgt.setName(src.getName());
if (src.hasType()) if (src.hasType())
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
if (src.hasStatus()) {
tgt.setStatus(convertAccountStatus(src.getStatus())); tgt.setStatus(convertAccountStatus(src.getStatus()));
}
if (src.hasActivePeriod()) {
tgt.setActive(VersionConvertor_10_30.convertPeriod(src.getActivePeriod())); tgt.setActive(VersionConvertor_10_30.convertPeriod(src.getActivePeriod()));
}
if (src.hasBalance()) {
tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance())); tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasOwner()) {
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner())); tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }

View File

@ -10,17 +10,39 @@ public class Appointment10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Appointment tgt = new org.hl7.fhir.dstu2.model.Appointment(); org.hl7.fhir.dstu2.model.Appointment tgt = new org.hl7.fhir.dstu2.model.Appointment();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertAppointmentStatus(src.getStatus())); tgt.setStatus(convertAppointmentStatus(src.getStatus()));
}
if (src.hasServiceType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPriority()) {
tgt.setPriority(src.getPriority()); tgt.setPriority(src.getPriority());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasMinutesDuration()) {
tgt.setMinutesDuration(src.getMinutesDuration()); tgt.setMinutesDuration(src.getMinutesDuration());
}
if (src.hasSlot()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t)); for (org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
}
return tgt; return tgt;
} }
@ -29,18 +51,38 @@ public class Appointment10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Appointment tgt = new org.hl7.fhir.dstu3.model.Appointment(); org.hl7.fhir.dstu3.model.Appointment tgt = new org.hl7.fhir.dstu3.model.Appointment();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertAppointmentStatus(src.getStatus())); tgt.setStatus(convertAppointmentStatus(src.getStatus()));
}
if (src.hasType()) if (src.hasType())
tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
if (src.hasPriority()) {
tgt.setPriority(src.getPriority()); tgt.setPriority(src.getPriority());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasMinutesDuration()) {
tgt.setMinutesDuration(src.getMinutesDuration()); tgt.setMinutesDuration(src.getMinutesDuration());
}
if (src.hasSlot()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t)); for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
}
return tgt; return tgt;
} }
@ -49,10 +91,18 @@ public class Appointment10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent(); org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasRequired()) {
tgt.setRequired(convertParticipantRequired(src.getRequired())); tgt.setRequired(convertParticipantRequired(src.getRequired()));
}
if (src.hasStatus()) {
tgt.setStatus(convertParticipationStatus(src.getStatus())); tgt.setStatus(convertParticipationStatus(src.getStatus()));
}
return tgt; return tgt;
} }
@ -61,10 +111,18 @@ public class Appointment10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent(); org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasRequired()) {
tgt.setRequired(convertParticipantRequired(src.getRequired())); tgt.setRequired(convertParticipantRequired(src.getRequired()));
}
if (src.hasStatus()) {
tgt.setStatus(convertParticipationStatus(src.getStatus())); tgt.setStatus(convertParticipationStatus(src.getStatus()));
}
return tgt; return tgt;
} }

View File

@ -10,14 +10,30 @@ public class AppointmentResponse10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.AppointmentResponse tgt = new org.hl7.fhir.dstu2.model.AppointmentResponse(); org.hl7.fhir.dstu2.model.AppointmentResponse tgt = new org.hl7.fhir.dstu2.model.AppointmentResponse();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasAppointment()) {
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment())); tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasParticipantType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasParticipantStatus()) {
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus())); tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class AppointmentResponse10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.AppointmentResponse tgt = new org.hl7.fhir.dstu3.model.AppointmentResponse(); org.hl7.fhir.dstu3.model.AppointmentResponse tgt = new org.hl7.fhir.dstu3.model.AppointmentResponse();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasAppointment()) {
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment())); tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasParticipantType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasParticipantStatus()) {
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus())); tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }

View File

@ -10,16 +10,36 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent tgt = new org.hl7.fhir.dstu2.model.AuditEvent(); org.hl7.fhir.dstu2.model.AuditEvent tgt = new org.hl7.fhir.dstu2.model.AuditEvent();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.getEvent().setType(VersionConvertor_10_30.convertCoding(src.getType())); tgt.getEvent().setType(VersionConvertor_10_30.convertCoding(src.getType()));
}
if (src.hasSubtype()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getSubtype()) tgt.getEvent().addSubtype(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getSubtype()) tgt.getEvent().addSubtype(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasAction()) {
tgt.getEvent().setAction(convertAuditEventAction(src.getAction())); tgt.getEvent().setAction(convertAuditEventAction(src.getAction()));
}
if (src.hasRecorded()) {
tgt.getEvent().setDateTime(src.getRecorded()); tgt.getEvent().setDateTime(src.getRecorded());
}
if (src.hasOutcome()) {
tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome())); tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome()));
}
if (src.hasOutcomeDesc()) {
tgt.getEvent().setOutcomeDesc(src.getOutcomeDesc()); tgt.getEvent().setOutcomeDesc(src.getOutcomeDesc());
}
if (src.hasPurposeOfEvent()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getPurposeOfEvent()) for (org.hl7.fhir.dstu3.model.Coding cc : t.getCoding()) tgt.getEvent().addPurposeOfEvent(VersionConvertor_10_30.convertCoding(cc)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getPurposeOfEvent()) for (org.hl7.fhir.dstu3.model.Coding cc : t.getCoding()) tgt.getEvent().addPurposeOfEvent(VersionConvertor_10_30.convertCoding(cc));
}
if (src.hasAgent()) {
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t)); for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t));
}
if (src.hasSource()) {
tgt.setSource(convertAuditEventSourceComponent(src.getSource())); tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
}
if (src.hasEntity()) {
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t)); for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t));
}
return tgt; return tgt;
} }
@ -28,18 +48,38 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.AuditEvent tgt = new org.hl7.fhir.dstu3.model.AuditEvent(); org.hl7.fhir.dstu3.model.AuditEvent tgt = new org.hl7.fhir.dstu3.model.AuditEvent();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasEvent()) {
if (src.hasEvent()) { if (src.hasEvent()) {
tgt.setType(VersionConvertor_10_30.convertCoding(src.getEvent().getType())); tgt.setType(VersionConvertor_10_30.convertCoding(src.getEvent().getType()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getSubtype()) tgt.addSubtype(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getSubtype()) tgt.addSubtype(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasEvent()) {
tgt.setAction(convertAuditEventAction(src.getEvent().getAction())); tgt.setAction(convertAuditEventAction(src.getEvent().getAction()));
}
if (src.hasEvent()) {
tgt.setRecorded(src.getEvent().getDateTime()); tgt.setRecorded(src.getEvent().getDateTime());
}
if (src.hasEvent()) {
tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome())); tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome()));
}
if (src.hasEvent()) {
tgt.setOutcomeDesc(src.getEvent().getOutcomeDesc()); tgt.setOutcomeDesc(src.getEvent().getOutcomeDesc());
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getPurposeOfEvent()) tgt.addPurposeOfEvent().addCoding(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getPurposeOfEvent()) tgt.addPurposeOfEvent().addCoding(VersionConvertor_10_30.convertCoding(t));
} }
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t)); for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t));
}
if (src.hasSource()) {
tgt.setSource(convertAuditEventSourceComponent(src.getSource())); tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
}
if (src.hasObject()) {
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent t : src.getObject()) tgt.addEntity(convertAuditEventEntityComponent(t)); for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent t : src.getObject()) tgt.addEntity(convertAuditEventEntityComponent(t));
}
return tgt; return tgt;
} }
@ -86,17 +126,39 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent(); org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRole()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
}
if (src.hasUserId()) {
tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId())); tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId()));
}
if (src.hasAltId()) {
tgt.setAltId(src.getAltId()); tgt.setAltId(src.getAltId());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRequestor()) {
tgt.setRequestor(src.getRequestor()); tgt.setRequestor(src.getRequestor());
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasPolicy()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
}
if (src.hasMedia()) {
tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia())); tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia()));
}
if (src.hasNetwork()) {
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork())); tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
}
if (src.hasPurposeOfUse()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getPurposeOfUse()) tgt.addPurposeOfUse().addCoding(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getPurposeOfUse()) tgt.addPurposeOfUse().addCoding(VersionConvertor_10_30.convertCoding(t));
}
return tgt; return tgt;
} }
@ -105,17 +167,39 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRole()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
}
if (src.hasUserId()) {
tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId())); tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId()));
}
if (src.hasAltId()) {
tgt.setAltId(src.getAltId()); tgt.setAltId(src.getAltId());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRequestor()) {
tgt.setRequestor(src.getRequestor()); tgt.setRequestor(src.getRequestor());
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasPolicy()) {
for (org.hl7.fhir.dstu3.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); for (org.hl7.fhir.dstu3.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
}
if (src.hasMedia()) {
tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia())); tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia()));
}
if (src.hasNetwork()) {
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork())); tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
}
if (src.hasPurposeOfUse()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getPurposeOfUse()) for (org.hl7.fhir.dstu3.model.Coding cc : t.getCoding()) tgt.addPurposeOfUse(VersionConvertor_10_30.convertCoding(cc)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getPurposeOfUse()) for (org.hl7.fhir.dstu3.model.Coding cc : t.getCoding()) tgt.addPurposeOfUse(VersionConvertor_10_30.convertCoding(cc));
}
return tgt; return tgt;
} }
@ -124,8 +208,12 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
if (src.hasType()) {
tgt.setType(convertAuditEventParticipantNetworkType(src.getType())); tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
}
return tgt; return tgt;
} }
@ -134,8 +222,12 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent(); org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
if (src.hasType()) {
tgt.setType(convertAuditEventParticipantNetworkType(src.getType())); tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
}
return tgt; return tgt;
} }
@ -144,16 +236,36 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent(); org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
}
if (src.hasRole()) {
tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole())); tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole()));
}
if (src.hasLifecycle()) {
tgt.setLifecycle(VersionConvertor_10_30.convertCoding(src.getLifecycle())); tgt.setLifecycle(VersionConvertor_10_30.convertCoding(src.getLifecycle()));
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasQuery()) {
tgt.setQuery(src.getQuery()); tgt.setQuery(src.getQuery());
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t)); for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
}
return tgt; return tgt;
} }
@ -162,16 +274,36 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
}
if (src.hasRole()) {
tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole())); tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole()));
}
if (src.hasLifecycle()) {
tgt.setLifecycle(VersionConvertor_10_30.convertCoding(src.getLifecycle())); tgt.setLifecycle(VersionConvertor_10_30.convertCoding(src.getLifecycle()));
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasQuery()) {
tgt.setQuery(src.getQuery()); tgt.setQuery(src.getQuery());
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t)); for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
}
return tgt; return tgt;
} }
@ -180,8 +312,12 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -190,8 +326,12 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent(); org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -272,9 +412,15 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSite()) {
tgt.setSite(src.getSite()); tgt.setSite(src.getSite());
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCoding(t));
}
return tgt; return tgt;
} }
@ -283,9 +429,15 @@ public class AuditEvent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent(); org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSite()) {
tgt.setSite(src.getSite()); tgt.setSite(src.getSite());
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCoding(t));
}
return tgt; return tgt;
} }
} }

View File

@ -10,11 +10,21 @@ public class Basic10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Basic tgt = new org.hl7.fhir.dstu2.model.Basic(); org.hl7.fhir.dstu2.model.Basic tgt = new org.hl7.fhir.dstu2.model.Basic();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }
@ -23,11 +33,21 @@ public class Basic10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Basic tgt = new org.hl7.fhir.dstu3.model.Basic(); org.hl7.fhir.dstu3.model.Basic tgt = new org.hl7.fhir.dstu3.model.Basic();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,8 +10,12 @@ public class Binary10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Binary tgt = new org.hl7.fhir.dstu2.model.Binary(); org.hl7.fhir.dstu2.model.Binary tgt = new org.hl7.fhir.dstu2.model.Binary();
VersionConvertor_10_30.copyResource(src, tgt); VersionConvertor_10_30.copyResource(src, tgt);
if (src.hasContentType()) {
tgt.setContentType(src.getContentType()); tgt.setContentType(src.getContentType());
}
if (src.hasContent()) {
tgt.setContent(src.getContent()); tgt.setContent(src.getContent());
}
return tgt; return tgt;
} }
@ -20,8 +24,12 @@ public class Binary10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Binary tgt = new org.hl7.fhir.dstu3.model.Binary(); org.hl7.fhir.dstu3.model.Binary tgt = new org.hl7.fhir.dstu3.model.Binary();
VersionConvertor_10_30.copyResource(src, tgt); VersionConvertor_10_30.copyResource(src, tgt);
if (src.hasContentType()) {
tgt.setContentType(src.getContentType()); tgt.setContentType(src.getContentType());
}
if (src.hasContent()) {
tgt.setContent(src.getContent()); tgt.setContent(src.getContent());
}
return tgt; return tgt;
} }
} }

View File

@ -11,12 +11,20 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Bundle tgt = new org.hl7.fhir.dstu3.model.Bundle(); org.hl7.fhir.dstu3.model.Bundle tgt = new org.hl7.fhir.dstu3.model.Bundle();
VersionConvertor_10_30.copyResource(src, tgt); VersionConvertor_10_30.copyResource(src, tgt);
if (src.hasType()) {
tgt.setType(convertBundleType(src.getType())); tgt.setType(convertBundleType(src.getType()));
}
if (src.hasTotal()) if (src.hasTotal())
tgt.setTotal(src.getTotal()); tgt.setTotal(src.getTotal());
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasEntry()) {
for (org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t)); for (org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t));
}
if (src.hasSignature()) {
tgt.setSignature(VersionConvertor_10_30.convertSignature(src.getSignature())); tgt.setSignature(VersionConvertor_10_30.convertSignature(src.getSignature()));
}
return tgt; return tgt;
} }
@ -25,11 +33,17 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle tgt = new org.hl7.fhir.dstu2.model.Bundle(); org.hl7.fhir.dstu2.model.Bundle tgt = new org.hl7.fhir.dstu2.model.Bundle();
VersionConvertor_10_30.copyResource(src, tgt); VersionConvertor_10_30.copyResource(src, tgt);
if (src.hasType()) {
tgt.setType(convertBundleType(src.getType())); tgt.setType(convertBundleType(src.getType()));
}
if (src.hasTotal()) if (src.hasTotal())
tgt.setTotal(src.getTotal()); tgt.setTotal(src.getTotal());
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasEntry()) {
for (org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t, advisor)); for (org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t, advisor));
}
if (src.hasSignature()) if (src.hasSignature())
tgt.setSignature(VersionConvertor_10_30.convertSignature(src.getSignature())); tgt.setSignature(VersionConvertor_10_30.convertSignature(src.getSignature()));
return tgt; return tgt;
@ -70,12 +84,24 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent(); org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasFullUrl()) {
tgt.setFullUrl(src.getFullUrl()); tgt.setFullUrl(src.getFullUrl());
}
if (src.hasResource()) {
tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource())); tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource()));
}
if (src.hasSearch()) {
tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch())); tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
}
if (src.hasRequest()) {
tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest())); tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
}
if (src.hasResponse()) {
tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse())); tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
}
return tgt; return tgt;
} }
@ -84,12 +110,24 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMethod()) {
tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setMethod(convertHTTPVerb(src.getMethod()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIfNoneMatch()) {
tgt.setIfNoneMatch(src.getIfNoneMatch()); tgt.setIfNoneMatch(src.getIfNoneMatch());
}
if (src.hasIfModifiedSince()) {
tgt.setIfModifiedSince(src.getIfModifiedSince()); tgt.setIfModifiedSince(src.getIfModifiedSince());
}
if (src.hasIfMatch()) {
tgt.setIfMatch(src.getIfMatch()); tgt.setIfMatch(src.getIfMatch());
}
if (src.hasIfNoneExist()) {
tgt.setIfNoneExist(src.getIfNoneExist()); tgt.setIfNoneExist(src.getIfNoneExist());
}
return tgt; return tgt;
} }
@ -98,12 +136,24 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent(); org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMethod()) {
tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setMethod(convertHTTPVerb(src.getMethod()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIfNoneMatch()) {
tgt.setIfNoneMatch(src.getIfNoneMatch()); tgt.setIfNoneMatch(src.getIfNoneMatch());
}
if (src.hasIfModifiedSince()) {
tgt.setIfModifiedSince(src.getIfModifiedSince()); tgt.setIfModifiedSince(src.getIfModifiedSince());
}
if (src.hasIfMatch()) {
tgt.setIfMatch(src.getIfMatch()); tgt.setIfMatch(src.getIfMatch());
}
if (src.hasIfNoneExist()) {
tgt.setIfNoneExist(src.getIfNoneExist()); tgt.setIfNoneExist(src.getIfNoneExist());
}
return tgt; return tgt;
} }
@ -112,10 +162,18 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(src.getStatus()); tgt.setStatus(src.getStatus());
}
if (src.hasLocation()) {
tgt.setLocation(src.getLocation()); tgt.setLocation(src.getLocation());
}
if (src.hasEtag()) {
tgt.setEtag(src.getEtag()); tgt.setEtag(src.getEtag());
}
if (src.hasLastModified()) {
tgt.setLastModified(src.getLastModified()); tgt.setLastModified(src.getLastModified());
}
return tgt; return tgt;
} }
@ -124,10 +182,18 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent(); org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(src.getStatus()); tgt.setStatus(src.getStatus());
}
if (src.hasLocation()) {
tgt.setLocation(src.getLocation()); tgt.setLocation(src.getLocation());
}
if (src.hasEtag()) {
tgt.setEtag(src.getEtag()); tgt.setEtag(src.getEtag());
}
if (src.hasLastModified()) {
tgt.setLastModified(src.getLastModified()); tgt.setLastModified(src.getLastModified());
}
return tgt; return tgt;
} }
@ -136,8 +202,12 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertSearchEntryMode(src.getMode())); tgt.setMode(convertSearchEntryMode(src.getMode()));
}
if (src.hasScore()) {
tgt.setScore(src.getScore()); tgt.setScore(src.getScore());
}
return tgt; return tgt;
} }
@ -146,8 +216,12 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent(); org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertSearchEntryMode(src.getMode())); tgt.setMode(convertSearchEntryMode(src.getMode()));
}
if (src.hasScore()) {
tgt.setScore(src.getScore()); tgt.setScore(src.getScore());
}
return tgt; return tgt;
} }
@ -156,8 +230,12 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRelation()) {
tgt.setRelation(src.getRelation()); tgt.setRelation(src.getRelation());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -166,8 +244,12 @@ public class Bundle10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent(); org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRelation()) {
tgt.setRelation(src.getRelation()); tgt.setRelation(src.getRelation());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }

View File

@ -10,17 +10,39 @@ public class CarePlan10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CarePlan tgt = new org.hl7.fhir.dstu3.model.CarePlan(); org.hl7.fhir.dstu3.model.CarePlan tgt = new org.hl7.fhir.dstu3.model.CarePlan();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanStatus(src.getStatus())); tgt.setStatus(convertCarePlanStatus(src.getStatus()));
}
if (src.hasContext()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCategory()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAddresses()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_30.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
}
if (src.hasActivity()) {
for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t)); for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
}
return tgt; return tgt;
} }
@ -29,17 +51,39 @@ public class CarePlan10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.CarePlan tgt = new org.hl7.fhir.dstu2.model.CarePlan(); org.hl7.fhir.dstu2.model.CarePlan tgt = new org.hl7.fhir.dstu2.model.CarePlan();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanStatus(src.getStatus())); tgt.setStatus(convertCarePlanStatus(src.getStatus()));
}
if (src.hasContext()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCategory()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAddresses()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_30.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
}
if (src.hasActivity()) {
for (org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t)); for (org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
}
return tgt; return tgt;
} }
@ -48,9 +92,15 @@ public class CarePlan10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent(); org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasProgress()) {
for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_30.convertAnnotation(t)); for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_30.convertAnnotation(t));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
}
if (src.hasDetail()) {
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
return tgt; return tgt;
} }
@ -59,9 +109,15 @@ public class CarePlan10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent(); org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasProgress()) {
for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_30.convertAnnotation(t)); for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_30.convertAnnotation(t));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
}
if (src.hasDetail()) {
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
return tgt; return tgt;
} }
@ -70,20 +126,48 @@ public class CarePlan10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent(); org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonReference()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_30.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus())); tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
}
if (src.hasProhibited()) {
tgt.setProhibited(src.getProhibited()); tgt.setProhibited(src.getProhibited());
}
if (src.hasScheduled()) {
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled())); tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasPerformer()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
}
if (src.hasProduct()) {
tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct())); tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct()));
}
if (src.hasDailyAmount()) {
tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount())); tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount()));
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -92,20 +176,48 @@ public class CarePlan10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent(); org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonReference()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_30.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus())); tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
}
if (src.hasProhibited()) {
tgt.setProhibited(src.getProhibited()); tgt.setProhibited(src.getProhibited());
}
if (src.hasScheduled()) {
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled())); tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasPerformer()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
}
if (src.hasProduct()) {
tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct())); tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct()));
}
if (src.hasDailyAmount()) {
tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount())); tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount()));
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }

View File

@ -11,20 +11,40 @@ public class ClinicalImpression10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ClinicalImpression tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression(); org.hl7.fhir.dstu3.model.ClinicalImpression tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasAssessor()) {
tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor())); tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor()));
}
if (src.hasStatus()) {
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus())); tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasPrevious()) {
tgt.setPrevious(VersionConvertor_10_30.convertReference(src.getPrevious())); tgt.setPrevious(VersionConvertor_10_30.convertReference(src.getPrevious()));
}
if (src.hasProblem()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getProblem()) tgt.addProblem(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getProblem()) tgt.addProblem(VersionConvertor_10_30.convertReference(t));
}
if (src.hasProtocol()) {
tgt.addProtocol(src.getProtocol()); tgt.addProtocol(src.getProtocol());
}
if (src.hasSummary()) {
tgt.setSummary(src.getSummary()); tgt.setSummary(src.getSummary());
}
if (src.hasFinding()) {
for (org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t)); for (org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
}
if (src.hasPrognosis()) if (src.hasPrognosis())
tgt.addPrognosisCodeableConcept().setText(src.getPrognosis()); tgt.addPrognosisCodeableConcept().setText(src.getPrognosis());
if (src.hasAction()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -33,19 +53,41 @@ public class ClinicalImpression10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ClinicalImpression tgt = new org.hl7.fhir.dstu2.model.ClinicalImpression(); org.hl7.fhir.dstu2.model.ClinicalImpression tgt = new org.hl7.fhir.dstu2.model.ClinicalImpression();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasAssessor()) {
tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor())); tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor()));
}
if (src.hasStatus()) {
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus())); tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasPrevious()) {
tgt.setPrevious(VersionConvertor_10_30.convertReference(src.getPrevious())); tgt.setPrevious(VersionConvertor_10_30.convertReference(src.getPrevious()));
}
if (src.hasProblem()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getProblem()) tgt.addProblem(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getProblem()) tgt.addProblem(VersionConvertor_10_30.convertReference(t));
}
if (src.hasProtocol()) {
for (UriType t : src.getProtocol()) tgt.setProtocol(t.asStringValue()); for (UriType t : src.getProtocol()) tgt.setProtocol(t.asStringValue());
}
if (src.hasSummary()) {
tgt.setSummary(src.getSummary()); tgt.setSummary(src.getSummary());
}
if (src.hasFinding()) {
for (org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t)); for (org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
}
if (src.hasPrognosisCodeableConcept()) {
tgt.setPrognosis(src.getPrognosisCodeableConceptFirstRep().getText()); tgt.setPrognosis(src.getPrognosisCodeableConceptFirstRep().getText());
}
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -54,7 +96,9 @@ public class ClinicalImpression10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent(); org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasItem()) {
tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItem())); tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItem()));
}
return tgt; return tgt;
} }
@ -65,7 +109,9 @@ public class ClinicalImpression10_30 {
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasItemCodeableConcept()) if (src.hasItemCodeableConcept())
try { try {
if (src.hasItemCodeableConcept()) {
tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItemCodeableConcept())); tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItemCodeableConcept()));
}
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
} }
return tgt; return tgt;

View File

@ -10,18 +10,42 @@ public class Communication10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Communication tgt = new org.hl7.fhir.dstu3.model.Communication(); org.hl7.fhir.dstu3.model.Communication tgt = new org.hl7.fhir.dstu3.model.Communication();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t)); for (org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationStatus(src.getStatus())); tgt.setStatus(convertCommunicationStatus(src.getStatus()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasSent()) {
tgt.setSent(src.getSent()); tgt.setSent(src.getSent());
}
if (src.hasReceived()) {
tgt.setReceived(src.getReceived()); tgt.setReceived(src.getReceived());
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
return tgt; return tgt;
} }
@ -30,18 +54,42 @@ public class Communication10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Communication tgt = new org.hl7.fhir.dstu2.model.Communication(); org.hl7.fhir.dstu2.model.Communication tgt = new org.hl7.fhir.dstu2.model.Communication();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategoryFirstRep()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t)); for (org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationStatus(src.getStatus())); tgt.setStatus(convertCommunicationStatus(src.getStatus()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasSent()) {
tgt.setSent(src.getSent()); tgt.setSent(src.getSent());
}
if (src.hasReceived()) {
tgt.setReceived(src.getReceived()); tgt.setReceived(src.getReceived());
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
return tgt; return tgt;
} }
@ -50,7 +98,9 @@ public class Communication10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent(); org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -59,7 +109,9 @@ public class Communication10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent(); org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }

View File

@ -10,20 +10,48 @@ public class CommunicationRequest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.CommunicationRequest tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest(); org.hl7.fhir.dstu2.model.CommunicationRequest tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategoryFirstRep()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t)); for (org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasRequester()) {
tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent())); tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus())); tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasOccurrence()) {
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getOccurrence())); tgt.setScheduled(VersionConvertor_10_30.convertType(src.getOccurrence()));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasAuthoredOn()) {
tgt.setRequestedOn(src.getAuthoredOn()); tgt.setRequestedOn(src.getAuthoredOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasPriority()) {
tgt.setPriority(convertPriorityCode(src.getPriority())); tgt.setPriority(convertPriorityCode(src.getPriority()));
}
return tgt; return tgt;
} }
@ -32,20 +60,48 @@ public class CommunicationRequest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CommunicationRequest tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest(); org.hl7.fhir.dstu3.model.CommunicationRequest tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t)); for (org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasRequester()) {
tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester())); tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus())); tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasScheduled()) {
tgt.setOccurrence(VersionConvertor_10_30.convertType(src.getScheduled())); tgt.setOccurrence(VersionConvertor_10_30.convertType(src.getScheduled()));
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasRequestedOn()) {
tgt.setAuthoredOn(src.getRequestedOn()); tgt.setAuthoredOn(src.getRequestedOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasPriority()) {
tgt.setPriority(convertPriorityCode(src.getPriority())); tgt.setPriority(convertPriorityCode(src.getPriority()));
}
return tgt; return tgt;
} }
@ -54,7 +110,9 @@ public class CommunicationRequest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent(); org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -63,7 +121,9 @@ public class CommunicationRequest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent(); org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }

View File

@ -10,25 +10,51 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Composition tgt = new org.hl7.fhir.dstu3.model.Composition(); org.hl7.fhir.dstu3.model.Composition tgt = new org.hl7.fhir.dstu3.model.Composition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasClass_()) {
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_())); tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasStatus()) {
tgt.setStatus(convertCompositionStatus(src.getStatus())); tgt.setStatus(convertCompositionStatus(src.getStatus()));
}
try { try {
if (src.hasConfidentiality()) {
tgt.setConfidentiality(org.hl7.fhir.dstu3.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality())); tgt.setConfidentiality(org.hl7.fhir.dstu3.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality()));
}
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e); throw new FHIRException(e);
} }
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasAttester()) {
for (org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasSection()) {
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
@ -37,21 +63,47 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Composition tgt = new org.hl7.fhir.dstu2.model.Composition(); org.hl7.fhir.dstu2.model.Composition tgt = new org.hl7.fhir.dstu2.model.Composition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasClass_()) {
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_())); tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasStatus()) {
tgt.setStatus(convertCompositionStatus(src.getStatus())); tgt.setStatus(convertCompositionStatus(src.getStatus()));
}
if (src.hasConfidentiality()) {
tgt.setConfidentiality(src.getConfidentiality().toCode()); tgt.setConfidentiality(src.getConfidentiality().toCode());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasAttester()) {
for (org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); for (org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t)); for (org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasSection()) {
for (org.hl7.fhir.dstu3.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.dstu3.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
@ -94,9 +146,15 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent(); org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
for (org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode> t : src.getMode()) VersionConvertor_10_30.copyElement(t, tgt.addModeElement().setValue(convertCompositionAttestationMode(t.getValue()))); for (org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode> t : src.getMode()) VersionConvertor_10_30.copyElement(t, tgt.addModeElement().setValue(convertCompositionAttestationMode(t.getValue())));
}
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
if (src.hasParty()) {
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty())); tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
}
return tgt; return tgt;
} }
@ -105,9 +163,15 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent(); org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode> t : src.getMode()) VersionConvertor_10_30.copyElement(t, tgt.addModeElement().setValue(convertCompositionAttestationMode(t.getValue()))); for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode> t : src.getMode()) VersionConvertor_10_30.copyElement(t, tgt.addModeElement().setValue(convertCompositionAttestationMode(t.getValue())));
}
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
if (src.hasParty()) {
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty())); tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
}
return tgt; return tgt;
} }
@ -116,9 +180,15 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent(); org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -127,9 +197,15 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent(); org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -172,18 +248,34 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent(); org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasText()) {
tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText())); tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText()));
}
try { try {
if (src.hasMode()) {
tgt.setMode(org.hl7.fhir.dstu3.model.Composition.SectionMode.fromCode(src.getMode())); tgt.setMode(org.hl7.fhir.dstu3.model.Composition.SectionMode.fromCode(src.getMode()));
}
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e); throw new FHIRException(e);
} }
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasEntry()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_30.convertReference(t));
}
if (src.hasEmptyReason()) {
tgt.setEmptyReason(VersionConvertor_10_30.convertCodeableConcept(src.getEmptyReason())); tgt.setEmptyReason(VersionConvertor_10_30.convertCodeableConcept(src.getEmptyReason()));
}
if (src.hasSection()) {
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
@ -192,14 +284,30 @@ public class Composition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent(); org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasText()) {
tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText())); tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText()));
}
if (src.hasMode()) {
tgt.setMode(src.getMode().toCode()); tgt.setMode(src.getMode().toCode());
}
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasEntry()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_30.convertReference(t));
}
if (src.hasEmptyReason()) {
tgt.setEmptyReason(VersionConvertor_10_30.convertCodeableConcept(src.getEmptyReason())); tgt.setEmptyReason(VersionConvertor_10_30.convertCodeableConcept(src.getEmptyReason()));
}
if (src.hasSection()) {
for (org.hl7.fhir.dstu3.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.dstu3.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
} }

View File

@ -4,7 +4,6 @@ import org.hl7.fhir.convertors.VersionConvertor_10_30;
import org.hl7.fhir.dstu3.model.ConceptMap; import org.hl7.fhir.dstu3.model.ConceptMap;
import org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent; import org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -15,26 +14,54 @@ public class ConceptMap10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ConceptMap tgt = new org.hl7.fhir.dstu2.model.ConceptMap(); org.hl7.fhir.dstu2.model.ConceptMap tgt = new org.hl7.fhir.dstu2.model.ConceptMap();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertType(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertType(src.getTarget()));
}
if (src.hasGroup()) {
for (org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup()) for (org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent t : g.getElement()) tgt.addElement(convertSourceElementComponent(t, g)); for (org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup()) for (org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent t : g.getElement()) tgt.addElement(convertSourceElementComponent(t, g));
}
return tgt; return tgt;
} }
@ -43,26 +70,50 @@ public class ConceptMap10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ConceptMap tgt = new org.hl7.fhir.dstu3.model.ConceptMap(); org.hl7.fhir.dstu3.model.ConceptMap tgt = new org.hl7.fhir.dstu3.model.ConceptMap();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t)); for (org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertType(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertType(src.getTarget()));
}
for (org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent t : src.getElement()) { for (org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent t : src.getElement()) {
List<VersionConvertor_10_30.SourceElementComponentWrapper> ws = convertSourceElementComponent(t); List<VersionConvertor_10_30.SourceElementComponentWrapper> ws = convertSourceElementComponent(t);
for (VersionConvertor_10_30.SourceElementComponentWrapper w : ws) getGroup(tgt, w.source, w.target).addElement(w.comp); for (VersionConvertor_10_30.SourceElementComponentWrapper w : ws) getGroup(tgt, w.source, w.target).addElement(w.comp);
@ -75,8 +126,12 @@ public class ConceptMap10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -85,8 +140,12 @@ public class ConceptMap10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent(); org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -149,9 +208,15 @@ public class ConceptMap10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent(); org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasElement()) {
tgt.setProperty(src.getElement()); tgt.setProperty(src.getElement());
}
if (src.hasCodeSystem()) {
tgt.setSystem(src.getCodeSystem()); tgt.setSystem(src.getCodeSystem());
}
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
return tgt; return tgt;
} }
@ -160,9 +225,15 @@ public class ConceptMap10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent(); org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasProperty()) {
tgt.setElement(src.getProperty()); tgt.setElement(src.getProperty());
}
if (src.hasSystem()) {
tgt.setCodeSystem(src.getSystem()); tgt.setCodeSystem(src.getSystem());
}
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
return tgt; return tgt;
} }
@ -173,10 +244,14 @@ public class ConceptMap10_30 {
for (org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent t : src.getTarget()) { 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(); org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
tgt.addTarget(convertTargetElementComponent(t)); tgt.addTarget(convertTargetElementComponent(t));
if (src.hasCodeSystem()) {
res.add(new VersionConvertor_10_30.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem())); res.add(new VersionConvertor_10_30.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem()));
} }
}
return res; return res;
} }
@ -186,8 +261,12 @@ public class ConceptMap10_30 {
org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent(); org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
tgt.setCodeSystem(g.getSource()); tgt.setCodeSystem(g.getSource());
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasTarget()) {
for (org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g)); for (org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g));
}
return tgt; return tgt;
} }
@ -197,11 +276,21 @@ public class ConceptMap10_30 {
org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent(); org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
tgt.setCodeSystem(g.getTarget()); tgt.setCodeSystem(g.getTarget());
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasEquivalence()) {
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
}
if (src.hasComment()) {
tgt.setComments(src.getComment()); tgt.setComments(src.getComment());
}
if (src.hasDependsOn()) {
for (org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}
if (src.hasProduct()) {
for (org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
}
return tgt; return tgt;
} }
@ -210,11 +299,21 @@ public class ConceptMap10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent(); org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasEquivalence()) {
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
}
if (src.hasComments()) {
tgt.setComment(src.getComments()); tgt.setComment(src.getComments());
}
if (src.hasDependsOn()) {
for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}
if (src.hasProduct()) {
for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
}
return tgt; return tgt;
} }

View File

@ -10,26 +10,54 @@ public class Condition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Condition tgt = new org.hl7.fhir.dstu3.model.Condition(); org.hl7.fhir.dstu3.model.Condition tgt = new org.hl7.fhir.dstu3.model.Condition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasAsserter()) {
tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter())); tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter()));
}
if (src.hasDateRecorded()) if (src.hasDateRecorded())
tgt.setAssertedDate(src.getDateRecorded()); tgt.setAssertedDate(src.getDateRecorded());
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
try { try {
if (src.hasClinicalStatus()) {
tgt.setClinicalStatus(org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.fromCode(src.getClinicalStatus())); tgt.setClinicalStatus(org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.fromCode(src.getClinicalStatus()));
}
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e); throw new FHIRException(e);
} }
if (src.hasVerificationStatus()) {
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus())); tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
}
if (src.hasSeverity()) {
tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity())); tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
}
if (src.hasAbatement()) {
tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement())); tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement()));
}
if (src.hasStage()) {
tgt.setStage(convertConditionStageComponent(src.getStage())); tgt.setStage(convertConditionStageComponent(src.getStage()));
}
if (src.hasEvidence()) {
for (org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t)); for (org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
}
if (src.hasBodySite()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -38,22 +66,50 @@ public class Condition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Condition tgt = new org.hl7.fhir.dstu2.model.Condition(); org.hl7.fhir.dstu2.model.Condition tgt = new org.hl7.fhir.dstu2.model.Condition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasAsserter()) {
tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter())); tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter()));
}
if (src.hasAssertedDate()) if (src.hasAssertedDate())
tgt.setDateRecorded(src.getAssertedDate()); tgt.setDateRecorded(src.getAssertedDate());
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasCategory()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasClinicalStatus()) {
tgt.setClinicalStatus(src.getClinicalStatus().toCode()); tgt.setClinicalStatus(src.getClinicalStatus().toCode());
}
if (src.hasVerificationStatus()) {
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus())); tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
}
if (src.hasSeverity()) {
tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity())); tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
}
if (src.hasAbatement()) {
tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement())); tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement()));
}
if (src.hasStage()) {
tgt.setStage(convertConditionStageComponent(src.getStage())); tgt.setStage(convertConditionStageComponent(src.getStage()));
}
if (src.hasEvidence()) {
for (org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t)); for (org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
}
if (src.hasBodySite()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -62,8 +118,12 @@ public class Condition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent(); org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getCode()) tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(cc)); for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getCode()) tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(cc));
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -72,8 +132,12 @@ public class Condition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent(); org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -82,8 +146,12 @@ public class Condition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent(); org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSummary()) {
tgt.setSummary(VersionConvertor_10_30.convertCodeableConcept(src.getSummary())); tgt.setSummary(VersionConvertor_10_30.convertCodeableConcept(src.getSummary()));
}
if (src.hasAssessment()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -92,8 +160,12 @@ public class Condition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent(); org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSummary()) {
tgt.setSummary(VersionConvertor_10_30.convertCodeableConcept(src.getSummary())); tgt.setSummary(VersionConvertor_10_30.convertCodeableConcept(src.getSummary()));
}
if (src.hasAssessment()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }

View File

@ -41,30 +41,66 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance tgt = new org.hl7.fhir.dstu2.model.Conformance(); org.hl7.fhir.dstu2.model.Conformance tgt = new org.hl7.fhir.dstu2.model.Conformance();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasKind()) {
tgt.setKind(convertConformanceStatementKind(src.getKind())); tgt.setKind(convertConformanceStatementKind(src.getKind()));
}
if (src.hasSoftware()) {
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware())); tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
}
if (src.hasImplementation()) if (src.hasImplementation())
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation())); tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
if (src.hasFhirVersion()) {
tgt.setFhirVersion(src.getFhirVersion()); tgt.setFhirVersion(src.getFhirVersion());
}
if (src.hasAcceptUnknown()) {
tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown())); tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
}
if (src.hasFormat()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue()); for (org.hl7.fhir.dstu3.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
}
if (src.hasProfile()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
}
if (src.hasRest()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
}
if (src.hasMessaging()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
}
if (src.hasDocument()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
}
return tgt; return tgt;
} }
@ -73,29 +109,67 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement(); org.hl7.fhir.dstu3.model.CapabilityStatement tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasKind()) {
tgt.setKind(convertConformanceStatementKind(src.getKind())); tgt.setKind(convertConformanceStatementKind(src.getKind()));
}
if (src.hasSoftware()) {
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware())); tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
}
if (src.hasImplementation()) {
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation())); tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
}
if (src.hasFhirVersion()) {
tgt.setFhirVersion(src.getFhirVersion()); tgt.setFhirVersion(src.getFhirVersion());
}
if (src.hasAcceptUnknown()) {
tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown())); tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
}
if (src.hasFormat()) {
for (org.hl7.fhir.dstu2.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue()); for (org.hl7.fhir.dstu2.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
}
if (src.hasProfile()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
}
if (src.hasRest()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
}
if (src.hasMessaging()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
}
if (src.hasDocument()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
}
return tgt; return tgt;
} }
@ -104,8 +178,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -114,8 +192,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -124,9 +206,15 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertDocumentMode(src.getMode())); tgt.setMode(convertDocumentMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasProfile()) {
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
}
return tgt; return tgt;
} }
@ -135,9 +223,15 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertDocumentMode(src.getMode())); tgt.setMode(convertDocumentMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasProfile()) {
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
}
return tgt; return tgt;
} }
@ -172,8 +266,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -182,8 +280,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -192,10 +294,18 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
}
if (src.hasReliableCache()) {
tgt.setReliableCache(src.getReliableCache()); tgt.setReliableCache(src.getReliableCache());
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t));
}
return tgt; return tgt;
} }
@ -204,10 +314,18 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
}
if (src.hasReliableCache()) {
tgt.setReliableCache(src.getReliableCache()); tgt.setReliableCache(src.getReliableCache());
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t));
}
return tgt; return tgt;
} }
@ -216,8 +334,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol())); tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol()));
}
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
return tgt; return tgt;
} }
@ -226,8 +348,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol())); tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol()));
}
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
return tgt; return tgt;
} }
@ -236,13 +362,27 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode()));
}
if (src.hasCategory()) {
tgt.setCategory(convertMessageSignificanceCategory(src.getCategory())); tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
}
if (src.hasMode()) {
tgt.setMode(convertConformanceEventMode(src.getMode())); tgt.setMode(convertConformanceEventMode(src.getMode()));
}
if (src.hasFocus()) {
tgt.setFocus(src.getFocus()); tgt.setFocus(src.getFocus());
}
if (src.hasRequest()) {
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest())); tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
}
if (src.hasResponse()) {
tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse())); tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -251,13 +391,27 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode()));
}
if (src.hasCategory()) {
tgt.setCategory(convertMessageSignificanceCategory(src.getCategory())); tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
}
if (src.hasMode()) {
tgt.setMode(convertConformanceEventMode(src.getMode())); tgt.setMode(convertConformanceEventMode(src.getMode()));
}
if (src.hasFocus()) {
tgt.setFocus(src.getFocus()); tgt.setFocus(src.getFocus());
}
if (src.hasRequest()) {
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest())); tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
}
if (src.hasResponse()) {
tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse())); tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -266,16 +420,32 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertRestfulConformanceMode(src.getMode())); tgt.setMode(convertRestfulConformanceMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasSecurity()) {
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity())); tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
}
if (src.hasResource()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
}
if (src.hasInteraction()) {
for (org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertSystemInteractionComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertSystemInteractionComponent(t));
}
if (src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH || src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH) if (src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH || src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH)
tgt.addInteraction().setCode(SystemRestfulInteraction.BATCH); tgt.addInteraction().setCode(SystemRestfulInteraction.BATCH);
if (src.hasSearchParam()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
if (src.hasOperation()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
}
if (src.hasCompartment()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
}
return tgt; return tgt;
} }
@ -284,10 +454,18 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertRestfulConformanceMode(src.getMode())); tgt.setMode(convertRestfulConformanceMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasSecurity()) {
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity())); tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
}
if (src.hasResource()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
}
boolean batch = false; boolean batch = false;
boolean transaction = false; boolean transaction = false;
for (org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent t : src.getInteraction()) { for (org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent t : src.getInteraction()) {
@ -302,9 +480,15 @@ public class Conformance10_30 {
tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH); tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH);
else else
tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.TRANSACTION : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.NOTSUPPORTED); tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.TRANSACTION : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.NOTSUPPORTED);
if (src.hasSearchParam()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
if (src.hasOperation()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
}
if (src.hasCompartment()) {
for (org.hl7.fhir.dstu3.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue()); for (org.hl7.fhir.dstu3.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
}
return tgt; return tgt;
} }
@ -313,8 +497,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinition()) {
tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition())); tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition()));
}
return tgt; return tgt;
} }
@ -323,8 +511,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinition()) {
tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition())); tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition()));
}
return tgt; return tgt;
} }
@ -333,19 +525,41 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfile()) if (src.hasProfile())
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
if (src.hasInteraction()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
}
if (src.hasVersioning()) {
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning())); tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
}
if (src.hasReadHistory()) {
tgt.setReadHistory(src.getReadHistory()); tgt.setReadHistory(src.getReadHistory());
}
if (src.hasUpdateCreate()) {
tgt.setUpdateCreate(src.getUpdateCreate()); tgt.setUpdateCreate(src.getUpdateCreate());
}
if (src.hasConditionalCreate()) {
tgt.setConditionalCreate(src.getConditionalCreate()); tgt.setConditionalCreate(src.getConditionalCreate());
}
if (src.hasConditionalUpdate()) {
tgt.setConditionalUpdate(src.getConditionalUpdate()); tgt.setConditionalUpdate(src.getConditionalUpdate());
}
if (src.hasConditionalDelete()) {
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete())); tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
}
if (src.hasSearchInclude()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
}
if (src.hasSearchRevInclude()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
}
if (src.hasSearchParam()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
return tgt; return tgt;
} }
@ -354,18 +568,42 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfile()) {
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
}
if (src.hasInteraction()) {
for (org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
}
if (src.hasVersioning()) {
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning())); tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
}
if (src.hasReadHistory()) {
tgt.setReadHistory(src.getReadHistory()); tgt.setReadHistory(src.getReadHistory());
}
if (src.hasUpdateCreate()) {
tgt.setUpdateCreate(src.getUpdateCreate()); tgt.setUpdateCreate(src.getUpdateCreate());
}
if (src.hasConditionalCreate()) {
tgt.setConditionalCreate(src.getConditionalCreate()); tgt.setConditionalCreate(src.getConditionalCreate());
}
if (src.hasConditionalUpdate()) {
tgt.setConditionalUpdate(src.getConditionalUpdate()); tgt.setConditionalUpdate(src.getConditionalUpdate());
}
if (src.hasConditionalDelete()) {
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete())); tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
}
if (src.hasSearchInclude()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
}
if (src.hasSearchRevInclude()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
}
if (src.hasSearchParam()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
return tgt; return tgt;
} }
@ -374,10 +612,18 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinition()) {
tgt.setDefinition(src.getDefinition()); tgt.setDefinition(src.getDefinition());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType())); tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -386,10 +632,18 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinition()) {
tgt.setDefinition(src.getDefinition()); tgt.setDefinition(src.getDefinition());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType())); tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -398,8 +652,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasBlob()) {
tgt.setBlob(src.getBlob()); tgt.setBlob(src.getBlob());
}
return tgt; return tgt;
} }
@ -408,8 +666,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasBlob()) {
tgt.setBlob(src.getBlob()); tgt.setBlob(src.getBlob());
}
return tgt; return tgt;
} }
@ -418,10 +680,18 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCors()) {
tgt.setCors(src.getCors()); tgt.setCors(src.getCors());
}
if (src.hasService()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasCertificate()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
}
return tgt; return tgt;
} }
@ -430,10 +700,18 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCors()) {
tgt.setCors(src.getCors()); tgt.setCors(src.getCors());
}
if (src.hasService()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasCertificate()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t)); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
}
return tgt; return tgt;
} }
@ -442,9 +720,15 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasReleaseDate()) {
tgt.setReleaseDate(src.getReleaseDate()); tgt.setReleaseDate(src.getReleaseDate());
}
return tgt; return tgt;
} }
@ -453,9 +737,15 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasReleaseDate()) {
tgt.setReleaseDate(src.getReleaseDate()); tgt.setReleaseDate(src.getReleaseDate());
}
return tgt; return tgt;
} }
@ -550,8 +840,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertTypeRestfulInteraction(src.getCode())); tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -560,8 +854,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent(); org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertTypeRestfulInteraction(src.getCode())); tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -626,8 +924,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent(); org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertSystemRestfulInteraction(src.getCode())); tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -636,8 +938,12 @@ public class Conformance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent(); org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertSystemRestfulInteraction(src.getCode())); tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }

View File

@ -11,8 +11,12 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.AgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.AgentComponent(); org.hl7.fhir.dstu3.model.Contract.AgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.AgentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getEntity())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getEntity()));
}
if (src.hasRole()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -21,8 +25,12 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.ActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ActorComponent(); org.hl7.fhir.dstu2.model.Contract.ActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ActorComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasActor()) {
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setEntity(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasRole()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -31,7 +39,9 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent(); org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -40,7 +50,9 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent(); org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -49,24 +61,60 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract tgt = new org.hl7.fhir.dstu2.model.Contract(); org.hl7.fhir.dstu2.model.Contract tgt = new org.hl7.fhir.dstu2.model.Contract();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasApplies()) {
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies())); tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
}
if (src.hasSubject()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSubject()) tgt.addSubject(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getSubject()) tgt.addSubject(VersionConvertor_10_30.convertReference(t));
}
if (src.hasAuthority()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthority()) tgt.addAuthority(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthority()) tgt.addAuthority(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDomain()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getDomain()) tgt.addDomain(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getDomain()) tgt.addDomain(VersionConvertor_10_30.convertReference(t));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasSubType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSubType()) tgt.addSubType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSubType()) tgt.addSubType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActionReason()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasAgent()) {
for (org.hl7.fhir.dstu3.model.Contract.AgentComponent t : src.getAgent()) tgt.addActor(convertAgentComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.AgentComponent t : src.getAgent()) tgt.addActor(convertAgentComponent(t));
}
if (src.hasSigner()) {
for (org.hl7.fhir.dstu3.model.Contract.SignatoryComponent t : src.getSigner()) tgt.addSigner(convertSignatoryComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.SignatoryComponent t : src.getSigner()) tgt.addSigner(convertSignatoryComponent(t));
}
if (src.hasValuedItem()) {
for (org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertValuedItemComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertValuedItemComponent(t));
}
if (src.hasTerm()) {
for (org.hl7.fhir.dstu3.model.Contract.TermComponent t : src.getTerm()) tgt.addTerm(convertTermComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.TermComponent t : src.getTerm()) tgt.addTerm(convertTermComponent(t));
}
if (src.hasBinding()) {
tgt.setBinding(VersionConvertor_10_30.convertType(src.getBinding())); tgt.setBinding(VersionConvertor_10_30.convertType(src.getBinding()));
}
if (src.hasFriendly()) {
for (org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent t : src.getFriendly()) tgt.addFriendly(convertFriendlyLanguageComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent t : src.getFriendly()) tgt.addFriendly(convertFriendlyLanguageComponent(t));
}
if (src.hasLegal()) {
for (org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent t : src.getLegal()) tgt.addLegal(convertLegalLanguageComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent t : src.getLegal()) tgt.addLegal(convertLegalLanguageComponent(t));
}
if (src.hasRule()) {
for (org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent t : src.getRule()) tgt.addRule(convertComputableLanguageComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent t : src.getRule()) tgt.addRule(convertComputableLanguageComponent(t));
}
return tgt; return tgt;
} }
@ -75,24 +123,60 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract tgt = new org.hl7.fhir.dstu3.model.Contract(); org.hl7.fhir.dstu3.model.Contract tgt = new org.hl7.fhir.dstu3.model.Contract();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasApplies()) {
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies())); tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
}
if (src.hasSubject()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSubject()) tgt.addSubject(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSubject()) tgt.addSubject(VersionConvertor_10_30.convertReference(t));
}
if (src.hasAuthority()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthority()) tgt.addAuthority(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthority()) tgt.addAuthority(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDomain()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getDomain()) tgt.addDomain(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getDomain()) tgt.addDomain(VersionConvertor_10_30.convertReference(t));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasSubType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSubType()) tgt.addSubType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSubType()) tgt.addSubType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasAction()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActionReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
for (org.hl7.fhir.dstu2.model.Contract.ActorComponent t : src.getActor()) tgt.addAgent(convertAgentComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.ActorComponent t : src.getActor()) tgt.addAgent(convertAgentComponent(t));
}
if (src.hasSigner()) {
for (org.hl7.fhir.dstu2.model.Contract.SignatoryComponent t : src.getSigner()) tgt.addSigner(convertSignatoryComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.SignatoryComponent t : src.getSigner()) tgt.addSigner(convertSignatoryComponent(t));
}
if (src.hasValuedItem()) {
for (org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertValuedItemComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertValuedItemComponent(t));
}
if (src.hasTerm()) {
for (org.hl7.fhir.dstu2.model.Contract.TermComponent t : src.getTerm()) tgt.addTerm(convertTermComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.TermComponent t : src.getTerm()) tgt.addTerm(convertTermComponent(t));
}
if (src.hasBinding()) {
tgt.setBinding(VersionConvertor_10_30.convertType(src.getBinding())); tgt.setBinding(VersionConvertor_10_30.convertType(src.getBinding()));
}
if (src.hasFriendly()) {
for (org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent t : src.getFriendly()) tgt.addFriendly(convertFriendlyLanguageComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent t : src.getFriendly()) tgt.addFriendly(convertFriendlyLanguageComponent(t));
}
if (src.hasLegal()) {
for (org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent t : src.getLegal()) tgt.addLegal(convertLegalLanguageComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent t : src.getLegal()) tgt.addLegal(convertLegalLanguageComponent(t));
}
if (src.hasRule()) {
for (org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent t : src.getRule()) tgt.addRule(convertComputableLanguageComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent t : src.getRule()) tgt.addRule(convertComputableLanguageComponent(t));
}
return tgt; return tgt;
} }
@ -101,7 +185,9 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent(); org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -110,7 +196,9 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent(); org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -119,7 +207,9 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent(); org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -128,7 +218,9 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent(); org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -137,8 +229,12 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu3.model.Contract.SignatoryComponent(); org.hl7.fhir.dstu3.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu3.model.Contract.SignatoryComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
}
if (src.hasParty()) {
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty())); tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
}
if (src.hasSignature()) if (src.hasSignature())
tgt.addSignature(new org.hl7.fhir.dstu3.model.Signature().setBlob(src.getSignature().getBytes())); tgt.addSignature(new org.hl7.fhir.dstu3.model.Signature().setBlob(src.getSignature().getBytes()));
return tgt; return tgt;
@ -149,9 +245,15 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu2.model.Contract.SignatoryComponent(); org.hl7.fhir.dstu2.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu2.model.Contract.SignatoryComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
}
if (src.hasParty()) {
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty())); tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
}
if (src.hasSignature()) {
for (org.hl7.fhir.dstu3.model.Signature t : src.getSignature()) tgt.setSignature(Base64.encodeBase64String(t.getBlob())); for (org.hl7.fhir.dstu3.model.Signature t : src.getSignature()) tgt.setSignature(Base64.encodeBase64String(t.getBlob()));
}
return tgt; return tgt;
} }
@ -160,8 +262,12 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.TermActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermActorComponent(); org.hl7.fhir.dstu2.model.Contract.TermActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermActorComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasActor()) {
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setEntity(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasRole()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -170,8 +276,12 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.TermAgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermAgentComponent(); org.hl7.fhir.dstu3.model.Contract.TermAgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermAgentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getEntity())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getEntity()));
}
if (src.hasRole()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -180,17 +290,39 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermComponent(); org.hl7.fhir.dstu3.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasApplies()) {
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies())); tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasSubType()) {
tgt.setSubType(VersionConvertor_10_30.convertCodeableConcept(src.getSubType())); tgt.setSubType(VersionConvertor_10_30.convertCodeableConcept(src.getSubType()));
}
if (src.hasAction()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActionReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
for (org.hl7.fhir.dstu2.model.Contract.TermActorComponent t : src.getActor()) tgt.addAgent(convertTermAgentComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.TermActorComponent t : src.getActor()) tgt.addAgent(convertTermAgentComponent(t));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasValuedItem()) {
for (org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertTermValuedItemComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertTermValuedItemComponent(t));
}
if (src.hasGroup()) {
for (org.hl7.fhir.dstu2.model.Contract.TermComponent t : src.getGroup()) tgt.addGroup(convertTermComponent(t)); for (org.hl7.fhir.dstu2.model.Contract.TermComponent t : src.getGroup()) tgt.addGroup(convertTermComponent(t));
}
return tgt; return tgt;
} }
@ -199,17 +331,39 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermComponent(); org.hl7.fhir.dstu2.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasApplies()) {
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies())); tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasSubType()) {
tgt.setSubType(VersionConvertor_10_30.convertCodeableConcept(src.getSubType())); tgt.setSubType(VersionConvertor_10_30.convertCodeableConcept(src.getSubType()));
}
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActionReason()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasAgent()) {
for (org.hl7.fhir.dstu3.model.Contract.TermAgentComponent t : src.getAgent()) tgt.addActor(convertTermAgentComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.TermAgentComponent t : src.getAgent()) tgt.addActor(convertTermAgentComponent(t));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasValuedItem()) {
for (org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertTermValuedItemComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertTermValuedItemComponent(t));
}
if (src.hasGroup()) {
for (org.hl7.fhir.dstu3.model.Contract.TermComponent t : src.getGroup()) tgt.addGroup(convertTermComponent(t)); for (org.hl7.fhir.dstu3.model.Contract.TermComponent t : src.getGroup()) tgt.addGroup(convertTermComponent(t));
}
return tgt; return tgt;
} }
@ -218,14 +372,30 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent(); org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity())); tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasEffectiveTime()) {
tgt.setEffectiveTime(src.getEffectiveTime()); tgt.setEffectiveTime(src.getEffectiveTime());
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasUnitPrice()) {
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice())); tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
}
if (src.hasFactor()) {
tgt.setFactor(src.getFactor()); tgt.setFactor(src.getFactor());
}
if (src.hasPoints()) {
tgt.setPoints(src.getPoints()); tgt.setPoints(src.getPoints());
}
if (src.hasNet()) {
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet())); tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
}
return tgt; return tgt;
} }
@ -234,14 +404,30 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent(); org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity())); tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasEffectiveTime()) {
tgt.setEffectiveTime(src.getEffectiveTime()); tgt.setEffectiveTime(src.getEffectiveTime());
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasUnitPrice()) {
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice())); tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
}
if (src.hasFactor()) {
tgt.setFactor(src.getFactor()); tgt.setFactor(src.getFactor());
}
if (src.hasPoints()) {
tgt.setPoints(src.getPoints()); tgt.setPoints(src.getPoints());
}
if (src.hasNet()) {
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet())); tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
}
return tgt; return tgt;
} }
@ -250,14 +436,30 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent(); org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity())); tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasEffectiveTime()) {
tgt.setEffectiveTime(src.getEffectiveTime()); tgt.setEffectiveTime(src.getEffectiveTime());
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasUnitPrice()) {
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice())); tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
}
if (src.hasFactor()) {
tgt.setFactor(src.getFactor()); tgt.setFactor(src.getFactor());
}
if (src.hasPoints()) {
tgt.setPoints(src.getPoints()); tgt.setPoints(src.getPoints());
}
if (src.hasNet()) {
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet())); tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
}
return tgt; return tgt;
} }
@ -266,14 +468,30 @@ public class Contract10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent(); org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity())); tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasEffectiveTime()) {
tgt.setEffectiveTime(src.getEffectiveTime()); tgt.setEffectiveTime(src.getEffectiveTime());
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasUnitPrice()) {
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice())); tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
}
if (src.hasFactor()) {
tgt.setFactor(src.getFactor()); tgt.setFactor(src.getFactor());
}
if (src.hasPoints()) {
tgt.setPoints(src.getPoints()); tgt.setPoints(src.getPoints());
}
if (src.hasNet()) {
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet())); tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
}
return tgt; return tgt;
} }
} }

View File

@ -2,7 +2,6 @@ package org.hl7.fhir.convertors.conv10_30;
import org.hl7.fhir.convertors.VersionConvertor_10_30; import org.hl7.fhir.convertors.VersionConvertor_10_30;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -13,24 +12,48 @@ public class DataElement10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DataElement tgt = new org.hl7.fhir.dstu2.model.DataElement(); org.hl7.fhir.dstu2.model.DataElement tgt = new org.hl7.fhir.dstu2.model.DataElement();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));
}
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasStringency()) {
tgt.setStringency(convertDataElementStringency(src.getStringency())); tgt.setStringency(convertDataElementStringency(src.getStringency()));
}
if (src.hasMapping()) {
for (org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t)); for (org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
}
if (src.hasElement()) {
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t)); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
}
return tgt; return tgt;
} }
@ -39,24 +62,44 @@ public class DataElement10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DataElement tgt = new org.hl7.fhir.dstu3.model.DataElement(); org.hl7.fhir.dstu3.model.DataElement tgt = new org.hl7.fhir.dstu3.model.DataElement();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t)); for (org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasStringency()) {
tgt.setStringency(convertDataElementStringency(src.getStringency())); tgt.setStringency(convertDataElementStringency(src.getStringency()));
}
if (src.hasMapping()) {
for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t)); for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
}
List<String> slicePaths = new ArrayList<String>(); List<String> slicePaths = new ArrayList<String>();
for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
if (t.hasSlicing()) if (t.hasSlicing())
@ -71,8 +114,12 @@ public class DataElement10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -81,8 +128,12 @@ public class DataElement10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent(); org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -91,10 +142,18 @@ public class DataElement10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent(); org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity()); tgt.setIdentity(src.getIdentity());
}
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasComments()) {
tgt.setComment(src.getComments()); tgt.setComment(src.getComments());
}
return tgt; return tgt;
} }
@ -103,10 +162,18 @@ public class DataElement10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent(); org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity()); tgt.setIdentity(src.getIdentity());
}
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasComment()) {
tgt.setComments(src.getComment()); tgt.setComments(src.getComment());
}
return tgt; return tgt;
} }

View File

@ -10,17 +10,35 @@ public class DetectedIssue10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DetectedIssue tgt = new org.hl7.fhir.dstu2.model.DetectedIssue(); org.hl7.fhir.dstu2.model.DetectedIssue tgt = new org.hl7.fhir.dstu2.model.DetectedIssue();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasSeverity()) {
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity())); tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
}
if (src.hasImplicated()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDetail()) {
tgt.setDetail(src.getDetail()); tgt.setDetail(src.getDetail());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasReference()) {
tgt.setReference(src.getReference()); tgt.setReference(src.getReference());
}
if (src.hasMitigation()) {
for (org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t)); for (org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
}
return tgt; return tgt;
} }
@ -29,17 +47,35 @@ public class DetectedIssue10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DetectedIssue tgt = new org.hl7.fhir.dstu3.model.DetectedIssue(); org.hl7.fhir.dstu3.model.DetectedIssue tgt = new org.hl7.fhir.dstu3.model.DetectedIssue();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasSeverity()) {
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity())); tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
}
if (src.hasImplicated()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDetail()) {
tgt.setDetail(src.getDetail()); tgt.setDetail(src.getDetail());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasReference()) {
tgt.setReference(src.getReference()); tgt.setReference(src.getReference());
}
if (src.hasMitigation()) {
for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t)); for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
}
return tgt; return tgt;
} }
@ -48,10 +84,14 @@ public class DetectedIssue10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent(); org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction())); tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }
@ -60,10 +100,14 @@ public class DetectedIssue10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent(); org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction())); tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }

View File

@ -10,23 +10,53 @@ public class Device10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Device tgt = new org.hl7.fhir.dstu2.model.Device(); org.hl7.fhir.dstu2.model.Device tgt = new org.hl7.fhir.dstu2.model.Device();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasUdi()) if (src.hasUdi())
tgt.setUdi(src.getUdi().getDeviceIdentifier()); tgt.setUdi(src.getUdi().getDeviceIdentifier());
if (src.hasStatus()) {
tgt.setStatus(convertDeviceStatus(src.getStatus())); tgt.setStatus(convertDeviceStatus(src.getStatus()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasLotNumber()) {
tgt.setLotNumber(src.getLotNumber()); tgt.setLotNumber(src.getLotNumber());
}
if (src.hasManufacturer()) {
tgt.setManufacturer(src.getManufacturer()); tgt.setManufacturer(src.getManufacturer());
}
if (src.hasManufactureDate()) {
tgt.setManufactureDate(src.getManufactureDate()); tgt.setManufactureDate(src.getManufactureDate());
}
if (src.hasExpirationDate()) {
tgt.setExpiry(src.getExpirationDate()); tgt.setExpiry(src.getExpirationDate());
}
if (src.hasModel()) {
tgt.setModel(src.getModel()); tgt.setModel(src.getModel());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasOwner()) {
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner())); tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasNote()) {
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t)); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
}
return tgt; return tgt;
} }
@ -35,22 +65,54 @@ public class Device10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Device tgt = new org.hl7.fhir.dstu3.model.Device(); org.hl7.fhir.dstu3.model.Device tgt = new org.hl7.fhir.dstu3.model.Device();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasUdi()) {
tgt.setUdi((new org.hl7.fhir.dstu3.model.Device.DeviceUdiComponent()).setDeviceIdentifier(src.getUdi())); tgt.setUdi((new org.hl7.fhir.dstu3.model.Device.DeviceUdiComponent()).setDeviceIdentifier(src.getUdi()));
}
if (src.hasStatus()) {
tgt.setStatus(convertDeviceStatus(src.getStatus())); tgt.setStatus(convertDeviceStatus(src.getStatus()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasLotNumber()) {
tgt.setLotNumber(src.getLotNumber()); tgt.setLotNumber(src.getLotNumber());
}
if (src.hasManufacturer()) {
tgt.setManufacturer(src.getManufacturer()); tgt.setManufacturer(src.getManufacturer());
}
if (src.hasManufactureDate()) {
tgt.setManufactureDate(src.getManufactureDate()); tgt.setManufactureDate(src.getManufactureDate());
}
if (src.hasExpiry()) {
tgt.setExpirationDate(src.getExpiry()); tgt.setExpirationDate(src.getExpiry());
}
if (src.hasModel()) {
tgt.setModel(src.getModel()); tgt.setModel(src.getModel());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasOwner()) {
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner())); tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasNote()) {
for (org.hl7.fhir.dstu2.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t)); for (org.hl7.fhir.dstu2.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
}
return tgt; return tgt;
} }

View File

@ -10,16 +10,36 @@ public class DeviceComponent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent(); org.hl7.fhir.dstu2.model.DeviceComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasLastSystemChange()) {
tgt.setLastSystemChange(src.getLastSystemChange()); tgt.setLastSystemChange(src.getLastSystemChange());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasParent()) {
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent())); tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
}
if (src.hasOperationalStatus()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOperationalStatus()) tgt.addOperationalStatus(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOperationalStatus()) tgt.addOperationalStatus(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasParameterGroup()) {
tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup())); tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup()));
}
if (src.hasMeasurementPrinciple()) {
tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple())); tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple()));
}
if (src.hasProductionSpecification()) {
for (org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent t : src.getProductionSpecification()) tgt.addProductionSpecification(convertDeviceComponentProductionSpecificationComponent(t)); for (org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent t : src.getProductionSpecification()) tgt.addProductionSpecification(convertDeviceComponentProductionSpecificationComponent(t));
}
if (src.hasLanguageCode()) {
tgt.setLanguageCode(VersionConvertor_10_30.convertCodeableConcept(src.getLanguageCode())); tgt.setLanguageCode(VersionConvertor_10_30.convertCodeableConcept(src.getLanguageCode()));
}
return tgt; return tgt;
} }
@ -28,16 +48,36 @@ public class DeviceComponent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DeviceComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent(); org.hl7.fhir.dstu3.model.DeviceComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasLastSystemChange()) {
tgt.setLastSystemChange(src.getLastSystemChange()); tgt.setLastSystemChange(src.getLastSystemChange());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasParent()) {
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent())); tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
}
if (src.hasOperationalStatus()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getOperationalStatus()) tgt.addOperationalStatus(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getOperationalStatus()) tgt.addOperationalStatus(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasParameterGroup()) {
tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup())); tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup()));
}
if (src.hasMeasurementPrinciple()) {
tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple())); tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple()));
}
if (src.hasProductionSpecification()) {
for (org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent t : src.getProductionSpecification()) tgt.addProductionSpecification(convertDeviceComponentProductionSpecificationComponent(t)); for (org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent t : src.getProductionSpecification()) tgt.addProductionSpecification(convertDeviceComponentProductionSpecificationComponent(t));
}
if (src.hasLanguageCode()) {
tgt.setLanguageCode(VersionConvertor_10_30.convertCodeableConcept(src.getLanguageCode())); tgt.setLanguageCode(VersionConvertor_10_30.convertCodeableConcept(src.getLanguageCode()));
}
return tgt; return tgt;
} }
@ -46,9 +86,15 @@ public class DeviceComponent10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent(); org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSpecType()) {
tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType())); tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType()));
}
if (src.hasComponentId()) {
tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId())); tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId()));
}
if (src.hasProductionSpec()) {
tgt.setProductionSpec(src.getProductionSpec()); tgt.setProductionSpec(src.getProductionSpec());
}
return tgt; return tgt;
} }
@ -57,9 +103,15 @@ public class DeviceComponent10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent(); org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSpecType()) {
tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType())); tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType()));
}
if (src.hasComponentId()) {
tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId())); tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId()));
}
if (src.hasProductionSpec()) {
tgt.setProductionSpec(src.getProductionSpec()); tgt.setProductionSpec(src.getProductionSpec());
}
return tgt; return tgt;
} }

View File

@ -10,16 +10,36 @@ public class DeviceMetric10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceMetric tgt = new org.hl7.fhir.dstu2.model.DeviceMetric(); org.hl7.fhir.dstu2.model.DeviceMetric tgt = new org.hl7.fhir.dstu2.model.DeviceMetric();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasUnit()) {
tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit())); tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasParent()) {
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent())); tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
}
if (src.hasOperationalStatus()) {
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus())); tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
}
if (src.hasColor()) {
tgt.setColor(convertDeviceMetricColor(src.getColor())); tgt.setColor(convertDeviceMetricColor(src.getColor()));
}
if (src.hasCategory()) {
tgt.setCategory(convertDeviceMetricCategory(src.getCategory())); tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
}
if (src.hasMeasurementPeriod()) {
tgt.setMeasurementPeriod(VersionConvertor_10_30.convertTiming(src.getMeasurementPeriod())); tgt.setMeasurementPeriod(VersionConvertor_10_30.convertTiming(src.getMeasurementPeriod()));
}
if (src.hasCalibration()) {
for (org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t)); for (org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
}
return tgt; return tgt;
} }
@ -28,16 +48,36 @@ public class DeviceMetric10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DeviceMetric tgt = new org.hl7.fhir.dstu3.model.DeviceMetric(); org.hl7.fhir.dstu3.model.DeviceMetric tgt = new org.hl7.fhir.dstu3.model.DeviceMetric();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasUnit()) {
tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit())); tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasParent()) {
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent())); tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
}
if (src.hasOperationalStatus()) {
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus())); tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
}
if (src.hasColor()) {
tgt.setColor(convertDeviceMetricColor(src.getColor())); tgt.setColor(convertDeviceMetricColor(src.getColor()));
}
if (src.hasCategory()) {
tgt.setCategory(convertDeviceMetricCategory(src.getCategory())); tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
}
if (src.hasMeasurementPeriod()) {
tgt.setMeasurementPeriod(VersionConvertor_10_30.convertTiming(src.getMeasurementPeriod())); tgt.setMeasurementPeriod(VersionConvertor_10_30.convertTiming(src.getMeasurementPeriod()));
}
if (src.hasCalibration()) {
for (org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t)); for (org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
}
return tgt; return tgt;
} }
@ -46,9 +86,15 @@ public class DeviceMetric10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent(); org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertDeviceMetricCalibrationType(src.getType())); tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
}
if (src.hasState()) {
tgt.setState(convertDeviceMetricCalibrationState(src.getState())); tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
}
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
return tgt; return tgt;
} }
@ -57,9 +103,15 @@ public class DeviceMetric10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent(); org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertDeviceMetricCalibrationType(src.getType())); tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
}
if (src.hasState()) {
tgt.setState(convertDeviceMetricCalibrationState(src.getState())); tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
}
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
return tgt; return tgt;
} }

View File

@ -11,15 +11,33 @@ public class DeviceUseStatement10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement(); org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_10_30.convertType(src.getBodySite())); tgt.setBodySite(VersionConvertor_10_30.convertType(src.getBodySite()));
}
if (src.hasWhenUsed()) {
tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed())); tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed()));
}
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice())); tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasIndication()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getIndication()) tgt.addIndication(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getIndication()) tgt.addIndication(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasNote()) {
for (Annotation t : src.getNote()) tgt.addNotes(t.getText()); for (Annotation t : src.getNote()) tgt.addNotes(t.getText());
}
if (src.hasRecordedOn()) {
tgt.setRecordedOn(src.getRecordedOn()); tgt.setRecordedOn(src.getRecordedOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming())); tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming()));
}
return tgt; return tgt;
} }
@ -30,14 +48,30 @@ public class DeviceUseStatement10_30 {
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasBodySiteCodeableConcept()) if (src.hasBodySiteCodeableConcept())
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySiteCodeableConcept())); tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySiteCodeableConcept()));
if (src.hasWhenUsed()) {
tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed())); tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed()));
}
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice())); tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasIndication()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getIndication()) tgt.addIndication(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getIndication()) tgt.addIndication(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasNotes()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes()) tgt.addNote().setText(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes()) tgt.addNote().setText(t.getValue());
}
if (src.hasRecordedOn()) {
tgt.setRecordedOn(src.getRecordedOn()); tgt.setRecordedOn(src.getRecordedOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming())); tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,22 +10,54 @@ public class DiagnosticReport10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DiagnosticReport tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport(); org.hl7.fhir.dstu2.model.DiagnosticReport tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus())); tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasBasedOn()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getBasedOn()) tgt.addRequest(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getBasedOn()) tgt.addRequest(VersionConvertor_10_30.convertReference(t));
}
if (src.hasSpecimen()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_30.convertReference(t));
}
if (src.hasResult()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_30.convertReference(t));
}
if (src.hasImagingStudy()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_30.convertReference(t));
}
if (src.hasImage()) {
for (org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t)); for (org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t));
}
if (src.hasConclusion()) {
tgt.setConclusion(src.getConclusion()); tgt.setConclusion(src.getConclusion());
}
if (src.hasCodedDiagnosis()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addCodedDiagnosis(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addCodedDiagnosis(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPresentedForm()) {
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu3.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_30.convertAttachment(t));
}
return tgt; return tgt;
} }
@ -34,22 +66,54 @@ public class DiagnosticReport10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DiagnosticReport tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport(); org.hl7.fhir.dstu3.model.DiagnosticReport tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus())); tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasRequest()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getRequest()) tgt.addBasedOn(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getRequest()) tgt.addBasedOn(VersionConvertor_10_30.convertReference(t));
}
if (src.hasSpecimen()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_30.convertReference(t));
}
if (src.hasResult()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_30.convertReference(t));
}
if (src.hasImagingStudy()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_30.convertReference(t));
}
if (src.hasImage()) {
for (org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t)); for (org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t));
}
if (src.hasConclusion()) {
tgt.setConclusion(src.getConclusion()); tgt.setConclusion(src.getConclusion());
}
if (src.hasCodedDiagnosis()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addCodedDiagnosis(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addCodedDiagnosis(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPresentedForm()) {
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu2.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_30.convertAttachment(t));
}
return tgt; return tgt;
} }
@ -58,8 +122,12 @@ public class DiagnosticReport10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent(); org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasLink()) {
tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink())); tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink()));
}
return tgt; return tgt;
} }
@ -68,8 +136,12 @@ public class DiagnosticReport10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent(); org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasLink()) {
tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink())); tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink()));
}
return tgt; return tgt;
} }

View File

@ -10,18 +10,42 @@ public class DocumentManifest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentManifest tgt = new org.hl7.fhir.dstu2.model.DocumentManifest(); org.hl7.fhir.dstu2.model.DocumentManifest tgt = new org.hl7.fhir.dstu2.model.DocumentManifest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasMasterIdentifier()) {
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier())); tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasSource()) {
tgt.setSource(src.getSource()); tgt.setSource(src.getSource());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasContent()) {
for (org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent t : src.getContent()) tgt.addContent(convertDocumentManifestContentComponent(t)); for (org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent t : src.getContent()) tgt.addContent(convertDocumentManifestContentComponent(t));
}
if (src.hasRelated()) {
for (org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentManifestRelatedComponent(t)); for (org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentManifestRelatedComponent(t));
}
return tgt; return tgt;
} }
@ -30,18 +54,42 @@ public class DocumentManifest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentManifest tgt = new org.hl7.fhir.dstu3.model.DocumentManifest(); org.hl7.fhir.dstu3.model.DocumentManifest tgt = new org.hl7.fhir.dstu3.model.DocumentManifest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasMasterIdentifier()) {
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier())); tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasSource()) {
tgt.setSource(src.getSource()); tgt.setSource(src.getSource());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasContent()) {
for (org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent t : src.getContent()) tgt.addContent(convertDocumentManifestContentComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent t : src.getContent()) tgt.addContent(convertDocumentManifestContentComponent(t));
}
if (src.hasRelated()) {
for (org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentManifestRelatedComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentManifestRelatedComponent(t));
}
return tgt; return tgt;
} }
@ -50,7 +98,9 @@ public class DocumentManifest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent(); org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasP()) {
tgt.setP(VersionConvertor_10_30.convertType(src.getP())); tgt.setP(VersionConvertor_10_30.convertType(src.getP()));
}
return tgt; return tgt;
} }
@ -59,7 +109,9 @@ public class DocumentManifest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent(); org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasP()) {
tgt.setP(VersionConvertor_10_30.convertType(src.getP())); tgt.setP(VersionConvertor_10_30.convertType(src.getP()));
}
return tgt; return tgt;
} }
@ -68,8 +120,12 @@ public class DocumentManifest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent(); org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasRef()) {
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef())); tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
}
return tgt; return tgt;
} }
@ -78,8 +134,12 @@ public class DocumentManifest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent(); org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasRef()) {
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef())); tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
}
return tgt; return tgt;
} }
} }

View File

@ -45,23 +45,57 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentReference tgt = new org.hl7.fhir.dstu3.model.DocumentReference(); org.hl7.fhir.dstu3.model.DocumentReference tgt = new org.hl7.fhir.dstu3.model.DocumentReference();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasMasterIdentifier()) {
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier())); tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasClass_()) {
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_())); tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
}
if (src.hasAuthenticator()) {
tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator())); tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator()));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasIndexed()) {
tgt.setIndexed(src.getIndexed()); tgt.setIndexed(src.getIndexed());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
}
if (src.hasDocStatus()) {
tgt.setDocStatus(convertDocStatus(src.getDocStatus())); tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
}
if (src.hasRelatesTo()) {
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasContent()) {
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
}
if (src.hasContext()) {
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext())); tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
}
return tgt; return tgt;
} }
@ -70,23 +104,57 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference tgt = new org.hl7.fhir.dstu2.model.DocumentReference(); org.hl7.fhir.dstu2.model.DocumentReference tgt = new org.hl7.fhir.dstu2.model.DocumentReference();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasMasterIdentifier()) {
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier())); tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasClass_()) {
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_())); tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
}
if (src.hasAuthenticator()) {
tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator())); tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator()));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasIndexed()) {
tgt.setIndexed(src.getIndexed()); tgt.setIndexed(src.getIndexed());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
}
if (src.hasDocStatus()) {
tgt.setDocStatus(convertDocStatus(src.getDocStatus())); tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
}
if (src.hasRelatesTo()) {
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t)); for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasContent()) {
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t)); for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
}
if (src.hasContext()) {
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext())); tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
}
return tgt; return tgt;
} }
@ -95,8 +163,12 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent(); org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAttachment()) {
tgt.setAttachment(VersionConvertor_10_30.convertAttachment(src.getAttachment())); tgt.setAttachment(VersionConvertor_10_30.convertAttachment(src.getAttachment()));
}
if (src.hasFormat()) {
tgt.addFormat(VersionConvertor_10_30.convertCoding(src.getFormat())); tgt.addFormat(VersionConvertor_10_30.convertCoding(src.getFormat()));
}
return tgt; return tgt;
} }
@ -105,8 +177,12 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent(); org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAttachment()) {
tgt.setAttachment(VersionConvertor_10_30.convertAttachment(src.getAttachment())); tgt.setAttachment(VersionConvertor_10_30.convertAttachment(src.getAttachment()));
}
if (src.hasFormat()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(VersionConvertor_10_30.convertCoding(t));
}
return tgt; return tgt;
} }
@ -115,13 +191,27 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent(); org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasFacilityType()) {
tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType())); tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType()));
}
if (src.hasPracticeSetting()) {
tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting())); tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting()));
}
if (src.hasSourcePatientInfo()) {
tgt.setSourcePatientInfo(VersionConvertor_10_30.convertReference(src.getSourcePatientInfo())); tgt.setSourcePatientInfo(VersionConvertor_10_30.convertReference(src.getSourcePatientInfo()));
}
if (src.hasRelated()) {
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t)); for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
}
return tgt; return tgt;
} }
@ -130,13 +220,27 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent(); org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasFacilityType()) {
tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType())); tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType()));
}
if (src.hasPracticeSetting()) {
tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting())); tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting()));
}
if (src.hasSourcePatientInfo()) {
tgt.setSourcePatientInfo(VersionConvertor_10_30.convertReference(src.getSourcePatientInfo())); tgt.setSourcePatientInfo(VersionConvertor_10_30.convertReference(src.getSourcePatientInfo()));
}
if (src.hasRelated()) {
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
}
return tgt; return tgt;
} }
@ -145,8 +249,12 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent(); org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasRef()) {
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef())); tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
}
return tgt; return tgt;
} }
@ -155,8 +263,12 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent(); org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasRef()) {
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef())); tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
}
return tgt; return tgt;
} }
@ -165,8 +277,12 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent(); org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertDocumentRelationshipType(src.getCode())); tgt.setCode(convertDocumentRelationshipType(src.getCode()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
return tgt; return tgt;
} }
@ -175,8 +291,12 @@ public class DocumentReference10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent(); org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertDocumentRelationshipType(src.getCode())); tgt.setCode(convertDocumentRelationshipType(src.getCode()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
return tgt; return tgt;
} }

View File

@ -10,23 +10,57 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Encounter tgt = new org.hl7.fhir.dstu3.model.Encounter(); org.hl7.fhir.dstu3.model.Encounter tgt = new org.hl7.fhir.dstu3.model.Encounter();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterState(src.getStatus())); tgt.setStatus(convertEncounterState(src.getStatus()));
}
if (src.hasClass_()) {
tgt.setClass_(convertEncounterClass(src.getClass_())); tgt.setClass_(convertEncounterClass(src.getClass_()));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPriority()) {
tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority())); tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority()));
}
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasEpisodeOfCare()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_30.convertReference(t));
}
if (src.hasIncomingReferral()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getIncomingReferral()) tgt.addIncomingReferral(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getIncomingReferral()) tgt.addIncomingReferral(VersionConvertor_10_30.convertReference(t));
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t)); for (org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
}
if (src.hasAppointment()) {
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment())); tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasLength()) {
tgt.setLength(VersionConvertor_10_30.convertDuration(src.getLength())); tgt.setLength(VersionConvertor_10_30.convertDuration(src.getLength()));
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasHospitalization()) {
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
}
if (src.hasLocation()) {
for (org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); for (org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
}
if (src.hasServiceProvider()) {
tgt.setServiceProvider(VersionConvertor_10_30.convertReference(src.getServiceProvider())); tgt.setServiceProvider(VersionConvertor_10_30.convertReference(src.getServiceProvider()));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
}
return tgt; return tgt;
} }
@ -35,23 +69,57 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter tgt = new org.hl7.fhir.dstu2.model.Encounter(); org.hl7.fhir.dstu2.model.Encounter tgt = new org.hl7.fhir.dstu2.model.Encounter();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterState(src.getStatus())); tgt.setStatus(convertEncounterState(src.getStatus()));
}
if (src.hasClass_()) {
tgt.setClass_(convertEncounterClass(src.getClass_())); tgt.setClass_(convertEncounterClass(src.getClass_()));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPriority()) {
tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority())); tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority()));
}
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasEpisodeOfCare()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_30.convertReference(t));
}
if (src.hasIncomingReferral()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getIncomingReferral()) tgt.addIncomingReferral(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getIncomingReferral()) tgt.addIncomingReferral(VersionConvertor_10_30.convertReference(t));
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t)); for (org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
}
if (src.hasAppointment()) {
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment())); tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasLength()) {
tgt.setLength(VersionConvertor_10_30.convertDuration(src.getLength())); tgt.setLength(VersionConvertor_10_30.convertDuration(src.getLength()));
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasHospitalization()) {
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
}
if (src.hasLocation()) {
for (org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); for (org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
}
if (src.hasServiceProvider()) {
tgt.setServiceProvider(VersionConvertor_10_30.convertReference(src.getServiceProvider())); tgt.setServiceProvider(VersionConvertor_10_30.convertReference(src.getServiceProvider()));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
}
return tgt; return tgt;
} }
@ -107,15 +175,33 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent(); org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasPreAdmissionIdentifier()) {
tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier())); tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
}
if (src.hasOrigin()) {
tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin())); tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin()));
}
if (src.hasAdmitSource()) {
tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource())); tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource()));
}
if (src.hasReAdmission()) {
tgt.setReAdmission(VersionConvertor_10_30.convertCodeableConcept(src.getReAdmission())); tgt.setReAdmission(VersionConvertor_10_30.convertCodeableConcept(src.getReAdmission()));
}
if (src.hasDietPreference()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSpecialCourtesy()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSpecialArrangement()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
}
if (src.hasDischargeDisposition()) {
tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition())); tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition()));
}
return tgt; return tgt;
} }
@ -124,15 +210,33 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent(); org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasPreAdmissionIdentifier()) {
tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier())); tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
}
if (src.hasOrigin()) {
tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin())); tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin()));
}
if (src.hasAdmitSource()) {
tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource())); tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource()));
}
if (src.hasReAdmission()) {
tgt.setReAdmission(VersionConvertor_10_30.convertCodeableConcept(src.getReAdmission())); tgt.setReAdmission(VersionConvertor_10_30.convertCodeableConcept(src.getReAdmission()));
}
if (src.hasDietPreference()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSpecialCourtesy()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSpecialArrangement()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
}
if (src.hasDischargeDisposition()) {
tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition())); tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition()));
}
return tgt; return tgt;
} }
@ -141,9 +245,15 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent(); org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterLocationStatus(src.getStatus())); tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -152,9 +262,15 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent(); org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterLocationStatus(src.getStatus())); tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -197,9 +313,15 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent(); org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasIndividual()) {
tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual())); tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual()));
}
return tgt; return tgt;
} }
@ -208,9 +330,15 @@ public class Encounter10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent(); org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasIndividual()) {
tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual())); tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual()));
}
return tgt; return tgt;
} }

View File

@ -10,12 +10,24 @@ public class EnrollmentRequest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu3.model.EnrollmentRequest(); org.hl7.fhir.dstu3.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu3.model.EnrollmentRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasProvider()) {
tgt.setProvider(VersionConvertor_10_30.convertReference(src.getProvider())); tgt.setProvider(VersionConvertor_10_30.convertReference(src.getProvider()));
}
if (src.hasOrganization()) {
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization())); tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasCoverage()) {
tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage())); tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage()));
}
return tgt; return tgt;
} }
@ -24,9 +36,15 @@ public class EnrollmentRequest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu2.model.EnrollmentRequest(); org.hl7.fhir.dstu2.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu2.model.EnrollmentRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasCoverage()) {
tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage())); tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,13 +10,27 @@ public class EnrollmentResponse10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu3.model.EnrollmentResponse(); org.hl7.fhir.dstu3.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu3.model.EnrollmentResponse();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasRequest()) {
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest())); tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
}
if (src.hasDisposition()) {
tgt.setDisposition(src.getDisposition()); tgt.setDisposition(src.getDisposition());
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasOrganization()) {
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization())); tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
}
if (src.hasRequestProvider()) {
tgt.setRequestProvider(VersionConvertor_10_30.convertReference(src.getRequestProvider())); tgt.setRequestProvider(VersionConvertor_10_30.convertReference(src.getRequestProvider()));
}
if (src.hasRequestOrganization()) {
tgt.setRequestOrganization(VersionConvertor_10_30.convertReference(src.getRequestOrganization())); tgt.setRequestOrganization(VersionConvertor_10_30.convertReference(src.getRequestOrganization()));
}
return tgt; return tgt;
} }
@ -25,9 +39,15 @@ public class EnrollmentResponse10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu2.model.EnrollmentResponse(); org.hl7.fhir.dstu2.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu2.model.EnrollmentResponse();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasDisposition()) {
tgt.setDisposition(src.getDisposition()); tgt.setDisposition(src.getDisposition());
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
return tgt; return tgt;
} }
} }

View File

@ -10,15 +10,33 @@ public class EpisodeOfCare10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare(); org.hl7.fhir.dstu3.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasStatusHistory()) {
for (org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t)); for (org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasReferralRequest()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCareManager()) {
tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager())); tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager()));
}
return tgt; return tgt;
} }
@ -27,15 +45,33 @@ public class EpisodeOfCare10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare(); org.hl7.fhir.dstu2.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasStatusHistory()) {
for (org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t)); for (org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasReferralRequest()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCareManager()) {
tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager())); tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager()));
}
return tgt; return tgt;
} }
@ -86,8 +122,12 @@ public class EpisodeOfCare10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -96,8 +136,12 @@ public class EpisodeOfCare10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
} }

View File

@ -44,18 +44,38 @@ public class FamilyMemberHistory10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory(); org.hl7.fhir.dstu3.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasStatus()) {
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus())); tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRelationship()) {
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship())); tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBorn()) {
tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn())); tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn()));
}
if (src.hasAge()) {
tgt.setAge(VersionConvertor_10_30.convertType(src.getAge())); tgt.setAge(VersionConvertor_10_30.convertType(src.getAge()));
}
if (src.hasDeceased()) {
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased())); tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
}
if (src.hasCondition()) {
for (org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t)); for (org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
}
return tgt; return tgt;
} }
@ -64,18 +84,38 @@ public class FamilyMemberHistory10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory(); org.hl7.fhir.dstu2.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasStatus()) {
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus())); tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRelationship()) {
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship())); tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBorn()) {
tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn())); tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn()));
}
if (src.hasAge()) {
tgt.setAge(VersionConvertor_10_30.convertType(src.getAge())); tgt.setAge(VersionConvertor_10_30.convertType(src.getAge()));
}
if (src.hasDeceased()) {
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased())); tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
}
if (src.hasCondition()) {
for (org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t)); for (org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
}
return tgt; return tgt;
} }
@ -84,9 +124,15 @@ public class FamilyMemberHistory10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
}
return tgt; return tgt;
} }
@ -95,9 +141,15 @@ public class FamilyMemberHistory10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,14 +10,30 @@ public class Flag10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Flag tgt = new org.hl7.fhir.dstu3.model.Flag(); org.hl7.fhir.dstu3.model.Flag tgt = new org.hl7.fhir.dstu3.model.Flag();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasStatus()) {
tgt.setStatus(convertFlagStatus(src.getStatus())); tgt.setStatus(convertFlagStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class Flag10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Flag tgt = new org.hl7.fhir.dstu2.model.Flag(); org.hl7.fhir.dstu2.model.Flag tgt = new org.hl7.fhir.dstu2.model.Flag();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasStatus()) {
tgt.setStatus(convertFlagStatus(src.getStatus())); tgt.setStatus(convertFlagStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
return tgt; return tgt;
} }

View File

@ -10,14 +10,30 @@ public class Group10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Group tgt = new org.hl7.fhir.dstu2.model.Group(); org.hl7.fhir.dstu2.model.Group tgt = new org.hl7.fhir.dstu2.model.Group();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasType()) {
tgt.setType(convertGroupType(src.getType())); tgt.setType(convertGroupType(src.getType()));
}
if (src.hasActual()) {
tgt.setActual(src.getActual()); tgt.setActual(src.getActual());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasQuantity()) {
tgt.setQuantity(src.getQuantity()); tgt.setQuantity(src.getQuantity());
}
if (src.hasCharacteristic()) {
for (org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t)); for (org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
}
if (src.hasMember()) {
for (org.hl7.fhir.dstu3.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t)); for (org.hl7.fhir.dstu3.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class Group10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Group tgt = new org.hl7.fhir.dstu3.model.Group(); org.hl7.fhir.dstu3.model.Group tgt = new org.hl7.fhir.dstu3.model.Group();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasType()) {
tgt.setType(convertGroupType(src.getType())); tgt.setType(convertGroupType(src.getType()));
}
if (src.hasActual()) {
tgt.setActual(src.getActual()); tgt.setActual(src.getActual());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasQuantity()) {
tgt.setQuantity(src.getQuantity()); tgt.setQuantity(src.getQuantity());
}
if (src.hasCharacteristic()) {
for (org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t)); for (org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
}
if (src.hasMember()) {
for (org.hl7.fhir.dstu2.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t)); for (org.hl7.fhir.dstu2.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
}
return tgt; return tgt;
} }
@ -42,10 +74,18 @@ public class Group10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent(); org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasExclude()) {
tgt.setExclude(src.getExclude()); tgt.setExclude(src.getExclude());
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -54,10 +94,18 @@ public class Group10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent(); org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasExclude()) {
tgt.setExclude(src.getExclude()); tgt.setExclude(src.getExclude());
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -66,9 +114,15 @@ public class Group10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent(); org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity())); tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasInactive()) {
tgt.setInactive(src.getInactive()); tgt.setInactive(src.getInactive());
}
return tgt; return tgt;
} }
@ -77,9 +131,15 @@ public class Group10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupMemberComponent(); org.hl7.fhir.dstu3.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupMemberComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity())); tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasInactive()) {
tgt.setInactive(src.getInactive()); tgt.setInactive(src.getInactive());
}
return tgt; return tgt;
} }

View File

@ -56,29 +56,65 @@ public class HealthcareService10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.HealthcareService tgt = new org.hl7.fhir.dstu2.model.HealthcareService(); org.hl7.fhir.dstu2.model.HealthcareService tgt = new org.hl7.fhir.dstu2.model.HealthcareService();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasProvidedBy()) {
tgt.setProvidedBy(VersionConvertor_10_30.convertReference(src.getProvidedBy())); tgt.setProvidedBy(VersionConvertor_10_30.convertReference(src.getProvidedBy()));
}
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialty()) { for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialty()) {
if (!tgt.hasServiceType()) if (!tgt.hasServiceType())
tgt.addServiceType(); tgt.addServiceType();
tgt.getServiceType().get(0).addSpecialty(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.getServiceType().get(0).addSpecialty(VersionConvertor_10_30.convertCodeableConcept(t));
} }
if (src.hasLocation()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_30.convertReference(t));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasExtraDetails()) {
tgt.setExtraDetails(src.getExtraDetails()); tgt.setExtraDetails(src.getExtraDetails());
}
if (src.hasPhoto()) {
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto())); tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasCoverageArea()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_30.convertReference(t));
}
if (src.hasServiceProvisionCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasEligibility()) {
tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility())); tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility()));
}
if (src.hasEligibilityNote()) {
tgt.setEligibilityNote(src.getEligibilityNote()); tgt.setEligibilityNote(src.getEligibilityNote());
}
if (src.hasProgramName()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getProgramName()) tgt.addProgramName(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getProgramName()) tgt.addProgramName(t.getValue());
}
if (src.hasCharacteristic()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReferralMethod()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasAppointmentRequired()) {
tgt.setAppointmentRequired(src.getAppointmentRequired()); tgt.setAppointmentRequired(src.getAppointmentRequired());
}
if (src.hasAvailableTime()) {
for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t)); for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
}
if (src.hasNotAvailable()) {
for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t)); for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions()) {
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions()); tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
}
return tgt; return tgt;
} }
@ -87,27 +123,63 @@ public class HealthcareService10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.HealthcareService tgt = new org.hl7.fhir.dstu3.model.HealthcareService(); org.hl7.fhir.dstu3.model.HealthcareService tgt = new org.hl7.fhir.dstu3.model.HealthcareService();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasProvidedBy()) {
tgt.setProvidedBy(VersionConvertor_10_30.convertReference(src.getProvidedBy())); tgt.setProvidedBy(VersionConvertor_10_30.convertReference(src.getProvidedBy()));
}
for (org.hl7.fhir.dstu2.model.HealthcareService.ServiceTypeComponent t : src.getServiceType()) { for (org.hl7.fhir.dstu2.model.HealthcareService.ServiceTypeComponent t : src.getServiceType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept tj : t.getSpecialty()) tgt.addSpecialty(VersionConvertor_10_30.convertCodeableConcept(tj)); for (org.hl7.fhir.dstu2.model.CodeableConcept tj : t.getSpecialty()) tgt.addSpecialty(VersionConvertor_10_30.convertCodeableConcept(tj));
} }
if (src.hasLocation()) {
tgt.addLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.addLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasExtraDetails()) {
tgt.setExtraDetails(src.getExtraDetails()); tgt.setExtraDetails(src.getExtraDetails());
}
if (src.hasPhoto()) {
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto())); tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasCoverageArea()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_30.convertReference(t));
}
if (src.hasServiceProvisionCode()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasEligibility()) {
tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility())); tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility()));
}
if (src.hasEligibilityNote()) {
tgt.setEligibilityNote(src.getEligibilityNote()); tgt.setEligibilityNote(src.getEligibilityNote());
}
if (src.hasProgramName()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getProgramName()) tgt.addProgramName(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getProgramName()) tgt.addProgramName(t.getValue());
}
if (src.hasCharacteristic()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReferralMethod()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasAppointmentRequired()) {
tgt.setAppointmentRequired(src.getAppointmentRequired()); tgt.setAppointmentRequired(src.getAppointmentRequired());
}
if (src.hasAvailableTime()) {
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t)); for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
}
if (src.hasNotAvailable()) {
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t)); for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions()) {
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions()); tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
}
return tgt; return tgt;
} }
@ -116,10 +188,18 @@ public class HealthcareService10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_30.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue()))); for (org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_30.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay()) {
tgt.setAllDay(src.getAllDay()); tgt.setAllDay(src.getAllDay());
}
if (src.hasAvailableStartTime()) {
tgt.setAvailableStartTime(src.getAvailableStartTime()); tgt.setAvailableStartTime(src.getAvailableStartTime());
}
if (src.hasAvailableEndTime()) {
tgt.setAvailableEndTime(src.getAvailableEndTime()); tgt.setAvailableEndTime(src.getAvailableEndTime());
}
return tgt; return tgt;
} }
@ -128,10 +208,18 @@ public class HealthcareService10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_30.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue()))); for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_30.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay()) {
tgt.setAllDay(src.getAllDay()); tgt.setAllDay(src.getAllDay());
}
if (src.hasAvailableStartTime()) {
tgt.setAvailableStartTime(src.getAvailableStartTime()); tgt.setAvailableStartTime(src.getAvailableStartTime());
}
if (src.hasAvailableEndTime()) {
tgt.setAvailableEndTime(src.getAvailableEndTime()); tgt.setAvailableEndTime(src.getAvailableEndTime());
}
return tgt; return tgt;
} }
@ -140,8 +228,12 @@ public class HealthcareService10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent(); org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDuring()) {
tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring())); tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring()));
}
return tgt; return tgt;
} }
@ -150,8 +242,12 @@ public class HealthcareService10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent(); org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDuring()) {
tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring())); tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,20 +10,48 @@ public class ImagingStudy10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImagingStudy tgt = new org.hl7.fhir.dstu3.model.ImagingStudy(); org.hl7.fhir.dstu3.model.ImagingStudy tgt = new org.hl7.fhir.dstu3.model.ImagingStudy();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUid()) {
tgt.setUid(src.getUid()); tgt.setUid(src.getUid());
}
if (src.hasAccession()) {
tgt.setAccession(VersionConvertor_10_30.convertIdentifier(src.getAccession())); tgt.setAccession(VersionConvertor_10_30.convertIdentifier(src.getAccession()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasAvailability()) {
tgt.setAvailability(convertInstanceAvailability(src.getAvailability())); tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
}
if (src.hasModalityList()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getModalityList()) tgt.addModalityList(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getModalityList()) tgt.addModalityList(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasStarted()) {
tgt.setStarted(src.getStarted()); tgt.setStarted(src.getStarted());
}
if (src.hasReferrer()) {
tgt.setReferrer(VersionConvertor_10_30.convertReference(src.getReferrer())); tgt.setReferrer(VersionConvertor_10_30.convertReference(src.getReferrer()));
}
if (src.hasInterpreter()) {
tgt.addInterpreter(VersionConvertor_10_30.convertReference(src.getInterpreter())); tgt.addInterpreter(VersionConvertor_10_30.convertReference(src.getInterpreter()));
}
if (src.hasNumberOfSeries()) {
tgt.setNumberOfSeries(src.getNumberOfSeries()); tgt.setNumberOfSeries(src.getNumberOfSeries());
}
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances()); tgt.setNumberOfInstances(src.getNumberOfInstances());
}
if (src.hasProcedure()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getProcedure()) tgt.addProcedureReference(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getProcedure()) tgt.addProcedureReference(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasSeries()) {
for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t)); for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t));
}
return tgt; return tgt;
} }
@ -32,20 +60,48 @@ public class ImagingStudy10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImagingStudy tgt = new org.hl7.fhir.dstu2.model.ImagingStudy(); org.hl7.fhir.dstu2.model.ImagingStudy tgt = new org.hl7.fhir.dstu2.model.ImagingStudy();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUid()) {
tgt.setUid(src.getUid()); tgt.setUid(src.getUid());
}
if (src.hasAccession()) {
tgt.setAccession(VersionConvertor_10_30.convertIdentifier(src.getAccession())); tgt.setAccession(VersionConvertor_10_30.convertIdentifier(src.getAccession()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasAvailability()) {
tgt.setAvailability(convertInstanceAvailability(src.getAvailability())); tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
}
if (src.hasModalityList()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getModalityList()) tgt.addModalityList(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getModalityList()) tgt.addModalityList(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasStarted()) {
tgt.setStarted(src.getStarted()); tgt.setStarted(src.getStarted());
}
if (src.hasReferrer()) {
tgt.setReferrer(VersionConvertor_10_30.convertReference(src.getReferrer())); tgt.setReferrer(VersionConvertor_10_30.convertReference(src.getReferrer()));
}
if (src.hasInterpreter()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getInterpreter()) tgt.setInterpreter(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getInterpreter()) tgt.setInterpreter(VersionConvertor_10_30.convertReference(t));
}
if (src.hasNumberOfSeries()) {
tgt.setNumberOfSeries(src.getNumberOfSeries()); tgt.setNumberOfSeries(src.getNumberOfSeries());
}
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances()); tgt.setNumberOfInstances(src.getNumberOfInstances());
}
if (src.hasProcedureReference()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getProcedureReference()) tgt.addProcedure(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getProcedureReference()) tgt.addProcedure(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasSeries()) {
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t)); for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t));
}
return tgt; return tgt;
} }
@ -54,16 +110,36 @@ public class ImagingStudy10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent(); org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasUid()) {
tgt.setUid(src.getUid()); tgt.setUid(src.getUid());
}
if (src.hasNumber()) {
tgt.setNumber(src.getNumber()); tgt.setNumber(src.getNumber());
}
if (src.hasModality()) {
tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality())); tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances()); tgt.setNumberOfInstances(src.getNumberOfInstances());
}
if (src.hasAvailability()) {
tgt.setAvailability(convertInstanceAvailability(src.getAvailability())); tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
}
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite())); tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite()));
}
if (src.hasLaterality()) {
tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality())); tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality()));
}
if (src.hasStarted()) {
tgt.setStarted(src.getStarted()); tgt.setStarted(src.getStarted());
}
if (src.hasInstance()) {
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t)); for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
}
return tgt; return tgt;
} }
@ -72,16 +148,36 @@ public class ImagingStudy10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent(); org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasUid()) {
tgt.setUid(src.getUid()); tgt.setUid(src.getUid());
}
if (src.hasNumber()) {
tgt.setNumber(src.getNumber()); tgt.setNumber(src.getNumber());
}
if (src.hasModality()) {
tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality())); tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances()); tgt.setNumberOfInstances(src.getNumberOfInstances());
}
if (src.hasAvailability()) {
tgt.setAvailability(convertInstanceAvailability(src.getAvailability())); tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
}
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite())); tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite()));
}
if (src.hasLaterality()) {
tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality())); tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality()));
}
if (src.hasStarted()) {
tgt.setStarted(src.getStarted()); tgt.setStarted(src.getStarted());
}
if (src.hasInstance()) {
for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t)); for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
}
return tgt; return tgt;
} }
@ -90,10 +186,18 @@ public class ImagingStudy10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasUid()) {
tgt.setUid(src.getUid()); tgt.setUid(src.getUid());
}
if (src.hasNumber()) {
tgt.setNumber(src.getNumber()); tgt.setNumber(src.getNumber());
}
if (src.hasSopClass()) {
tgt.setSopClass(src.getSopClass()); tgt.setSopClass(src.getSopClass());
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
return tgt; return tgt;
} }
@ -102,10 +206,18 @@ public class ImagingStudy10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasUid()) {
tgt.setUid(src.getUid()); tgt.setUid(src.getUid());
}
if (src.hasNumber()) {
tgt.setNumber(src.getNumber()); tgt.setNumber(src.getNumber());
}
if (src.hasSopClass()) {
tgt.setSopClass(src.getSopClass()); tgt.setSopClass(src.getSopClass());
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
return tgt; return tgt;
} }

View File

@ -4,7 +4,6 @@ import org.hl7.fhir.convertors.VersionConvertor_10_30;
import org.hl7.fhir.dstu3.model.Coding; import org.hl7.fhir.dstu3.model.Coding;
import org.hl7.fhir.dstu3.model.Immunization.ImmunizationPractitionerComponent; import org.hl7.fhir.dstu3.model.Immunization.ImmunizationPractitionerComponent;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import java.util.List; import java.util.List;
public class Immunization10_30 { public class Immunization10_30 {
@ -14,28 +13,68 @@ public class Immunization10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Immunization tgt = new org.hl7.fhir.dstu2.model.Immunization(); org.hl7.fhir.dstu2.model.Immunization tgt = new org.hl7.fhir.dstu2.model.Immunization();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(src.getStatus().toCode()); tgt.setStatus(src.getStatus().toCode());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasVaccineCode()) {
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode())); tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasNotGiven()) {
tgt.setWasNotGiven(src.getNotGiven()); tgt.setWasNotGiven(src.getNotGiven());
}
if (src.hasPrimarySource()) {
tgt.setReported(!src.getPrimarySource()); tgt.setReported(!src.getPrimarySource());
}
if (src.hasPractitioner()) {
tgt.setPerformer(VersionConvertor_10_30.convertReference(getPerformer(src.getPractitioner()))); tgt.setPerformer(VersionConvertor_10_30.convertReference(getPerformer(src.getPractitioner())));
}
if (src.hasPractitioner()) {
tgt.setRequester(VersionConvertor_10_30.convertReference(getRequester(src.getPractitioner()))); tgt.setRequester(VersionConvertor_10_30.convertReference(getRequester(src.getPractitioner())));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasManufacturer()) {
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer())); tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasLotNumber()) {
tgt.setLotNumber(src.getLotNumber()); tgt.setLotNumber(src.getLotNumber());
}
if (src.hasExpirationDate()) {
tgt.setExpirationDate(src.getExpirationDate()); tgt.setExpirationDate(src.getExpirationDate());
}
if (src.hasSite()) {
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite())); tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite()));
}
if (src.hasRoute()) {
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute())); tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
}
if (src.hasDoseQuantity()) {
tgt.setDoseQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getDoseQuantity())); tgt.setDoseQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getDoseQuantity()));
}
if (src.hasNote()) {
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t)); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
}
if (src.hasExplanation()) {
tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation())); tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation()));
}
if (src.hasReaction()) {
for (org.hl7.fhir.dstu3.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) tgt.addReaction(convertImmunizationReactionComponent(t)); for (org.hl7.fhir.dstu3.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) tgt.addReaction(convertImmunizationReactionComponent(t));
}
if (src.hasVaccinationProtocol()) {
for (org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent t : src.getVaccinationProtocol()) tgt.addVaccinationProtocol(convertImmunizationVaccinationProtocolComponent(t)); for (org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent t : src.getVaccinationProtocol()) tgt.addVaccinationProtocol(convertImmunizationVaccinationProtocolComponent(t));
}
return tgt; return tgt;
} }
@ -44,34 +83,70 @@ public class Immunization10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Immunization tgt = new org.hl7.fhir.dstu3.model.Immunization(); org.hl7.fhir.dstu3.model.Immunization tgt = new org.hl7.fhir.dstu3.model.Immunization();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
try { try {
if (src.hasStatus()) {
tgt.setStatus(org.hl7.fhir.dstu3.model.Immunization.ImmunizationStatus.fromCode(src.getStatus())); tgt.setStatus(org.hl7.fhir.dstu3.model.Immunization.ImmunizationStatus.fromCode(src.getStatus()));
}
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e); throw new FHIRException(e);
} }
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasVaccineCode()) {
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode())); tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasWasNotGiven()) {
tgt.setNotGiven(src.getWasNotGiven()); tgt.setNotGiven(src.getWasNotGiven());
}
if (src.hasReported()) {
tgt.setPrimarySource(!src.getReported()); tgt.setPrimarySource(!src.getReported());
}
if (src.hasPerformer()) if (src.hasPerformer())
tgt.addPractitioner().setActor(VersionConvertor_10_30.convertReference(src.getPerformer())).setRole(new org.hl7.fhir.dstu3.model.CodeableConcept().addCoding(new Coding().setSystem("http://hl7.org/fhir/v2/0443").setCode("AP"))); tgt.addPractitioner().setActor(VersionConvertor_10_30.convertReference(src.getPerformer())).setRole(new org.hl7.fhir.dstu3.model.CodeableConcept().addCoding(new Coding().setSystem("http://hl7.org/fhir/v2/0443").setCode("AP")));
if (src.hasRequester()) if (src.hasRequester())
tgt.addPractitioner().setActor(VersionConvertor_10_30.convertReference(src.getRequester())).setRole(new org.hl7.fhir.dstu3.model.CodeableConcept().addCoding(new Coding().setSystem("http://hl7.org/fhir/v2/0443").setCode("OP"))); tgt.addPractitioner().setActor(VersionConvertor_10_30.convertReference(src.getRequester())).setRole(new org.hl7.fhir.dstu3.model.CodeableConcept().addCoding(new Coding().setSystem("http://hl7.org/fhir/v2/0443").setCode("OP")));
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasManufacturer()) {
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer())); tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasLotNumber()) {
tgt.setLotNumber(src.getLotNumber()); tgt.setLotNumber(src.getLotNumber());
}
if (src.hasExpirationDate()) {
tgt.setExpirationDate(src.getExpirationDate()); tgt.setExpirationDate(src.getExpirationDate());
}
if (src.hasSite()) {
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite())); tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite()));
}
if (src.hasRoute()) {
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute())); tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
}
if (src.hasDoseQuantity()) {
tgt.setDoseQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getDoseQuantity())); tgt.setDoseQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getDoseQuantity()));
}
if (src.hasNote()) {
for (org.hl7.fhir.dstu2.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t)); for (org.hl7.fhir.dstu2.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
}
if (src.hasExplanation()) {
tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation())); tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation()));
}
if (src.hasReaction()) {
for (org.hl7.fhir.dstu2.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) tgt.addReaction(convertImmunizationReactionComponent(t)); for (org.hl7.fhir.dstu2.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) tgt.addReaction(convertImmunizationReactionComponent(t));
}
if (src.hasVaccinationProtocol()) {
for (org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent t : src.getVaccinationProtocol()) tgt.addVaccinationProtocol(convertImmunizationVaccinationProtocolComponent(t)); for (org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent t : src.getVaccinationProtocol()) tgt.addVaccinationProtocol(convertImmunizationVaccinationProtocolComponent(t));
}
return tgt; return tgt;
} }
@ -80,8 +155,12 @@ public class Immunization10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent(); org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasReason()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonNotGiven()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotGiven()) tgt.addReasonNotGiven(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotGiven()) tgt.addReasonNotGiven(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -90,8 +169,12 @@ public class Immunization10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent(); org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonNotGiven()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotGiven()) tgt.addReasonNotGiven(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotGiven()) tgt.addReasonNotGiven(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -102,8 +185,12 @@ public class Immunization10_30 {
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDetail()) {
tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail())); tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail()));
}
if (src.hasReported()) {
tgt.setReported(src.getReported()); tgt.setReported(src.getReported());
}
return tgt; return tgt;
} }
@ -114,8 +201,12 @@ public class Immunization10_30 {
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDetail()) {
tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail())); tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail()));
}
if (src.hasReported()) {
tgt.setReported(src.getReported()); tgt.setReported(src.getReported());
}
return tgt; return tgt;
} }
@ -124,14 +215,30 @@ public class Immunization10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent(); org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDoseSequence()) {
tgt.setDoseSequence(src.getDoseSequence()); tgt.setDoseSequence(src.getDoseSequence());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAuthority()) {
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority())); tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
}
if (src.hasSeries()) {
tgt.setSeries(src.getSeries()); tgt.setSeries(src.getSeries());
}
if (src.hasSeriesDoses()) {
tgt.setSeriesDoses(src.getSeriesDoses()); tgt.setSeriesDoses(src.getSeriesDoses());
}
if (src.hasTargetDisease()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDoseStatus()) {
tgt.setDoseStatus(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatus())); tgt.setDoseStatus(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatus()));
}
if (src.hasDoseStatusReason()) {
tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason())); tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason()));
}
return tgt; return tgt;
} }
@ -140,14 +247,30 @@ public class Immunization10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent(); org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDoseSequence()) {
tgt.setDoseSequence(src.getDoseSequence()); tgt.setDoseSequence(src.getDoseSequence());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAuthority()) {
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority())); tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
}
if (src.hasSeries()) {
tgt.setSeries(src.getSeries()); tgt.setSeries(src.getSeries());
}
if (src.hasSeriesDoses()) {
tgt.setSeriesDoses(src.getSeriesDoses()); tgt.setSeriesDoses(src.getSeriesDoses());
}
if (src.hasTargetDisease()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasDoseStatus()) {
tgt.setDoseStatus(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatus())); tgt.setDoseStatus(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatus()));
}
if (src.hasDoseStatusReason()) {
tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason())); tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason()));
}
return tgt; return tgt;
} }

View File

@ -10,9 +10,15 @@ public class ImmunizationRecommendation10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImmunizationRecommendation tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation(); org.hl7.fhir.dstu2.model.ImmunizationRecommendation tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasRecommendation()) {
for (org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t)); for (org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t));
}
return tgt; return tgt;
} }
@ -21,9 +27,15 @@ public class ImmunizationRecommendation10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImmunizationRecommendation tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation(); org.hl7.fhir.dstu3.model.ImmunizationRecommendation tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasRecommendation()) {
for (org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t)); for (org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t));
}
return tgt; return tgt;
} }
@ -34,13 +46,27 @@ public class ImmunizationRecommendation10_30 {
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasVaccineCode()) {
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode())); tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
}
if (src.hasDoseNumber()) {
tgt.setDoseNumber(src.getDoseNumber()); tgt.setDoseNumber(src.getDoseNumber());
}
if (src.hasForecastStatus()) {
tgt.setForecastStatus(VersionConvertor_10_30.convertCodeableConcept(src.getForecastStatus())); tgt.setForecastStatus(VersionConvertor_10_30.convertCodeableConcept(src.getForecastStatus()));
}
if (src.hasDateCriterion()) {
for (org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent t : src.getDateCriterion()) tgt.addDateCriterion(convertImmunizationRecommendationRecommendationDateCriterionComponent(t)); for (org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent t : src.getDateCriterion()) tgt.addDateCriterion(convertImmunizationRecommendationRecommendationDateCriterionComponent(t));
}
if (src.hasProtocol()) {
tgt.setProtocol(convertImmunizationRecommendationRecommendationProtocolComponent(src.getProtocol())); tgt.setProtocol(convertImmunizationRecommendationRecommendationProtocolComponent(src.getProtocol()));
}
if (src.hasSupportingImmunization()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingImmunization()) tgt.addSupportingImmunization(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingImmunization()) tgt.addSupportingImmunization(VersionConvertor_10_30.convertReference(t));
}
if (src.hasSupportingPatientInformation()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -51,13 +77,27 @@ public class ImmunizationRecommendation10_30 {
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasVaccineCode()) {
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode())); tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
}
if (src.hasDoseNumber()) {
tgt.setDoseNumber(src.getDoseNumber()); tgt.setDoseNumber(src.getDoseNumber());
}
if (src.hasForecastStatus()) {
tgt.setForecastStatus(VersionConvertor_10_30.convertCodeableConcept(src.getForecastStatus())); tgt.setForecastStatus(VersionConvertor_10_30.convertCodeableConcept(src.getForecastStatus()));
}
if (src.hasDateCriterion()) {
for (org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent t : src.getDateCriterion()) tgt.addDateCriterion(convertImmunizationRecommendationRecommendationDateCriterionComponent(t)); for (org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent t : src.getDateCriterion()) tgt.addDateCriterion(convertImmunizationRecommendationRecommendationDateCriterionComponent(t));
}
if (src.hasProtocol()) {
tgt.setProtocol(convertImmunizationRecommendationRecommendationProtocolComponent(src.getProtocol())); tgt.setProtocol(convertImmunizationRecommendationRecommendationProtocolComponent(src.getProtocol()));
}
if (src.hasSupportingImmunization()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingImmunization()) tgt.addSupportingImmunization(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingImmunization()) tgt.addSupportingImmunization(VersionConvertor_10_30.convertReference(t));
}
if (src.hasSupportingPatientInformation()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -66,8 +106,12 @@ public class ImmunizationRecommendation10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent(); org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -76,8 +120,12 @@ public class ImmunizationRecommendation10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent(); org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -86,10 +134,18 @@ public class ImmunizationRecommendation10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent(); org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDoseSequence()) {
tgt.setDoseSequence(src.getDoseSequence()); tgt.setDoseSequence(src.getDoseSequence());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAuthority()) {
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority())); tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
}
if (src.hasSeries()) {
tgt.setSeries(src.getSeries()); tgt.setSeries(src.getSeries());
}
return tgt; return tgt;
} }
@ -98,10 +154,18 @@ public class ImmunizationRecommendation10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent(); org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasDoseSequence()) {
tgt.setDoseSequence(src.getDoseSequence()); tgt.setDoseSequence(src.getDoseSequence());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAuthority()) {
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority())); tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
}
if (src.hasSeries()) {
tgt.setSeries(src.getSeries()); tgt.setSeries(src.getSeries());
}
return tgt; return tgt;
} }
} }

View File

@ -86,28 +86,56 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImplementationGuide tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide(); org.hl7.fhir.dstu3.model.ImplementationGuide tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasFhirVersion()) {
tgt.setFhirVersion(src.getFhirVersion()); tgt.setFhirVersion(src.getFhirVersion());
}
if (src.hasDependency()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependency(convertImplementationGuideDependencyComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependency(convertImplementationGuideDependencyComponent(t));
}
if (src.hasPackage()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.addPackage(convertImplementationGuidePackageComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.addPackage(convertImplementationGuidePackageComponent(t));
}
if (src.hasGlobal()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
}
if (src.hasBinary()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getBinary()) tgt.addBinary(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getBinary()) tgt.addBinary(t.getValue());
}
if (src.hasPage()) {
tgt.setPage(convertImplementationGuidePageComponent(src.getPage())); tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
}
return tgt; return tgt;
} }
@ -116,27 +144,57 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide(); org.hl7.fhir.dstu2.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasFhirVersion()) {
tgt.setFhirVersion(src.getFhirVersion()); tgt.setFhirVersion(src.getFhirVersion());
}
if (src.hasDependency()) {
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependency(convertImplementationGuideDependencyComponent(t)); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependency(convertImplementationGuideDependencyComponent(t));
}
if (src.hasPackage()) {
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.addPackage(convertImplementationGuidePackageComponent(t)); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.addPackage(convertImplementationGuidePackageComponent(t));
}
if (src.hasGlobal()) {
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t)); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
}
if (src.hasBinary()) {
for (org.hl7.fhir.dstu3.model.UriType t : src.getBinary()) tgt.addBinary(t.getValue()); for (org.hl7.fhir.dstu3.model.UriType t : src.getBinary()) tgt.addBinary(t.getValue());
}
if (src.hasPage()) {
tgt.setPage(convertImplementationGuidePageComponent(src.getPage())); tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
}
return tgt; return tgt;
} }
@ -145,8 +203,12 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -155,8 +217,12 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -165,8 +231,12 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertGuideDependencyType(src.getType())); tgt.setType(convertGuideDependencyType(src.getType()));
}
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
return tgt; return tgt;
} }
@ -175,8 +245,12 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent(); org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertGuideDependencyType(src.getType())); tgt.setType(convertGuideDependencyType(src.getType()));
}
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
return tgt; return tgt;
} }
@ -185,8 +259,12 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfile()) {
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
}
return tgt; return tgt;
} }
@ -195,8 +273,12 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfile()) {
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
}
return tgt; return tgt;
} }
@ -205,9 +287,15 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasResource()) {
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t)); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
}
return tgt; return tgt;
} }
@ -216,9 +304,15 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent(); org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasResource()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
}
return tgt; return tgt;
} }
@ -227,12 +321,24 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasPurpose()) {
tgt.setExample(src.getPurpose() == org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE); tgt.setExample(src.getPurpose() == org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE);
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAcronym()) {
tgt.setAcronym(src.getAcronym()); tgt.setAcronym(src.getAcronym());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
}
if (src.hasExampleFor()) {
tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor())); tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor()));
}
return tgt; return tgt;
} }
@ -245,11 +351,21 @@ public class ImplementationGuide10_30 {
tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE); tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE);
else else
tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.PROFILE); tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.PROFILE);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAcronym()) {
tgt.setAcronym(src.getAcronym()); tgt.setAcronym(src.getAcronym());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
}
if (src.hasExampleFor()) {
tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor())); tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor()));
}
return tgt; return tgt;
} }
@ -258,13 +374,27 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSource()) {
tgt.setSource(src.getSource()); tgt.setSource(src.getSource());
}
if (src.hasTitle()) {
tgt.setName(src.getTitle()); tgt.setName(src.getTitle());
}
if (src.hasKind()) {
tgt.setKind(convertGuidePageKind(src.getKind())); tgt.setKind(convertGuidePageKind(src.getKind()));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu3.model.CodeType t : src.getType()) tgt.addType(t.getValue());
}
if (src.hasPackage()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue());
}
if (src.hasFormat()) {
tgt.setFormat(src.getFormat()); tgt.setFormat(src.getFormat());
}
if (src.hasPage()) {
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
}
return tgt; return tgt;
} }
@ -273,13 +403,27 @@ public class ImplementationGuide10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSource()) {
tgt.setSource(src.getSource()); tgt.setSource(src.getSource());
}
if (src.hasName()) {
tgt.setTitle(src.getName()); tgt.setTitle(src.getName());
}
if (src.hasKind()) {
tgt.setKind(convertGuidePageKind(src.getKind())); tgt.setKind(convertGuidePageKind(src.getKind()));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu2.model.CodeType t : src.getType()) tgt.addType(t.getValue());
}
if (src.hasPackage()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue());
}
if (src.hasFormat()) {
tgt.setFormat(src.getFormat()); tgt.setFormat(src.getFormat());
}
if (src.hasPage()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
}
return tgt; return tgt;
} }
} }

View File

@ -10,19 +10,41 @@ public class List10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.List_ tgt = new org.hl7.fhir.dstu2.model.List_(); org.hl7.fhir.dstu2.model.List_ tgt = new org.hl7.fhir.dstu2.model.List_();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasStatus()) {
tgt.setStatus(convertListStatus(src.getStatus())); tgt.setStatus(convertListStatus(src.getStatus()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasMode()) {
tgt.setMode(convertListMode(src.getMode())); tgt.setMode(convertListMode(src.getMode()));
}
if (src.hasNote()) {
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText()); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
}
if (src.hasEntry()) {
for (org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); for (org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
}
return tgt; return tgt;
} }
@ -31,20 +53,40 @@ public class List10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ListResource tgt = new org.hl7.fhir.dstu3.model.ListResource(); org.hl7.fhir.dstu3.model.ListResource tgt = new org.hl7.fhir.dstu3.model.ListResource();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasStatus()) {
tgt.setStatus(convertListStatus(src.getStatus())); tgt.setStatus(convertListStatus(src.getStatus()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasMode()) {
tgt.setMode(convertListMode(src.getMode())); tgt.setMode(convertListMode(src.getMode()));
}
if (src.hasNote()) if (src.hasNote())
tgt.addNote(new org.hl7.fhir.dstu3.model.Annotation().setText(src.getNote())); tgt.addNote(new org.hl7.fhir.dstu3.model.Annotation().setText(src.getNote()));
if (src.hasEntry()) {
for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
}
return tgt; return tgt;
} }
@ -53,11 +95,17 @@ public class List10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent(); org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent();
copyBackboneElement(src, tgt); copyBackboneElement(src, tgt);
if (src.hasFlag()) {
tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag())); tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag()));
}
if (src.hasDeleted()) {
tgt.setDeleted(src.getDeleted()); tgt.setDeleted(src.getDeleted());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasItem()) {
tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem())); tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem()));
}
return tgt; return tgt;
} }
@ -66,11 +114,17 @@ public class List10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.List_.ListEntryComponent tgt = new org.hl7.fhir.dstu2.model.List_.ListEntryComponent(); org.hl7.fhir.dstu2.model.List_.ListEntryComponent tgt = new org.hl7.fhir.dstu2.model.List_.ListEntryComponent();
copyBackboneElement(src, tgt); copyBackboneElement(src, tgt);
if (src.hasFlag()) {
tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag())); tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag()));
}
if (src.hasDeleted()) {
tgt.setDeleted(src.getDeleted()); tgt.setDeleted(src.getDeleted());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasItem()) {
tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem())); tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem()));
}
return tgt; return tgt;
} }

View File

@ -10,18 +10,42 @@ public class Location10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Location tgt = new org.hl7.fhir.dstu2.model.Location(); org.hl7.fhir.dstu2.model.Location tgt = new org.hl7.fhir.dstu2.model.Location();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertLocationStatus(src.getStatus())); tgt.setStatus(convertLocationStatus(src.getStatus()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasMode()) {
tgt.setMode(convertLocationMode(src.getMode())); tgt.setMode(convertLocationMode(src.getMode()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress())); tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
}
if (src.hasPhysicalType()) {
tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType())); tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType()));
}
if (src.hasPosition()) {
tgt.setPosition(convertLocationPositionComponent(src.getPosition())); tgt.setPosition(convertLocationPositionComponent(src.getPosition()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
}
return tgt; return tgt;
} }
@ -30,18 +54,42 @@ public class Location10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Location tgt = new org.hl7.fhir.dstu3.model.Location(); org.hl7.fhir.dstu3.model.Location tgt = new org.hl7.fhir.dstu3.model.Location();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertLocationStatus(src.getStatus())); tgt.setStatus(convertLocationStatus(src.getStatus()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasMode()) {
tgt.setMode(convertLocationMode(src.getMode())); tgt.setMode(convertLocationMode(src.getMode()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress())); tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
}
if (src.hasPhysicalType()) {
tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType())); tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType()));
}
if (src.hasPosition()) {
tgt.setPosition(convertLocationPositionComponent(src.getPosition())); tgt.setPosition(convertLocationPositionComponent(src.getPosition()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
}
return tgt; return tgt;
} }
@ -76,9 +124,15 @@ public class Location10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent(); org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLongitude()) {
tgt.setLongitude(src.getLongitude()); tgt.setLongitude(src.getLongitude());
}
if (src.hasLatitude()) {
tgt.setLatitude(src.getLatitude()); tgt.setLatitude(src.getLatitude());
}
if (src.hasAltitude()) {
tgt.setAltitude(src.getAltitude()); tgt.setAltitude(src.getAltitude());
}
return tgt; return tgt;
} }
@ -87,9 +141,15 @@ public class Location10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent(); org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLongitude()) {
tgt.setLongitude(src.getLongitude()); tgt.setLongitude(src.getLongitude());
}
if (src.hasLatitude()) {
tgt.setLatitude(src.getLatitude()); tgt.setLatitude(src.getLatitude());
}
if (src.hasAltitude()) {
tgt.setAltitude(src.getAltitude()); tgt.setAltitude(src.getAltitude());
}
return tgt; return tgt;
} }

View File

@ -40,18 +40,42 @@ public class Media10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Media tgt = new org.hl7.fhir.dstu2.model.Media(); org.hl7.fhir.dstu2.model.Media tgt = new org.hl7.fhir.dstu2.model.Media();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasType()) {
tgt.setType(convertDigitalMediaType(src.getType())); tgt.setType(convertDigitalMediaType(src.getType()));
}
if (src.hasSubtype()) {
tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype())); tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype()));
}
if (src.hasView()) {
tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView())); tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasOperator()) {
tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator())); tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator()));
}
if (src.hasDevice()) {
tgt.setDeviceName(src.getDevice().getDisplay()); tgt.setDeviceName(src.getDevice().getDisplay());
}
if (src.hasHeight()) {
tgt.setHeight(src.getHeight()); tgt.setHeight(src.getHeight());
}
if (src.hasWidth()) {
tgt.setWidth(src.getWidth()); tgt.setWidth(src.getWidth());
}
if (src.hasFrames()) {
tgt.setFrames(src.getFrames()); tgt.setFrames(src.getFrames());
}
if (src.hasDuration()) {
tgt.setDuration(src.getDuration()); tgt.setDuration(src.getDuration());
}
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent()));
}
return tgt; return tgt;
} }
@ -60,18 +84,42 @@ public class Media10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Media tgt = new org.hl7.fhir.dstu3.model.Media(); org.hl7.fhir.dstu3.model.Media tgt = new org.hl7.fhir.dstu3.model.Media();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasType()) {
tgt.setType(convertDigitalMediaType(src.getType())); tgt.setType(convertDigitalMediaType(src.getType()));
}
if (src.hasSubtype()) {
tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype())); tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype()));
}
if (src.hasView()) {
tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView())); tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasOperator()) {
tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator())); tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator()));
}
if (src.hasDeviceName()) {
tgt.getDevice().setDisplay(src.getDeviceName()); tgt.getDevice().setDisplay(src.getDeviceName());
}
if (src.hasHeight()) {
tgt.setHeight(src.getHeight()); tgt.setHeight(src.getHeight());
}
if (src.hasWidth()) {
tgt.setWidth(src.getWidth()); tgt.setWidth(src.getWidth());
}
if (src.hasFrames()) {
tgt.setFrames(src.getFrames()); tgt.setFrames(src.getFrames());
}
if (src.hasDuration()) {
tgt.setDuration(src.getDuration()); tgt.setDuration(src.getDuration());
}
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent())); tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,10 +10,18 @@ public class Medication10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Medication tgt = new org.hl7.fhir.dstu2.model.Medication(); org.hl7.fhir.dstu2.model.Medication tgt = new org.hl7.fhir.dstu2.model.Medication();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasIsBrand()) {
tgt.setIsBrand(src.getIsBrand()); tgt.setIsBrand(src.getIsBrand());
}
if (src.hasManufacturer()) {
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer())); tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
}
if (src.hasPackage()) {
tgt.setPackage(convertMedicationPackageComponent(src.getPackage())); tgt.setPackage(convertMedicationPackageComponent(src.getPackage()));
}
return tgt; return tgt;
} }
@ -22,10 +30,18 @@ public class Medication10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Medication tgt = new org.hl7.fhir.dstu3.model.Medication(); org.hl7.fhir.dstu3.model.Medication tgt = new org.hl7.fhir.dstu3.model.Medication();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasIsBrand()) {
tgt.setIsBrand(src.getIsBrand()); tgt.setIsBrand(src.getIsBrand());
}
if (src.hasManufacturer()) {
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer())); tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
}
if (src.hasPackage()) {
tgt.setPackage(convertMedicationPackageComponent(src.getPackage())); tgt.setPackage(convertMedicationPackageComponent(src.getPackage()));
}
return tgt; return tgt;
} }
@ -34,8 +50,12 @@ public class Medication10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent(); org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContainer()) {
tgt.setContainer(VersionConvertor_10_30.convertCodeableConcept(src.getContainer())); tgt.setContainer(VersionConvertor_10_30.convertCodeableConcept(src.getContainer()));
}
if (src.hasContent()) {
for (org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent t : src.getContent()) tgt.addContent(convertMedicationPackageContentComponent(t)); for (org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent t : src.getContent()) tgt.addContent(convertMedicationPackageContentComponent(t));
}
return tgt; return tgt;
} }
@ -44,8 +64,12 @@ public class Medication10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent(); org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasContainer()) {
tgt.setContainer(VersionConvertor_10_30.convertCodeableConcept(src.getContainer())); tgt.setContainer(VersionConvertor_10_30.convertCodeableConcept(src.getContainer()));
}
if (src.hasContent()) {
for (org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent t : src.getContent()) tgt.addContent(convertMedicationPackageContentComponent(t)); for (org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent t : src.getContent()) tgt.addContent(convertMedicationPackageContentComponent(t));
}
return tgt; return tgt;
} }
@ -56,7 +80,9 @@ public class Medication10_30 {
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasItemReference()) if (src.hasItemReference())
tgt.setItem((org.hl7.fhir.dstu2.model.Reference) VersionConvertor_10_30.convertType(src.getItem())); tgt.setItem((org.hl7.fhir.dstu2.model.Reference) VersionConvertor_10_30.convertType(src.getItem()));
if (src.hasAmount()) {
tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount())); tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount()));
}
return tgt; return tgt;
} }
@ -65,8 +91,12 @@ public class Medication10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent(); org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasItem()) {
tgt.setItem(VersionConvertor_10_30.convertType(src.getItem())); tgt.setItem(VersionConvertor_10_30.convertType(src.getItem()));
}
if (src.hasAmount()) {
tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount())); tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount()));
}
return tgt; return tgt;
} }
} }

View File

@ -11,22 +11,50 @@ public class MedicationDispense10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.MedicationDispense tgt = new org.hl7.fhir.dstu3.model.MedicationDispense(); org.hl7.fhir.dstu3.model.MedicationDispense tgt = new org.hl7.fhir.dstu3.model.MedicationDispense();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasStatus()) {
tgt.setStatus(convertMedicationDispenseStatus(src.getStatus())); tgt.setStatus(convertMedicationDispenseStatus(src.getStatus()));
}
if (src.hasMedication()) {
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication())); tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
}
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasAuthorizingPrescription()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_30.convertReference(t));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDaysSupply()) {
tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply())); tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply()));
}
if (src.hasWhenPrepared()) {
tgt.setWhenPrepared(src.getWhenPrepared()); tgt.setWhenPrepared(src.getWhenPrepared());
}
if (src.hasWhenHandedOver()) {
tgt.setWhenHandedOver(src.getWhenHandedOver()); tgt.setWhenHandedOver(src.getWhenHandedOver());
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
}
if (src.hasReceiver()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
}
if (src.hasNote()) if (src.hasNote())
tgt.addNote().setText(src.getNote()); tgt.addNote().setText(src.getNote());
if (src.hasDosageInstruction()) {
for (org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent t : src.getDosageInstruction()) tgt.addDosageInstruction(convertMedicationDispenseDosageInstructionComponent(t)); for (org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent t : src.getDosageInstruction()) tgt.addDosageInstruction(convertMedicationDispenseDosageInstructionComponent(t));
}
if (src.hasSubstitution()) {
tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution())); tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution()));
}
return tgt; return tgt;
} }
@ -35,21 +63,51 @@ public class MedicationDispense10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MedicationDispense tgt = new org.hl7.fhir.dstu2.model.MedicationDispense(); org.hl7.fhir.dstu2.model.MedicationDispense tgt = new org.hl7.fhir.dstu2.model.MedicationDispense();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifierFirstRep())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifierFirstRep()));
}
if (src.hasStatus()) {
tgt.setStatus(convertMedicationDispenseStatus(src.getStatus())); tgt.setStatus(convertMedicationDispenseStatus(src.getStatus()));
}
if (src.hasMedication()) {
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication())); tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
}
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasAuthorizingPrescription()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_30.convertReference(t));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDaysSupply()) {
tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply())); tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply()));
}
if (src.hasWhenPrepared()) {
tgt.setWhenPrepared(src.getWhenPrepared()); tgt.setWhenPrepared(src.getWhenPrepared());
}
if (src.hasWhenHandedOver()) {
tgt.setWhenHandedOver(src.getWhenHandedOver()); tgt.setWhenHandedOver(src.getWhenHandedOver());
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
}
if (src.hasReceiver()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
}
if (src.hasNote()) {
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText()); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
}
if (src.hasDosageInstruction()) {
for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosageInstruction()) tgt.addDosageInstruction(convertMedicationDispenseDosageInstructionComponent(t)); for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosageInstruction()) tgt.addDosageInstruction(convertMedicationDispenseDosageInstructionComponent(t));
}
if (src.hasSubstitution()) {
tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution())); tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution()));
}
return tgt; return tgt;
} }
@ -58,16 +116,32 @@ public class MedicationDispense10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Dosage tgt = new org.hl7.fhir.dstu3.model.Dosage(); org.hl7.fhir.dstu3.model.Dosage tgt = new org.hl7.fhir.dstu3.model.Dosage();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming())); tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
}
if (src.hasAsNeeded()) {
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded())); tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
}
if (src.hasSiteCodeableConcept()) if (src.hasSiteCodeableConcept())
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSiteCodeableConcept())); tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSiteCodeableConcept()));
if (src.hasRoute()) {
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute())); tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasDose()) {
tgt.setDose(VersionConvertor_10_30.convertType(src.getDose())); tgt.setDose(VersionConvertor_10_30.convertType(src.getDose()));
}
if (src.hasRate()) {
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate())); tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
}
if (src.hasMaxDosePerPeriod()) {
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod())); tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
}
return tgt; return tgt;
} }
@ -76,15 +150,33 @@ public class MedicationDispense10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent(); org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming())); tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
}
if (src.hasAsNeeded()) {
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded())); tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
}
if (src.hasSite()) {
tgt.setSite(VersionConvertor_10_30.convertType(src.getSite())); tgt.setSite(VersionConvertor_10_30.convertType(src.getSite()));
}
if (src.hasRoute()) {
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute())); tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasDose()) {
tgt.setDose(VersionConvertor_10_30.convertType(src.getDose())); tgt.setDose(VersionConvertor_10_30.convertType(src.getDose()));
}
if (src.hasRate()) {
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate())); tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
}
if (src.hasMaxDosePerPeriod()) {
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod())); tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
}
return tgt; return tgt;
} }
@ -131,9 +223,15 @@ public class MedicationDispense10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasResponsibleParty()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -142,9 +240,15 @@ public class MedicationDispense10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasResponsibleParty()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
} }

View File

@ -10,19 +10,37 @@ public class MedicationStatement10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.MedicationStatement tgt = new org.hl7.fhir.dstu3.model.MedicationStatement(); org.hl7.fhir.dstu3.model.MedicationStatement tgt = new org.hl7.fhir.dstu3.model.MedicationStatement();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertMedicationStatementStatus(src.getStatus())); tgt.setStatus(convertMedicationStatementStatus(src.getStatus()));
}
if (src.hasMedication()) {
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication())); tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
}
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
}
if (src.hasInformationSource()) {
tgt.setInformationSource(VersionConvertor_10_30.convertReference(src.getInformationSource())); tgt.setInformationSource(VersionConvertor_10_30.convertReference(src.getInformationSource()));
}
if (src.hasSupportingInformation()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingInformation()) tgt.addDerivedFrom(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingInformation()) tgt.addDerivedFrom(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDateAsserted()) if (src.hasDateAsserted())
tgt.setDateAsserted(src.getDateAsserted()); tgt.setDateAsserted(src.getDateAsserted());
if (src.hasReasonNotTaken()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotTaken()) tgt.addReasonNotTaken(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotTaken()) tgt.addReasonNotTaken(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasNote()) if (src.hasNote())
tgt.addNote().setText(src.getNote()); tgt.addNote().setText(src.getNote());
if (src.hasDosage()) {
for (org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t)); for (org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t));
}
return tgt; return tgt;
} }
@ -31,18 +49,38 @@ public class MedicationStatement10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MedicationStatement tgt = new org.hl7.fhir.dstu2.model.MedicationStatement(); org.hl7.fhir.dstu2.model.MedicationStatement tgt = new org.hl7.fhir.dstu2.model.MedicationStatement();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertMedicationStatementStatus(src.getStatus())); tgt.setStatus(convertMedicationStatementStatus(src.getStatus()));
}
if (src.hasMedication()) {
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication())); tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
}
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
}
if (src.hasInformationSource()) {
tgt.setInformationSource(VersionConvertor_10_30.convertReference(src.getInformationSource())); tgt.setInformationSource(VersionConvertor_10_30.convertReference(src.getInformationSource()));
}
if (src.hasDerivedFrom()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getDerivedFrom()) tgt.addSupportingInformation(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getDerivedFrom()) tgt.addSupportingInformation(VersionConvertor_10_30.convertReference(t));
}
if (src.hasDateAsserted()) if (src.hasDateAsserted())
tgt.setDateAsserted(src.getDateAsserted()); tgt.setDateAsserted(src.getDateAsserted());
if (src.hasReasonNotTaken()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotTaken()) tgt.addReasonNotTaken(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotTaken()) tgt.addReasonNotTaken(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasNote()) {
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText()); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
}
if (src.hasDosage()) {
for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t)); for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t));
}
return tgt; return tgt;
} }
@ -51,15 +89,29 @@ public class MedicationStatement10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Dosage tgt = new org.hl7.fhir.dstu3.model.Dosage(); org.hl7.fhir.dstu3.model.Dosage tgt = new org.hl7.fhir.dstu3.model.Dosage();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming())); tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
}
if (src.hasAsNeeded()) {
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded())); tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
}
if (src.hasSiteCodeableConcept()) if (src.hasSiteCodeableConcept())
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSiteCodeableConcept())); tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSiteCodeableConcept()));
if (src.hasRoute()) {
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute())); tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasRate()) {
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate())); tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
}
if (src.hasMaxDosePerPeriod()) {
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod())); tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
}
return tgt; return tgt;
} }
@ -68,14 +120,30 @@ public class MedicationStatement10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent tgt = new org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent(); org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent tgt = new org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming())); tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
}
if (src.hasAsNeeded()) {
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded())); tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
}
if (src.hasSite()) {
tgt.setSite(VersionConvertor_10_30.convertType(src.getSite())); tgt.setSite(VersionConvertor_10_30.convertType(src.getSite()));
}
if (src.hasRoute()) {
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute())); tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasRate()) {
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate())); tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
}
if (src.hasMaxDosePerPeriod()) {
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod())); tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
}
return tgt; return tgt;
} }

View File

@ -10,9 +10,15 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent(); org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
if (src.hasEndpoint()) {
tgt.setEndpoint(src.getEndpoint()); tgt.setEndpoint(src.getEndpoint());
}
return tgt; return tgt;
} }
@ -21,9 +27,15 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent(); org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
if (src.hasEndpoint()) {
tgt.setEndpoint(src.getEndpoint()); tgt.setEndpoint(src.getEndpoint());
}
return tgt; return tgt;
} }
@ -32,17 +44,39 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MessageHeader tgt = new org.hl7.fhir.dstu2.model.MessageHeader(); org.hl7.fhir.dstu2.model.MessageHeader tgt = new org.hl7.fhir.dstu2.model.MessageHeader();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasTimestamp()) {
tgt.setTimestamp(src.getTimestamp()); tgt.setTimestamp(src.getTimestamp());
}
if (src.hasEvent()) {
tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent())); tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent()));
}
if (src.hasResponse()) {
tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse())); tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse()));
}
if (src.hasSource()) {
tgt.setSource(convertMessageSourceComponent(src.getSource())); tgt.setSource(convertMessageSourceComponent(src.getSource()));
}
if (src.hasDestination()) {
for (org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent t : src.getDestination()) tgt.addDestination(convertMessageDestinationComponent(t)); for (org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent t : src.getDestination()) tgt.addDestination(convertMessageDestinationComponent(t));
}
if (src.hasEnterer()) {
tgt.setEnterer(VersionConvertor_10_30.convertReference(src.getEnterer())); tgt.setEnterer(VersionConvertor_10_30.convertReference(src.getEnterer()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasReceiver()) {
tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver())); tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver()));
}
if (src.hasResponsible()) {
tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible())); tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible()));
}
if (src.hasReason()) {
tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(src.getReason())); tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(src.getReason()));
}
if (src.hasFocus()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getFocus()) tgt.addData(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getFocus()) tgt.addData(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -51,17 +85,39 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.MessageHeader tgt = new org.hl7.fhir.dstu3.model.MessageHeader(); org.hl7.fhir.dstu3.model.MessageHeader tgt = new org.hl7.fhir.dstu3.model.MessageHeader();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasTimestamp()) {
tgt.setTimestamp(src.getTimestamp()); tgt.setTimestamp(src.getTimestamp());
}
if (src.hasEvent()) {
tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent())); tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent()));
}
if (src.hasResponse()) {
tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse())); tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse()));
}
if (src.hasSource()) {
tgt.setSource(convertMessageSourceComponent(src.getSource())); tgt.setSource(convertMessageSourceComponent(src.getSource()));
}
if (src.hasDestination()) {
for (org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent t : src.getDestination()) tgt.addDestination(convertMessageDestinationComponent(t)); for (org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent t : src.getDestination()) tgt.addDestination(convertMessageDestinationComponent(t));
}
if (src.hasEnterer()) {
tgt.setEnterer(VersionConvertor_10_30.convertReference(src.getEnterer())); tgt.setEnterer(VersionConvertor_10_30.convertReference(src.getEnterer()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasReceiver()) {
tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver())); tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver()));
}
if (src.hasResponsible()) {
tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible())); tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible()));
}
if (src.hasReason()) {
tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(src.getReason())); tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(src.getReason()));
}
if (src.hasData()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getData()) tgt.addFocus(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getData()) tgt.addFocus(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -70,9 +126,15 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent(); org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(src.getIdentifier()); tgt.setIdentifier(src.getIdentifier());
}
if (src.hasCode()) {
tgt.setCode(convertResponseType(src.getCode())); tgt.setCode(convertResponseType(src.getCode()));
}
if (src.hasDetails()) {
tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails())); tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails()));
}
return tgt; return tgt;
} }
@ -81,9 +143,15 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent(); org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(src.getIdentifier()); tgt.setIdentifier(src.getIdentifier());
}
if (src.hasCode()) {
tgt.setCode(convertResponseType(src.getCode())); tgt.setCode(convertResponseType(src.getCode()));
}
if (src.hasDetails()) {
tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails())); tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails()));
}
return tgt; return tgt;
} }
@ -92,11 +160,21 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent(); org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasSoftware()) {
tgt.setSoftware(src.getSoftware()); tgt.setSoftware(src.getSoftware());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasContact()) {
tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact())); tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact()));
}
if (src.hasEndpoint()) {
tgt.setEndpoint(src.getEndpoint()); tgt.setEndpoint(src.getEndpoint());
}
return tgt; return tgt;
} }
@ -105,11 +183,21 @@ public class MessageHeader10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent(); org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasSoftware()) {
tgt.setSoftware(src.getSoftware()); tgt.setSoftware(src.getSoftware());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasContact()) {
tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact())); tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact()));
}
if (src.hasEndpoint()) {
tgt.setEndpoint(src.getEndpoint()); tgt.setEndpoint(src.getEndpoint());
}
return tgt; return tgt;
} }

View File

@ -10,23 +10,45 @@ public class NamingSystem10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.NamingSystem tgt = new org.hl7.fhir.dstu3.model.NamingSystem(); org.hl7.fhir.dstu3.model.NamingSystem tgt = new org.hl7.fhir.dstu3.model.NamingSystem();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertNamingSystemType(src.getKind())); tgt.setKind(convertNamingSystemType(src.getKind()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t)); for (org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
}
if (src.hasResponsible()) {
tgt.setResponsible(src.getResponsible()); tgt.setResponsible(src.getResponsible());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasUsage()) {
tgt.setUsage(src.getUsage()); tgt.setUsage(src.getUsage());
}
if (src.hasUniqueId()) {
for (org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t)); for (org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
}
if (src.hasReplacedBy()) {
tgt.setReplacedBy(VersionConvertor_10_30.convertReference(src.getReplacedBy())); tgt.setReplacedBy(VersionConvertor_10_30.convertReference(src.getReplacedBy()));
}
return tgt; return tgt;
} }
@ -35,22 +57,46 @@ public class NamingSystem10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.NamingSystem tgt = new org.hl7.fhir.dstu2.model.NamingSystem(); org.hl7.fhir.dstu2.model.NamingSystem tgt = new org.hl7.fhir.dstu2.model.NamingSystem();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertNamingSystemType(src.getKind())); tgt.setKind(convertNamingSystemType(src.getKind()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
}
if (src.hasResponsible()) {
tgt.setResponsible(src.getResponsible()); tgt.setResponsible(src.getResponsible());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasUsage()) {
tgt.setUsage(src.getUsage()); tgt.setUsage(src.getUsage());
}
if (src.hasUniqueId()) {
for (org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t)); for (org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
}
if (src.hasReplacedBy()) {
tgt.setReplacedBy(VersionConvertor_10_30.convertReference(src.getReplacedBy())); tgt.setReplacedBy(VersionConvertor_10_30.convertReference(src.getReplacedBy()));
}
return tgt; return tgt;
} }
@ -59,8 +105,12 @@ public class NamingSystem10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent(); org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -69,8 +119,12 @@ public class NamingSystem10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -143,10 +197,18 @@ public class NamingSystem10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent(); org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertNamingSystemIdentifierType(src.getType())); tgt.setType(convertNamingSystemIdentifierType(src.getType()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
if (src.hasPreferred()) {
tgt.setPreferred(src.getPreferred()); tgt.setPreferred(src.getPreferred());
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -155,10 +217,18 @@ public class NamingSystem10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent(); org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertNamingSystemIdentifierType(src.getType())); tgt.setType(convertNamingSystemIdentifierType(src.getType()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
if (src.hasPreferred()) {
tgt.setPreferred(src.getPreferred()); tgt.setPreferred(src.getPreferred());
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,26 +10,66 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Observation tgt = new org.hl7.fhir.dstu3.model.Observation(); org.hl7.fhir.dstu3.model.Observation tgt = new org.hl7.fhir.dstu3.model.Observation();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertObservationStatus(src.getStatus())); tgt.setStatus(convertObservationStatus(src.getStatus()));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasPerformer()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasDataAbsentReason()) {
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason())); tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
}
if (src.hasInterpretation()) {
tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation())); tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation()));
}
if (src.hasComments()) {
tgt.setComment(src.getComments()); tgt.setComment(src.getComments());
}
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite())); tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasSpecimen()) {
tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen())); tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen()));
}
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice())); tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
}
if (src.hasReferenceRange()) {
for (org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t)); for (org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
}
if (src.hasRelated()) {
for (org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent t : src.getRelated()) tgt.addRelated(convertObservationRelatedComponent(t)); for (org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent t : src.getRelated()) tgt.addRelated(convertObservationRelatedComponent(t));
}
if (src.hasComponent()) {
for (org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent t : src.getComponent()) tgt.addComponent(convertObservationComponentComponent(t)); for (org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent t : src.getComponent()) tgt.addComponent(convertObservationComponentComponent(t));
}
return tgt; return tgt;
} }
@ -38,26 +78,66 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Observation tgt = new org.hl7.fhir.dstu2.model.Observation(); org.hl7.fhir.dstu2.model.Observation tgt = new org.hl7.fhir.dstu2.model.Observation();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertObservationStatus(src.getStatus())); tgt.setStatus(convertObservationStatus(src.getStatus()));
}
if (src.hasCategory()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept c : src.getCategory()) tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(c)); for (org.hl7.fhir.dstu3.model.CodeableConcept c : src.getCategory()) tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(c));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasPerformer()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasDataAbsentReason()) {
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason())); tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
}
if (src.hasInterpretation()) {
tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation())); tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation()));
}
if (src.hasComment()) {
tgt.setComments(src.getComment()); tgt.setComments(src.getComment());
}
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite())); tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasSpecimen()) {
tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen())); tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen()));
}
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice())); tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
}
if (src.hasReferenceRange()) {
for (org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t)); for (org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
}
if (src.hasRelated()) {
for (org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent t : src.getRelated()) tgt.addRelated(convertObservationRelatedComponent(t)); for (org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent t : src.getRelated()) tgt.addRelated(convertObservationRelatedComponent(t));
}
if (src.hasComponent()) {
for (org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent t : src.getComponent()) tgt.addComponent(convertObservationComponentComponent(t)); for (org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent t : src.getComponent()) tgt.addComponent(convertObservationComponentComponent(t));
}
return tgt; return tgt;
} }
@ -66,10 +146,18 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent(); org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasDataAbsentReason()) {
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason())); tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
}
if (src.hasReferenceRange()) {
for (org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t)); for (org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
}
return tgt; return tgt;
} }
@ -78,10 +166,18 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent(); org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasDataAbsentReason()) {
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason())); tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
}
if (src.hasReferenceRange()) {
for (org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t)); for (org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
}
return tgt; return tgt;
} }
@ -90,11 +186,21 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent(); org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLow()) {
tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow())); tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow()));
}
if (src.hasHigh()) {
tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh())); tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh()));
}
if (src.hasMeaning()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getMeaning())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getMeaning()));
}
if (src.hasAge()) {
tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge())); tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge()));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
return tgt; return tgt;
} }
@ -103,11 +209,21 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent(); org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLow()) {
tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow())); tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow()));
}
if (src.hasHigh()) {
tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh())); tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh()));
}
if (src.hasType()) {
tgt.setMeaning(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setMeaning(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasAge()) {
tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge())); tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge()));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
return tgt; return tgt;
} }
@ -116,8 +232,12 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent(); org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertObservationRelationshipType(src.getType())); tgt.setType(convertObservationRelationshipType(src.getType()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
return tgt; return tgt;
} }
@ -126,8 +246,12 @@ public class Observation10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent(); org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertObservationRelationshipType(src.getType())); tgt.setType(convertObservationRelationshipType(src.getType()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
return tgt; return tgt;
} }

View File

@ -12,29 +12,61 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.OperationDefinition tgt = new org.hl7.fhir.dstu2.model.OperationDefinition(); org.hl7.fhir.dstu2.model.OperationDefinition tgt = new org.hl7.fhir.dstu2.model.OperationDefinition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertOperationKind(src.getKind())); tgt.setKind(convertOperationKind(src.getKind()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasIdempotent()) {
tgt.setIdempotent(src.getIdempotent()); tgt.setIdempotent(src.getIdempotent());
}
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasComment()) {
tgt.setNotes(src.getComment()); tgt.setNotes(src.getComment());
}
if (src.hasBase()) if (src.hasBase())
tgt.setBase(VersionConvertor_10_30.convertReference(src.getBase())); tgt.setBase(VersionConvertor_10_30.convertReference(src.getBase()));
if (src.hasSystem()) {
tgt.setSystem(src.getSystem()); tgt.setSystem(src.getSystem());
}
if (src.getType()) if (src.getType())
if (src.hasResource()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getResource()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu3.model.CodeType t : src.getResource()) tgt.addType(t.getValue());
}
if (src.hasInstance()) {
tgt.setInstance(src.getInstance()); tgt.setInstance(src.getInstance());
}
if (src.hasParameter()) {
for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t)); for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
}
return tgt; return tgt;
} }
@ -43,29 +75,61 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.OperationDefinition tgt = new org.hl7.fhir.dstu3.model.OperationDefinition(); org.hl7.fhir.dstu3.model.OperationDefinition tgt = new org.hl7.fhir.dstu3.model.OperationDefinition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertOperationKind(src.getKind())); tgt.setKind(convertOperationKind(src.getKind()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t)); for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasIdempotent()) if (src.hasIdempotent())
tgt.setIdempotent(src.getIdempotent()); tgt.setIdempotent(src.getIdempotent());
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasNotes()) {
tgt.setComment(src.getNotes()); tgt.setComment(src.getNotes());
}
if (src.hasBase()) {
tgt.setBase(VersionConvertor_10_30.convertReference(src.getBase())); tgt.setBase(VersionConvertor_10_30.convertReference(src.getBase()));
}
if (src.hasSystem()) {
tgt.setSystem(src.getSystem()); tgt.setSystem(src.getSystem());
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeType t : src.getType()) tgt.addResource(t.getValue()); for (org.hl7.fhir.dstu2.model.CodeType t : src.getType()) tgt.addResource(t.getValue());
}
tgt.setType(tgt.hasResource()); tgt.setType(tgt.hasResource());
if (src.hasInstance()) {
tgt.setInstance(src.getInstance()); tgt.setInstance(src.getInstance());
}
if (src.hasParameter()) {
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t)); for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
}
return tgt; return tgt;
} }
@ -74,8 +138,12 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent(); org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -84,8 +152,12 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -94,8 +166,12 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasStrength()) {
tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength())); tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength()));
}
if (src.hasValueSet()) {
tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet())); tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet()));
}
return tgt; return tgt;
} }
@ -104,8 +180,12 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasStrength()) {
tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength())); tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength()));
}
if (src.hasValueSet()) {
tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet())); tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet()));
}
return tgt; return tgt;
} }
@ -114,20 +194,34 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent(); org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasUse()) {
tgt.setUse(convertOperationParameterUse(src.getUse())); tgt.setUse(convertOperationParameterUse(src.getUse()));
}
if (src.hasMin()) {
tgt.setMin(src.getMin()); tgt.setMin(src.getMin());
}
if (src.hasMax()) {
tgt.setMax(src.getMax()); tgt.setMax(src.getMax());
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasSearchType()) {
if (src.hasSearchType()) { if (src.hasSearchType()) {
tgt.setType(src.getSearchType().toCode()); tgt.setType(src.getSearchType().toCode());
}
} else } else
tgt.setType(src.getType()); tgt.setType(src.getType());
if (src.hasProfile()) if (src.hasProfile())
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
if (src.hasBinding()) if (src.hasBinding())
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding())); tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
if (src.hasPart()) {
for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t)); for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t));
}
return tgt; return tgt;
} }
@ -136,20 +230,40 @@ public class OperationDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent(); org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasUse()) {
tgt.setUse(convertOperationParameterUse(src.getUse())); tgt.setUse(convertOperationParameterUse(src.getUse()));
}
if (src.hasMin()) {
tgt.setMin(src.getMin()); tgt.setMin(src.getMin());
}
if (src.hasMax()) {
tgt.setMax(src.getMax()); tgt.setMax(src.getMax());
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (Utilities.existsInList(src.getType(), "token", "reference", "composite", "number", "date", "quantity", "uri")) { if (Utilities.existsInList(src.getType(), "token", "reference", "composite", "number", "date", "quantity", "uri")) {
tgt.setType("string"); tgt.setType("string");
if (src.hasType()) {
tgt.setSearchType(SearchParamType.fromCode(src.getType())); tgt.setSearchType(SearchParamType.fromCode(src.getType()));
}
} else { } else {
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
} }
}
if (src.hasProfile()) {
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile())); tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
}
if (src.hasBinding()) {
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding())); tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
}
if (src.hasPart()) {
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t)); for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t));
}
return tgt; return tgt;
} }

View File

@ -178,7 +178,9 @@ public class OperationOutcome10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.OperationOutcome tgt = new org.hl7.fhir.dstu3.model.OperationOutcome(); org.hl7.fhir.dstu3.model.OperationOutcome tgt = new org.hl7.fhir.dstu3.model.OperationOutcome();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIssue()) {
for (org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t)); for (org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t));
}
return tgt; return tgt;
} }
@ -187,7 +189,9 @@ public class OperationOutcome10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.OperationOutcome tgt = new org.hl7.fhir.dstu2.model.OperationOutcome(); org.hl7.fhir.dstu2.model.OperationOutcome tgt = new org.hl7.fhir.dstu2.model.OperationOutcome();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIssue()) {
for (org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t)); for (org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t));
}
return tgt; return tgt;
} }
@ -196,11 +200,21 @@ public class OperationOutcome10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent(); org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSeverity()) {
tgt.setSeverity(convertIssueSeverity(src.getSeverity())); tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
}
if (src.hasCode()) {
tgt.setCode(convertIssueType(src.getCode())); tgt.setCode(convertIssueType(src.getCode()));
}
if (src.hasDetails()) {
tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails())); tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails()));
}
if (src.hasDiagnostics()) {
tgt.setDiagnostics(src.getDiagnostics()); tgt.setDiagnostics(src.getDiagnostics());
}
if (src.hasLocation()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
}
return tgt; return tgt;
} }
@ -209,11 +223,21 @@ public class OperationOutcome10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent(); org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSeverity()) {
tgt.setSeverity(convertIssueSeverity(src.getSeverity())); tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
}
if (src.hasCode()) {
tgt.setCode(convertIssueType(src.getCode())); tgt.setCode(convertIssueType(src.getCode()));
}
if (src.hasDetails()) {
tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails())); tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails()));
}
if (src.hasDiagnostics()) {
tgt.setDiagnostics(src.getDiagnostics()); tgt.setDiagnostics(src.getDiagnostics());
}
if (src.hasLocation()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
}
return tgt; return tgt;
} }
} }

View File

@ -10,14 +10,30 @@ public class Organization10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Organization tgt = new org.hl7.fhir.dstu3.model.Organization(); org.hl7.fhir.dstu3.model.Organization tgt = new org.hl7.fhir.dstu3.model.Organization();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasType()) {
tgt.addType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.addType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); for (org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t));
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class Organization10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Organization tgt = new org.hl7.fhir.dstu2.model.Organization(); org.hl7.fhir.dstu2.model.Organization tgt = new org.hl7.fhir.dstu2.model.Organization();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getTypeFirstRep())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getTypeFirstRep()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); for (org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t));
}
return tgt; return tgt;
} }
@ -42,10 +74,18 @@ public class Organization10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent(); org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasPurpose()) {
tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose())); tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose()));
}
if (src.hasName()) {
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName())); tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress())); tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
}
return tgt; return tgt;
} }
@ -54,10 +94,18 @@ public class Organization10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent(); org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasPurpose()) {
tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose())); tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose()));
}
if (src.hasName()) {
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName())); tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress())); tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,7 +10,9 @@ public class Parameters10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Parameters tgt = new org.hl7.fhir.dstu3.model.Parameters(); org.hl7.fhir.dstu3.model.Parameters tgt = new org.hl7.fhir.dstu3.model.Parameters();
VersionConvertor_10_30.copyResource(src, tgt); VersionConvertor_10_30.copyResource(src, tgt);
if (src.hasParameter()) {
for (org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t)); for (org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t));
}
return tgt; return tgt;
} }
@ -19,7 +21,9 @@ public class Parameters10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Parameters tgt = new org.hl7.fhir.dstu2.model.Parameters(); org.hl7.fhir.dstu2.model.Parameters tgt = new org.hl7.fhir.dstu2.model.Parameters();
VersionConvertor_10_30.copyResource(src, tgt); VersionConvertor_10_30.copyResource(src, tgt);
if (src.hasParameter()) {
for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t)); for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t));
}
return tgt; return tgt;
} }
@ -28,10 +32,18 @@ public class Parameters10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent(); org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasResource()) {
tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource())); tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource()));
}
if (src.hasPart()) {
for (org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent t : src.getPart()) tgt.addPart(convertParametersParameterComponent(t)); for (org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent t : src.getPart()) tgt.addPart(convertParametersParameterComponent(t));
}
return tgt; return tgt;
} }
@ -40,10 +52,18 @@ public class Parameters10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent(); org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasResource()) {
tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource())); tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource()));
}
if (src.hasPart()) {
for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getPart()) tgt.addPart(convertParametersParameterComponent(t)); for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getPart()) tgt.addPart(convertParametersParameterComponent(t));
}
return tgt; return tgt;
} }
} }

View File

@ -10,9 +10,15 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu3.model.Patient.AnimalComponent(); org.hl7.fhir.dstu3.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu3.model.Patient.AnimalComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSpecies()) {
tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies())); tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies()));
}
if (src.hasBreed()) {
tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed())); tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed()));
}
if (src.hasGenderStatus()) {
tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus())); tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus()));
}
return tgt; return tgt;
} }
@ -21,9 +27,15 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu2.model.Patient.AnimalComponent(); org.hl7.fhir.dstu2.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu2.model.Patient.AnimalComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSpecies()) {
tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies())); tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies()));
}
if (src.hasBreed()) {
tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed())); tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed()));
}
if (src.hasGenderStatus()) {
tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus())); tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus()));
}
return tgt; return tgt;
} }
@ -32,13 +44,27 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu3.model.Patient.ContactComponent(); org.hl7.fhir.dstu3.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu3.model.Patient.ContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRelationship()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasName()) {
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName())); tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress())); tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasOrganization()) {
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization())); tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -47,13 +73,27 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent(); org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRelationship()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasName()) {
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName())); tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress())); tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasOrganization()) {
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization())); tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -94,23 +134,57 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Patient tgt = new org.hl7.fhir.dstu3.model.Patient(); org.hl7.fhir.dstu3.model.Patient tgt = new org.hl7.fhir.dstu3.model.Patient();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasName()) {
for (org.hl7.fhir.dstu2.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t)); for (org.hl7.fhir.dstu2.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasDeceased()) {
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased())); tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasMaritalStatus()) {
tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus())); tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus()));
}
if (src.hasMultipleBirth()) {
tgt.setMultipleBirth(VersionConvertor_10_30.convertType(src.getMultipleBirth())); tgt.setMultipleBirth(VersionConvertor_10_30.convertType(src.getMultipleBirth()));
}
if (src.hasPhoto()) {
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t)); for (org.hl7.fhir.dstu2.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t));
}
if (src.hasAnimal()) {
tgt.setAnimal(convertAnimalComponent(src.getAnimal())); tgt.setAnimal(convertAnimalComponent(src.getAnimal()));
}
if (src.hasCommunication()) {
for (org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent t : src.getCommunication()) tgt.addCommunication(convertPatientCommunicationComponent(t)); for (org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent t : src.getCommunication()) tgt.addCommunication(convertPatientCommunicationComponent(t));
}
if (src.hasCareProvider()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getCareProvider()) tgt.addGeneralPractitioner(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getCareProvider()) tgt.addGeneralPractitioner(VersionConvertor_10_30.convertReference(t));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent t : src.getLink()) tgt.addLink(convertPatientLinkComponent(t)); for (org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent t : src.getLink()) tgt.addLink(convertPatientLinkComponent(t));
}
return tgt; return tgt;
} }
@ -119,23 +193,57 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Patient tgt = new org.hl7.fhir.dstu2.model.Patient(); org.hl7.fhir.dstu2.model.Patient tgt = new org.hl7.fhir.dstu2.model.Patient();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasName()) {
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t)); for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasDeceased()) {
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased())); tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasMaritalStatus()) {
tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus())); tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus()));
}
if (src.hasMultipleBirth()) {
tgt.setMultipleBirth(VersionConvertor_10_30.convertType(src.getMultipleBirth())); tgt.setMultipleBirth(VersionConvertor_10_30.convertType(src.getMultipleBirth()));
}
if (src.hasPhoto()) {
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t)); for (org.hl7.fhir.dstu3.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t));
}
if (src.hasAnimal()) {
tgt.setAnimal(convertAnimalComponent(src.getAnimal())); tgt.setAnimal(convertAnimalComponent(src.getAnimal()));
}
if (src.hasCommunication()) {
for (org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent t : src.getCommunication()) tgt.addCommunication(convertPatientCommunicationComponent(t)); for (org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent t : src.getCommunication()) tgt.addCommunication(convertPatientCommunicationComponent(t));
}
if (src.hasGeneralPractitioner()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getGeneralPractitioner()) tgt.addCareProvider(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getGeneralPractitioner()) tgt.addCareProvider(VersionConvertor_10_30.convertReference(t));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent t : src.getLink()) tgt.addLink(convertPatientLinkComponent(t)); for (org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent t : src.getLink()) tgt.addLink(convertPatientLinkComponent(t));
}
return tgt; return tgt;
} }
@ -144,8 +252,12 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent(); org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLanguage()) {
tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage())); tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage()));
}
if (src.hasPreferred()) {
tgt.setPreferred(src.getPreferred()); tgt.setPreferred(src.getPreferred());
}
return tgt; return tgt;
} }
@ -154,8 +266,12 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent(); org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLanguage()) {
tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage())); tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage()));
}
if (src.hasPreferred()) {
tgt.setPreferred(src.getPreferred()); tgt.setPreferred(src.getPreferred());
}
return tgt; return tgt;
} }
@ -164,8 +280,12 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent(); org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOther()) {
tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther())); tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther()));
}
if (src.hasType()) {
tgt.setType(convertLinkType(src.getType())); tgt.setType(convertLinkType(src.getType()));
}
return tgt; return tgt;
} }
@ -174,8 +294,12 @@ public class Patient10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent(); org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOther()) {
tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther())); tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther()));
}
if (src.hasType()) {
tgt.setType(convertLinkType(src.getType())); tgt.setType(convertLinkType(src.getType()));
}
return tgt; return tgt;
} }
} }

View File

@ -44,16 +44,36 @@ public class Person10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Person tgt = new org.hl7.fhir.dstu3.model.Person(); org.hl7.fhir.dstu3.model.Person tgt = new org.hl7.fhir.dstu3.model.Person();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasName()) {
for (org.hl7.fhir.dstu2.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t)); for (org.hl7.fhir.dstu2.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasPhoto()) {
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto())); tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t)); for (org.hl7.fhir.dstu2.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
}
return tgt; return tgt;
} }
@ -62,16 +82,36 @@ public class Person10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Person tgt = new org.hl7.fhir.dstu2.model.Person(); org.hl7.fhir.dstu2.model.Person tgt = new org.hl7.fhir.dstu2.model.Person();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasName()) {
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t)); for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasPhoto()) {
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto())); tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t)); for (org.hl7.fhir.dstu3.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
}
return tgt; return tgt;
} }
@ -80,8 +120,12 @@ public class Person10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu3.model.Person.PersonLinkComponent(); org.hl7.fhir.dstu3.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu3.model.Person.PersonLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
if (src.hasAssurance()) {
tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance())); tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance()));
}
return tgt; return tgt;
} }
@ -90,8 +134,12 @@ public class Person10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent(); org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
}
if (src.hasAssurance()) {
tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance())); tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,17 +10,35 @@ public class Practitioner10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Practitioner tgt = new org.hl7.fhir.dstu3.model.Practitioner(); org.hl7.fhir.dstu3.model.Practitioner tgt = new org.hl7.fhir.dstu3.model.Practitioner();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasName()) if (src.hasName())
tgt.addName(VersionConvertor_10_30.convertHumanName(src.getName())); tgt.addName(VersionConvertor_10_30.convertHumanName(src.getName()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasPhoto()) {
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
}
if (src.hasQualification()) {
for (org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t)); for (org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t));
}
if (src.hasCommunication()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -29,16 +47,36 @@ public class Practitioner10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Practitioner tgt = new org.hl7.fhir.dstu2.model.Practitioner(); org.hl7.fhir.dstu2.model.Practitioner tgt = new org.hl7.fhir.dstu2.model.Practitioner();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasActive()) {
tgt.setActive(src.getActive()); tgt.setActive(src.getActive());
}
if (src.hasName()) {
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.setName(VersionConvertor_10_30.convertHumanName(t)); for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.setName(VersionConvertor_10_30.convertHumanName(t));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasPhoto()) {
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
}
if (src.hasQualification()) {
for (org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t)); for (org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t));
}
if (src.hasCommunication()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -47,10 +85,18 @@ public class Practitioner10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent(); org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasIssuer()) {
tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer())); tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer()));
}
return tgt; return tgt;
} }
@ -59,10 +105,18 @@ public class Practitioner10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent(); org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasIssuer()) {
tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer())); tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,25 +10,63 @@ public class Procedure10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Procedure tgt = new org.hl7.fhir.dstu2.model.Procedure(); org.hl7.fhir.dstu2.model.Procedure tgt = new org.hl7.fhir.dstu2.model.Procedure();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasStatus()) {
tgt.setStatus(convertProcedureStatus(src.getStatus())); tgt.setStatus(convertProcedureStatus(src.getStatus()));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasNotDone()) {
tgt.setNotPerformed(src.getNotDone()); tgt.setNotPerformed(src.getNotDone());
}
if (src.hasNotDoneReason()) {
tgt.addReasonNotPerformed(VersionConvertor_10_30.convertCodeableConcept(src.getNotDoneReason())); tgt.addReasonNotPerformed(VersionConvertor_10_30.convertCodeableConcept(src.getNotDoneReason()));
}
if (src.hasBodySite()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonCode()) {
tgt.setReason(VersionConvertor_10_30.convertType(src.getReasonCodeFirstRep())); tgt.setReason(VersionConvertor_10_30.convertType(src.getReasonCodeFirstRep()));
}
if (src.hasPerformer()) {
for (org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent t : src.getPerformer()) tgt.addPerformer(convertProcedurePerformerComponent(t)); for (org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent t : src.getPerformer()) tgt.addPerformer(convertProcedurePerformerComponent(t));
}
if (src.hasPerformed()) {
tgt.setPerformed(VersionConvertor_10_30.convertType(src.getPerformed())); tgt.setPerformed(VersionConvertor_10_30.convertType(src.getPerformed()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
}
if (src.hasReport()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getReport()) tgt.addReport(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getReport()) tgt.addReport(VersionConvertor_10_30.convertReference(t));
}
if (src.hasComplication()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getComplication()) tgt.addComplication(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getComplication()) tgt.addComplication(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasFollowUp()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getFollowUp()) tgt.addFollowUp(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getFollowUp()) tgt.addFollowUp(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasBasedOn()) {
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getBasedOnFirstRep())); tgt.setRequest(VersionConvertor_10_30.convertReference(src.getBasedOnFirstRep()));
}
if (src.hasFocalDevice()) {
for (org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice()) tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t)); for (org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice()) tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t));
}
return tgt; return tgt;
} }
@ -37,27 +75,61 @@ public class Procedure10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Procedure tgt = new org.hl7.fhir.dstu3.model.Procedure(); org.hl7.fhir.dstu3.model.Procedure tgt = new org.hl7.fhir.dstu3.model.Procedure();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasStatus()) {
tgt.setStatus(convertProcedureStatus(src.getStatus())); tgt.setStatus(convertProcedureStatus(src.getStatus()));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory())); tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasNotPerformed()) {
tgt.setNotDone(src.getNotPerformed()); tgt.setNotDone(src.getNotPerformed());
}
if (src.hasReasonNotPerformed()) if (src.hasReasonNotPerformed())
tgt.setNotDoneReason(VersionConvertor_10_30.convertCodeableConcept(src.getReasonNotPerformed().get(0))); tgt.setNotDoneReason(VersionConvertor_10_30.convertCodeableConcept(src.getReasonNotPerformed().get(0)));
if (src.hasBodySite()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonCodeableConcept()) if (src.hasReasonCodeableConcept())
tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReasonCodeableConcept())); tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReasonCodeableConcept()));
if (src.hasPerformer()) {
for (org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent t : src.getPerformer()) tgt.addPerformer(convertProcedurePerformerComponent(t)); for (org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent t : src.getPerformer()) tgt.addPerformer(convertProcedurePerformerComponent(t));
}
if (src.hasPerformed()) {
tgt.setPerformed(VersionConvertor_10_30.convertType(src.getPerformed())); tgt.setPerformed(VersionConvertor_10_30.convertType(src.getPerformed()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
}
if (src.hasReport()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getReport()) tgt.addReport(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getReport()) tgt.addReport(VersionConvertor_10_30.convertReference(t));
}
if (src.hasComplication()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getComplication()) tgt.addComplication(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getComplication()) tgt.addComplication(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasFollowUp()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getFollowUp()) tgt.addFollowUp(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getFollowUp()) tgt.addFollowUp(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasRequest()) {
tgt.addBasedOn(VersionConvertor_10_30.convertReference(src.getRequest())); tgt.addBasedOn(VersionConvertor_10_30.convertReference(src.getRequest()));
}
if (src.hasFocalDevice()) {
for (org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice()) tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t)); for (org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice()) tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t));
}
return tgt; return tgt;
} }
@ -66,8 +138,12 @@ public class Procedure10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent(); org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction())); tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
}
if (src.hasManipulated()) {
tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated())); tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated()));
}
return tgt; return tgt;
} }
@ -76,8 +152,12 @@ public class Procedure10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent(); org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction())); tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
}
if (src.hasManipulated()) {
tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated())); tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated()));
}
return tgt; return tgt;
} }
@ -86,8 +166,12 @@ public class Procedure10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent(); org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasRole()) {
tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole())); tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole()));
}
return tgt; return tgt;
} }
@ -96,8 +180,12 @@ public class Procedure10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent(); org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasRole()) {
tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole())); tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole()));
}
return tgt; return tgt;
} }

View File

@ -10,19 +10,41 @@ public class ProcedureRequest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ProcedureRequest tgt = new org.hl7.fhir.dstu3.model.ProcedureRequest(); org.hl7.fhir.dstu3.model.ProcedureRequest tgt = new org.hl7.fhir.dstu3.model.ProcedureRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasBodySite()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonCodeableConcept()) if (src.hasReasonCodeableConcept())
tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReasonCodeableConcept())); tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReasonCodeableConcept()));
if (src.hasScheduled()) {
tgt.setOccurrence(VersionConvertor_10_30.convertType(src.getScheduled())); tgt.setOccurrence(VersionConvertor_10_30.convertType(src.getScheduled()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasPerformer()) {
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer())); tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
}
if (src.hasStatus()) {
tgt.setStatus(convertProcedureRequestStatus(src.getStatus())); tgt.setStatus(convertProcedureRequestStatus(src.getStatus()));
}
if (src.hasAsNeeded()) {
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded())); tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
}
if (src.hasOrderedOn()) {
tgt.setAuthoredOn(src.getOrderedOn()); tgt.setAuthoredOn(src.getOrderedOn());
}
if (src.hasPriority()) {
tgt.setPriority(convertProcedureRequestPriority(src.getPriority())); tgt.setPriority(convertProcedureRequestPriority(src.getPriority()));
}
return tgt; return tgt;
} }
@ -31,18 +53,42 @@ public class ProcedureRequest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ProcedureRequest tgt = new org.hl7.fhir.dstu2.model.ProcedureRequest(); org.hl7.fhir.dstu2.model.ProcedureRequest tgt = new org.hl7.fhir.dstu2.model.ProcedureRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasBodySite()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasReasonCode()) {
tgt.setReason(VersionConvertor_10_30.convertType(src.getReasonCodeFirstRep())); tgt.setReason(VersionConvertor_10_30.convertType(src.getReasonCodeFirstRep()));
}
if (src.hasOccurrence()) {
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getOccurrence())); tgt.setScheduled(VersionConvertor_10_30.convertType(src.getOccurrence()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasPerformer()) {
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer())); tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
}
if (src.hasStatus()) {
tgt.setStatus(convertProcedureRequestStatus(src.getStatus())); tgt.setStatus(convertProcedureRequestStatus(src.getStatus()));
}
if (src.hasAsNeeded()) {
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded())); tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
}
if (src.hasAuthoredOn()) {
tgt.setOrderedOn(src.getAuthoredOn()); tgt.setOrderedOn(src.getAuthoredOn());
}
if (src.hasPriority()) {
tgt.setPriority(convertProcedureRequestPriority(src.getPriority())); tgt.setPriority(convertProcedureRequestPriority(src.getPriority()));
}
return tgt; return tgt;
} }

View File

@ -10,16 +10,36 @@ public class Provenance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Provenance tgt = new org.hl7.fhir.dstu2.model.Provenance(); org.hl7.fhir.dstu2.model.Provenance tgt = new org.hl7.fhir.dstu2.model.Provenance();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasTarget()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getTarget()) tgt.addTarget(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getTarget()) tgt.addTarget(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasRecorded()) {
tgt.setRecorded(src.getRecorded()); tgt.setRecorded(src.getRecorded());
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getReason()) tgt.addReason().addCoding(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getReason()) tgt.addReason().addCoding(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasActivity()) {
tgt.setActivity(new org.hl7.fhir.dstu2.model.CodeableConcept().addCoding(VersionConvertor_10_30.convertCoding(src.getActivity()))); tgt.setActivity(new org.hl7.fhir.dstu2.model.CodeableConcept().addCoding(VersionConvertor_10_30.convertCoding(src.getActivity())));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasPolicy()) {
for (org.hl7.fhir.dstu3.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); for (org.hl7.fhir.dstu3.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
}
if (src.hasAgent()) {
for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.addAgent(convertProvenanceAgentComponent(t)); for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.addAgent(convertProvenanceAgentComponent(t));
}
if (src.hasEntity()) {
for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent t : src.getEntity()) tgt.addEntity(convertProvenanceEntityComponent(t)); for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent t : src.getEntity()) tgt.addEntity(convertProvenanceEntityComponent(t));
}
if (src.hasSignature()) {
for (org.hl7.fhir.dstu3.model.Signature t : src.getSignature()) tgt.addSignature(VersionConvertor_10_30.convertSignature(t)); for (org.hl7.fhir.dstu3.model.Signature t : src.getSignature()) tgt.addSignature(VersionConvertor_10_30.convertSignature(t));
}
return tgt; return tgt;
} }
@ -28,16 +48,36 @@ public class Provenance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Provenance tgt = new org.hl7.fhir.dstu3.model.Provenance(); org.hl7.fhir.dstu3.model.Provenance tgt = new org.hl7.fhir.dstu3.model.Provenance();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasTarget()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getTarget()) tgt.addTarget(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getTarget()) tgt.addTarget(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
if (src.hasRecorded()) {
tgt.setRecorded(src.getRecorded()); tgt.setRecorded(src.getRecorded());
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) for (org.hl7.fhir.dstu2.model.Coding tc : t.getCoding()) tgt.addReason(VersionConvertor_10_30.convertCoding(tc)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) for (org.hl7.fhir.dstu2.model.Coding tc : t.getCoding()) tgt.addReason(VersionConvertor_10_30.convertCoding(tc));
}
if (src.hasActivity()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getActivity().getCoding()) tgt.setActivity(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getActivity().getCoding()) tgt.setActivity(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
}
if (src.hasPolicy()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
}
if (src.hasAgent()) {
for (org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.addAgent(convertProvenanceAgentComponent(t)); for (org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.addAgent(convertProvenanceAgentComponent(t));
}
if (src.hasEntity()) {
for (org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent t : src.getEntity()) tgt.addEntity(convertProvenanceEntityComponent(t)); for (org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent t : src.getEntity()) tgt.addEntity(convertProvenanceEntityComponent(t));
}
if (src.hasSignature()) {
for (org.hl7.fhir.dstu2.model.Signature t : src.getSignature()) tgt.addSignature(VersionConvertor_10_30.convertSignature(t)); for (org.hl7.fhir.dstu2.model.Signature t : src.getSignature()) tgt.addSignature(VersionConvertor_10_30.convertSignature(t));
}
return tgt; return tgt;
} }
@ -56,7 +96,9 @@ public class Provenance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent(); org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasActor()) {
tgt.setWho(VersionConvertor_10_30.convertReference(src.getActor())); tgt.setWho(VersionConvertor_10_30.convertReference(src.getActor()));
}
return tgt; return tgt;
} }
@ -65,10 +107,14 @@ public class Provenance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent(); org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRole()) {
tgt.setRole(convertProvenanceEntityRole(src.getRole())); tgt.setRole(convertProvenanceEntityRole(src.getRole()));
}
if (src.hasWhatReference() && src.getWhatReference().hasReference()) if (src.hasWhatReference() && src.getWhatReference().hasReference())
tgt.setReference(src.getWhatReference().getReference()); tgt.setReference(src.getWhatReference().getReference());
if (src.hasAgent()) {
for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t)); for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t));
}
return tgt; return tgt;
} }
@ -77,10 +123,14 @@ public class Provenance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent(); org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRole()) {
tgt.setRole(convertProvenanceEntityRole(src.getRole())); tgt.setRole(convertProvenanceEntityRole(src.getRole()));
}
if (src.hasReference()) if (src.hasReference())
tgt.setWhat(new org.hl7.fhir.dstu3.model.Reference().setReference(src.getReference())); tgt.setWhat(new org.hl7.fhir.dstu3.model.Reference().setReference(src.getReference()));
if (src.hasAgent()) {
tgt.addAgent(convertProvenanceAgentComponent(src.getAgent())); tgt.addAgent(convertProvenanceAgentComponent(src.getAgent()));
}
return tgt; return tgt;
} }

View File

@ -11,19 +11,33 @@ public class Questionnaire10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Questionnaire tgt = new org.hl7.fhir.dstu2.model.Questionnaire(); org.hl7.fhir.dstu2.model.Questionnaire tgt = new org.hl7.fhir.dstu2.model.Questionnaire();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasStatus()) {
tgt.setStatus(convertQuestionnaireStatus(src.getStatus())); tgt.setStatus(convertQuestionnaireStatus(src.getStatus()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (ContactDetail t : src.getContact()) for (org.hl7.fhir.dstu3.model.ContactPoint t1 : t.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t1)); for (ContactDetail t : src.getContact()) for (org.hl7.fhir.dstu3.model.ContactPoint t1 : t.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t1));
}
org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent root = tgt.getGroup(); org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent root = tgt.getGroup();
if (src.hasTitle()) {
root.setTitle(src.getTitle()); root.setTitle(src.getTitle());
}
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) { for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) {
root.addConcept(VersionConvertor_10_30.convertCoding(t)); root.addConcept(VersionConvertor_10_30.convertCoding(t));
} }
if (src.hasSubjectType()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getSubjectType()) tgt.addSubjectType(t.getValue()); for (org.hl7.fhir.dstu3.model.CodeType t : src.getSubjectType()) tgt.addSubjectType(t.getValue());
}
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) if (t.getType() == org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.GROUP) for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) if (t.getType() == org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.GROUP)
root.addGroup(convertQuestionnaireGroupComponent(t)); root.addGroup(convertQuestionnaireGroupComponent(t));
else else
@ -65,11 +79,21 @@ public class Questionnaire10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent(); org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasCode()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasRequired()) {
tgt.setRequired(src.getRequired()); tgt.setRequired(src.getRequired());
}
if (src.hasRepeats()) {
tgt.setRepeats(src.getRepeats()); tgt.setRepeats(src.getRepeats());
}
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) if (t.getType() == org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.GROUP) for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) if (t.getType() == org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.GROUP)
tgt.addGroup(convertQuestionnaireGroupComponent(t)); tgt.addGroup(convertQuestionnaireGroupComponent(t));
else else
@ -82,14 +106,28 @@ public class Questionnaire10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent(); org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasConcept()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
tgt.setType(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.GROUP); tgt.setType(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.GROUP);
if (src.hasRequired()) {
tgt.setRequired(src.getRequired()); tgt.setRequired(src.getRequired());
}
if (src.hasRepeats()) {
tgt.setRepeats(src.getRepeats()); tgt.setRepeats(src.getRepeats());
}
if (src.hasGroup()) {
for (org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireGroupComponent(t)); for (org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireGroupComponent(t));
}
if (src.hasQuestion()) {
for (org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent t : src.getQuestion()) tgt.addItem(convertQuestionnaireQuestionComponent(t)); for (org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent t : src.getQuestion()) tgt.addItem(convertQuestionnaireQuestionComponent(t));
}
return tgt; return tgt;
} }
@ -135,15 +173,33 @@ public class Questionnaire10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent(); org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasConcept()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasType()) {
tgt.setType(convertQuestionnaireQuestionType(src.getType())); tgt.setType(convertQuestionnaireQuestionType(src.getType()));
}
if (src.hasRequired()) {
tgt.setRequired(src.getRequired()); tgt.setRequired(src.getRequired());
}
if (src.hasRepeats()) {
tgt.setRepeats(src.getRepeats()); tgt.setRepeats(src.getRepeats());
}
if (src.hasOptions()) {
tgt.setOptions(VersionConvertor_10_30.convertReference(src.getOptions())); tgt.setOptions(VersionConvertor_10_30.convertReference(src.getOptions()));
}
if (src.hasOption()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getOption()) tgt.addOption().setValue(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getOption()) tgt.addOption().setValue(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasGroup()) {
for (org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireGroupComponent(t)); for (org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireGroupComponent(t));
}
return tgt; return tgt;
} }
@ -152,20 +208,36 @@ public class Questionnaire10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent(); org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasCode()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasType()) {
tgt.setType(convertQuestionnaireItemType(src.getType())); tgt.setType(convertQuestionnaireItemType(src.getType()));
}
if (src.hasRequired()) {
tgt.setRequired(src.getRequired()); tgt.setRequired(src.getRequired());
}
if (src.hasRepeats()) {
tgt.setRepeats(src.getRepeats()); tgt.setRepeats(src.getRepeats());
}
if (src.hasOptions()) {
tgt.setOptions(VersionConvertor_10_30.convertReference(src.getOptions())); tgt.setOptions(VersionConvertor_10_30.convertReference(src.getOptions()));
}
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent t : src.getOption()) if (t.hasValueCoding()) for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent t : src.getOption()) if (t.hasValueCoding())
try { try {
tgt.addOption(VersionConvertor_10_30.convertCoding(t.getValueCoding())); tgt.addOption(VersionConvertor_10_30.convertCoding(t.getValueCoding()));
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e); throw new FHIRException(e);
} }
if (src.hasItem()) {
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) tgt.addGroup(convertQuestionnaireGroupComponent(t)); for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) tgt.addGroup(convertQuestionnaireGroupComponent(t));
}
return tgt; return tgt;
} }

View File

@ -10,9 +10,15 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent(); org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) if (t.hasAnswer()) for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) if (t.hasAnswer())
tgt.addQuestion(convertQuestionnaireItemToQuestion(t)); tgt.addQuestion(convertQuestionnaireItemToQuestion(t));
else else
@ -25,9 +31,15 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent(); org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasAnswer()) {
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t)); for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
}
return tgt; return tgt;
} }
@ -36,17 +48,35 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse(); org.hl7.fhir.dstu2.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasQuestionnaire()) {
tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire())); tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire()));
}
if (src.hasStatus()) {
tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus())); tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasAuthored()) {
tgt.setAuthored(src.getAuthored()); tgt.setAuthored(src.getAuthored());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.getItem().size() != 1) if (src.getItem().size() != 1)
throw new FHIRException("multiple root items not supported"); throw new FHIRException("multiple root items not supported");
if (src.hasItem()) {
tgt.setGroup(convertQuestionnaireItemToGroup(src.getItem().get(0))); tgt.setGroup(convertQuestionnaireItemToGroup(src.getItem().get(0)));
}
return tgt; return tgt;
} }
@ -55,14 +85,30 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse(); org.hl7.fhir.dstu3.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasQuestionnaire()) {
tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire())); tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire()));
}
if (src.hasStatus()) {
tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus())); tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
}
if (src.hasAuthored()) {
tgt.setAuthored(src.getAuthored()); tgt.setAuthored(src.getAuthored());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasGroup()) if (src.hasGroup())
tgt.addItem(convertQuestionnaireResponseGroupComponent(src.getGroup())); tgt.addItem(convertQuestionnaireResponseGroupComponent(src.getGroup()));
return tgt; return tgt;
@ -73,11 +119,21 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasGroup()) {
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireResponseGroupComponent(t)); for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireResponseGroupComponent(t));
}
if (src.hasQuestion()) {
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent t : src.getQuestion()) tgt.addItem(convertQuestionnaireResponseQuestionComponent(t)); for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent t : src.getQuestion()) tgt.addItem(convertQuestionnaireResponseQuestionComponent(t));
}
return tgt; return tgt;
} }
@ -86,8 +142,12 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent(); org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasItem()) {
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) tgt.addGroup(convertQuestionnaireItemToGroup(t)); for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) tgt.addGroup(convertQuestionnaireItemToGroup(t));
}
return tgt; return tgt;
} }
@ -96,8 +156,12 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
if (src.hasGroup()) {
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireResponseGroupComponent(t)); for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireResponseGroupComponent(t));
}
return tgt; return tgt;
} }
@ -106,9 +170,15 @@ public class QuestionnaireResponse10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLinkId()) {
tgt.setLinkId(src.getLinkId()); tgt.setLinkId(src.getLinkId());
}
if (src.hasText()) {
tgt.setText(src.getText()); tgt.setText(src.getText());
}
if (src.hasAnswer()) {
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t)); for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
}
return tgt; return tgt;
} }

View File

@ -47,19 +47,45 @@ public class ReferralRequest10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ReferralRequest tgt = new org.hl7.fhir.dstu2.model.ReferralRequest(); org.hl7.fhir.dstu2.model.ReferralRequest tgt = new org.hl7.fhir.dstu2.model.ReferralRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertReferralStatus(src.getStatus())); tgt.setStatus(convertReferralStatus(src.getStatus()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasPriority()) {
tgt.setPriority(convertReferralPriorityCode(src.getPriority())); tgt.setPriority(convertReferralPriorityCode(src.getPriority()));
}
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasOccurrencePeriod()) {
tgt.setFulfillmentTime(VersionConvertor_10_30.convertPeriod(src.getOccurrencePeriod())); tgt.setFulfillmentTime(VersionConvertor_10_30.convertPeriod(src.getOccurrencePeriod()));
}
if (src.hasRequester()) {
tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent())); tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent()));
}
if (src.hasSpecialty()) {
tgt.setSpecialty(VersionConvertor_10_30.convertCodeableConcept(src.getSpecialty())); tgt.setSpecialty(VersionConvertor_10_30.convertCodeableConcept(src.getSpecialty()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getReasonCode()) tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(cc)); for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getReasonCode()) tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(cc));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasServiceRequested()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceRequested()) tgt.addServiceRequested(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceRequested()) tgt.addServiceRequested(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSupportingInfo()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingInfo()) tgt.addSupportingInformation(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingInfo()) tgt.addSupportingInformation(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -68,19 +94,45 @@ public class ReferralRequest10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ReferralRequest tgt = new org.hl7.fhir.dstu3.model.ReferralRequest(); org.hl7.fhir.dstu3.model.ReferralRequest tgt = new org.hl7.fhir.dstu3.model.ReferralRequest();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertReferralStatus(src.getStatus())); tgt.setStatus(convertReferralStatus(src.getStatus()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasPriority()) {
tgt.setPriority(convertReferralPriorityCode(src.getPriority())); tgt.setPriority(convertReferralPriorityCode(src.getPriority()));
}
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasFulfillmentTime()) {
tgt.setOccurrence(VersionConvertor_10_30.convertPeriod(src.getFulfillmentTime())); tgt.setOccurrence(VersionConvertor_10_30.convertPeriod(src.getFulfillmentTime()));
}
if (src.hasRequester()) {
tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester())); tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester()));
}
if (src.hasSpecialty()) {
tgt.setSpecialty(VersionConvertor_10_30.convertCodeableConcept(src.getSpecialty())); tgt.setSpecialty(VersionConvertor_10_30.convertCodeableConcept(src.getSpecialty()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
}
if (src.hasReason()) {
tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReason())); tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReason()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasServiceRequested()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceRequested()) tgt.addServiceRequested(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceRequested()) tgt.addServiceRequested(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSupportingInformation()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInfo(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInfo(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }

View File

@ -10,16 +10,36 @@ public class RelatedPerson10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.RelatedPerson tgt = new org.hl7.fhir.dstu3.model.RelatedPerson(); org.hl7.fhir.dstu3.model.RelatedPerson tgt = new org.hl7.fhir.dstu3.model.RelatedPerson();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasRelationship()) {
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship())); tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
}
if (src.hasName()) {
tgt.addName(VersionConvertor_10_30.convertHumanName(src.getName())); tgt.addName(VersionConvertor_10_30.convertHumanName(src.getName()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasPhoto()) {
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -28,17 +48,35 @@ public class RelatedPerson10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.RelatedPerson tgt = new org.hl7.fhir.dstu2.model.RelatedPerson(); org.hl7.fhir.dstu2.model.RelatedPerson tgt = new org.hl7.fhir.dstu2.model.RelatedPerson();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasRelationship()) {
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship())); tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
}
if (!src.getName().isEmpty()) if (!src.getName().isEmpty())
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName().get(0))); tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName().get(0)));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasGender()) {
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender())); tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(src.getBirthDate()); tgt.setBirthDate(src.getBirthDate());
}
if (src.hasAddress()) {
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t)); for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
}
if (src.hasPhoto()) {
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t)); for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,15 +10,33 @@ public class RiskAssessment10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.RiskAssessment tgt = new org.hl7.fhir.dstu2.model.RiskAssessment(); org.hl7.fhir.dstu2.model.RiskAssessment tgt = new org.hl7.fhir.dstu2.model.RiskAssessment();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasCondition()) {
tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition())); tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
}
if (src.hasPerformer()) {
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer())); tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasBasis()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getBasis()) tgt.addBasis(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getBasis()) tgt.addBasis(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPrediction()) {
for (org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t)); for (org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
}
if (src.hasMitigation()) {
tgt.setMitigation(src.getMitigation()); tgt.setMitigation(src.getMitigation());
}
return tgt; return tgt;
} }
@ -27,15 +45,33 @@ public class RiskAssessment10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.RiskAssessment tgt = new org.hl7.fhir.dstu3.model.RiskAssessment(); org.hl7.fhir.dstu3.model.RiskAssessment tgt = new org.hl7.fhir.dstu3.model.RiskAssessment();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
}
if (src.hasCondition()) {
tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition())); tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
}
if (src.hasPerformer()) {
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer())); tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasMethod()) {
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod())); tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
}
if (src.hasBasis()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getBasis()) tgt.addBasis(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getBasis()) tgt.addBasis(VersionConvertor_10_30.convertReference(t));
}
if (src.hasPrediction()) {
for (org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t)); for (org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
}
if (src.hasMitigation()) {
tgt.setMitigation(src.getMitigation()); tgt.setMitigation(src.getMitigation());
}
return tgt; return tgt;
} }
@ -44,11 +80,21 @@ public class RiskAssessment10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent(); org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
}
if (src.hasProbability()) {
tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability())); tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability()));
}
if (src.hasRelativeRisk()) {
tgt.setRelativeRisk(src.getRelativeRisk()); tgt.setRelativeRisk(src.getRelativeRisk());
}
if (src.hasWhen()) {
tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen())); tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen()));
}
if (src.hasRationale()) {
tgt.setRationale(src.getRationale()); tgt.setRationale(src.getRationale());
}
return tgt; return tgt;
} }
@ -57,11 +103,21 @@ public class RiskAssessment10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent(); org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
}
if (src.hasProbability()) {
tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability())); tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability()));
}
if (src.hasRelativeRisk()) {
tgt.setRelativeRisk(src.getRelativeRisk()); tgt.setRelativeRisk(src.getRelativeRisk());
}
if (src.hasWhen()) {
tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen())); tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen()));
}
if (src.hasRationale()) {
tgt.setRationale(src.getRationale()); tgt.setRationale(src.getRationale());
}
return tgt; return tgt;
} }
} }

View File

@ -10,11 +10,21 @@ public class Schedule10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Schedule tgt = new org.hl7.fhir.dstu2.model.Schedule(); org.hl7.fhir.dstu2.model.Schedule tgt = new org.hl7.fhir.dstu2.model.Schedule();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasServiceType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActorFirstRep())); tgt.setActor(VersionConvertor_10_30.convertReference(src.getActorFirstRep()));
}
if (src.hasPlanningHorizon()) {
tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon())); tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }
@ -23,11 +33,21 @@ public class Schedule10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Schedule tgt = new org.hl7.fhir.dstu3.model.Schedule(); org.hl7.fhir.dstu3.model.Schedule tgt = new org.hl7.fhir.dstu3.model.Schedule();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.addActor(VersionConvertor_10_30.convertReference(src.getActor())); tgt.addActor(VersionConvertor_10_30.convertReference(src.getActor()));
}
if (src.hasPlanningHorizon()) {
tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon())); tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }
} }

View File

@ -11,24 +11,52 @@ public class SearchParameter10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.SearchParameter tgt = new org.hl7.fhir.dstu2.model.SearchParameter(); org.hl7.fhir.dstu2.model.SearchParameter tgt = new org.hl7.fhir.dstu2.model.SearchParameter();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasBase()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getBase()) tgt.setBase(t.asStringValue()); for (org.hl7.fhir.dstu3.model.CodeType t : src.getBase()) tgt.setBase(t.asStringValue());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType())); tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasExpression()) {
org.hl7.fhir.dstu2.utils.ToolingExtensions.setStringExtension(tgt, ToolingExtensions.EXT_EXPRESSION, src.getExpression()); org.hl7.fhir.dstu2.utils.ToolingExtensions.setStringExtension(tgt, ToolingExtensions.EXT_EXPRESSION, src.getExpression());
}
if (src.hasXpath()) {
tgt.setXpath(src.getXpath()); tgt.setXpath(src.getXpath());
}
if (src.hasXpathUsage()) {
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage())); tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
}
if (src.hasTarget()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue()); for (org.hl7.fhir.dstu3.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue());
}
return tgt; return tgt;
} }
@ -37,24 +65,50 @@ public class SearchParameter10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.SearchParameter tgt = new org.hl7.fhir.dstu3.model.SearchParameter(); org.hl7.fhir.dstu3.model.SearchParameter tgt = new org.hl7.fhir.dstu3.model.SearchParameter();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t)); for (org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
}
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasBase()) {
tgt.addBase(src.getBase()); tgt.addBase(src.getBase());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType())); tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
tgt.setExpression(ToolingExtensions.readStringExtension(src, ToolingExtensions.EXT_EXPRESSION)); tgt.setExpression(ToolingExtensions.readStringExtension(src, ToolingExtensions.EXT_EXPRESSION));
if (src.hasXpath()) {
tgt.setXpath(src.getXpath()); tgt.setXpath(src.getXpath());
}
if (src.hasXpathUsage()) {
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage())); tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
}
if (src.hasTarget()) {
for (org.hl7.fhir.dstu2.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue()); for (org.hl7.fhir.dstu2.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue());
}
return tgt; return tgt;
} }
@ -63,8 +117,12 @@ public class SearchParameter10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent tgt = new org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent(); org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent tgt = new org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -73,8 +131,12 @@ public class SearchParameter10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }

View File

@ -10,14 +10,26 @@ public class Slot10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Slot tgt = new org.hl7.fhir.dstu3.model.Slot(); org.hl7.fhir.dstu3.model.Slot tgt = new org.hl7.fhir.dstu3.model.Slot();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasType()) if (src.hasType())
tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
if (src.hasSchedule()) {
tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule())); tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule()));
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasOverbooked()) {
tgt.setOverbooked(src.getOverbooked()); tgt.setOverbooked(src.getOverbooked());
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }
@ -26,13 +38,27 @@ public class Slot10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Slot tgt = new org.hl7.fhir.dstu2.model.Slot(); org.hl7.fhir.dstu2.model.Slot tgt = new org.hl7.fhir.dstu2.model.Slot();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasServiceType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasSchedule()) {
tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule())); tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule()));
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasOverbooked()) {
tgt.setOverbooked(src.getOverbooked()); tgt.setOverbooked(src.getOverbooked());
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }
} }

View File

@ -12,7 +12,9 @@ public class Specimen10_30 {
} }
org.hl7.fhir.dstu2.model.Specimen tgt = new org.hl7.fhir.dstu2.model.Specimen(); org.hl7.fhir.dstu2.model.Specimen tgt = new org.hl7.fhir.dstu2.model.Specimen();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasAccessionIdentifier()) if (src.hasAccessionIdentifier())
tgt.setAccessionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getAccessionIdentifier())); tgt.setAccessionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getAccessionIdentifier()));
if (src.hasStatus()) if (src.hasStatus())
@ -23,11 +25,17 @@ public class Specimen10_30 {
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
if (src.hasReceivedTime()) if (src.hasReceivedTime())
tgt.setReceivedTime(src.getReceivedTime()); tgt.setReceivedTime(src.getReceivedTime());
if (src.hasParent()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getParent()) tgt.addParent(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getParent()) tgt.addParent(VersionConvertor_10_30.convertReference(t));
}
if (src.hasCollection()) if (src.hasCollection())
tgt.setCollection(convertSpecimenCollectionComponent(src.getCollection())); tgt.setCollection(convertSpecimenCollectionComponent(src.getCollection()));
if (src.hasProcessing()) {
for (org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent t : src.getProcessing()) tgt.addTreatment(convertSpecimenProcessingComponent(t)); for (org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent t : src.getProcessing()) tgt.addTreatment(convertSpecimenProcessingComponent(t));
}
if (src.hasContainer()) {
for (org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent t : src.getContainer()) tgt.addContainer(convertSpecimenContainerComponent(t)); for (org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent t : src.getContainer()) tgt.addContainer(convertSpecimenContainerComponent(t));
}
return tgt; return tgt;
} }
@ -54,7 +62,9 @@ public class Specimen10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent(); org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasDescription()) if (src.hasDescription())
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
if (src.hasType()) if (src.hasType())
@ -77,7 +87,9 @@ public class Specimen10_30 {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
if (src.hasProcedure()) if (src.hasProcedure())
tgt.setProcedure(VersionConvertor_10_30.convertCodeableConcept(src.getProcedure())); tgt.setProcedure(VersionConvertor_10_30.convertCodeableConcept(src.getProcedure()));
if (src.hasAdditive()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAdditive()) tgt.addAdditive(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAdditive()) tgt.addAdditive(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }

View File

@ -5,7 +5,6 @@ import org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionKind;
import org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule; import org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.Utilities;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -46,35 +45,81 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.StructureDefinition tgt = new org.hl7.fhir.dstu2.model.StructureDefinition(); org.hl7.fhir.dstu2.model.StructureDefinition tgt = new org.hl7.fhir.dstu2.model.StructureDefinition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTitle()) {
tgt.setDisplay(src.getTitle()); tgt.setDisplay(src.getTitle());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasKeyword()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getKeyword()) tgt.addCode(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getKeyword()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasFhirVersion()) {
tgt.setFhirVersion(src.getFhirVersion()); tgt.setFhirVersion(src.getFhirVersion());
}
if (src.hasMapping()) {
for (org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent t : src.getMapping()) tgt.addMapping(convertStructureDefinitionMappingComponent(t)); for (org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent t : src.getMapping()) tgt.addMapping(convertStructureDefinitionMappingComponent(t));
}
if (src.hasKind()) {
tgt.setKind(convertStructureDefinitionKind(src.getKind())); tgt.setKind(convertStructureDefinitionKind(src.getKind()));
}
if (src.hasAbstract()) {
tgt.setAbstract(src.getAbstract()); tgt.setAbstract(src.getAbstract());
}
if (src.hasContextType()) {
tgt.setContextType(convertExtensionContext(src.getContextType())); tgt.setContextType(convertExtensionContext(src.getContextType()));
}
if (src.hasContext()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
}
if (src.hasType()) {
tgt.setConstrainedType(src.getType()); tgt.setConstrainedType(src.getType());
}
if (src.hasBaseDefinition()) {
tgt.setBase(src.getBaseDefinition()); tgt.setBase(src.getBaseDefinition());
}
if (src.hasSnapshot()) {
tgt.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot())); tgt.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot()));
}
if (src.hasDifferential()) {
tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential())); tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential()));
}
if (tgt.hasBase()) { if (tgt.hasBase()) {
if (tgt.hasDifferential()) if (tgt.hasDifferential())
tgt.getDifferential().getElement().get(0).addType().setCode(tail(tgt.getBase())); tgt.getDifferential().getElement().get(0).addType().setCode(tail(tgt.getBase()));
@ -89,32 +134,68 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.StructureDefinition tgt = new org.hl7.fhir.dstu3.model.StructureDefinition(); org.hl7.fhir.dstu3.model.StructureDefinition tgt = new org.hl7.fhir.dstu3.model.StructureDefinition();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDisplay()) {
tgt.setTitle(src.getDisplay()); tgt.setTitle(src.getDisplay());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t)); for (org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasCode()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getCode()) tgt.addKeyword(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getCode()) tgt.addKeyword(VersionConvertor_10_30.convertCoding(t));
}
if (src.hasFhirVersion()) {
tgt.setFhirVersion(src.getFhirVersion()); tgt.setFhirVersion(src.getFhirVersion());
}
if (src.hasMapping()) {
for (org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent t : src.getMapping()) tgt.addMapping(convertStructureDefinitionMappingComponent(t)); for (org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent t : src.getMapping()) tgt.addMapping(convertStructureDefinitionMappingComponent(t));
}
if (src.hasKind()) {
tgt.setKind(convertStructureDefinitionKind(src.getKind(), tgt.getId())); tgt.setKind(convertStructureDefinitionKind(src.getKind(), tgt.getId()));
}
if (src.hasAbstract()) {
tgt.setAbstract(src.getAbstract()); tgt.setAbstract(src.getAbstract());
}
if (src.hasContextType()) {
tgt.setContextType(convertExtensionContext(src.getContextType())); tgt.setContextType(convertExtensionContext(src.getContextType()));
}
if (src.hasContext()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getContext()) tgt.addContext(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
}
if (src.hasConstrainedType()) if (src.hasConstrainedType())
tgt.setType(src.getConstrainedType()); tgt.setType(src.getConstrainedType());
else if (src.getSnapshot().hasElement()) else if (src.getSnapshot().hasElement())
@ -123,10 +204,16 @@ public class StructureDefinition10_30 {
tgt.setType(src.getDifferential().getElement().get(0).getPath()); tgt.setType(src.getDifferential().getElement().get(0).getPath());
else else
tgt.setType(src.getDifferential().getElement().get(0).getPath().substring(0, src.getDifferential().getElement().get(0).getPath().indexOf("."))); tgt.setType(src.getDifferential().getElement().get(0).getPath().substring(0, src.getDifferential().getElement().get(0).getPath().indexOf(".")));
if (src.hasBase()) {
tgt.setBaseDefinition(src.getBase()); tgt.setBaseDefinition(src.getBase());
}
tgt.setDerivation(src.hasConstrainedType() ? org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule.CONSTRAINT : org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule.SPECIALIZATION); tgt.setDerivation(src.hasConstrainedType() ? org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule.CONSTRAINT : org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule.SPECIALIZATION);
if (src.hasSnapshot()) {
tgt.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot())); tgt.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot()));
}
if (src.hasDifferential()) {
tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential())); tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential()));
}
if (tgt.hasSnapshot()) if (tgt.hasSnapshot())
tgt.getSnapshot().getElementFirstRep().getType().clear(); tgt.getSnapshot().getElementFirstRep().getType().clear();
if (tgt.hasDifferential()) if (tgt.hasDifferential())
@ -144,8 +231,12 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent(); org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -154,8 +245,12 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -164,7 +259,9 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent(); org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasElement()) {
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t)); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
}
return tgt; return tgt;
} }
@ -222,10 +319,18 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent(); org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity()); tgt.setIdentity(src.getIdentity());
}
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasComment()) {
tgt.setComments(src.getComment()); tgt.setComments(src.getComment());
}
return tgt; return tgt;
} }
@ -234,10 +339,18 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent(); org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity()); tgt.setIdentity(src.getIdentity());
}
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasComments()) {
tgt.setComment(src.getComments()); tgt.setComment(src.getComments());
}
return tgt; return tgt;
} }
@ -246,7 +359,9 @@ public class StructureDefinition10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent(); org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasElement()) {
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t)); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
}
return tgt; return tgt;
} }

View File

@ -10,14 +10,30 @@ public class Subscription10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Subscription tgt = new org.hl7.fhir.dstu3.model.Subscription(); org.hl7.fhir.dstu3.model.Subscription tgt = new org.hl7.fhir.dstu3.model.Subscription();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasCriteria()) {
tgt.setCriteria(src.getCriteria()); tgt.setCriteria(src.getCriteria());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasReason()) {
tgt.setReason(src.getReason()); tgt.setReason(src.getReason());
}
if (src.hasStatus()) {
tgt.setStatus(convertSubscriptionStatus(src.getStatus())); tgt.setStatus(convertSubscriptionStatus(src.getStatus()));
}
if (src.hasError()) {
tgt.setError(src.getError()); tgt.setError(src.getError());
}
if (src.hasChannel()) {
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel())); tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasTag()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t));
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class Subscription10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Subscription tgt = new org.hl7.fhir.dstu2.model.Subscription(); org.hl7.fhir.dstu2.model.Subscription tgt = new org.hl7.fhir.dstu2.model.Subscription();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasCriteria()) {
tgt.setCriteria(src.getCriteria()); tgt.setCriteria(src.getCriteria());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
}
if (src.hasReason()) {
tgt.setReason(src.getReason()); tgt.setReason(src.getReason());
}
if (src.hasStatus()) {
tgt.setStatus(convertSubscriptionStatus(src.getStatus())); tgt.setStatus(convertSubscriptionStatus(src.getStatus()));
}
if (src.hasError()) {
tgt.setError(src.getError()); tgt.setError(src.getError());
}
if (src.hasChannel()) {
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel())); tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasTag()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t)); for (org.hl7.fhir.dstu3.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t));
}
return tgt; return tgt;
} }
@ -42,9 +74,15 @@ public class Subscription10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent(); org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertSubscriptionChannelType(src.getType())); tgt.setType(convertSubscriptionChannelType(src.getType()));
}
if (src.hasEndpoint()) {
tgt.setEndpoint(src.getEndpoint()); tgt.setEndpoint(src.getEndpoint());
}
if (src.hasPayload()) {
tgt.setPayload(src.getPayload()); tgt.setPayload(src.getPayload());
}
if (src.hasHeader()) if (src.hasHeader())
tgt.setHeaderElement(VersionConvertor_10_30.convertString(src.getHeader().get(0))); tgt.setHeaderElement(VersionConvertor_10_30.convertString(src.getHeader().get(0)));
return tgt; return tgt;
@ -55,10 +93,18 @@ public class Subscription10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent(); org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertSubscriptionChannelType(src.getType())); tgt.setType(convertSubscriptionChannelType(src.getType()));
}
if (src.hasEndpoint()) {
tgt.setEndpoint(src.getEndpoint()); tgt.setEndpoint(src.getEndpoint());
}
if (src.hasPayload()) {
tgt.setPayload(src.getPayload()); tgt.setPayload(src.getPayload());
}
if (src.hasHeader()) {
tgt.addHeader(src.getHeader()); tgt.addHeader(src.getHeader());
}
return tgt; return tgt;
} }

View File

@ -10,12 +10,24 @@ public class Substance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Substance tgt = new org.hl7.fhir.dstu2.model.Substance(); org.hl7.fhir.dstu2.model.Substance tgt = new org.hl7.fhir.dstu2.model.Substance();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasInstance()) {
for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
}
if (src.hasIngredient()) {
for (org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); for (org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
}
return tgt; return tgt;
} }
@ -24,12 +36,24 @@ public class Substance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Substance tgt = new org.hl7.fhir.dstu3.model.Substance(); org.hl7.fhir.dstu3.model.Substance tgt = new org.hl7.fhir.dstu3.model.Substance();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
}
if (src.hasCategory()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasInstance()) {
for (org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); for (org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
}
if (src.hasIngredient()) {
for (org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); for (org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
}
return tgt; return tgt;
} }
@ -38,8 +62,12 @@ public class Substance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent(); org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity()));
}
if (src.hasSubstance()) {
tgt.setSubstance(VersionConvertor_10_30.convertReference(src.getSubstance())); tgt.setSubstance(VersionConvertor_10_30.convertReference(src.getSubstance()));
}
return tgt; return tgt;
} }
@ -48,7 +76,9 @@ public class Substance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent(); org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity()));
}
return tgt; return tgt;
} }
@ -57,9 +87,15 @@ public class Substance10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent(); org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasExpiry()) {
tgt.setExpiry(src.getExpiry()); tgt.setExpiry(src.getExpiry());
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
return tgt; return tgt;
} }
@ -68,9 +104,15 @@ public class Substance10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent(); org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasExpiry()) {
tgt.setExpiry(src.getExpiry()); tgt.setExpiry(src.getExpiry());
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,13 +10,27 @@ public class SupplyDelivery10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.SupplyDelivery tgt = new org.hl7.fhir.dstu3.model.SupplyDelivery(); org.hl7.fhir.dstu3.model.SupplyDelivery tgt = new org.hl7.fhir.dstu3.model.SupplyDelivery();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasStatus()) {
tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus())); tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus()));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasSupplier()) {
tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier())); tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier()));
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
}
if (src.hasReceiver()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }
@ -25,13 +39,27 @@ public class SupplyDelivery10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.SupplyDelivery tgt = new org.hl7.fhir.dstu2.model.SupplyDelivery(); org.hl7.fhir.dstu2.model.SupplyDelivery tgt = new org.hl7.fhir.dstu2.model.SupplyDelivery();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasStatus()) {
tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus())); tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus()));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasSupplier()) {
tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier())); tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier()));
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
}
if (src.hasReceiver()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
}
return tgt; return tgt;
} }

View File

@ -186,24 +186,60 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent(); org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLabel()) {
tgt.setLabel(src.getLabel()); tgt.setLabel(src.getLabel());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDirection()) {
tgt.setDirection(convertAssertionDirectionType(src.getDirection())); tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
}
if (src.hasCompareToSourceId()) {
tgt.setCompareToSourceId(src.getCompareToSourceId()); tgt.setCompareToSourceId(src.getCompareToSourceId());
}
if (src.hasCompareToSourcePath()) {
tgt.setCompareToSourcePath(src.getCompareToSourcePath()); tgt.setCompareToSourcePath(src.getCompareToSourcePath());
}
if (src.hasContentType()) {
tgt.setContentType(convertContentType(src.getContentType())); tgt.setContentType(convertContentType(src.getContentType()));
}
if (src.hasHeaderField()) {
tgt.setHeaderField(src.getHeaderField()); tgt.setHeaderField(src.getHeaderField());
}
if (src.hasMinimumId()) {
tgt.setMinimumId(src.getMinimumId()); tgt.setMinimumId(src.getMinimumId());
}
if (src.hasNavigationLinks()) {
tgt.setNavigationLinks(src.getNavigationLinks()); tgt.setNavigationLinks(src.getNavigationLinks());
}
if (src.hasOperator()) {
tgt.setOperator(convertAssertionOperatorType(src.getOperator())); tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
}
if (src.hasPath()) {
tgt.setPath(src.getPath()); tgt.setPath(src.getPath());
}
if (src.hasResource()) {
tgt.setResource(src.getResource()); tgt.setResource(src.getResource());
}
if (src.hasResponse()) {
tgt.setResponse(convertAssertionResponseTypes(src.getResponse())); tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
}
if (src.hasResponseCode()) {
tgt.setResponseCode(src.getResponseCode()); tgt.setResponseCode(src.getResponseCode());
}
if (src.hasSourceId()) {
tgt.setSourceId(src.getSourceId()); tgt.setSourceId(src.getSourceId());
}
if (src.hasValidateProfileId()) {
tgt.setValidateProfileId(src.getValidateProfileId()); tgt.setValidateProfileId(src.getValidateProfileId());
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
if (src.hasWarningOnly()) {
tgt.setWarningOnly(src.getWarningOnly()); tgt.setWarningOnly(src.getWarningOnly());
}
return tgt; return tgt;
} }
@ -212,24 +248,60 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLabel()) {
tgt.setLabel(src.getLabel()); tgt.setLabel(src.getLabel());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDirection()) {
tgt.setDirection(convertAssertionDirectionType(src.getDirection())); tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
}
if (src.hasCompareToSourceId()) {
tgt.setCompareToSourceId(src.getCompareToSourceId()); tgt.setCompareToSourceId(src.getCompareToSourceId());
}
if (src.hasCompareToSourcePath()) {
tgt.setCompareToSourcePath(src.getCompareToSourcePath()); tgt.setCompareToSourcePath(src.getCompareToSourcePath());
}
if (src.hasContentType()) {
tgt.setContentType(convertContentType(src.getContentType())); tgt.setContentType(convertContentType(src.getContentType()));
}
if (src.hasHeaderField()) {
tgt.setHeaderField(src.getHeaderField()); tgt.setHeaderField(src.getHeaderField());
}
if (src.hasMinimumId()) {
tgt.setMinimumId(src.getMinimumId()); tgt.setMinimumId(src.getMinimumId());
}
if (src.hasNavigationLinks()) {
tgt.setNavigationLinks(src.getNavigationLinks()); tgt.setNavigationLinks(src.getNavigationLinks());
}
if (src.hasOperator()) {
tgt.setOperator(convertAssertionOperatorType(src.getOperator())); tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
}
if (src.hasPath()) {
tgt.setPath(src.getPath()); tgt.setPath(src.getPath());
}
if (src.hasResource()) {
tgt.setResource(src.getResource()); tgt.setResource(src.getResource());
}
if (src.hasResponse()) {
tgt.setResponse(convertAssertionResponseTypes(src.getResponse())); tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
}
if (src.hasResponseCode()) {
tgt.setResponseCode(src.getResponseCode()); tgt.setResponseCode(src.getResponseCode());
}
if (src.hasSourceId()) {
tgt.setSourceId(src.getSourceId()); tgt.setSourceId(src.getSourceId());
}
if (src.hasValidateProfileId()) {
tgt.setValidateProfileId(src.getValidateProfileId()); tgt.setValidateProfileId(src.getValidateProfileId());
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
if (src.hasWarningOnly()) {
tgt.setWarningOnly(src.getWarningOnly()); tgt.setWarningOnly(src.getWarningOnly());
}
return tgt; return tgt;
} }
@ -238,8 +310,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent(); org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOperation()) {
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
}
if (src.hasAssert()) {
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
}
return tgt; return tgt;
} }
@ -248,8 +324,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOperation()) {
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
}
if (src.hasAssert()) {
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
}
return tgt; return tgt;
} }
@ -258,20 +338,48 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
}
if (src.hasResource()) {
tgt.setResource(src.getResource()); tgt.setResource(src.getResource());
}
if (src.hasLabel()) {
tgt.setLabel(src.getLabel()); tgt.setLabel(src.getLabel());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAccept()) {
tgt.setAccept(convertContentType(src.getAccept())); tgt.setAccept(convertContentType(src.getAccept()));
}
if (src.hasContentType()) {
tgt.setContentType(convertContentType(src.getContentType())); tgt.setContentType(convertContentType(src.getContentType()));
}
if (src.hasDestination()) {
tgt.setDestination(src.getDestination()); tgt.setDestination(src.getDestination());
}
if (src.hasEncodeRequestUrl()) {
tgt.setEncodeRequestUrl(src.getEncodeRequestUrl()); tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
}
if (src.hasParams()) {
tgt.setParams(src.getParams()); tgt.setParams(src.getParams());
}
if (src.hasRequestHeader()) {
for (org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
}
if (src.hasResponseId()) {
tgt.setResponseId(src.getResponseId()); tgt.setResponseId(src.getResponseId());
}
if (src.hasSourceId()) {
tgt.setSourceId(src.getSourceId()); tgt.setSourceId(src.getSourceId());
}
if (src.hasTargetId()) {
tgt.setTargetId(src.getTargetId()); tgt.setTargetId(src.getTargetId());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -280,20 +388,48 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent(); org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
}
if (src.hasResource()) {
tgt.setResource(src.getResource()); tgt.setResource(src.getResource());
}
if (src.hasLabel()) {
tgt.setLabel(src.getLabel()); tgt.setLabel(src.getLabel());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAccept()) {
tgt.setAccept(convertContentType(src.getAccept())); tgt.setAccept(convertContentType(src.getAccept()));
}
if (src.hasContentType()) {
tgt.setContentType(convertContentType(src.getContentType())); tgt.setContentType(convertContentType(src.getContentType()));
}
if (src.hasDestination()) {
tgt.setDestination(src.getDestination()); tgt.setDestination(src.getDestination());
}
if (src.hasEncodeRequestUrl()) {
tgt.setEncodeRequestUrl(src.getEncodeRequestUrl()); tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
}
if (src.hasParams()) {
tgt.setParams(src.getParams()); tgt.setParams(src.getParams());
}
if (src.hasRequestHeader()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
}
if (src.hasResponseId()) {
tgt.setResponseId(src.getResponseId()); tgt.setResponseId(src.getResponseId());
}
if (src.hasSourceId()) {
tgt.setSourceId(src.getSourceId()); tgt.setSourceId(src.getSourceId());
}
if (src.hasTargetId()) {
tgt.setTargetId(src.getTargetId()); tgt.setTargetId(src.getTargetId());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -302,8 +438,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent(); org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasField()) {
tgt.setField(src.getField()); tgt.setField(src.getField());
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -312,8 +452,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasField()) {
tgt.setField(src.getField()); tgt.setField(src.getField());
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -322,7 +466,9 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOperation()) {
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
}
return tgt; return tgt;
} }
@ -331,7 +477,9 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent(); org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOperation()) {
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
}
return tgt; return tgt;
} }
@ -340,8 +488,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent(); org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOperation()) {
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
}
if (src.hasAssert()) {
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
}
return tgt; return tgt;
} }
@ -350,8 +502,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasOperation()) {
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
}
if (src.hasAssert()) {
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
}
return tgt; return tgt;
} }
@ -360,30 +516,66 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript tgt = new org.hl7.fhir.dstu2.model.TestScript(); org.hl7.fhir.dstu2.model.TestScript tgt = new org.hl7.fhir.dstu2.model.TestScript();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t)); for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasMetadata()) {
tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata())); tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata()));
}
if (src.hasFixture()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t));
}
if (src.hasProfile()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
}
if (src.hasVariable()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t));
}
if (src.hasSetup()) {
tgt.setSetup(convertTestScriptSetupComponent(src.getSetup())); tgt.setSetup(convertTestScriptSetupComponent(src.getSetup()));
}
if (src.hasTest()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t));
}
if (src.hasTeardown()) {
tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown())); tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown()));
}
return tgt; return tgt;
} }
@ -392,31 +584,65 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript tgt = new org.hl7.fhir.dstu3.model.TestScript(); org.hl7.fhir.dstu3.model.TestScript tgt = new org.hl7.fhir.dstu3.model.TestScript();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasMetadata()) {
tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata())); tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata()));
}
if (src.hasFixture()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t));
}
if (src.hasProfile()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
}
if (src.hasVariable()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t));
}
if (src.hasSetup()) {
tgt.setSetup(convertTestScriptSetupComponent(src.getSetup())); tgt.setSetup(convertTestScriptSetupComponent(src.getSetup()));
}
if (src.hasTest()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t));
}
if (src.hasTeardown()) {
tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown())); tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown()));
}
return tgt; return tgt;
} }
@ -425,8 +651,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -435,8 +665,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -445,9 +679,15 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAutocreate()) {
tgt.setAutocreate(src.getAutocreate()); tgt.setAutocreate(src.getAutocreate());
}
if (src.hasAutodelete()) {
tgt.setAutodelete(src.getAutodelete()); tgt.setAutodelete(src.getAutodelete());
}
if (src.hasResource()) {
tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource())); tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource()));
}
return tgt; return tgt;
} }
@ -456,9 +696,15 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAutocreate()) {
tgt.setAutocreate(src.getAutocreate()); tgt.setAutocreate(src.getAutocreate());
}
if (src.hasAutodelete()) {
tgt.setAutodelete(src.getAutodelete()); tgt.setAutodelete(src.getAutodelete());
}
if (src.hasResource()) {
tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource())); tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource()));
}
return tgt; return tgt;
} }
@ -467,12 +713,24 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRequired()) {
tgt.setRequired(src.getRequired()); tgt.setRequired(src.getRequired());
}
if (src.hasValidated()) {
tgt.setValidated(src.getValidated()); tgt.setValidated(src.getValidated());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDestination()) {
tgt.setDestination(src.getDestination()); tgt.setDestination(src.getDestination());
}
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); for (org.hl7.fhir.dstu3.model.UriType t : src.getLink()) tgt.addLink(t.getValue());
}
if (src.hasCapabilities()) {
tgt.setConformance(VersionConvertor_10_30.convertReference(src.getCapabilities())); tgt.setConformance(VersionConvertor_10_30.convertReference(src.getCapabilities()));
}
return tgt; return tgt;
} }
@ -481,12 +739,24 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasRequired()) {
tgt.setRequired(src.getRequired()); tgt.setRequired(src.getRequired());
}
if (src.hasValidated()) {
tgt.setValidated(src.getValidated()); tgt.setValidated(src.getValidated());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDestination()) {
tgt.setDestination(src.getDestination()); tgt.setDestination(src.getDestination());
}
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getLink()) tgt.addLink(t.getValue());
}
if (src.hasConformance()) {
tgt.setCapabilities(VersionConvertor_10_30.convertReference(src.getConformance())); tgt.setCapabilities(VersionConvertor_10_30.convertReference(src.getConformance()));
}
return tgt; return tgt;
} }
@ -495,8 +765,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t));
}
if (src.hasCapability()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t));
}
return tgt; return tgt;
} }
@ -505,8 +779,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t));
}
if (src.hasCapability()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t));
}
return tgt; return tgt;
} }
@ -515,8 +793,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -525,8 +807,12 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -535,7 +821,9 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t));
}
return tgt; return tgt;
} }
@ -544,7 +832,9 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t));
}
return tgt; return tgt;
} }
@ -553,7 +843,9 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t));
}
return tgt; return tgt;
} }
@ -562,7 +854,9 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t));
}
return tgt; return tgt;
} }
@ -571,9 +865,15 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAction()) {
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t));
}
return tgt; return tgt;
} }
@ -582,9 +882,15 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t));
}
return tgt; return tgt;
} }
@ -593,10 +899,18 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent(); org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasHeaderField()) {
tgt.setHeaderField(src.getHeaderField()); tgt.setHeaderField(src.getHeaderField());
}
if (src.hasPath()) {
tgt.setPath(src.getPath()); tgt.setPath(src.getPath());
}
if (src.hasSourceId()) {
tgt.setSourceId(src.getSourceId()); tgt.setSourceId(src.getSourceId());
}
return tgt; return tgt;
} }
@ -605,10 +919,18 @@ public class TestScript10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent(); org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasHeaderField()) {
tgt.setHeaderField(src.getHeaderField()); tgt.setHeaderField(src.getHeaderField());
}
if (src.hasPath()) {
tgt.setPath(src.getPath()); tgt.setPath(src.getPath());
}
if (src.hasSourceId()) {
tgt.setSourceId(src.getSourceId()); tgt.setSourceId(src.getSourceId());
}
return tgt; return tgt;
} }
} }

View File

@ -7,7 +7,6 @@ import org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemContentMode;
import org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent; import org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent;
import org.hl7.fhir.dstu3.terminologies.CodeSystemUtilities; import org.hl7.fhir.dstu3.terminologies.CodeSystemUtilities;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import java.util.List; import java.util.List;
public class ValueSet10_30 { public class ValueSet10_30 {
@ -17,9 +16,15 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent(); org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasDisplay()) {
tgt.setDisplay(src.getDisplay()); tgt.setDisplay(src.getDisplay());
}
if (src.hasDesignation()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t)); for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
return tgt; return tgt;
} }
@ -28,9 +33,15 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent(); org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasDisplay()) {
tgt.setDisplay(src.getDisplay()); tgt.setDisplay(src.getDisplay());
}
if (src.hasDesignation()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
return tgt; return tgt;
} }
@ -39,9 +50,15 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent(); org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLanguage()) {
tgt.setLanguage(src.getLanguage()); tgt.setLanguage(src.getLanguage());
}
if (src.hasUse()) {
tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse())); tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -50,9 +67,15 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent(); org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasLanguage()) {
tgt.setLanguage(src.getLanguage()); tgt.setLanguage(src.getLanguage());
}
if (src.hasUse()) {
tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse())); tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -61,10 +84,18 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent(); org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSystem()) {
tgt.setSystem(src.getSystem()); tgt.setSystem(src.getSystem());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasConcept()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t)); for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
}
if (src.hasFilter()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent t : src.getFilter()) tgt.addFilter(convertConceptSetFilterComponent(t)); for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent t : src.getFilter()) tgt.addFilter(convertConceptSetFilterComponent(t));
}
return tgt; return tgt;
} }
@ -73,10 +104,18 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent(); org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSystem()) {
tgt.setSystem(src.getSystem()); tgt.setSystem(src.getSystem());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasConcept()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
}
if (src.hasFilter()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent t : src.getFilter()) tgt.addFilter(convertConceptSetFilterComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent t : src.getFilter()) tgt.addFilter(convertConceptSetFilterComponent(t));
}
return tgt; return tgt;
} }
@ -85,9 +124,15 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent(); org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasProperty()) {
tgt.setProperty(src.getProperty()); tgt.setProperty(src.getProperty());
}
if (src.hasOp()) {
tgt.setOp(convertFilterOperator(src.getOp())); tgt.setOp(convertFilterOperator(src.getOp()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -96,9 +141,15 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent(); org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasProperty()) {
tgt.setProperty(src.getProperty()); tgt.setProperty(src.getProperty());
}
if (src.hasOp()) {
tgt.setOp(convertFilterOperator(src.getOp())); tgt.setOp(convertFilterOperator(src.getOp()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue()); tgt.setValue(src.getValue());
}
return tgt; return tgt;
} }
@ -149,59 +200,113 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet tgt = new org.hl7.fhir.dstu3.model.ValueSet(); org.hl7.fhir.dstu3.model.ValueSet tgt = new org.hl7.fhir.dstu3.model.ValueSet();
VersionConvertor_10_30.copyDomainResource(src, tgt); VersionConvertor_10_30.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgt.addContact(convertValueSetContactComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgt.addContact(convertValueSetContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasImmutable()) {
tgt.setImmutable(src.getImmutable()); tgt.setImmutable(src.getImmutable());
}
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasExtensible()) {
tgt.setExtensible(src.getExtensible()); tgt.setExtensible(src.getExtensible());
}
if (src.hasCompose()) {
if (src.hasCompose()) { if (src.hasCompose()) {
tgt.setCompose(convertValueSetComposeComponent(src.getCompose())); tgt.setCompose(convertValueSetComposeComponent(src.getCompose()));
}
if (src.hasLockedDate()) {
tgt.getCompose().setLockedDate(src.getLockedDate()); tgt.getCompose().setLockedDate(src.getLockedDate());
} }
}
if (src.hasCodeSystem() && advisor != null) { if (src.hasCodeSystem() && advisor != null) {
org.hl7.fhir.dstu3.model.CodeSystem tgtcs = new org.hl7.fhir.dstu3.model.CodeSystem(); org.hl7.fhir.dstu3.model.CodeSystem tgtcs = new org.hl7.fhir.dstu3.model.CodeSystem();
VersionConvertor_10_30.copyDomainResource(src, tgtcs); VersionConvertor_10_30.copyDomainResource(src, tgtcs);
if (src.hasCodeSystem()) {
tgtcs.setUrl(src.getCodeSystem().getSystem()); tgtcs.setUrl(src.getCodeSystem().getSystem());
}
if (src.hasIdentifier()) {
tgtcs.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier())); tgtcs.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
}
if (src.hasCodeSystem()) {
tgtcs.setVersion(src.getCodeSystem().getVersion()); tgtcs.setVersion(src.getCodeSystem().getVersion());
}
if (src.hasName()) {
tgtcs.setName(src.getName() + " Code System"); tgtcs.setName(src.getName() + " Code System");
}
if (src.hasStatus()) {
tgtcs.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus())); tgtcs.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgtcs.setExperimental(src.getExperimental()); tgtcs.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgtcs.setPublisher(src.getPublisher()); tgtcs.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgtcs.addContact(convertValueSetContactComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgtcs.addContact(convertValueSetContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgtcs.setDate(src.getDate()); tgtcs.setDate(src.getDate());
if (src.hasDescription()) {
tgtcs.setDescription(src.getDescription()); tgtcs.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgtcs.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t)); tgtcs.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else else
tgtcs.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t)); tgtcs.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasRequirements()) {
tgtcs.setPurpose(src.getRequirements()); tgtcs.setPurpose(src.getRequirements());
}
if (src.hasCopyright()) {
tgtcs.setCopyright(src.getCopyright()); tgtcs.setCopyright(src.getCopyright());
}
tgtcs.setContent(CodeSystemContentMode.COMPLETE); tgtcs.setContent(CodeSystemContentMode.COMPLETE);
if (src.hasCodeSystem()) {
tgtcs.setCaseSensitive(src.getCodeSystem().getCaseSensitive()); tgtcs.setCaseSensitive(src.getCodeSystem().getCaseSensitive());
}
if (src.hasCodeSystem()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionComponent cs : src.getCodeSystem().getConcept()) processConcept(tgtcs.getConcept(), cs, tgtcs); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionComponent cs : src.getCodeSystem().getConcept()) processConcept(tgtcs.getConcept(), cs, tgtcs);
}
advisor.handleCodeSystem(tgtcs, tgt); advisor.handleCodeSystem(tgtcs, tgt);
tgt.setUserData("r2-cs", tgtcs); tgt.setUserData("r2-cs", tgtcs);
tgt.getCompose().addInclude().setSystem(tgtcs.getUrl()); tgt.getCompose().addInclude().setSystem(tgtcs.getUrl());
} }
if (src.hasExpansion()) {
tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion())); tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion()));
}
return tgt; return tgt;
} }
@ -257,9 +362,15 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent(); org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasImport()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue());
}
if (src.hasInclude()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t));
}
if (src.hasExclude()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t));
}
return tgt; return tgt;
} }
@ -273,7 +384,9 @@ public class ValueSet10_30 {
if (noSystem == null || !t.getSystem().equals(noSystem)) if (noSystem == null || !t.getSystem().equals(noSystem))
tgt.addInclude(convertConceptSetComponent(t)); tgt.addInclude(convertConceptSetComponent(t));
} }
if (src.hasExclude()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t)); for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t));
}
return tgt; return tgt;
} }
@ -282,8 +395,12 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent(); org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -292,8 +409,12 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail(); org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -302,12 +423,24 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent(); org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(src.getIdentifier()); tgt.setIdentifier(src.getIdentifier());
}
if (src.hasTimestamp()) {
tgt.setTimestamp(src.getTimestamp()); tgt.setTimestamp(src.getTimestamp());
}
if (src.hasTotal()) {
tgt.setTotal(src.getTotal()); tgt.setTotal(src.getTotal());
}
if (src.hasOffset()) {
tgt.setOffset(src.getOffset()); tgt.setOffset(src.getOffset());
}
if (src.hasParameter()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
}
if (src.hasContains()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
}
return tgt; return tgt;
} }
@ -316,12 +449,24 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent(); org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(src.getIdentifier()); tgt.setIdentifier(src.getIdentifier());
}
if (src.hasTimestamp()) {
tgt.setTimestamp(src.getTimestamp()); tgt.setTimestamp(src.getTimestamp());
}
if (src.hasTotal()) {
tgt.setTotal(src.getTotal()); tgt.setTotal(src.getTotal());
}
if (src.hasOffset()) {
tgt.setOffset(src.getOffset()); tgt.setOffset(src.getOffset());
}
if (src.hasParameter()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t)); for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
}
if (src.hasContains()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t)); for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
}
return tgt; return tgt;
} }
@ -330,12 +475,24 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent(); org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSystem()) {
tgt.setSystem(src.getSystem()); tgt.setSystem(src.getSystem());
}
if (src.hasAbstract()) {
tgt.setAbstract(src.getAbstract()); tgt.setAbstract(src.getAbstract());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasDisplay()) {
tgt.setDisplay(src.getDisplay()); tgt.setDisplay(src.getDisplay());
}
if (src.hasContains()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t)); for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
}
return tgt; return tgt;
} }
@ -344,12 +501,24 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent(); org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasSystem()) {
tgt.setSystem(src.getSystem()); tgt.setSystem(src.getSystem());
}
if (src.hasAbstract()) {
tgt.setAbstract(src.getAbstract()); tgt.setAbstract(src.getAbstract());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasDisplay()) {
tgt.setDisplay(src.getDisplay()); tgt.setDisplay(src.getDisplay());
}
if (src.hasContains()) {
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t)); for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
}
return tgt; return tgt;
} }
@ -358,8 +527,12 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent(); org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
return tgt; return tgt;
} }
@ -368,8 +541,12 @@ public class ValueSet10_30 {
return null; return null;
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent(); org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent();
VersionConvertor_10_30.copyElement(src, tgt); VersionConvertor_10_30.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
}
return tgt; return tgt;
} }

View File

@ -10,18 +10,38 @@ public class Appointment10_40 {
return null; return null;
org.hl7.fhir.r4.model.Appointment tgt = new org.hl7.fhir.r4.model.Appointment(); org.hl7.fhir.r4.model.Appointment tgt = new org.hl7.fhir.r4.model.Appointment();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertAppointmentStatus(src.getStatus())); tgt.setStatus(convertAppointmentStatus(src.getStatus()));
}
if (src.hasType()) if (src.hasType())
tgt.addServiceType(VersionConvertor_10_40.convertCodeableConcept(src.getType())); tgt.addServiceType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
if (src.hasPriority()) {
tgt.setPriority(src.getPriority()); tgt.setPriority(src.getPriority());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasMinutesDuration()) {
tgt.setMinutesDuration(src.getMinutesDuration()); tgt.setMinutesDuration(src.getMinutesDuration());
}
if (src.hasSlot()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t)); for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
}
return tgt; return tgt;
} }
@ -30,17 +50,39 @@ public class Appointment10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Appointment tgt = new org.hl7.fhir.dstu2.model.Appointment(); org.hl7.fhir.dstu2.model.Appointment tgt = new org.hl7.fhir.dstu2.model.Appointment();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertAppointmentStatus(src.getStatus())); tgt.setStatus(convertAppointmentStatus(src.getStatus()));
}
if (src.hasServiceType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPriority()) {
tgt.setPriority(src.getPriority()); tgt.setPriority(src.getPriority());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasMinutesDuration()) {
tgt.setMinutesDuration(src.getMinutesDuration()); tgt.setMinutesDuration(src.getMinutesDuration());
}
if (src.hasSlot()) {
for (org.hl7.fhir.r4.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasParticipant()) {
for (org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t)); for (org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
}
return tgt; return tgt;
} }
@ -49,10 +91,18 @@ public class Appointment10_40 {
return null; return null;
org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent(); org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
}
if (src.hasRequired()) {
tgt.setRequired(convertParticipantRequired(src.getRequired())); tgt.setRequired(convertParticipantRequired(src.getRequired()));
}
if (src.hasStatus()) {
tgt.setStatus(convertParticipationStatus(src.getStatus())); tgt.setStatus(convertParticipationStatus(src.getStatus()));
}
return tgt; return tgt;
} }
@ -61,10 +111,18 @@ public class Appointment10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent(); org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
}
if (src.hasRequired()) {
tgt.setRequired(convertParticipantRequired(src.getRequired())); tgt.setRequired(convertParticipantRequired(src.getRequired()));
}
if (src.hasStatus()) {
tgt.setStatus(convertParticipationStatus(src.getStatus())); tgt.setStatus(convertParticipationStatus(src.getStatus()));
}
return tgt; return tgt;
} }

View File

@ -10,14 +10,30 @@ public class AppointmentResponse10_40 {
return null; return null;
org.hl7.fhir.r4.model.AppointmentResponse tgt = new org.hl7.fhir.r4.model.AppointmentResponse(); org.hl7.fhir.r4.model.AppointmentResponse tgt = new org.hl7.fhir.r4.model.AppointmentResponse();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasAppointment()) {
tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointment())); tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointment()));
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasParticipantType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
}
if (src.hasParticipantStatus()) {
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus())); tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class AppointmentResponse10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.AppointmentResponse tgt = new org.hl7.fhir.dstu2.model.AppointmentResponse(); org.hl7.fhir.dstu2.model.AppointmentResponse tgt = new org.hl7.fhir.dstu2.model.AppointmentResponse();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasAppointment()) {
tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointment())); tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointment()));
}
if (src.hasStart()) {
tgt.setStart(src.getStart()); tgt.setStart(src.getStart());
}
if (src.hasEnd()) {
tgt.setEnd(src.getEnd()); tgt.setEnd(src.getEnd());
}
if (src.hasParticipantType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasActor()) {
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor())); tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
}
if (src.hasParticipantStatus()) {
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus())); tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
return tgt; return tgt;
} }

View File

@ -10,18 +10,38 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.r4.model.AuditEvent tgt = new org.hl7.fhir.r4.model.AuditEvent(); org.hl7.fhir.r4.model.AuditEvent tgt = new org.hl7.fhir.r4.model.AuditEvent();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasEvent()) {
if (src.hasEvent()) { if (src.hasEvent()) {
tgt.setType(VersionConvertor_10_40.convertCoding(src.getEvent().getType())); tgt.setType(VersionConvertor_10_40.convertCoding(src.getEvent().getType()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getSubtype()) tgt.addSubtype(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getSubtype()) tgt.addSubtype(VersionConvertor_10_40.convertCoding(t));
}
if (src.hasEvent()) {
tgt.setAction(convertAuditEventAction(src.getEvent().getAction())); tgt.setAction(convertAuditEventAction(src.getEvent().getAction()));
}
if (src.hasEvent()) {
tgt.setRecorded(src.getEvent().getDateTime()); tgt.setRecorded(src.getEvent().getDateTime());
}
if (src.hasEvent()) {
tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome())); tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome()));
}
if (src.hasEvent()) {
tgt.setOutcomeDesc(src.getEvent().getOutcomeDesc()); tgt.setOutcomeDesc(src.getEvent().getOutcomeDesc());
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getPurposeOfEvent()) tgt.addPurposeOfEvent().addCoding(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getPurposeOfEvent()) tgt.addPurposeOfEvent().addCoding(VersionConvertor_10_40.convertCoding(t));
} }
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t)); for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t));
}
if (src.hasSource()) {
tgt.setSource(convertAuditEventSourceComponent(src.getSource())); tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
}
if (src.hasObject()) {
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent t : src.getObject()) tgt.addEntity(convertAuditEventEntityComponent(t)); for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent t : src.getObject()) tgt.addEntity(convertAuditEventEntityComponent(t));
}
return tgt; return tgt;
} }
@ -30,16 +50,36 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent tgt = new org.hl7.fhir.dstu2.model.AuditEvent(); org.hl7.fhir.dstu2.model.AuditEvent tgt = new org.hl7.fhir.dstu2.model.AuditEvent();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.getEvent().setType(VersionConvertor_10_40.convertCoding(src.getType())); tgt.getEvent().setType(VersionConvertor_10_40.convertCoding(src.getType()));
}
if (src.hasSubtype()) {
for (org.hl7.fhir.r4.model.Coding t : src.getSubtype()) tgt.getEvent().addSubtype(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.r4.model.Coding t : src.getSubtype()) tgt.getEvent().addSubtype(VersionConvertor_10_40.convertCoding(t));
}
if (src.hasAction()) {
tgt.getEvent().setAction(convertAuditEventAction(src.getAction())); tgt.getEvent().setAction(convertAuditEventAction(src.getAction()));
}
if (src.hasRecorded()) {
tgt.getEvent().setDateTime(src.getRecorded()); tgt.getEvent().setDateTime(src.getRecorded());
}
if (src.hasOutcome()) {
tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome())); tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome()));
}
if (src.hasOutcomeDesc()) {
tgt.getEvent().setOutcomeDesc(src.getOutcomeDesc()); tgt.getEvent().setOutcomeDesc(src.getOutcomeDesc());
}
if (src.hasPurposeOfEvent()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfEvent()) for (org.hl7.fhir.r4.model.Coding cc : t.getCoding()) tgt.getEvent().addPurposeOfEvent(VersionConvertor_10_40.convertCoding(cc)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfEvent()) for (org.hl7.fhir.r4.model.Coding cc : t.getCoding()) tgt.getEvent().addPurposeOfEvent(VersionConvertor_10_40.convertCoding(cc));
}
if (src.hasAgent()) {
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t)); for (org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t));
}
if (src.hasSource()) {
tgt.setSource(convertAuditEventSourceComponent(src.getSource())); tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
}
if (src.hasEntity()) {
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t)); for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t));
}
return tgt; return tgt;
} }
@ -86,18 +126,38 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent(); org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasRole()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasReference()) {
tgt.setWho(VersionConvertor_10_40.convertReference(src.getReference())); tgt.setWho(VersionConvertor_10_40.convertReference(src.getReference()));
}
if (src.hasUserId()) if (src.hasUserId())
tgt.getWho().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getUserId())); tgt.getWho().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getUserId()));
if (src.hasAltId()) {
tgt.setAltId(src.getAltId()); tgt.setAltId(src.getAltId());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRequestor()) {
tgt.setRequestor(src.getRequestor()); tgt.setRequestor(src.getRequestor());
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
}
if (src.hasPolicy()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
}
if (src.hasMedia()) {
tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia())); tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia()));
}
if (src.hasNetwork()) {
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork())); tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
}
if (src.hasPurposeOfUse()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getPurposeOfUse()) tgt.addPurposeOfUse().addCoding(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getPurposeOfUse()) tgt.addPurposeOfUse().addCoding(VersionConvertor_10_40.convertCoding(t));
}
return tgt; return tgt;
} }
@ -106,21 +166,39 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasRole()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasWho()) { if (src.hasWho()) {
if (src.getWho().hasIdentifier()) if (src.getWho().hasIdentifier())
tgt.setUserId(VersionConvertor_10_40.convertIdentifier(src.getWho().getIdentifier())); tgt.setUserId(VersionConvertor_10_40.convertIdentifier(src.getWho().getIdentifier()));
if (src.getWho().hasReference() || src.getWho().hasDisplay() || src.getWho().hasExtension() || src.getWho().hasId()) if (src.getWho().hasReference() || src.getWho().hasDisplay() || src.getWho().hasExtension() || src.getWho().hasId())
tgt.setReference(VersionConvertor_10_40.convertReference(src.getWho())); tgt.setReference(VersionConvertor_10_40.convertReference(src.getWho()));
} }
if (src.hasAltId()) {
tgt.setAltId(src.getAltId()); tgt.setAltId(src.getAltId());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRequestor()) {
tgt.setRequestor(src.getRequestor()); tgt.setRequestor(src.getRequestor());
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
}
if (src.hasPolicy()) {
for (org.hl7.fhir.r4.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); for (org.hl7.fhir.r4.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
}
if (src.hasMedia()) {
tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia())); tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia()));
}
if (src.hasNetwork()) {
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork())); tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
}
if (src.hasPurposeOfUse()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfUse()) for (org.hl7.fhir.r4.model.Coding cc : t.getCoding()) tgt.addPurposeOfUse(VersionConvertor_10_40.convertCoding(cc)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfUse()) for (org.hl7.fhir.r4.model.Coding cc : t.getCoding()) tgt.addPurposeOfUse(VersionConvertor_10_40.convertCoding(cc));
}
return tgt; return tgt;
} }
@ -129,8 +207,12 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
if (src.hasType()) {
tgt.setType(convertAuditEventParticipantNetworkType(src.getType())); tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
}
return tgt; return tgt;
} }
@ -139,8 +221,12 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent(); org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
if (src.hasType()) {
tgt.setType(convertAuditEventParticipantNetworkType(src.getType())); tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
}
return tgt; return tgt;
} }
@ -153,14 +239,30 @@ public class AuditEvent10_40 {
tgt.getWhat().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.getWhat().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
if (src.hasReference()) if (src.hasReference())
tgt.setWhat(VersionConvertor_10_40.convertReference(src.getReference())); tgt.setWhat(VersionConvertor_10_40.convertReference(src.getReference()));
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_40.convertCoding(src.getType()));
}
if (src.hasRole()) {
tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole())); tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole()));
}
if (src.hasLifecycle()) {
tgt.setLifecycle(VersionConvertor_10_40.convertCoding(src.getLifecycle())); tgt.setLifecycle(VersionConvertor_10_40.convertCoding(src.getLifecycle()));
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCoding(t));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasQuery()) {
tgt.setQuery(src.getQuery()); tgt.setQuery(src.getQuery());
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t)); for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
}
return tgt; return tgt;
} }
@ -175,14 +277,30 @@ public class AuditEvent10_40 {
if (src.getWhat().hasReference() || src.getWhat().hasDisplay() || src.getWhat().hasExtension() || src.getWhat().hasId()) if (src.getWhat().hasReference() || src.getWhat().hasDisplay() || src.getWhat().hasExtension() || src.getWhat().hasId())
tgt.setReference(VersionConvertor_10_40.convertReference(src.getWhat())); tgt.setReference(VersionConvertor_10_40.convertReference(src.getWhat()));
} }
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCoding(src.getType())); tgt.setType(VersionConvertor_10_40.convertCoding(src.getType()));
}
if (src.hasRole()) {
tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole())); tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole()));
}
if (src.hasLifecycle()) {
tgt.setLifecycle(VersionConvertor_10_40.convertCoding(src.getLifecycle())); tgt.setLifecycle(VersionConvertor_10_40.convertCoding(src.getLifecycle()));
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.r4.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.r4.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCoding(t));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasQuery()) {
tgt.setQuery(src.getQuery()); tgt.setQuery(src.getQuery());
}
if (src.hasDetail()) {
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t)); for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
}
return tgt; return tgt;
} }
@ -191,7 +309,9 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasValueStringType()) if (src.hasValueStringType())
tgt.setValue(src.getValueStringType().getValue().getBytes()); tgt.setValue(src.getValueStringType().getValue().getBytes());
else if (src.hasValueBase64BinaryType()) else if (src.hasValueBase64BinaryType())
@ -204,7 +324,9 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent(); org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasValue()) if (src.hasValue())
tgt.setValue(new org.hl7.fhir.r4.model.Base64BinaryType(src.getValue())); tgt.setValue(new org.hl7.fhir.r4.model.Base64BinaryType(src.getValue()));
return tgt; return tgt;
@ -287,10 +409,14 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent(); org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasSite()) {
tgt.setSite(src.getSite()); tgt.setSite(src.getSite());
}
if (src.hasIdentifier()) if (src.hasIdentifier())
tgt.getObserver().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.getObserver().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t));
}
return tgt; return tgt;
} }
@ -299,10 +425,14 @@ public class AuditEvent10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent(); org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasSite()) {
tgt.setSite(src.getSite()); tgt.setSite(src.getSite());
}
if (src.hasObserver()) if (src.hasObserver())
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getObserver().getIdentifier())); tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getObserver().getIdentifier()));
if (src.hasType()) {
for (org.hl7.fhir.r4.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.r4.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t));
}
return tgt; return tgt;
} }
} }

View File

@ -10,11 +10,21 @@ public class Basic10_40 {
return null; return null;
org.hl7.fhir.r4.model.Basic tgt = new org.hl7.fhir.r4.model.Basic(); org.hl7.fhir.r4.model.Basic tgt = new org.hl7.fhir.r4.model.Basic();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }
@ -23,11 +33,21 @@ public class Basic10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Basic tgt = new org.hl7.fhir.dstu2.model.Basic(); org.hl7.fhir.dstu2.model.Basic tgt = new org.hl7.fhir.dstu2.model.Basic();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,7 +10,9 @@ public class Binary10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Binary tgt = new org.hl7.fhir.dstu2.model.Binary(); org.hl7.fhir.dstu2.model.Binary tgt = new org.hl7.fhir.dstu2.model.Binary();
VersionConvertor_10_40.copyResource(src, tgt); VersionConvertor_10_40.copyResource(src, tgt);
if (src.hasContentType()) {
tgt.setContentType(src.getContentType()); tgt.setContentType(src.getContentType());
}
tgt.setContent(src.getContent()); tgt.setContent(src.getContent());
return tgt; return tgt;
} }
@ -20,8 +22,12 @@ public class Binary10_40 {
return null; return null;
org.hl7.fhir.r4.model.Binary tgt = new org.hl7.fhir.r4.model.Binary(); org.hl7.fhir.r4.model.Binary tgt = new org.hl7.fhir.r4.model.Binary();
VersionConvertor_10_40.copyResource(src, tgt); VersionConvertor_10_40.copyResource(src, tgt);
if (src.hasContentType()) {
tgt.setContentType(src.getContentType()); tgt.setContentType(src.getContentType());
}
if (src.hasContent()) {
tgt.setContent(src.getContent()); tgt.setContent(src.getContent());
}
return tgt; return tgt;
} }
} }

View File

@ -11,12 +11,20 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.r4.model.Bundle tgt = new org.hl7.fhir.r4.model.Bundle(); org.hl7.fhir.r4.model.Bundle tgt = new org.hl7.fhir.r4.model.Bundle();
VersionConvertor_10_40.copyResource(src, tgt); VersionConvertor_10_40.copyResource(src, tgt);
if (src.hasType()) {
tgt.setType(convertBundleType(src.getType())); tgt.setType(convertBundleType(src.getType()));
}
if (src.hasTotal()) if (src.hasTotal())
tgt.setTotal(src.getTotal()); tgt.setTotal(src.getTotal());
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasEntry()) {
for (org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t)); for (org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t));
}
if (src.hasSignature()) {
tgt.setSignature(VersionConvertor_10_40.convertSignature(src.getSignature())); tgt.setSignature(VersionConvertor_10_40.convertSignature(src.getSignature()));
}
return tgt; return tgt;
} }
@ -25,11 +33,17 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle tgt = new org.hl7.fhir.dstu2.model.Bundle(); org.hl7.fhir.dstu2.model.Bundle tgt = new org.hl7.fhir.dstu2.model.Bundle();
VersionConvertor_10_40.copyResource(src, tgt); VersionConvertor_10_40.copyResource(src, tgt);
if (src.hasType()) {
tgt.setType(convertBundleType(src.getType())); tgt.setType(convertBundleType(src.getType()));
}
if (src.hasTotal()) if (src.hasTotal())
tgt.setTotal(src.getTotal()); tgt.setTotal(src.getTotal());
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasEntry()) {
for (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t, advisor)); for (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t, advisor));
}
if (src.hasSignature()) if (src.hasSignature())
tgt.setSignature(VersionConvertor_10_40.convertSignature(src.getSignature())); tgt.setSignature(VersionConvertor_10_40.convertSignature(src.getSignature()));
return tgt; return tgt;
@ -44,12 +58,24 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent(); org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasLink()) {
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasFullUrl()) {
tgt.setFullUrl(src.getFullUrl()); tgt.setFullUrl(src.getFullUrl());
}
if (src.hasResource()) {
tgt.setResource(VersionConvertor_10_40.convertResource(src.getResource())); tgt.setResource(VersionConvertor_10_40.convertResource(src.getResource()));
}
if (src.hasSearch()) {
tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch())); tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
}
if (src.hasRequest()) {
tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest())); tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
}
if (src.hasResponse()) {
tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse())); tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
}
return tgt; return tgt;
} }
@ -84,12 +110,24 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMethod()) {
tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setMethod(convertHTTPVerb(src.getMethod()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIfNoneMatch()) {
tgt.setIfNoneMatch(src.getIfNoneMatch()); tgt.setIfNoneMatch(src.getIfNoneMatch());
}
if (src.hasIfModifiedSince()) {
tgt.setIfModifiedSince(src.getIfModifiedSince()); tgt.setIfModifiedSince(src.getIfModifiedSince());
}
if (src.hasIfMatch()) {
tgt.setIfMatch(src.getIfMatch()); tgt.setIfMatch(src.getIfMatch());
}
if (src.hasIfNoneExist()) {
tgt.setIfNoneExist(src.getIfNoneExist()); tgt.setIfNoneExist(src.getIfNoneExist());
}
return tgt; return tgt;
} }
@ -98,12 +136,24 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMethod()) {
tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setMethod(convertHTTPVerb(src.getMethod()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIfNoneMatch()) {
tgt.setIfNoneMatch(src.getIfNoneMatch()); tgt.setIfNoneMatch(src.getIfNoneMatch());
}
if (src.hasIfModifiedSince()) {
tgt.setIfModifiedSince(src.getIfModifiedSince()); tgt.setIfModifiedSince(src.getIfModifiedSince());
}
if (src.hasIfMatch()) {
tgt.setIfMatch(src.getIfMatch()); tgt.setIfMatch(src.getIfMatch());
}
if (src.hasIfNoneExist()) {
tgt.setIfNoneExist(src.getIfNoneExist()); tgt.setIfNoneExist(src.getIfNoneExist());
}
return tgt; return tgt;
} }
@ -112,10 +162,18 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(src.getStatus()); tgt.setStatus(src.getStatus());
}
if (src.hasLocation()) {
tgt.setLocation(src.getLocation()); tgt.setLocation(src.getLocation());
}
if (src.hasEtag()) {
tgt.setEtag(src.getEtag()); tgt.setEtag(src.getEtag());
}
if (src.hasLastModified()) {
tgt.setLastModified(src.getLastModified()); tgt.setLastModified(src.getLastModified());
}
return tgt; return tgt;
} }
@ -124,10 +182,18 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(src.getStatus()); tgt.setStatus(src.getStatus());
}
if (src.hasLocation()) {
tgt.setLocation(src.getLocation()); tgt.setLocation(src.getLocation());
}
if (src.hasEtag()) {
tgt.setEtag(src.getEtag()); tgt.setEtag(src.getEtag());
}
if (src.hasLastModified()) {
tgt.setLastModified(src.getLastModified()); tgt.setLastModified(src.getLastModified());
}
return tgt; return tgt;
} }
@ -136,8 +202,12 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertSearchEntryMode(src.getMode())); tgt.setMode(convertSearchEntryMode(src.getMode()));
}
if (src.hasScore()) {
tgt.setScore(src.getScore()); tgt.setScore(src.getScore());
}
return tgt; return tgt;
} }
@ -146,8 +216,12 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent(); org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertSearchEntryMode(src.getMode())); tgt.setMode(convertSearchEntryMode(src.getMode()));
}
if (src.hasScore()) {
tgt.setScore(src.getScore()); tgt.setScore(src.getScore());
}
return tgt; return tgt;
} }
@ -156,8 +230,12 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent(); org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasRelation()) {
tgt.setRelation(src.getRelation()); tgt.setRelation(src.getRelation());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -166,8 +244,12 @@ public class Bundle10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent(); org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasRelation()) {
tgt.setRelation(src.getRelation()); tgt.setRelation(src.getRelation());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }

View File

@ -10,20 +10,40 @@ public class CarePlan10_40 {
return null; return null;
org.hl7.fhir.r4.model.CarePlan tgt = new org.hl7.fhir.r4.model.CarePlan(); org.hl7.fhir.r4.model.CarePlan tgt = new org.hl7.fhir.r4.model.CarePlan();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanStatus(src.getStatus())); tgt.setStatus(convertCarePlanStatus(src.getStatus()));
}
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getContext())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getContext()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) if (!tgt.hasAuthor()) for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) if (!tgt.hasAuthor())
tgt.setAuthor(VersionConvertor_10_40.convertReference(t)); tgt.setAuthor(VersionConvertor_10_40.convertReference(t));
else else
tgt.addContributor(VersionConvertor_10_40.convertReference(t)); tgt.addContributor(VersionConvertor_10_40.convertReference(t));
if (src.hasCategory()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAddresses()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_40.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
}
if (src.hasActivity()) {
for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t)); for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
}
return tgt; return tgt;
} }
@ -32,19 +52,41 @@ public class CarePlan10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.CarePlan tgt = new org.hl7.fhir.dstu2.model.CarePlan(); org.hl7.fhir.dstu2.model.CarePlan tgt = new org.hl7.fhir.dstu2.model.CarePlan();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanStatus(src.getStatus())); tgt.setStatus(convertCarePlanStatus(src.getStatus()));
}
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setContext(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasAuthor()) if (src.hasAuthor())
tgt.addAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.addAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
if (src.hasContributor()) {
for (org.hl7.fhir.r4.model.Reference t : src.getContributor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getContributor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t));
}
if (src.hasCategory()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasAddresses()) {
for (org.hl7.fhir.r4.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_10_40.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.r4.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
}
if (src.hasActivity()) {
for (org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t)); for (org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
}
return tgt; return tgt;
} }
@ -53,9 +95,15 @@ public class CarePlan10_40 {
return null; return null;
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent(); org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasProgress()) {
for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_40.convertAnnotation(t)); for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_40.convertAnnotation(t));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_40.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_40.convertReference(src.getReference()));
}
if (src.hasDetail()) {
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
return tgt; return tgt;
} }
@ -64,9 +112,15 @@ public class CarePlan10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent(); org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasProgress()) {
for (org.hl7.fhir.r4.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_40.convertAnnotation(t)); for (org.hl7.fhir.r4.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_40.convertAnnotation(t));
}
if (src.hasReference()) {
tgt.setReference(VersionConvertor_10_40.convertReference(src.getReference())); tgt.setReference(VersionConvertor_10_40.convertReference(src.getReference()));
}
if (src.hasDetail()) {
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
return tgt; return tgt;
} }
@ -75,19 +129,45 @@ public class CarePlan10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent(); org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasReasonReference()) {
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_40.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.r4.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus())); tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
}
if (src.hasDoNotPerform()) {
tgt.setProhibited(src.getDoNotPerform()); tgt.setProhibited(src.getDoNotPerform());
}
if (src.hasScheduled()) {
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled())); tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
}
if (src.hasPerformer()) {
for (org.hl7.fhir.r4.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_40.convertReference(t));
}
if (src.hasProduct()) {
tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct())); tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct()));
}
if (src.hasDailyAmount()) {
tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount())); tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount()));
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -96,19 +176,45 @@ public class CarePlan10_40 {
return null; return null;
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent(); org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasReasonReference()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getReasonReference()) tgt.addReasonReference(VersionConvertor_10_40.convertReference(t));
}
if (src.hasGoal()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus())); tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
}
if (src.hasProhibited()) {
tgt.setDoNotPerform(src.getProhibited()); tgt.setDoNotPerform(src.getProhibited());
}
if (src.hasScheduled()) {
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled())); tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled()));
}
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
}
if (src.hasPerformer()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_40.convertReference(t));
}
if (src.hasProduct()) {
tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct())); tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct()));
}
if (src.hasDailyAmount()) {
tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount())); tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount()));
}
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity())); tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }

View File

@ -10,18 +10,42 @@ public class Communication10_40 {
return null; return null;
org.hl7.fhir.r4.model.Communication tgt = new org.hl7.fhir.r4.model.Communication(); org.hl7.fhir.r4.model.Communication tgt = new org.hl7.fhir.r4.model.Communication();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t)); for (org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationStatus(src.getStatus())); tgt.setStatus(convertCommunicationStatus(src.getStatus()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasSent()) {
tgt.setSent(src.getSent()); tgt.setSent(src.getSent());
}
if (src.hasReceived()) {
tgt.setReceived(src.getReceived()); tgt.setReceived(src.getReceived());
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
return tgt; return tgt;
} }
@ -30,18 +54,42 @@ public class Communication10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Communication tgt = new org.hl7.fhir.dstu2.model.Communication(); org.hl7.fhir.dstu2.model.Communication tgt = new org.hl7.fhir.dstu2.model.Communication();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.r4.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t)); for (org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationStatus(src.getStatus())); tgt.setStatus(convertCommunicationStatus(src.getStatus()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasSent()) {
tgt.setSent(src.getSent()); tgt.setSent(src.getSent());
}
if (src.hasReceived()) {
tgt.setReceived(src.getReceived()); tgt.setReceived(src.getReceived());
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
return tgt; return tgt;
} }
@ -50,7 +98,9 @@ public class Communication10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent(); org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -59,7 +109,9 @@ public class Communication10_40 {
return null; return null;
org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent(); org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
}
return tgt; return tgt;
} }

View File

@ -10,20 +10,48 @@ public class CommunicationRequest10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.CommunicationRequest tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest(); org.hl7.fhir.dstu2.model.CommunicationRequest tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.r4.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t)); for (org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasRequester()) {
tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester())); tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus())); tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasOccurrence()) {
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getOccurrence())); tgt.setScheduled(VersionConvertor_10_40.convertType(src.getOccurrence()));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasAuthoredOn()) {
tgt.setRequestedOn(src.getAuthoredOn()); tgt.setRequestedOn(src.getAuthoredOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasPriority()) {
tgt.setPriority(convertPriorityCode(src.getPriority())); tgt.setPriority(convertPriorityCode(src.getPriority()));
}
return tgt; return tgt;
} }
@ -32,20 +60,48 @@ public class CommunicationRequest10_40 {
return null; return null;
org.hl7.fhir.r4.model.CommunicationRequest tgt = new org.hl7.fhir.r4.model.CommunicationRequest(); org.hl7.fhir.r4.model.CommunicationRequest tgt = new org.hl7.fhir.r4.model.CommunicationRequest();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
}
if (src.hasSender()) {
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender())); tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
}
if (src.hasRecipient()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
}
if (src.hasPayload()) {
for (org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t)); for (org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
}
if (src.hasMedium()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasRequester()) {
tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester())); tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester()));
}
if (src.hasStatus()) {
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus())); tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasScheduled()) {
tgt.setOccurrence(VersionConvertor_10_40.convertType(src.getScheduled())); tgt.setOccurrence(VersionConvertor_10_40.convertType(src.getScheduled()));
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasRequestedOn()) {
tgt.setAuthoredOn(src.getRequestedOn()); tgt.setAuthoredOn(src.getRequestedOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasPriority()) {
tgt.setPriority(convertPriorityCode(src.getPriority())); tgt.setPriority(convertPriorityCode(src.getPriority()));
}
return tgt; return tgt;
} }
@ -54,7 +110,9 @@ public class CommunicationRequest10_40 {
return null; return null;
org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent(); org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
}
return tgt; return tgt;
} }
@ -63,7 +121,9 @@ public class CommunicationRequest10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent(); org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasContent()) {
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent())); tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
}
return tgt; return tgt;
} }

View File

@ -10,22 +10,46 @@ public class Composition10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Composition tgt = new org.hl7.fhir.dstu2.model.Composition(); org.hl7.fhir.dstu2.model.Composition tgt = new org.hl7.fhir.dstu2.model.Composition();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
}
if (src.hasCategory()) if (src.hasCategory())
tgt.setClass_(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setClass_(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasStatus()) {
tgt.setStatus(convertCompositionStatus(src.getStatus())); tgt.setStatus(convertCompositionStatus(src.getStatus()));
}
if (src.hasConfidentiality()) {
tgt.setConfidentiality(src.getConfidentiality().toCode()); tgt.setConfidentiality(src.getConfidentiality().toCode());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.r4.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t));
}
if (src.hasAttester()) {
for (org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); for (org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.r4.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t)); for (org.hl7.fhir.r4.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasSection()) {
for (org.hl7.fhir.r4.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.r4.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
@ -34,25 +58,51 @@ public class Composition10_40 {
return null; return null;
org.hl7.fhir.r4.model.Composition tgt = new org.hl7.fhir.r4.model.Composition(); org.hl7.fhir.r4.model.Composition tgt = new org.hl7.fhir.r4.model.Composition();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
}
if (src.hasClass_()) {
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_())); tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_()));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasStatus()) {
tgt.setStatus(convertCompositionStatus(src.getStatus())); tgt.setStatus(convertCompositionStatus(src.getStatus()));
}
try { try {
if (src.hasConfidentiality()) {
tgt.setConfidentiality(org.hl7.fhir.r4.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality())); tgt.setConfidentiality(org.hl7.fhir.r4.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality()));
}
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e); throw new FHIRException(e);
} }
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t));
}
if (src.hasAttester()) {
for (org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasSection()) {
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
@ -97,8 +147,12 @@ public class Composition10_40 {
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) if (src.hasMode())
tgt.addMode(convertCompositionAttestationMode(src.getMode())); tgt.addMode(convertCompositionAttestationMode(src.getMode()));
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
if (src.hasParty()) {
tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty())); tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty()));
}
return tgt; return tgt;
} }
@ -109,8 +163,12 @@ public class Composition10_40 {
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) if (src.hasMode())
tgt.setMode(convertCompositionAttestationMode(src.getMode().get(0).getValue())); tgt.setMode(convertCompositionAttestationMode(src.getMode().get(0).getValue()));
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
if (src.hasParty()) {
tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty())); tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty()));
}
return tgt; return tgt;
} }
@ -119,9 +177,15 @@ public class Composition10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent(); org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasDetail()) {
for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
}
return tgt; return tgt;
} }
@ -130,9 +194,15 @@ public class Composition10_40 {
return null; return null;
org.hl7.fhir.r4.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionEventComponent(); org.hl7.fhir.r4.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionEventComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
}
return tgt; return tgt;
} }
@ -175,18 +245,34 @@ public class Composition10_40 {
return null; return null;
org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent(); org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasText()) {
tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText())); tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText()));
}
try { try {
if (src.hasMode()) {
tgt.setMode(org.hl7.fhir.r4.model.Composition.SectionMode.fromCode(src.getMode())); tgt.setMode(org.hl7.fhir.r4.model.Composition.SectionMode.fromCode(src.getMode()));
}
} catch (org.hl7.fhir.exceptions.FHIRException e) { } catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e); throw new FHIRException(e);
} }
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasEntry()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_40.convertReference(t));
}
if (src.hasEmptyReason()) {
tgt.setEmptyReason(VersionConvertor_10_40.convertCodeableConcept(src.getEmptyReason())); tgt.setEmptyReason(VersionConvertor_10_40.convertCodeableConcept(src.getEmptyReason()));
}
if (src.hasSection()) {
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
@ -195,14 +281,30 @@ public class Composition10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent(); org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasText()) {
tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText())); tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText()));
}
if (src.hasMode()) {
tgt.setMode(src.getMode().toCode()); tgt.setMode(src.getMode().toCode());
}
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasEntry()) {
for (org.hl7.fhir.r4.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_40.convertReference(t));
}
if (src.hasEmptyReason()) {
tgt.setEmptyReason(VersionConvertor_10_40.convertCodeableConcept(src.getEmptyReason())); tgt.setEmptyReason(VersionConvertor_10_40.convertCodeableConcept(src.getEmptyReason()));
}
if (src.hasSection()) {
for (org.hl7.fhir.r4.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t)); for (org.hl7.fhir.r4.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
}
return tgt; return tgt;
} }
} }

View File

@ -5,7 +5,6 @@ import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CanonicalType; import org.hl7.fhir.r4.model.CanonicalType;
import org.hl7.fhir.r4.model.ConceptMap; import org.hl7.fhir.r4.model.ConceptMap;
import org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent; import org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -50,26 +49,54 @@ public class ConceptMap10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.ConceptMap tgt = new org.hl7.fhir.dstu2.model.ConceptMap(); org.hl7.fhir.dstu2.model.ConceptMap tgt = new org.hl7.fhir.dstu2.model.ConceptMap();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t)); for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_40.convertType(src.getSource())); tgt.setSource(VersionConvertor_10_40.convertType(src.getSource()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_40.convertType(src.getTarget())); tgt.setTarget(VersionConvertor_10_40.convertType(src.getTarget()));
}
if (src.hasGroup()) {
for (org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup()) for (org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent t : g.getElement()) tgt.addElement(convertSourceElementComponent(t, g)); for (org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup()) for (org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent t : g.getElement()) tgt.addElement(convertSourceElementComponent(t, g));
}
return tgt; return tgt;
} }
@ -78,8 +105,12 @@ public class ConceptMap10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent(); org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -88,8 +119,12 @@ public class ConceptMap10_40 {
return null; return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail(); org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -152,9 +187,15 @@ public class ConceptMap10_40 {
return null; return null;
org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent(); org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasElement()) {
tgt.setProperty(src.getElement()); tgt.setProperty(src.getElement());
}
if (src.hasCodeSystem()) {
tgt.setSystem(src.getCodeSystem()); tgt.setSystem(src.getCodeSystem());
}
if (src.hasCode()) {
tgt.setValue(src.getCode()); tgt.setValue(src.getCode());
}
return tgt; return tgt;
} }
@ -163,9 +204,15 @@ public class ConceptMap10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent(); org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasProperty()) {
tgt.setElement(src.getProperty()); tgt.setElement(src.getProperty());
}
if (src.hasSystem()) {
tgt.setCodeSystem(src.getSystem()); tgt.setCodeSystem(src.getSystem());
}
if (src.hasValue()) {
tgt.setCode(src.getValue()); tgt.setCode(src.getValue());
}
return tgt; return tgt;
} }
@ -176,10 +223,14 @@ public class ConceptMap10_40 {
for (org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent t : src.getTarget()) { 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(); org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
tgt.addTarget(convertTargetElementComponent(t)); tgt.addTarget(convertTargetElementComponent(t));
if (src.hasCodeSystem()) {
res.add(new VersionConvertor_10_40.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem())); res.add(new VersionConvertor_10_40.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem()));
} }
}
return res; return res;
} }
@ -189,8 +240,12 @@ public class ConceptMap10_40 {
org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent(); org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
tgt.setCodeSystem(g.getSource()); tgt.setCodeSystem(g.getSource());
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasTarget()) {
for (org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g)); for (org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g));
}
return tgt; return tgt;
} }
@ -200,11 +255,21 @@ public class ConceptMap10_40 {
org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent(); org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
tgt.setCodeSystem(g.getTarget()); tgt.setCodeSystem(g.getTarget());
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasEquivalence()) {
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
}
if (src.hasComment()) {
tgt.setComments(src.getComment()); tgt.setComments(src.getComment());
}
if (src.hasDependsOn()) {
for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}
if (src.hasProduct()) {
for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
}
return tgt; return tgt;
} }
@ -213,11 +278,21 @@ public class ConceptMap10_40 {
return null; return null;
org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode()); tgt.setCode(src.getCode());
}
if (src.hasEquivalence()) {
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
}
if (src.hasComments()) {
tgt.setComment(src.getComments()); tgt.setComment(src.getComments());
}
if (src.hasDependsOn()) {
for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}
if (src.hasProduct()) {
for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
}
return tgt; return tgt;
} }

View File

@ -10,23 +10,49 @@ public class Condition10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Condition tgt = new org.hl7.fhir.dstu2.model.Condition(); org.hl7.fhir.dstu2.model.Condition tgt = new org.hl7.fhir.dstu2.model.Condition();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasAsserter()) {
tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter())); tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter()));
}
if (src.hasRecordedDate()) if (src.hasRecordedDate())
tgt.setDateRecorded(src.getRecordedDate()); tgt.setDateRecorded(src.getRecordedDate());
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasCategory()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasClinicalStatus()) if (src.hasClinicalStatus())
tgt.setClinicalStatus(convertConditionClinicalStatus(src.getClinicalStatus())); tgt.setClinicalStatus(convertConditionClinicalStatus(src.getClinicalStatus()));
if (src.hasVerificationStatus()) {
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus())); tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
}
if (src.hasSeverity()) {
tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity())); tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
}
if (src.hasAbatement()) {
tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement())); tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
}
if (src.hasStage()) {
tgt.setStage(convertConditionStageComponent(src.getStageFirstRep())); tgt.setStage(convertConditionStageComponent(src.getStageFirstRep()));
}
if (src.hasEvidence()) {
for (org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t)); for (org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
}
if (src.hasBodySite()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_40.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -35,23 +61,49 @@ public class Condition10_40 {
return null; return null;
org.hl7.fhir.r4.model.Condition tgt = new org.hl7.fhir.r4.model.Condition(); org.hl7.fhir.r4.model.Condition tgt = new org.hl7.fhir.r4.model.Condition();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasAsserter()) {
tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter())); tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter()));
}
if (src.hasDateRecorded()) if (src.hasDateRecorded())
tgt.setRecordedDate(src.getDateRecorded()); tgt.setRecordedDate(src.getDateRecorded());
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
}
if (src.hasClinicalStatus()) if (src.hasClinicalStatus())
tgt.setClinicalStatus(convertConditionClinicalStatus(src.getClinicalStatus())); tgt.setClinicalStatus(convertConditionClinicalStatus(src.getClinicalStatus()));
if (src.hasVerificationStatus()) {
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus())); tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
}
if (src.hasSeverity()) {
tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity())); tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
}
if (src.hasAbatement()) {
tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement())); tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
}
if (src.hasStage()) {
tgt.addStage(convertConditionStageComponent(src.getStage())); tgt.addStage(convertConditionStageComponent(src.getStage()));
}
if (src.hasEvidence()) {
for (org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t)); for (org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
}
if (src.hasBodySite()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_40.convertCodeableConcept(t));
}
return tgt; return tgt;
} }
@ -78,8 +130,12 @@ public class Condition10_40 {
return null; return null;
org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent(); org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasDetail()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
}
return tgt; return tgt;
} }
@ -88,8 +144,12 @@ public class Condition10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent(); org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept cc : src.getCode()) tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(cc)); for (org.hl7.fhir.r4.model.CodeableConcept cc : src.getCode()) tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(cc));
}
if (src.hasDetail()) {
for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
}
return tgt; return tgt;
} }
@ -98,8 +158,12 @@ public class Condition10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent(); org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasSummary()) {
tgt.setSummary(VersionConvertor_10_40.convertCodeableConcept(src.getSummary())); tgt.setSummary(VersionConvertor_10_40.convertCodeableConcept(src.getSummary()));
}
if (src.hasAssessment()) {
for (org.hl7.fhir.r4.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_40.convertReference(t));
}
return tgt; return tgt;
} }
@ -108,8 +172,12 @@ public class Condition10_40 {
return null; return null;
org.hl7.fhir.r4.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionStageComponent(); org.hl7.fhir.r4.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionStageComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasSummary()) {
tgt.setSummary(VersionConvertor_10_40.convertCodeableConcept(src.getSummary())); tgt.setSummary(VersionConvertor_10_40.convertCodeableConcept(src.getSummary()));
}
if (src.hasAssessment()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_40.convertReference(t));
}
return tgt; return tgt;
} }

View File

@ -44,32 +44,64 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance tgt = new org.hl7.fhir.dstu2.model.Conformance(); org.hl7.fhir.dstu2.model.Conformance tgt = new org.hl7.fhir.dstu2.model.Conformance();
VersionConvertor_10_40.copyDomainResource(src, tgt, "http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"); VersionConvertor_10_40.copyDomainResource(src, tgt, "http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown");
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t)); for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose()); tgt.setRequirements(src.getPurpose());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasKind()) {
tgt.setKind(convertConformanceStatementKind(src.getKind())); tgt.setKind(convertConformanceStatementKind(src.getKind()));
}
if (src.hasSoftware()) {
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware())); tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
}
if (src.hasImplementation()) if (src.hasImplementation())
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation())); tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
if (src.hasFhirVersion()) if (src.hasFhirVersion())
tgt.setFhirVersion(src.getFhirVersion().toCode()); tgt.setFhirVersion(src.getFhirVersion().toCode());
if (src.hasExtension("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown")) if (src.hasExtension("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"))
tgt.setAcceptUnknown(org.hl7.fhir.dstu2.model.Conformance.UnknownContentCode.fromCode(src.getExtensionByUrl("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown").getValue().primitiveValue())); tgt.setAcceptUnknown(org.hl7.fhir.dstu2.model.Conformance.UnknownContentCode.fromCode(src.getExtensionByUrl("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown").getValue().primitiveValue()));
if (src.hasFormat()) {
for (org.hl7.fhir.r4.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue()); for (org.hl7.fhir.r4.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
}
if (src.hasRest()) {
for (CapabilityStatementRestComponent r : src.getRest()) for (CapabilityStatementRestResourceComponent rr : r.getResource()) for (org.hl7.fhir.r4.model.CanonicalType t : rr.getSupportedProfile()) tgt.addProfile(VersionConvertor_10_40.convertCanonicalToReference(t)); for (CapabilityStatementRestComponent r : src.getRest()) for (CapabilityStatementRestResourceComponent rr : r.getResource()) for (org.hl7.fhir.r4.model.CanonicalType t : rr.getSupportedProfile()) tgt.addProfile(VersionConvertor_10_40.convertCanonicalToReference(t));
}
if (src.hasRest()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
}
if (src.hasMessaging()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
}
if (src.hasDocument()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
}
return tgt; return tgt;
} }
@ -78,29 +110,63 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement tgt = new org.hl7.fhir.r4.model.CapabilityStatement(); org.hl7.fhir.r4.model.CapabilityStatement tgt = new org.hl7.fhir.r4.model.CapabilityStatement();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements()); tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasKind()) {
tgt.setKind(convertConformanceStatementKind(src.getKind())); tgt.setKind(convertConformanceStatementKind(src.getKind()));
}
if (src.hasSoftware()) {
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware())); tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
}
if (src.hasImplementation()) {
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation())); tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
}
if (src.hasFhirVersion()) {
tgt.setFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion())); tgt.setFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
}
if (src.hasAcceptUnknown()) if (src.hasAcceptUnknown())
tgt.addExtension().setUrl("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown").setValue(new org.hl7.fhir.r4.model.CodeType(src.getAcceptUnknownElement().asStringValue())); tgt.addExtension().setUrl("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown").setValue(new org.hl7.fhir.r4.model.CodeType(src.getAcceptUnknownElement().asStringValue()));
if (src.hasFormat()) {
for (org.hl7.fhir.dstu2.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue()); for (org.hl7.fhir.dstu2.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
}
if (src.hasRest()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
}
if (src.hasMessaging()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
}
if (src.hasDocument()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
}
return tgt; return tgt;
} }
@ -109,8 +175,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -119,8 +189,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail(); org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -129,9 +203,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertDocumentMode(src.getMode())); tgt.setMode(convertDocumentMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasProfile()) {
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile())); tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
}
return tgt; return tgt;
} }
@ -140,9 +220,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertDocumentMode(src.getMode())); tgt.setMode(convertDocumentMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasProfileElement()) {
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement())); tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
}
return tgt; return tgt;
} }
@ -151,8 +237,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -161,8 +251,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
return tgt; return tgt;
} }
@ -171,9 +265,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasEndpoint()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
}
if (src.hasReliableCache()) {
tgt.setReliableCache(src.getReliableCache()); tgt.setReliableCache(src.getReliableCache());
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
for (org.hl7.fhir.r4.model.Extension e : src.getExtensionsByUrl(VersionConvertorConstants.IG_CONFORMANCE_MESSAGE_EVENT)) { for (org.hl7.fhir.r4.model.Extension e : src.getExtensionsByUrl(VersionConvertorConstants.IG_CONFORMANCE_MESSAGE_EVENT)) {
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent event = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent event = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent();
tgt.addEvent(event); tgt.addEvent(event);
@ -201,9 +301,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
}
if (src.hasReliableCache()) {
tgt.setReliableCache(src.getReliableCache()); tgt.setReliableCache(src.getReliableCache());
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent()) { for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent()) {
org.hl7.fhir.r4.model.Extension e = new org.hl7.fhir.r4.model.Extension(VersionConvertorConstants.IG_CONFORMANCE_MESSAGE_EVENT); org.hl7.fhir.r4.model.Extension e = new org.hl7.fhir.r4.model.Extension(VersionConvertorConstants.IG_CONFORMANCE_MESSAGE_EVENT);
e.addExtension(new org.hl7.fhir.r4.model.Extension("code", VersionConvertor_10_40.convertCoding(t.getCode()))); e.addExtension(new org.hl7.fhir.r4.model.Extension("code", VersionConvertor_10_40.convertCoding(t.getCode())));
@ -232,8 +338,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol())); tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol()));
}
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
return tgt; return tgt;
} }
@ -242,8 +352,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol())); tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol()));
}
if (src.hasAddress()) {
tgt.setAddress(src.getAddress()); tgt.setAddress(src.getAddress());
}
return tgt; return tgt;
} }
@ -252,16 +366,32 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertRestfulConformanceMode(src.getMode())); tgt.setMode(convertRestfulConformanceMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasSecurity()) {
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity())); tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
}
if (src.hasResource()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
}
if (src.hasInteraction()) {
for (org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertSystemInteractionComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertSystemInteractionComponent(t));
}
if (src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH || src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH) if (src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH || src.getTransactionMode() == org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH)
tgt.addInteraction().setCode(SystemRestfulInteraction.BATCH); tgt.addInteraction().setCode(SystemRestfulInteraction.BATCH);
if (src.hasSearchParam()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
if (src.hasOperation()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
}
if (src.hasCompartment()) {
for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue()); for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
}
return tgt; return tgt;
} }
@ -270,10 +400,18 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasMode()) {
tgt.setMode(convertRestfulConformanceMode(src.getMode())); tgt.setMode(convertRestfulConformanceMode(src.getMode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
if (src.hasSecurity()) {
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity())); tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
}
if (src.hasResource()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
}
boolean batch = false; boolean batch = false;
boolean transaction = false; boolean transaction = false;
for (org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent t : src.getInteraction()) { for (org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent t : src.getInteraction()) {
@ -288,9 +426,15 @@ public class Conformance10_40 {
tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH); tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BOTH : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.BATCH);
else else
tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.TRANSACTION : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.NOTSUPPORTED); tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.TRANSACTION : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.NOTSUPPORTED);
if (src.hasSearchParam()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
if (src.hasOperation()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
}
if (src.hasCompartment()) {
for (org.hl7.fhir.r4.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue()); for (org.hl7.fhir.r4.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
}
return tgt; return tgt;
} }
@ -299,8 +443,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinition()) {
tgt.setDefinitionElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getDefinition())); tgt.setDefinitionElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getDefinition()));
}
return tgt; return tgt;
} }
@ -309,8 +457,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinitionElement()) {
tgt.setDefinition(VersionConvertor_10_40.convertCanonicalToReference(src.getDefinitionElement())); tgt.setDefinition(VersionConvertor_10_40.convertCanonicalToReference(src.getDefinitionElement()));
}
return tgt; return tgt;
} }
@ -319,18 +471,42 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfile()) {
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile())); tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
}
if (src.hasInteraction()) {
for (org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
}
if (src.hasVersioning()) {
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning())); tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
}
if (src.hasReadHistory()) {
tgt.setReadHistory(src.getReadHistory()); tgt.setReadHistory(src.getReadHistory());
}
if (src.hasUpdateCreate()) {
tgt.setUpdateCreate(src.getUpdateCreate()); tgt.setUpdateCreate(src.getUpdateCreate());
}
if (src.hasConditionalCreate()) {
tgt.setConditionalCreate(src.getConditionalCreate()); tgt.setConditionalCreate(src.getConditionalCreate());
}
if (src.hasConditionalUpdate()) {
tgt.setConditionalUpdate(src.getConditionalUpdate()); tgt.setConditionalUpdate(src.getConditionalUpdate());
}
if (src.hasConditionalDelete()) {
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete())); tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
}
if (src.hasSearchInclude()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
}
if (src.hasSearchRevInclude()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
}
if (src.hasSearchParam()) {
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
return tgt; return tgt;
} }
@ -339,19 +515,41 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfile()) if (src.hasProfile())
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement())); tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
if (src.hasInteraction()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
}
if (src.hasVersioning()) {
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning())); tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
}
if (src.hasReadHistory()) {
tgt.setReadHistory(src.getReadHistory()); tgt.setReadHistory(src.getReadHistory());
}
if (src.hasUpdateCreate()) {
tgt.setUpdateCreate(src.getUpdateCreate()); tgt.setUpdateCreate(src.getUpdateCreate());
}
if (src.hasConditionalCreate()) {
tgt.setConditionalCreate(src.getConditionalCreate()); tgt.setConditionalCreate(src.getConditionalCreate());
}
if (src.hasConditionalUpdate()) {
tgt.setConditionalUpdate(src.getConditionalUpdate()); tgt.setConditionalUpdate(src.getConditionalUpdate());
}
if (src.hasConditionalDelete()) {
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete())); tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
}
if (src.hasSearchInclude()) {
for (org.hl7.fhir.r4.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue()); for (org.hl7.fhir.r4.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
}
if (src.hasSearchRevInclude()) {
for (org.hl7.fhir.r4.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue()); for (org.hl7.fhir.r4.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
}
if (src.hasSearchParam()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t)); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
}
return tgt; return tgt;
} }
@ -360,10 +558,18 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinition()) {
tgt.setDefinition(src.getDefinition()); tgt.setDefinition(src.getDefinition());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType())); tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -372,10 +578,18 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDefinition()) {
tgt.setDefinition(src.getDefinition()); tgt.setDefinition(src.getDefinition());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType())); tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -384,9 +598,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCors()) {
tgt.setCors(src.getCors()); tgt.setCors(src.getCors());
}
if (src.hasService()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -395,9 +615,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCors()) {
tgt.setCors(src.getCors()); tgt.setCors(src.getCors());
}
if (src.hasService()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -406,9 +632,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent(); org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasReleaseDate()) {
tgt.setReleaseDate(src.getReleaseDate()); tgt.setReleaseDate(src.getReleaseDate());
}
return tgt; return tgt;
} }
@ -417,9 +649,15 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasReleaseDate()) {
tgt.setReleaseDate(src.getReleaseDate()); tgt.setReleaseDate(src.getReleaseDate());
}
return tgt; return tgt;
} }
@ -484,8 +722,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent(); org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertTypeRestfulInteraction(src.getCode())); tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -494,8 +736,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent(); org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertTypeRestfulInteraction(src.getCode())); tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -560,8 +806,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent(); org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertSystemRestfulInteraction(src.getCode())); tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }
@ -570,8 +820,12 @@ public class Conformance10_40 {
return null; return null;
org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent(); org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertSystemRestfulInteraction(src.getCode())); tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
}
if (src.hasDocumentation()) {
tgt.setDocumentation(src.getDocumentation()); tgt.setDocumentation(src.getDocumentation());
}
return tgt; return tgt;
} }

View File

@ -4,7 +4,6 @@ import org.hl7.fhir.convertors.VersionConvertor_10_40;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind;
import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule; import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -17,28 +16,46 @@ public class DataElement10_40 {
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasUrl()) if (src.hasUrl())
tgt.setUrl(src.getUrl().replace("/DataElement/", "/StructureDefinition/de-")); tgt.setUrl(src.getUrl().replace("/DataElement/", "/StructureDefinition/de-"));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t)); for (org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_40.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_40.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_40.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_40.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_40.convertCodeableConceptToUsageContext(t));
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasMapping()) {
for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t)); for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
}
List<String> slicePaths = new ArrayList<String>(); List<String> slicePaths = new ArrayList<String>();
for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
if (t.hasSlicing()) if (t.hasSlicing())
slicePaths.add(t.getPath()); slicePaths.add(t.getPath());
if (src.hasElement()) {
tgt.getSnapshot().addElement(VersionConvertor_10_40.convertElementDefinition(t, slicePaths, src.getElement(), src.getElement().indexOf(t))); tgt.getSnapshot().addElement(VersionConvertor_10_40.convertElementDefinition(t, slicePaths, src.getElement(), src.getElement().indexOf(t)));
} }
}
tgt.setKind(StructureDefinitionKind.COMPLEXTYPE); tgt.setKind(StructureDefinitionKind.COMPLEXTYPE);
tgt.setAbstract(false); tgt.setAbstract(false);
tgt.setType(tgt.getName()); tgt.setType(tgt.getName());
@ -52,8 +69,12 @@ public class DataElement10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent(); org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -62,8 +83,12 @@ public class DataElement10_40 {
return null; return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail(); org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -72,10 +97,18 @@ public class DataElement10_40 {
return null; return null;
org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity()); tgt.setIdentity(src.getIdentity());
}
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasComments()) {
tgt.setComment(src.getComments()); tgt.setComment(src.getComments());
}
return tgt; return tgt;
} }
} }

View File

@ -10,17 +10,35 @@ public class DetectedIssue10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DetectedIssue tgt = new org.hl7.fhir.dstu2.model.DetectedIssue(); org.hl7.fhir.dstu2.model.DetectedIssue tgt = new org.hl7.fhir.dstu2.model.DetectedIssue();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasCode()) {
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSeverity()) {
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity())); tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
}
if (src.hasImplicated()) {
for (org.hl7.fhir.r4.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_40.convertReference(t));
}
if (src.hasDetail()) {
tgt.setDetail(src.getDetail()); tgt.setDetail(src.getDetail());
}
if (src.hasIdentifiedDateTimeType()) if (src.hasIdentifiedDateTimeType())
tgt.setDateElement(VersionConvertor_10_40.convertDateTime(src.getIdentifiedDateTimeType())); tgt.setDateElement(VersionConvertor_10_40.convertDateTime(src.getIdentifiedDateTimeType()));
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep())); tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep()));
}
if (src.hasReference()) {
tgt.setReference(src.getReference()); tgt.setReference(src.getReference());
}
if (src.hasMitigation()) {
for (org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t)); for (org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
}
return tgt; return tgt;
} }
@ -29,17 +47,35 @@ public class DetectedIssue10_40 {
return null; return null;
org.hl7.fhir.r4.model.DetectedIssue tgt = new org.hl7.fhir.r4.model.DetectedIssue(); org.hl7.fhir.r4.model.DetectedIssue tgt = new org.hl7.fhir.r4.model.DetectedIssue();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasCategory()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCategory())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
}
if (src.hasSeverity()) {
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity())); tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
}
if (src.hasImplicated()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_40.convertReference(t));
}
if (src.hasDetail()) {
tgt.setDetail(src.getDetail()); tgt.setDetail(src.getDetail());
}
if (src.hasDate()) if (src.hasDate())
tgt.setIdentified(VersionConvertor_10_40.convertDateTime(src.getDateElement())); tgt.setIdentified(VersionConvertor_10_40.convertDateTime(src.getDateElement()));
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
if (src.hasIdentifier()) {
tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
}
if (src.hasReference()) {
tgt.setReference(src.getReference()); tgt.setReference(src.getReference());
}
if (src.hasMitigation()) {
for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t)); for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
}
return tgt; return tgt;
} }
@ -48,10 +84,14 @@ public class DetectedIssue10_40 {
return null; return null;
org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent(); org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasAction()) {
tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction())); tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }
@ -60,10 +100,14 @@ public class DetectedIssue10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent(); org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasAction()) {
tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction())); tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
return tgt; return tgt;
} }

View File

@ -10,16 +10,36 @@ public class DeviceMetric10_40 {
return null; return null;
org.hl7.fhir.r4.model.DeviceMetric tgt = new org.hl7.fhir.r4.model.DeviceMetric(); org.hl7.fhir.r4.model.DeviceMetric tgt = new org.hl7.fhir.r4.model.DeviceMetric();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
}
if (src.hasIdentifier()) {
tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
}
if (src.hasUnit()) {
tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit())); tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
}
if (src.hasParent()) {
tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent())); tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent()));
}
if (src.hasOperationalStatus()) {
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus())); tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
}
if (src.hasColor()) {
tgt.setColor(convertDeviceMetricColor(src.getColor())); tgt.setColor(convertDeviceMetricColor(src.getColor()));
}
if (src.hasCategory()) {
tgt.setCategory(convertDeviceMetricCategory(src.getCategory())); tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
}
if (src.hasMeasurementPeriod()) {
tgt.setMeasurementPeriod(VersionConvertor_10_40.convertTiming(src.getMeasurementPeriod())); tgt.setMeasurementPeriod(VersionConvertor_10_40.convertTiming(src.getMeasurementPeriod()));
}
if (src.hasCalibration()) {
for (org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t)); for (org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
}
return tgt; return tgt;
} }
@ -28,16 +48,36 @@ public class DeviceMetric10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceMetric tgt = new org.hl7.fhir.dstu2.model.DeviceMetric(); org.hl7.fhir.dstu2.model.DeviceMetric tgt = new org.hl7.fhir.dstu2.model.DeviceMetric();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
}
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep())); tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep()));
}
if (src.hasUnit()) {
tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit())); tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
}
if (src.hasParent()) {
tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent())); tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent()));
}
if (src.hasOperationalStatus()) {
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus())); tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
}
if (src.hasColor()) {
tgt.setColor(convertDeviceMetricColor(src.getColor())); tgt.setColor(convertDeviceMetricColor(src.getColor()));
}
if (src.hasCategory()) {
tgt.setCategory(convertDeviceMetricCategory(src.getCategory())); tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
}
if (src.hasMeasurementPeriod()) {
tgt.setMeasurementPeriod(VersionConvertor_10_40.convertTiming(src.getMeasurementPeriod())); tgt.setMeasurementPeriod(VersionConvertor_10_40.convertTiming(src.getMeasurementPeriod()));
}
if (src.hasCalibration()) {
for (org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t)); for (org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
}
return tgt; return tgt;
} }
@ -46,9 +86,15 @@ public class DeviceMetric10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent(); org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertDeviceMetricCalibrationType(src.getType())); tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
}
if (src.hasState()) {
tgt.setState(convertDeviceMetricCalibrationState(src.getState())); tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
}
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
return tgt; return tgt;
} }
@ -57,9 +103,15 @@ public class DeviceMetric10_40 {
return null; return null;
org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent(); org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(convertDeviceMetricCalibrationType(src.getType())); tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
}
if (src.hasState()) {
tgt.setState(convertDeviceMetricCalibrationState(src.getState())); tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
}
if (src.hasTime()) {
tgt.setTime(src.getTime()); tgt.setTime(src.getTime());
}
return tgt; return tgt;
} }

View File

@ -11,14 +11,30 @@ public class DeviceUseStatement10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement(); org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_10_40.convertType(src.getBodySite())); tgt.setBodySite(VersionConvertor_10_40.convertType(src.getBodySite()));
}
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_10_40.convertReference(src.getDevice())); tgt.setDevice(VersionConvertor_10_40.convertReference(src.getDevice()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addIndication(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addIndication(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasNote()) {
for (Annotation t : src.getNote()) tgt.addNotes(t.getText()); for (Annotation t : src.getNote()) tgt.addNotes(t.getText());
}
if (src.hasRecordedOn()) {
tgt.setRecordedOn(src.getRecordedOn()); tgt.setRecordedOn(src.getRecordedOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming())); tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming()));
}
return tgt; return tgt;
} }
@ -29,13 +45,27 @@ public class DeviceUseStatement10_40 {
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasBodySiteCodeableConcept()) if (src.hasBodySiteCodeableConcept())
tgt.setBodySite(VersionConvertor_10_40.convertCodeableConcept(src.getBodySiteCodeableConcept())); tgt.setBodySite(VersionConvertor_10_40.convertCodeableConcept(src.getBodySiteCodeableConcept()));
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_10_40.convertReference(src.getDevice())); tgt.setDevice(VersionConvertor_10_40.convertReference(src.getDevice()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasIndication()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getIndication()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getIndication()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasNotes()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes()) tgt.addNote().setText(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes()) tgt.addNote().setText(t.getValue());
}
if (src.hasRecordedOn()) {
tgt.setRecordedOn(src.getRecordedOn()); tgt.setRecordedOn(src.getRecordedOn());
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasTiming()) {
tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming())); tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,21 +10,51 @@ public class DiagnosticReport10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DiagnosticReport tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport(); org.hl7.fhir.dstu2.model.DiagnosticReport tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus())); tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasSpecimen()) {
for (org.hl7.fhir.r4.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_40.convertReference(t));
}
if (src.hasResult()) {
for (org.hl7.fhir.r4.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_40.convertReference(t));
}
if (src.hasImagingStudy()) {
for (org.hl7.fhir.r4.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_40.convertReference(t));
}
if (src.hasMedia()) {
for (org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent t : src.getMedia()) tgt.addImage(convertDiagnosticReportImageComponent(t)); for (org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent t : src.getMedia()) tgt.addImage(convertDiagnosticReportImageComponent(t));
}
if (src.hasConclusion()) {
tgt.setConclusion(src.getConclusion()); tgt.setConclusion(src.getConclusion());
}
if (src.hasConclusionCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getConclusionCode()) tgt.addCodedDiagnosis(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getConclusionCode()) tgt.addCodedDiagnosis(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPresentedForm()) {
for (org.hl7.fhir.r4.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_40.convertAttachment(t)); for (org.hl7.fhir.r4.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_40.convertAttachment(t));
}
return tgt; return tgt;
} }
@ -33,21 +63,51 @@ public class DiagnosticReport10_40 {
return null; return null;
org.hl7.fhir.r4.model.DiagnosticReport tgt = new org.hl7.fhir.r4.model.DiagnosticReport(); org.hl7.fhir.r4.model.DiagnosticReport tgt = new org.hl7.fhir.r4.model.DiagnosticReport();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus())); tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasEffective()) {
tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective())); tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective()));
}
if (src.hasIssued()) {
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
}
if (src.hasSpecimen()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_40.convertReference(t));
}
if (src.hasResult()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getResult()) tgt.addResult(VersionConvertor_10_40.convertReference(t));
}
if (src.hasImagingStudy()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_40.convertReference(t));
}
if (src.hasImage()) {
for (org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addMedia(convertDiagnosticReportImageComponent(t)); for (org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addMedia(convertDiagnosticReportImageComponent(t));
}
if (src.hasConclusion()) {
tgt.setConclusion(src.getConclusion()); tgt.setConclusion(src.getConclusion());
}
if (src.hasCodedDiagnosis()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addConclusionCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addConclusionCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPresentedForm()) {
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_40.convertAttachment(t)); for (org.hl7.fhir.dstu2.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_40.convertAttachment(t));
}
return tgt; return tgt;
} }
@ -56,8 +116,12 @@ public class DiagnosticReport10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent(); org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasLink()) {
tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink())); tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink()));
}
return tgt; return tgt;
} }
@ -66,8 +130,12 @@ public class DiagnosticReport10_40 {
return null; return null;
org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent(); org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasLink()) {
tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink())); tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink()));
}
return tgt; return tgt;
} }

View File

@ -45,21 +45,51 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference tgt = new org.hl7.fhir.dstu2.model.DocumentReference(); org.hl7.fhir.dstu2.model.DocumentReference tgt = new org.hl7.fhir.dstu2.model.DocumentReference();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasMasterIdentifier()) {
tgt.setMasterIdentifier(VersionConvertor_10_40.convertIdentifier(src.getMasterIdentifier())); tgt.setMasterIdentifier(VersionConvertor_10_40.convertIdentifier(src.getMasterIdentifier()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
}
if (src.hasCategory()) {
tgt.setClass_(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setClass_(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
}
if (src.hasAuthenticator()) {
tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator())); tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator()));
}
if (src.hasDate()) {
tgt.setCreated(src.getDate()); tgt.setCreated(src.getDate());
}
if (src.hasStatus()) {
tgt.setStatus(convertDocumentReferenceStatus(src.getStatus())); tgt.setStatus(convertDocumentReferenceStatus(src.getStatus()));
}
if (src.hasDocStatus()) {
tgt.setDocStatus(convertDocStatus(src.getDocStatus())); tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
}
if (src.hasRelatesTo()) {
for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t)); for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasContent()) {
for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t)); for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
}
if (src.hasContext()) {
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext())); tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
}
return tgt; return tgt;
} }
@ -68,21 +98,51 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.r4.model.DocumentReference tgt = new org.hl7.fhir.r4.model.DocumentReference(); org.hl7.fhir.r4.model.DocumentReference tgt = new org.hl7.fhir.r4.model.DocumentReference();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasMasterIdentifier()) {
tgt.setMasterIdentifier(VersionConvertor_10_40.convertIdentifier(src.getMasterIdentifier())); tgt.setMasterIdentifier(VersionConvertor_10_40.convertIdentifier(src.getMasterIdentifier()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasType()) {
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType())); tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
}
if (src.hasClass_()) {
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_())); tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_()));
}
if (src.hasCustodian()) {
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian())); tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
}
if (src.hasAuthenticator()) {
tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator())); tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator()));
}
if (src.hasCreated()) {
tgt.setDate(src.getCreated()); tgt.setDate(src.getCreated());
}
if (src.hasStatus()) {
tgt.setStatus(convertDocumentReferenceStatus(src.getStatus())); tgt.setStatus(convertDocumentReferenceStatus(src.getStatus()));
}
if (src.hasDocStatus()) {
tgt.setDocStatus(convertDocStatus(src.getDocStatus())); tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
}
if (src.hasRelatesTo()) {
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasContent()) {
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
}
if (src.hasContext()) {
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext())); tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
}
return tgt; return tgt;
} }
@ -91,8 +151,12 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent(); org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasAttachment()) {
tgt.setAttachment(VersionConvertor_10_40.convertAttachment(src.getAttachment())); tgt.setAttachment(VersionConvertor_10_40.convertAttachment(src.getAttachment()));
}
if (src.hasFormat()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(VersionConvertor_10_40.convertCoding(t)); for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(VersionConvertor_10_40.convertCoding(t));
}
return tgt; return tgt;
} }
@ -101,8 +165,12 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent(); org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasAttachment()) {
tgt.setAttachment(VersionConvertor_10_40.convertAttachment(src.getAttachment())); tgt.setAttachment(VersionConvertor_10_40.convertAttachment(src.getAttachment()));
}
if (src.hasFormat()) {
tgt.addFormat(VersionConvertor_10_40.convertCoding(src.getFormat())); tgt.addFormat(VersionConvertor_10_40.convertCoding(src.getFormat()));
}
return tgt; return tgt;
} }
@ -111,13 +179,27 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent(); org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasEncounter()) {
tgt.addEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.addEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasEvent()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasFacilityType()) {
tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType())); tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType()));
}
if (src.hasPracticeSetting()) {
tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting())); tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting()));
}
if (src.hasSourcePatientInfo()) {
tgt.setSourcePatientInfo(VersionConvertor_10_40.convertReference(src.getSourcePatientInfo())); tgt.setSourcePatientInfo(VersionConvertor_10_40.convertReference(src.getSourcePatientInfo()));
}
if (src.hasRelated()) {
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t)); for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
}
return tgt; return tgt;
} }
@ -128,12 +210,24 @@ public class DocumentReference10_40 {
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasEncounter()) if (src.hasEncounter())
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounterFirstRep())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounterFirstRep()));
if (src.hasEvent()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasFacilityType()) {
tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType())); tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType()));
}
if (src.hasPracticeSetting()) {
tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting())); tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting()));
}
if (src.hasSourcePatientInfo()) {
tgt.setSourcePatientInfo(VersionConvertor_10_40.convertReference(src.getSourcePatientInfo())); tgt.setSourcePatientInfo(VersionConvertor_10_40.convertReference(src.getSourcePatientInfo()));
}
if (src.hasRelated()) {
for (org.hl7.fhir.r4.model.Reference t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t)); for (org.hl7.fhir.r4.model.Reference t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
}
return tgt; return tgt;
} }
@ -142,7 +236,9 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent(); org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier())); tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
}
tgt.setRef(VersionConvertor_10_40.convertReference(src)); tgt.setRef(VersionConvertor_10_40.convertReference(src));
return tgt; return tgt;
} }
@ -161,8 +257,12 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent(); org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertDocumentRelationshipType(src.getCode())); tgt.setCode(convertDocumentRelationshipType(src.getCode()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget()));
}
return tgt; return tgt;
} }
@ -171,8 +271,12 @@ public class DocumentReference10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent(); org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(convertDocumentRelationshipType(src.getCode())); tgt.setCode(convertDocumentRelationshipType(src.getCode()));
}
if (src.hasTarget()) {
tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget())); tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget()));
}
return tgt; return tgt;
} }

View File

@ -10,23 +10,57 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter tgt = new org.hl7.fhir.dstu2.model.Encounter(); org.hl7.fhir.dstu2.model.Encounter tgt = new org.hl7.fhir.dstu2.model.Encounter();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterState(src.getStatus())); tgt.setStatus(convertEncounterState(src.getStatus()));
}
if (src.hasClass_()) {
tgt.setClass_(convertEncounterClass(src.getClass_())); tgt.setClass_(convertEncounterClass(src.getClass_()));
}
if (src.hasType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPriority()) {
tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority())); tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority()));
}
if (src.hasSubject()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasEpisodeOfCare()) {
for (org.hl7.fhir.r4.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_40.convertReference(t));
}
if (src.hasBasedOn()) {
for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addIncomingReferral(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addIncomingReferral(VersionConvertor_10_40.convertReference(t));
}
if (src.hasParticipant()) {
for (org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t)); for (org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
}
if (src.hasAppointment()) {
tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointmentFirstRep())); tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointmentFirstRep()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasLength()) {
tgt.setLength(VersionConvertor_10_40.convertDuration(src.getLength())); tgt.setLength(VersionConvertor_10_40.convertDuration(src.getLength()));
}
if (src.hasReasonCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasHospitalization()) {
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
}
if (src.hasLocation()) {
for (org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); for (org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
}
if (src.hasServiceProvider()) {
tgt.setServiceProvider(VersionConvertor_10_40.convertReference(src.getServiceProvider())); tgt.setServiceProvider(VersionConvertor_10_40.convertReference(src.getServiceProvider()));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf()));
}
return tgt; return tgt;
} }
@ -35,23 +69,57 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.r4.model.Encounter tgt = new org.hl7.fhir.r4.model.Encounter(); org.hl7.fhir.r4.model.Encounter tgt = new org.hl7.fhir.r4.model.Encounter();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterState(src.getStatus())); tgt.setStatus(convertEncounterState(src.getStatus()));
}
if (src.hasClass_()) {
tgt.setClass_(convertEncounterClass(src.getClass_())); tgt.setClass_(convertEncounterClass(src.getClass_()));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPriority()) {
tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority())); tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority()));
}
if (src.hasPatient()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasEpisodeOfCare()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getEpisodeOfCare()) tgt.addEpisodeOfCare(VersionConvertor_10_40.convertReference(t));
}
if (src.hasIncomingReferral()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getIncomingReferral()) tgt.addBasedOn(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getIncomingReferral()) tgt.addBasedOn(VersionConvertor_10_40.convertReference(t));
}
if (src.hasParticipant()) {
for (org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t)); for (org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
}
if (src.hasAppointment()) {
tgt.addAppointment(VersionConvertor_10_40.convertReference(src.getAppointment())); tgt.addAppointment(VersionConvertor_10_40.convertReference(src.getAppointment()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasLength()) {
tgt.setLength(VersionConvertor_10_40.convertDuration(src.getLength())); tgt.setLength(VersionConvertor_10_40.convertDuration(src.getLength()));
}
if (src.hasReason()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasHospitalization()) {
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
}
if (src.hasLocation()) {
for (org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); for (org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
}
if (src.hasServiceProvider()) {
tgt.setServiceProvider(VersionConvertor_10_40.convertReference(src.getServiceProvider())); tgt.setServiceProvider(VersionConvertor_10_40.convertReference(src.getServiceProvider()));
}
if (src.hasPartOf()) {
tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf())); tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf()));
}
return tgt; return tgt;
} }
@ -107,15 +175,33 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent(); org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasPreAdmissionIdentifier()) {
tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier())); tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
}
if (src.hasOrigin()) {
tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin())); tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin()));
}
if (src.hasAdmitSource()) {
tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource())); tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource()));
}
if (src.hasReAdmission()) {
tgt.setReAdmission(VersionConvertor_10_40.convertCodeableConcept(src.getReAdmission())); tgt.setReAdmission(VersionConvertor_10_40.convertCodeableConcept(src.getReAdmission()));
}
if (src.hasDietPreference()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasSpecialCourtesy()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasSpecialArrangement()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination()));
}
if (src.hasDischargeDisposition()) {
tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition())); tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition()));
}
return tgt; return tgt;
} }
@ -124,15 +210,33 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent(); org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasPreAdmissionIdentifier()) {
tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier())); tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
}
if (src.hasOrigin()) {
tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin())); tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin()));
}
if (src.hasAdmitSource()) {
tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource())); tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource()));
}
if (src.hasReAdmission()) {
tgt.setReAdmission(VersionConvertor_10_40.convertCodeableConcept(src.getReAdmission())); tgt.setReAdmission(VersionConvertor_10_40.convertCodeableConcept(src.getReAdmission()));
}
if (src.hasDietPreference()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getDietPreference()) tgt.addDietPreference(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasSpecialCourtesy()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasSpecialArrangement()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasDestination()) {
tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination())); tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination()));
}
if (src.hasDischargeDisposition()) {
tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition())); tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition()));
}
return tgt; return tgt;
} }
@ -141,9 +245,15 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent(); org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterLocationStatus(src.getStatus())); tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -152,9 +262,15 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent(); org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation())); tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
}
if (src.hasStatus()) {
tgt.setStatus(convertEncounterLocationStatus(src.getStatus())); tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -197,9 +313,15 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent(); org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasIndividual()) {
tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual())); tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual()));
}
return tgt; return tgt;
} }
@ -208,9 +330,15 @@ public class Encounter10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent(); org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasIndividual()) {
tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual())); tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual()));
}
return tgt; return tgt;
} }

View File

@ -10,11 +10,21 @@ public class EnrollmentRequest10_40 {
return null; return null;
org.hl7.fhir.r4.model.EnrollmentRequest tgt = new org.hl7.fhir.r4.model.EnrollmentRequest(); org.hl7.fhir.r4.model.EnrollmentRequest tgt = new org.hl7.fhir.r4.model.EnrollmentRequest();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasProvider()) {
tgt.setProvider(VersionConvertor_10_40.convertReference(src.getProvider())); tgt.setProvider(VersionConvertor_10_40.convertReference(src.getProvider()));
}
if (src.hasSubject()) {
tgt.setCandidate(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setCandidate(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasCoverage()) {
tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage())); tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage()));
}
return tgt; return tgt;
} }
@ -23,9 +33,15 @@ public class EnrollmentRequest10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu2.model.EnrollmentRequest(); org.hl7.fhir.dstu2.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu2.model.EnrollmentRequest();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasCoverage()) {
tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage())); tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,12 +10,24 @@ public class EnrollmentResponse10_40 {
return null; return null;
org.hl7.fhir.r4.model.EnrollmentResponse tgt = new org.hl7.fhir.r4.model.EnrollmentResponse(); org.hl7.fhir.r4.model.EnrollmentResponse tgt = new org.hl7.fhir.r4.model.EnrollmentResponse();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasRequest()) {
tgt.setRequest(VersionConvertor_10_40.convertReference(src.getRequest())); tgt.setRequest(VersionConvertor_10_40.convertReference(src.getRequest()));
}
if (src.hasDisposition()) {
tgt.setDisposition(src.getDisposition()); tgt.setDisposition(src.getDisposition());
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
if (src.hasOrganization()) {
tgt.setOrganization(VersionConvertor_10_40.convertReference(src.getOrganization())); tgt.setOrganization(VersionConvertor_10_40.convertReference(src.getOrganization()));
}
if (src.hasRequestProvider()) {
tgt.setRequestProvider(VersionConvertor_10_40.convertReference(src.getRequestProvider())); tgt.setRequestProvider(VersionConvertor_10_40.convertReference(src.getRequestProvider()));
}
return tgt; return tgt;
} }
@ -24,9 +36,15 @@ public class EnrollmentResponse10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu2.model.EnrollmentResponse(); org.hl7.fhir.dstu2.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu2.model.EnrollmentResponse();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasDisposition()) {
tgt.setDisposition(src.getDisposition()); tgt.setDisposition(src.getDisposition());
}
if (src.hasCreated()) {
tgt.setCreated(src.getCreated()); tgt.setCreated(src.getCreated());
}
return tgt; return tgt;
} }
} }

View File

@ -10,15 +10,33 @@ public class EpisodeOfCare10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare(); org.hl7.fhir.dstu2.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasStatusHistory()) {
for (org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t)); for (org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
}
if (src.hasType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasReferralRequest()) {
for (org.hl7.fhir.r4.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_40.convertReference(t));
}
if (src.hasCareManager()) {
tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager())); tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager()));
}
return tgt; return tgt;
} }
@ -27,15 +45,33 @@ public class EpisodeOfCare10_40 {
return null; return null;
org.hl7.fhir.r4.model.EpisodeOfCare tgt = new org.hl7.fhir.r4.model.EpisodeOfCare(); org.hl7.fhir.r4.model.EpisodeOfCare tgt = new org.hl7.fhir.r4.model.EpisodeOfCare();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasStatusHistory()) {
for (org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t)); for (org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
}
if (src.hasType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasManagingOrganization()) {
tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization())); tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasReferralRequest()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_40.convertReference(t));
}
if (src.hasCareManager()) {
tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager())); tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager()));
}
return tgt; return tgt;
} }
@ -86,8 +122,12 @@ public class EpisodeOfCare10_40 {
return null; return null;
org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -96,8 +136,12 @@ public class EpisodeOfCare10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus())); tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
} }

View File

@ -44,17 +44,35 @@ public class FamilyMemberHistory10_40 {
return null; return null;
org.hl7.fhir.r4.model.FamilyMemberHistory tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory(); org.hl7.fhir.r4.model.FamilyMemberHistory tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasStatus()) {
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus())); tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRelationship()) {
tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship())); tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship()));
}
if (src.hasBorn()) {
tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn())); tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn()));
}
if (src.hasAge()) {
tgt.setAge(VersionConvertor_10_40.convertType(src.getAge())); tgt.setAge(VersionConvertor_10_40.convertType(src.getAge()));
}
if (src.hasDeceased()) {
tgt.setDeceased(VersionConvertor_10_40.convertType(src.getDeceased())); tgt.setDeceased(VersionConvertor_10_40.convertType(src.getDeceased()));
}
if (src.hasCondition()) {
for (org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t)); for (org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
}
return tgt; return tgt;
} }
@ -63,17 +81,35 @@ public class FamilyMemberHistory10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory(); org.hl7.fhir.dstu2.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient())); tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasStatus()) {
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus())); tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasRelationship()) {
tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship())); tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship()));
}
if (src.hasBorn()) {
tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn())); tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn()));
}
if (src.hasAge()) {
tgt.setAge(VersionConvertor_10_40.convertType(src.getAge())); tgt.setAge(VersionConvertor_10_40.convertType(src.getAge()));
}
if (src.hasDeceased()) {
tgt.setDeceased(VersionConvertor_10_40.convertType(src.getDeceased())); tgt.setDeceased(VersionConvertor_10_40.convertType(src.getDeceased()));
}
if (src.hasCondition()) {
for (org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t)); for (org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
}
return tgt; return tgt;
} }
@ -82,9 +118,15 @@ public class FamilyMemberHistory10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
}
return tgt; return tgt;
} }
@ -93,9 +135,15 @@ public class FamilyMemberHistory10_40 {
return null; return null;
org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome())); tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome()));
}
if (src.hasOnset()) {
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset())); tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
}
return tgt; return tgt;
} }
} }

View File

@ -10,14 +10,30 @@ public class Flag10_40 {
return null; return null;
org.hl7.fhir.r4.model.Flag tgt = new org.hl7.fhir.r4.model.Flag(); org.hl7.fhir.r4.model.Flag tgt = new org.hl7.fhir.r4.model.Flag();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory())); tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
}
if (src.hasStatus()) {
tgt.setStatus(convertFlagStatus(src.getStatus())); tgt.setStatus(convertFlagStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class Flag10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Flag tgt = new org.hl7.fhir.dstu2.model.Flag(); org.hl7.fhir.dstu2.model.Flag tgt = new org.hl7.fhir.dstu2.model.Flag();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep())); tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
}
if (src.hasStatus()) {
tgt.setStatus(convertFlagStatus(src.getStatus())); tgt.setStatus(convertFlagStatus(src.getStatus()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor())); tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
return tgt; return tgt;
} }

View File

@ -10,14 +10,30 @@ public class Group10_40 {
return null; return null;
org.hl7.fhir.r4.model.Group tgt = new org.hl7.fhir.r4.model.Group(); org.hl7.fhir.r4.model.Group tgt = new org.hl7.fhir.r4.model.Group();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasType()) {
tgt.setType(convertGroupType(src.getType())); tgt.setType(convertGroupType(src.getType()));
}
if (src.hasActual()) {
tgt.setActual(src.getActual()); tgt.setActual(src.getActual());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasQuantity()) {
tgt.setQuantity(src.getQuantity()); tgt.setQuantity(src.getQuantity());
}
if (src.hasCharacteristic()) {
for (org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t)); for (org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
}
if (src.hasMember()) {
for (org.hl7.fhir.dstu2.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t)); for (org.hl7.fhir.dstu2.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
}
return tgt; return tgt;
} }
@ -26,14 +42,30 @@ public class Group10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Group tgt = new org.hl7.fhir.dstu2.model.Group(); org.hl7.fhir.dstu2.model.Group tgt = new org.hl7.fhir.dstu2.model.Group();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasType()) {
tgt.setType(convertGroupType(src.getType())); tgt.setType(convertGroupType(src.getType()));
}
if (src.hasActual()) {
tgt.setActual(src.getActual()); tgt.setActual(src.getActual());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasQuantity()) {
tgt.setQuantity(src.getQuantity()); tgt.setQuantity(src.getQuantity());
}
if (src.hasCharacteristic()) {
for (org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t)); for (org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
}
if (src.hasMember()) {
for (org.hl7.fhir.r4.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t)); for (org.hl7.fhir.r4.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
}
return tgt; return tgt;
} }
@ -42,10 +74,18 @@ public class Group10_40 {
return null; return null;
org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent(); org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_40.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_40.convertType(src.getValue()));
}
if (src.hasExclude()) {
tgt.setExclude(src.getExclude()); tgt.setExclude(src.getExclude());
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -54,10 +94,18 @@ public class Group10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent(); org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasValue()) {
tgt.setValue(VersionConvertor_10_40.convertType(src.getValue())); tgt.setValue(VersionConvertor_10_40.convertType(src.getValue()));
}
if (src.hasExclude()) {
tgt.setExclude(src.getExclude()); tgt.setExclude(src.getExclude());
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
return tgt; return tgt;
} }
@ -66,9 +114,15 @@ public class Group10_40 {
return null; return null;
org.hl7.fhir.r4.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r4.model.Group.GroupMemberComponent(); org.hl7.fhir.r4.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r4.model.Group.GroupMemberComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity())); tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasInactive()) {
tgt.setInactive(src.getInactive()); tgt.setInactive(src.getInactive());
}
return tgt; return tgt;
} }
@ -77,9 +131,15 @@ public class Group10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent(); org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasEntity()) {
tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity())); tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity()));
}
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod())); tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
}
if (src.hasInactive()) {
tgt.setInactive(src.getInactive()); tgt.setInactive(src.getInactive());
}
return tgt; return tgt;
} }

View File

@ -56,29 +56,61 @@ public class HealthcareService10_40 {
return null; return null;
org.hl7.fhir.r4.model.HealthcareService tgt = new org.hl7.fhir.r4.model.HealthcareService(); org.hl7.fhir.r4.model.HealthcareService tgt = new org.hl7.fhir.r4.model.HealthcareService();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasProvidedBy()) {
tgt.setProvidedBy(VersionConvertor_10_40.convertReference(src.getProvidedBy())); tgt.setProvidedBy(VersionConvertor_10_40.convertReference(src.getProvidedBy()));
}
for (org.hl7.fhir.dstu2.model.HealthcareService.ServiceTypeComponent t : src.getServiceType()) { for (org.hl7.fhir.dstu2.model.HealthcareService.ServiceTypeComponent t : src.getServiceType()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept tj : t.getSpecialty()) tgt.addSpecialty(VersionConvertor_10_40.convertCodeableConcept(tj)); for (org.hl7.fhir.dstu2.model.CodeableConcept tj : t.getSpecialty()) tgt.addSpecialty(VersionConvertor_10_40.convertCodeableConcept(tj));
} }
if (src.hasLocation()) {
tgt.addLocation(VersionConvertor_10_40.convertReference(src.getLocation())); tgt.addLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasExtraDetails()) {
tgt.setExtraDetails(src.getExtraDetails()); tgt.setExtraDetails(src.getExtraDetails());
}
if (src.hasPhoto()) {
tgt.setPhoto(VersionConvertor_10_40.convertAttachment(src.getPhoto())); tgt.setPhoto(VersionConvertor_10_40.convertAttachment(src.getPhoto()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
if (src.hasCoverageArea()) {
for (org.hl7.fhir.dstu2.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.dstu2.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_40.convertReference(t));
}
if (src.hasServiceProvisionCode()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasEligibility()) if (src.hasEligibility())
tgt.getEligibilityFirstRep().setCode(VersionConvertor_10_40.convertCodeableConcept(src.getEligibility())); tgt.getEligibilityFirstRep().setCode(VersionConvertor_10_40.convertCodeableConcept(src.getEligibility()));
if (src.hasEligibilityNote()) if (src.hasEligibilityNote())
tgt.getEligibilityFirstRep().setComment(src.getEligibilityNote()); tgt.getEligibilityFirstRep().setComment(src.getEligibilityNote());
if (src.hasProgramName()) {
for (org.hl7.fhir.dstu2.model.StringType t : src.getProgramName()) tgt.addProgram().setText(t.getValue()); for (org.hl7.fhir.dstu2.model.StringType t : src.getProgramName()) tgt.addProgram().setText(t.getValue());
}
if (src.hasCharacteristic()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasReferralMethod()) {
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasAppointmentRequired()) {
tgt.setAppointmentRequired(src.getAppointmentRequired()); tgt.setAppointmentRequired(src.getAppointmentRequired());
}
if (src.hasAvailableTime()) {
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t)); for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
}
if (src.hasNotAvailable()) {
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t)); for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions()) {
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions()); tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
}
return tgt; return tgt;
} }
@ -87,30 +119,64 @@ public class HealthcareService10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.HealthcareService tgt = new org.hl7.fhir.dstu2.model.HealthcareService(); org.hl7.fhir.dstu2.model.HealthcareService tgt = new org.hl7.fhir.dstu2.model.HealthcareService();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasProvidedBy()) {
tgt.setProvidedBy(VersionConvertor_10_40.convertReference(src.getProvidedBy())); tgt.setProvidedBy(VersionConvertor_10_40.convertReference(src.getProvidedBy()));
}
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialty()) { for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialty()) {
if (!tgt.hasServiceType()) if (!tgt.hasServiceType())
tgt.addServiceType(); tgt.addServiceType();
tgt.getServiceType().get(0).addSpecialty(VersionConvertor_10_40.convertCodeableConcept(t)); tgt.getServiceType().get(0).addSpecialty(VersionConvertor_10_40.convertCodeableConcept(t));
} }
if (src.hasLocation()) {
for (org.hl7.fhir.r4.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_40.convertReference(t));
}
if (src.hasComment()) {
tgt.setComment(src.getComment()); tgt.setComment(src.getComment());
}
if (src.hasExtraDetails()) {
tgt.setExtraDetails(src.getExtraDetails()); tgt.setExtraDetails(src.getExtraDetails());
}
if (src.hasPhoto()) {
tgt.setPhoto(VersionConvertor_10_40.convertAttachment(src.getPhoto())); tgt.setPhoto(VersionConvertor_10_40.convertAttachment(src.getPhoto()));
}
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
if (src.hasCoverageArea()) {
for (org.hl7.fhir.r4.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_40.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_40.convertReference(t));
}
if (src.hasServiceProvisionCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasEligibility()) {
tgt.setEligibility(VersionConvertor_10_40.convertCodeableConcept(src.getEligibilityFirstRep().getCode())); tgt.setEligibility(VersionConvertor_10_40.convertCodeableConcept(src.getEligibilityFirstRep().getCode()));
}
if (src.hasEligibility()) {
tgt.setEligibilityNote(src.getEligibilityFirstRep().getComment()); tgt.setEligibilityNote(src.getEligibilityFirstRep().getComment());
}
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProgram()) if (t.hasText()) for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProgram()) if (t.hasText())
tgt.addProgramName(t.getText()); tgt.addProgramName(t.getText());
if (src.hasCharacteristic()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCharacteristic()) tgt.addCharacteristic(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasReferralMethod()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasAppointmentRequired()) {
tgt.setAppointmentRequired(src.getAppointmentRequired()); tgt.setAppointmentRequired(src.getAppointmentRequired());
}
if (src.hasAvailableTime()) {
for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t)); for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
}
if (src.hasNotAvailable()) {
for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t)); for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions()) {
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions()); tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
}
return tgt; return tgt;
} }
@ -119,10 +185,18 @@ public class HealthcareService10_40 {
return null; return null;
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue()))); for (org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay()) {
tgt.setAllDay(src.getAllDay()); tgt.setAllDay(src.getAllDay());
}
if (src.hasAvailableStartTime()) {
tgt.setAvailableStartTime(src.getAvailableStartTime()); tgt.setAvailableStartTime(src.getAvailableStartTime());
}
if (src.hasAvailableEndTime()) {
tgt.setAvailableEndTime(src.getAvailableEndTime()); tgt.setAvailableEndTime(src.getAvailableEndTime());
}
return tgt; return tgt;
} }
@ -131,10 +205,18 @@ public class HealthcareService10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue()))); for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_10_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay()) {
tgt.setAllDay(src.getAllDay()); tgt.setAllDay(src.getAllDay());
}
if (src.hasAvailableStartTime()) {
tgt.setAvailableStartTime(src.getAvailableStartTime()); tgt.setAvailableStartTime(src.getAvailableStartTime());
}
if (src.hasAvailableEndTime()) {
tgt.setAvailableEndTime(src.getAvailableEndTime()); tgt.setAvailableEndTime(src.getAvailableEndTime());
}
return tgt; return tgt;
} }
@ -143,8 +225,12 @@ public class HealthcareService10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent(); org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDuring()) {
tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring())); tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring()));
}
return tgt; return tgt;
} }
@ -153,8 +239,12 @@ public class HealthcareService10_40 {
return null; return null;
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent(); org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
if (src.hasDuring()) {
tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring())); tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring()));
}
return tgt; return tgt;
} }
} }

View File

@ -5,7 +5,6 @@ import org.hl7.fhir.dstu2.model.ImplementationGuide.GuidePageKind;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Enumeration; import org.hl7.fhir.r4.model.Enumeration;
import org.hl7.fhir.r4.model.ImplementationGuide.GuidePageGeneration; import org.hl7.fhir.r4.model.ImplementationGuide.GuidePageGeneration;
import java.util.List; import java.util.List;
public class ImplementationGuide10_40 { public class ImplementationGuide10_40 {
@ -15,27 +14,53 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.r4.model.ImplementationGuide tgt = new org.hl7.fhir.r4.model.ImplementationGuide(); org.hl7.fhir.r4.model.ImplementationGuide tgt = new org.hl7.fhir.r4.model.ImplementationGuide();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_40.isJurisdiction(t)) for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_40.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_40.convertCodeableConcept(t)); tgt.addJurisdiction(VersionConvertor_10_40.convertCodeableConcept(t));
else else
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConceptToUsageContext(t)); tgt.addUseContext(VersionConvertor_10_40.convertCodeableConceptToUsageContext(t));
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
if (src.hasFhirVersion()) {
tgt.addFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion())); tgt.addFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
}
if (src.hasDependency()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependsOn(convertImplementationGuideDependencyComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependsOn(convertImplementationGuideDependencyComponent(t));
}
if (src.hasPackage()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.getDefinition().addGrouping(convertImplementationGuidePackageComponent(tgt.getDefinition(), t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.getDefinition().addGrouping(convertImplementationGuidePackageComponent(tgt.getDefinition(), t));
}
if (src.hasGlobal()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
}
if (src.hasPage()) {
tgt.getDefinition().setPage(convertImplementationGuidePageComponent(src.getPage())); tgt.getDefinition().setPage(convertImplementationGuidePageComponent(src.getPage()));
}
return tgt; return tgt;
} }
@ -44,29 +69,57 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide(); org.hl7.fhir.dstu2.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl()); tgt.setUrl(src.getUrl());
}
if (src.hasVersion()) {
tgt.setVersion(src.getVersion()); tgt.setVersion(src.getVersion());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus())); tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental()) if (src.hasExperimental())
tgt.setExperimental(src.getExperimental()); tgt.setExperimental(src.getExperimental());
if (src.hasPublisher()) {
tgt.setPublisher(src.getPublisher()); tgt.setPublisher(src.getPublisher());
}
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t)); for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept()) for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t.getValueCodeableConcept())); tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t));
}
if (src.hasCopyright()) {
tgt.setCopyright(src.getCopyright()); tgt.setCopyright(src.getCopyright());
}
for (Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> v : src.getFhirVersion()) { for (Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> v : src.getFhirVersion()) {
tgt.setFhirVersion(v.asStringValue()); tgt.setFhirVersion(v.asStringValue());
} }
if (src.hasDependsOn()) {
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent t : src.getDependsOn()) tgt.addDependency(convertImplementationGuideDependencyComponent(t)); for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent t : src.getDependsOn()) tgt.addDependency(convertImplementationGuideDependencyComponent(t));
}
if (src.hasDefinition()) {
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent t : src.getDefinition().getGrouping()) tgt.addPackage(convertImplementationGuidePackageComponent(t)); for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent t : src.getDefinition().getGrouping()) tgt.addPackage(convertImplementationGuidePackageComponent(t));
}
if (src.hasDefinition()) {
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent t : src.getDefinition().getResource()) findPackage(tgt.getPackage(), t.getGroupingId()).addResource(convertImplementationGuidePackageResourceComponent(t)); for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent t : src.getDefinition().getResource()) findPackage(tgt.getPackage(), t.getGroupingId()).addResource(convertImplementationGuidePackageResourceComponent(t));
}
if (src.hasGlobal()) {
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t)); for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
}
if (src.hasDefinition()) {
tgt.setPage(convertImplementationGuidePageComponent(src.getDefinition().getPage())); tgt.setPage(convertImplementationGuidePageComponent(src.getDefinition().getPage()));
}
return tgt; return tgt;
} }
@ -75,8 +128,12 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail(); org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -85,8 +142,12 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
}
return tgt; return tgt;
} }
@ -95,7 +156,9 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
return tgt; return tgt;
} }
@ -105,7 +168,9 @@ public class ImplementationGuide10_40 {
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
tgt.setType(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideDependencyType.REFERENCE); tgt.setType(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideDependencyType.REFERENCE);
if (src.hasUri()) {
tgt.setUri(src.getUri()); tgt.setUri(src.getUri());
}
return tgt; return tgt;
} }
@ -114,8 +179,12 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfileElement()) {
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement())); tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
}
return tgt; return tgt;
} }
@ -124,8 +193,12 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent(); org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType()); tgt.setType(src.getType());
}
if (src.hasProfile()) {
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile())); tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
}
return tgt; return tgt;
} }
@ -134,9 +207,15 @@ public class ImplementationGuide10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent(); org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasId()) {
tgt.setId(src.getId()); tgt.setId(src.getId());
}
if (src.hasName()) {
tgt.setName(src.getName()); tgt.setName(src.getName());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription()); tgt.setDescription(src.getDescription());
}
return tgt; return tgt;
} }
@ -198,12 +277,18 @@ public class ImplementationGuide10_40 {
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent();
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasSource()) { if (src.hasSource()) {
if (src.hasSourceElement()) {
tgt.setName(convertUriToUrl(src.getSourceElement())); tgt.setName(convertUriToUrl(src.getSourceElement()));
} }
}
if (src.hasName()) {
tgt.setTitle(src.getName()); tgt.setTitle(src.getName());
}
if (src.hasKind()) if (src.hasKind())
tgt.setGeneration(convertPageGeneration(src.getKind())); tgt.setGeneration(convertPageGeneration(src.getKind()));
if (src.hasPage()) {
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
}
return tgt; return tgt;
} }
@ -214,10 +299,14 @@ public class ImplementationGuide10_40 {
VersionConvertor_10_40.copyElement(src, tgt); VersionConvertor_10_40.copyElement(src, tgt);
if (src.hasNameUrlType()) if (src.hasNameUrlType())
tgt.setSource(src.getNameUrlType().getValue()); tgt.setSource(src.getNameUrlType().getValue());
if (src.hasTitle()) {
tgt.setName(src.getTitle()); tgt.setName(src.getTitle());
}
if (src.hasGeneration()) if (src.hasGeneration())
tgt.setKind(convertPageGeneration(src.getGeneration())); tgt.setKind(convertPageGeneration(src.getGeneration()));
if (src.hasPage()) {
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
}
return tgt; return tgt;
} }

View File

@ -10,20 +10,40 @@ public class List10_40 {
return null; return null;
org.hl7.fhir.r4.model.ListResource tgt = new org.hl7.fhir.r4.model.ListResource(); org.hl7.fhir.r4.model.ListResource tgt = new org.hl7.fhir.r4.model.ListResource();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasStatus()) {
tgt.setStatus(convertListStatus(src.getStatus())); tgt.setStatus(convertListStatus(src.getStatus()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasMode()) {
tgt.setMode(convertListMode(src.getMode())); tgt.setMode(convertListMode(src.getMode()));
}
if (src.hasNote()) if (src.hasNote())
tgt.addNote(new org.hl7.fhir.r4.model.Annotation().setText(src.getNote())); tgt.addNote(new org.hl7.fhir.r4.model.Annotation().setText(src.getNote()));
if (src.hasEntry()) {
for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
}
return tgt; return tgt;
} }
@ -32,19 +52,41 @@ public class List10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.List_ tgt = new org.hl7.fhir.dstu2.model.List_(); org.hl7.fhir.dstu2.model.List_ tgt = new org.hl7.fhir.dstu2.model.List_();
VersionConvertor_10_40.copyDomainResource(src, tgt); VersionConvertor_10_40.copyDomainResource(src, tgt);
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle()); tgt.setTitle(src.getTitle());
}
if (src.hasCode()) {
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode())); tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject())); tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
}
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource())); tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
}
if (src.hasEncounter()) {
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter())); tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
}
if (src.hasStatus()) {
tgt.setStatus(convertListStatus(src.getStatus())); tgt.setStatus(convertListStatus(src.getStatus()));
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasOrderedBy()) {
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy())); tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
}
if (src.hasMode()) {
tgt.setMode(convertListMode(src.getMode())); tgt.setMode(convertListMode(src.getMode()));
}
if (src.hasNote()) {
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.setNote(t.getText()); for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
}
if (src.hasEntry()) {
for (org.hl7.fhir.r4.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); for (org.hl7.fhir.r4.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
}
return tgt; return tgt;
} }
@ -53,11 +95,17 @@ public class List10_40 {
return null; return null;
org.hl7.fhir.r4.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r4.model.ListResource.ListEntryComponent(); org.hl7.fhir.r4.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r4.model.ListResource.ListEntryComponent();
copyBackboneElement(src, tgt); copyBackboneElement(src, tgt);
if (src.hasFlag()) {
tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag())); tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag()));
}
if (src.hasDeleted()) {
tgt.setDeleted(src.getDeleted()); tgt.setDeleted(src.getDeleted());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasItem()) {
tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem())); tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem()));
}
return tgt; return tgt;
} }
@ -66,11 +114,17 @@ public class List10_40 {
return null; return null;
org.hl7.fhir.dstu2.model.List_.ListEntryComponent tgt = new org.hl7.fhir.dstu2.model.List_.ListEntryComponent(); org.hl7.fhir.dstu2.model.List_.ListEntryComponent tgt = new org.hl7.fhir.dstu2.model.List_.ListEntryComponent();
copyBackboneElement(src, tgt); copyBackboneElement(src, tgt);
if (src.hasFlag()) {
tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag())); tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag()));
}
if (src.hasDeleted()) {
tgt.setDeleted(src.getDeleted()); tgt.setDeleted(src.getDeleted());
}
if (src.hasDate()) if (src.hasDate())
tgt.setDate(src.getDate()); tgt.setDate(src.getDate());
if (src.hasItem()) {
tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem())); tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem()));
}
return tgt; return tgt;
} }

Some files were not shown because too many files have changed in this diff Show More