Merge pull request #128 from hapifhir/wrap_all_conversion_accessors
Wrap all conversion accessors
This commit is contained in:
commit
9ba52134f8
|
@ -10,15 +10,33 @@ public class Account10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Account tgt = new org.hl7.fhir.dstu2.model.Account();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setStatus(convertAccountStatus(src.getStatus()));
|
||||
tgt.setActivePeriod(VersionConvertor_10_30.convertPeriod(src.getActive()));
|
||||
tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertAccountStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActivePeriod(VersionConvertor_10_30.convertPeriod(src.getActive()));
|
||||
}
|
||||
if (src.hasBalance()) {
|
||||
tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasOwner()) {
|
||||
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -27,17 +45,31 @@ public class Account10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Account tgt = new org.hl7.fhir.dstu3.model.Account();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasName())
|
||||
tgt.setName(src.getName());
|
||||
if (src.hasType())
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setStatus(convertAccountStatus(src.getStatus()));
|
||||
tgt.setActive(VersionConvertor_10_30.convertPeriod(src.getActivePeriod()));
|
||||
tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertAccountStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasActivePeriod()) {
|
||||
tgt.setActive(VersionConvertor_10_30.convertPeriod(src.getActivePeriod()));
|
||||
}
|
||||
if (src.hasBalance()) {
|
||||
tgt.setBalance(VersionConvertor_10_30.convertMoney(src.getBalance()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasOwner()) {
|
||||
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,17 +10,39 @@ public class Appointment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Appointment tgt = new org.hl7.fhir.dstu2.model.Appointment();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertAppointmentStatus(src.getStatus()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPriority(src.getPriority());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setComment(src.getComment());
|
||||
for (org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasServiceType()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(src.getPriority());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasMinutesDuration()) {
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
}
|
||||
if (src.hasSlot()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasParticipant()) {
|
||||
for (org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -29,18 +51,38 @@ public class Appointment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Appointment tgt = new org.hl7.fhir.dstu3.model.Appointment();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertAppointmentStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasType())
|
||||
tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setPriority(src.getPriority());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setComment(src.getComment());
|
||||
for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(src.getPriority());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasMinutesDuration()) {
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
}
|
||||
if (src.hasSlot()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasParticipant()) {
|
||||
for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -49,10 +91,18 @@ public class Appointment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -61,10 +111,18 @@ public class Appointment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,14 +10,30 @@ public class AppointmentResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AppointmentResponse tgt = new org.hl7.fhir.dstu2.model.AppointmentResponse();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasParticipantType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasParticipantStatus()) {
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class AppointmentResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.AppointmentResponse tgt = new org.hl7.fhir.dstu3.model.AppointmentResponse();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasParticipantType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasParticipantStatus()) {
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,16 +10,36 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent tgt = new org.hl7.fhir.dstu2.model.AuditEvent();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.getEvent().setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getSubtype()) tgt.getEvent().addSubtype(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.getEvent().setAction(convertAuditEventAction(src.getAction()));
|
||||
tgt.getEvent().setDateTime(src.getRecorded());
|
||||
tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome()));
|
||||
tgt.getEvent().setOutcomeDesc(src.getOutcomeDesc());
|
||||
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.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t));
|
||||
tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
|
||||
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t));
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAction()) {
|
||||
tgt.getEvent().setAction(convertAuditEventAction(src.getAction()));
|
||||
}
|
||||
if (src.hasRecorded()) {
|
||||
tgt.getEvent().setDateTime(src.getRecorded());
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome()));
|
||||
}
|
||||
if (src.hasOutcomeDesc()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAgent()) {
|
||||
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
|
||||
}
|
||||
if (src.hasEntity()) {
|
||||
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -29,17 +49,37 @@ public class AuditEvent10_30 {
|
|||
org.hl7.fhir.dstu3.model.AuditEvent tgt = new org.hl7.fhir.dstu3.model.AuditEvent();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
if (src.hasEvent()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getEvent().getType()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getSubtype()) tgt.addSubtype(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setAction(convertAuditEventAction(src.getEvent().getAction()));
|
||||
tgt.setRecorded(src.getEvent().getDateTime());
|
||||
tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome()));
|
||||
tgt.setOutcomeDesc(src.getEvent().getOutcomeDesc());
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getPurposeOfEvent()) tgt.addPurposeOfEvent().addCoding(VersionConvertor_10_30.convertCoding(t));
|
||||
if (src.hasEvent()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setAction(convertAuditEventAction(src.getEvent().getAction()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setRecorded(src.getEvent().getDateTime());
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
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));
|
||||
}
|
||||
}
|
||||
if (src.hasParticipant()) {
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
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.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t));
|
||||
tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent t : src.getObject()) tgt.addEntity(convertAuditEventEntityComponent(t));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -86,17 +126,39 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId()));
|
||||
tgt.setAltId(src.getAltId());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
|
||||
tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia()));
|
||||
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getPurposeOfUse()) tgt.addPurposeOfUse().addCoding(VersionConvertor_10_30.convertCoding(t));
|
||||
if (src.hasRole()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasUserId()) {
|
||||
tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId()));
|
||||
}
|
||||
if (src.hasAltId()) {
|
||||
tgt.setAltId(src.getAltId());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRequestor()) {
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasMedia()) {
|
||||
tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia()));
|
||||
}
|
||||
if (src.hasNetwork()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -105,17 +167,39 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId()));
|
||||
tgt.setAltId(src.getAltId());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu3.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
|
||||
tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia()));
|
||||
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
|
||||
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));
|
||||
if (src.hasRole()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasUserId()) {
|
||||
tgt.setUserId(VersionConvertor_10_30.convertIdentifier(src.getUserId()));
|
||||
}
|
||||
if (src.hasAltId()) {
|
||||
tgt.setAltId(src.getAltId());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRequestor()) {
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasMedia()) {
|
||||
tgt.setMedia(VersionConvertor_10_30.convertCoding(src.getMedia()));
|
||||
}
|
||||
if (src.hasNetwork()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,8 +208,12 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAddress(src.getAddress());
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -134,8 +222,12 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAddress(src.getAddress());
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -144,16 +236,36 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole()));
|
||||
tgt.setLifecycle(VersionConvertor_10_30.convertCoding(src.getLifecycle()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setQuery(src.getQuery());
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasReference()) {
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole()));
|
||||
}
|
||||
if (src.hasLifecycle()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasQuery()) {
|
||||
tgt.setQuery(src.getQuery());
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -162,16 +274,36 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole()));
|
||||
tgt.setLifecycle(VersionConvertor_10_30.convertCoding(src.getLifecycle()));
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setQuery(src.getQuery());
|
||||
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasReference()) {
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(VersionConvertor_10_30.convertCoding(src.getRole()));
|
||||
}
|
||||
if (src.hasLifecycle()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasQuery()) {
|
||||
tgt.setQuery(src.getQuery());
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -180,8 +312,12 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -190,8 +326,12 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -272,9 +412,15 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSite(src.getSite());
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCoding(t));
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(src.getSite());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -283,9 +429,15 @@ public class AuditEvent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSite(src.getSite());
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCoding(t));
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(src.getSite());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,11 +10,21 @@ public class Basic10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Basic tgt = new org.hl7.fhir.dstu2.model.Basic();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -23,11 +33,21 @@ public class Basic10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Basic tgt = new org.hl7.fhir.dstu3.model.Basic();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,8 +10,12 @@ public class Binary10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Binary tgt = new org.hl7.fhir.dstu2.model.Binary();
|
||||
VersionConvertor_10_30.copyResource(src, tgt);
|
||||
tgt.setContentType(src.getContentType());
|
||||
tgt.setContent(src.getContent());
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(src.getContentType());
|
||||
}
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(src.getContent());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -20,8 +24,12 @@ public class Binary10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Binary tgt = new org.hl7.fhir.dstu3.model.Binary();
|
||||
VersionConvertor_10_30.copyResource(src, tgt);
|
||||
tgt.setContentType(src.getContentType());
|
||||
tgt.setContent(src.getContent());
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(src.getContentType());
|
||||
}
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(src.getContent());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,12 +11,20 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle tgt = new org.hl7.fhir.dstu3.model.Bundle();
|
||||
VersionConvertor_10_30.copyResource(src, tgt);
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
}
|
||||
if (src.hasTotal())
|
||||
tgt.setTotal(src.getTotal());
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t));
|
||||
tgt.setSignature(VersionConvertor_10_30.convertSignature(src.getSignature()));
|
||||
if (src.hasLink()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSignature()) {
|
||||
tgt.setSignature(VersionConvertor_10_30.convertSignature(src.getSignature()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -25,11 +33,17 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle tgt = new org.hl7.fhir.dstu2.model.Bundle();
|
||||
VersionConvertor_10_30.copyResource(src, tgt);
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
}
|
||||
if (src.hasTotal())
|
||||
tgt.setTotal(src.getTotal());
|
||||
for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t, advisor));
|
||||
if (src.hasLink()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSignature())
|
||||
tgt.setSignature(VersionConvertor_10_30.convertSignature(src.getSignature()));
|
||||
return tgt;
|
||||
|
@ -70,12 +84,24 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
tgt.setFullUrl(src.getFullUrl());
|
||||
tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource()));
|
||||
tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
|
||||
tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
|
||||
tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
|
||||
if (src.hasLink()) {
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
}
|
||||
if (src.hasFullUrl()) {
|
||||
tgt.setFullUrl(src.getFullUrl());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource()));
|
||||
}
|
||||
if (src.hasSearch()) {
|
||||
tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
|
||||
}
|
||||
if (src.hasRequest()) {
|
||||
tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -84,12 +110,24 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIfNoneMatch()) {
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
}
|
||||
if (src.hasIfModifiedSince()) {
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
}
|
||||
if (src.hasIfMatch()) {
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
}
|
||||
if (src.hasIfNoneExist()) {
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -98,12 +136,24 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIfNoneMatch()) {
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
}
|
||||
if (src.hasIfModifiedSince()) {
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
}
|
||||
if (src.hasIfMatch()) {
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
}
|
||||
if (src.hasIfNoneExist()) {
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -112,10 +162,18 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setStatus(src.getStatus());
|
||||
tgt.setLocation(src.getLocation());
|
||||
tgt.setEtag(src.getEtag());
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(src.getStatus());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(src.getLocation());
|
||||
}
|
||||
if (src.hasEtag()) {
|
||||
tgt.setEtag(src.getEtag());
|
||||
}
|
||||
if (src.hasLastModified()) {
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,10 +182,18 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setStatus(src.getStatus());
|
||||
tgt.setLocation(src.getLocation());
|
||||
tgt.setEtag(src.getEtag());
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(src.getStatus());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(src.getLocation());
|
||||
}
|
||||
if (src.hasEtag()) {
|
||||
tgt.setEtag(src.getEtag());
|
||||
}
|
||||
if (src.hasLastModified()) {
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -136,8 +202,12 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
tgt.setScore(src.getScore());
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
}
|
||||
if (src.hasScore()) {
|
||||
tgt.setScore(src.getScore());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -146,8 +216,12 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
tgt.setScore(src.getScore());
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
}
|
||||
if (src.hasScore()) {
|
||||
tgt.setScore(src.getScore());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -156,8 +230,12 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setRelation(src.getRelation());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasRelation()) {
|
||||
tgt.setRelation(src.getRelation());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -166,8 +244,12 @@ public class Bundle10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setRelation(src.getRelation());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasRelation()) {
|
||||
tgt.setRelation(src.getRelation());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,17 +10,39 @@ public class CarePlan10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CarePlan tgt = new org.hl7.fhir.dstu3.model.CarePlan();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAddresses()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActivity()) {
|
||||
for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -29,17 +51,39 @@ public class CarePlan10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan tgt = new org.hl7.fhir.dstu2.model.CarePlan();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAddresses()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActivity()) {
|
||||
for (org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -48,9 +92,15 @@ public class CarePlan10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_30.convertAnnotation(t));
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
if (src.hasProgress()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -59,9 +109,15 @@ public class CarePlan10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_30.convertAnnotation(t));
|
||||
tgt.setReference(VersionConvertor_10_30.convertReference(src.getReference()));
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
if (src.hasProgress()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -70,20 +126,48 @@ public class CarePlan10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
tgt.setProhibited(src.getProhibited());
|
||||
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled()));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct()));
|
||||
tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount()));
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonReference()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasProhibited()) {
|
||||
tgt.setProhibited(src.getProhibited());
|
||||
}
|
||||
if (src.hasScheduled()) {
|
||||
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProduct()) {
|
||||
tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct()));
|
||||
}
|
||||
if (src.hasDailyAmount()) {
|
||||
tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount()));
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -92,20 +176,48 @@ public class CarePlan10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
tgt.setProhibited(src.getProhibited());
|
||||
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled()));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct()));
|
||||
tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount()));
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonReference()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasProhibited()) {
|
||||
tgt.setProhibited(src.getProhibited());
|
||||
}
|
||||
if (src.hasScheduled()) {
|
||||
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getScheduled()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProduct()) {
|
||||
tgt.setProduct(VersionConvertor_10_30.convertType(src.getProduct()));
|
||||
}
|
||||
if (src.hasDailyAmount()) {
|
||||
tgt.setDailyAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getDailyAmount()));
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,20 +11,40 @@ public class ClinicalImpression10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ClinicalImpression tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor()));
|
||||
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
|
||||
if (src.hasPatient()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasAssessor()) {
|
||||
tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setPrevious(VersionConvertor_10_30.convertReference(src.getPrevious()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getProblem()) tgt.addProblem(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.addProtocol(src.getProtocol());
|
||||
tgt.setSummary(src.getSummary());
|
||||
for (org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasPrevious()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProtocol()) {
|
||||
tgt.addProtocol(src.getProtocol());
|
||||
}
|
||||
if (src.hasSummary()) {
|
||||
tgt.setSummary(src.getSummary());
|
||||
}
|
||||
if (src.hasFinding()) {
|
||||
for (org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
|
||||
}
|
||||
if (src.hasPrognosis())
|
||||
tgt.addPrognosisCodeableConcept().setText(src.getPrognosis());
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasAction()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -33,19 +53,41 @@ public class ClinicalImpression10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ClinicalImpression tgt = new org.hl7.fhir.dstu2.model.ClinicalImpression();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor()));
|
||||
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
|
||||
if (src.hasSubject()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasAssessor()) {
|
||||
tgt.setAssessor(VersionConvertor_10_30.convertReference(src.getAssessor()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setPrevious(VersionConvertor_10_30.convertReference(src.getPrevious()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getProblem()) tgt.addProblem(VersionConvertor_10_30.convertReference(t));
|
||||
for (UriType t : src.getProtocol()) tgt.setProtocol(t.asStringValue());
|
||||
tgt.setSummary(src.getSummary());
|
||||
for (org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
|
||||
tgt.setPrognosis(src.getPrognosisCodeableConceptFirstRep().getText());
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAction()) tgt.addAction(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasPrevious()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProtocol()) {
|
||||
for (UriType t : src.getProtocol()) tgt.setProtocol(t.asStringValue());
|
||||
}
|
||||
if (src.hasSummary()) {
|
||||
tgt.setSummary(src.getSummary());
|
||||
}
|
||||
if (src.hasFinding()) {
|
||||
for (org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
|
||||
}
|
||||
if (src.hasPrognosisCodeableConcept()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,7 +96,9 @@ public class ClinicalImpression10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItem()));
|
||||
if (src.hasItem()) {
|
||||
tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItem()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -65,7 +109,9 @@ public class ClinicalImpression10_30 {
|
|||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
if (src.hasItemCodeableConcept())
|
||||
try {
|
||||
tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItemCodeableConcept()));
|
||||
if (src.hasItemCodeableConcept()) {
|
||||
tgt.setItem(VersionConvertor_10_30.convertCodeableConcept(src.getItemCodeableConcept()));
|
||||
}
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
}
|
||||
return tgt;
|
||||
|
|
|
@ -10,18 +10,42 @@ public class Communication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Communication tgt = new org.hl7.fhir.dstu3.model.Communication();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setSent(src.getSent());
|
||||
tgt.setReceived(src.getReceived());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasSent()) {
|
||||
tgt.setSent(src.getSent());
|
||||
}
|
||||
if (src.hasReceived()) {
|
||||
tgt.setReceived(src.getReceived());
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -30,18 +54,42 @@ public class Communication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Communication tgt = new org.hl7.fhir.dstu2.model.Communication();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setSent(src.getSent());
|
||||
tgt.setReceived(src.getReceived());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasSent()) {
|
||||
tgt.setSent(src.getSent());
|
||||
}
|
||||
if (src.hasReceived()) {
|
||||
tgt.setReceived(src.getReceived());
|
||||
}
|
||||
if (src.hasReasonCode()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -50,7 +98,9 @@ public class Communication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -59,7 +109,9 @@ public class Communication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,20 +10,48 @@ public class CommunicationRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CommunicationRequest tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent()));
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getOccurrence()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setRequestedOn(src.getAuthoredOn());
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRequester()) {
|
||||
tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasOccurrence()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAuthoredOn()) {
|
||||
tgt.setRequestedOn(src.getAuthoredOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -32,20 +60,48 @@ public class CommunicationRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CommunicationRequest tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setSender(VersionConvertor_10_30.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester()));
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setOccurrence(VersionConvertor_10_30.convertType(src.getScheduled()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setAuthoredOn(src.getRequestedOn());
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRequester()) {
|
||||
tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasScheduled()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRequestedOn()) {
|
||||
tgt.setAuthoredOn(src.getRequestedOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,7 +110,9 @@ public class CommunicationRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -63,7 +121,9 @@ public class CommunicationRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,25 +10,51 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Composition tgt = new org.hl7.fhir.dstu3.model.Composition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
}
|
||||
try {
|
||||
tgt.setConfidentiality(org.hl7.fhir.dstu3.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality()));
|
||||
if (src.hasConfidentiality()) {
|
||||
tgt.setConfidentiality(org.hl7.fhir.dstu3.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality()));
|
||||
}
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
throw new FHIRException(e);
|
||||
}
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
|
||||
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAttester()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSection()) {
|
||||
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -37,21 +63,47 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition tgt = new org.hl7.fhir.dstu2.model.Composition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
tgt.setConfidentiality(src.getConfidentiality().toCode());
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
|
||||
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
|
||||
for (org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu3.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasConfidentiality()) {
|
||||
tgt.setConfidentiality(src.getConfidentiality().toCode());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAttester()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSection()) {
|
||||
for (org.hl7.fhir.dstu3.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -94,9 +146,15 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
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())));
|
||||
tgt.setTime(src.getTime());
|
||||
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
|
||||
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())));
|
||||
}
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
if (src.hasParty()) {
|
||||
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -105,9 +163,15 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
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())));
|
||||
tgt.setTime(src.getTime());
|
||||
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
|
||||
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())));
|
||||
}
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
if (src.hasParty()) {
|
||||
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -116,9 +180,15 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -127,9 +197,15 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -172,18 +248,34 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText()));
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText()));
|
||||
}
|
||||
try {
|
||||
tgt.setMode(org.hl7.fhir.dstu3.model.Composition.SectionMode.fromCode(src.getMode()));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(org.hl7.fhir.dstu3.model.Composition.SectionMode.fromCode(src.getMode()));
|
||||
}
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
throw new FHIRException(e);
|
||||
}
|
||||
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setEmptyReason(VersionConvertor_10_30.convertCodeableConcept(src.getEmptyReason()));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasOrderedBy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEmptyReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -192,14 +284,30 @@ public class Composition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText()));
|
||||
tgt.setMode(src.getMode().toCode());
|
||||
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setEmptyReason(VersionConvertor_10_30.convertCodeableConcept(src.getEmptyReason()));
|
||||
for (org.hl7.fhir.dstu3.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(VersionConvertor_10_30.convertNarrative(src.getText()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(src.getMode().toCode());
|
||||
}
|
||||
if (src.hasOrderedBy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEmptyReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.ConceptMapGroupComponent;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -15,26 +14,54 @@ public class ConceptMap10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap tgt = new org.hl7.fhir.dstu2.model.ConceptMap();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
tgt.setTarget(VersionConvertor_10_30.convertType(src.getTarget()));
|
||||
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));
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -43,26 +70,50 @@ public class ConceptMap10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ConceptMap tgt = new org.hl7.fhir.dstu3.model.ConceptMap();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
tgt.setTarget(VersionConvertor_10_30.convertType(src.getTarget()));
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertType(src.getTarget()));
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent t : src.getElement()) {
|
||||
List<VersionConvertor_10_30.SourceElementComponentWrapper> ws = convertSourceElementComponent(t);
|
||||
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;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -85,8 +140,12 @@ public class ConceptMap10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -149,9 +208,15 @@ public class ConceptMap10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setProperty(src.getElement());
|
||||
tgt.setSystem(src.getCodeSystem());
|
||||
tgt.setCode(src.getCode());
|
||||
if (src.hasElement()) {
|
||||
tgt.setProperty(src.getElement());
|
||||
}
|
||||
if (src.hasCodeSystem()) {
|
||||
tgt.setSystem(src.getCodeSystem());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -160,9 +225,15 @@ public class ConceptMap10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setElement(src.getProperty());
|
||||
tgt.setCodeSystem(src.getSystem());
|
||||
tgt.setCode(src.getCode());
|
||||
if (src.hasProperty()) {
|
||||
tgt.setElement(src.getProperty());
|
||||
}
|
||||
if (src.hasSystem()) {
|
||||
tgt.setCodeSystem(src.getSystem());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -173,9 +244,13 @@ public class ConceptMap10_30 {
|
|||
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();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
tgt.addTarget(convertTargetElementComponent(t));
|
||||
res.add(new VersionConvertor_10_30.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem()));
|
||||
if (src.hasCodeSystem()) {
|
||||
res.add(new VersionConvertor_10_30.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem()));
|
||||
}
|
||||
}
|
||||
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();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCodeSystem(g.getSource());
|
||||
tgt.setCode(src.getCode());
|
||||
for (org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
for (org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g));
|
||||
}
|
||||
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();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCodeSystem(g.getTarget());
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
tgt.setComments(src.getComment());
|
||||
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.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasEquivalence()) {
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComments(src.getComment());
|
||||
}
|
||||
if (src.hasDependsOn()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -210,11 +299,21 @@ public class ConceptMap10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
tgt.setComment(src.getComments());
|
||||
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.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasEquivalence()) {
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
}
|
||||
if (src.hasComments()) {
|
||||
tgt.setComment(src.getComments());
|
||||
}
|
||||
if (src.hasDependsOn()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,26 +10,54 @@ public class Condition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Condition tgt = new org.hl7.fhir.dstu3.model.Condition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasAsserter()) {
|
||||
tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter()));
|
||||
}
|
||||
if (src.hasDateRecorded())
|
||||
tgt.setAssertedDate(src.getDateRecorded());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
try {
|
||||
tgt.setClinicalStatus(org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.fromCode(src.getClinicalStatus()));
|
||||
if (src.hasClinicalStatus()) {
|
||||
tgt.setClinicalStatus(org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.fromCode(src.getClinicalStatus()));
|
||||
}
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
throw new FHIRException(e);
|
||||
}
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity()));
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement()));
|
||||
tgt.setStage(convertConditionStageComponent(src.getStage()));
|
||||
for (org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasVerificationStatus()) {
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
}
|
||||
if (src.hasAbatement()) {
|
||||
tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement()));
|
||||
}
|
||||
if (src.hasStage()) {
|
||||
tgt.setStage(convertConditionStageComponent(src.getStage()));
|
||||
}
|
||||
if (src.hasEvidence()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -38,22 +66,50 @@ public class Condition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition tgt = new org.hl7.fhir.dstu2.model.Condition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasAsserter()) {
|
||||
tgt.setAsserter(VersionConvertor_10_30.convertReference(src.getAsserter()));
|
||||
}
|
||||
if (src.hasAssertedDate())
|
||||
tgt.setDateRecorded(src.getAssertedDate());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setClinicalStatus(src.getClinicalStatus().toCode());
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity()));
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement()));
|
||||
tgt.setStage(convertConditionStageComponent(src.getStage()));
|
||||
for (org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasClinicalStatus()) {
|
||||
tgt.setClinicalStatus(src.getClinicalStatus().toCode());
|
||||
}
|
||||
if (src.hasVerificationStatus()) {
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
tgt.setSeverity(VersionConvertor_10_30.convertCodeableConcept(src.getSeverity()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
}
|
||||
if (src.hasAbatement()) {
|
||||
tgt.setAbatement(VersionConvertor_10_30.convertType(src.getAbatement()));
|
||||
}
|
||||
if (src.hasStage()) {
|
||||
tgt.setStage(convertConditionStageComponent(src.getStage()));
|
||||
}
|
||||
if (src.hasEvidence()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -62,8 +118,12 @@ public class Condition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getCode()) tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(cc));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -72,8 +132,12 @@ public class Condition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.addCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -82,8 +146,12 @@ public class Condition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSummary(VersionConvertor_10_30.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasSummary()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -92,8 +160,12 @@ public class Condition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSummary(VersionConvertor_10_30.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasSummary()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,30 +41,66 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance tgt = new org.hl7.fhir.dstu2.model.Conformance();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
}
|
||||
if (src.hasSoftware()) {
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
}
|
||||
if (src.hasImplementation())
|
||||
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
|
||||
if (src.hasFhirVersion()) {
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
}
|
||||
if (src.hasAcceptUnknown()) {
|
||||
tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
|
||||
}
|
||||
if (src.hasFormat()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRest()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDocument()) {
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -73,29 +109,67 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
}
|
||||
if (src.hasSoftware()) {
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
}
|
||||
if (src.hasImplementation()) {
|
||||
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
|
||||
}
|
||||
if (src.hasFhirVersion()) {
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
}
|
||||
if (src.hasAcceptUnknown()) {
|
||||
tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
|
||||
}
|
||||
if (src.hasFormat()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRest()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDocument()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -104,8 +178,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -114,8 +192,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,9 +206,15 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -135,9 +223,15 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -172,8 +266,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -182,8 +280,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -192,10 +294,18 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t));
|
||||
if (src.hasEndpoint()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
}
|
||||
if (src.hasReliableCache()) {
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -204,10 +314,18 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t));
|
||||
if (src.hasEndpoint()) {
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
}
|
||||
if (src.hasReliableCache()) {
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent t : src.getEvent()) tgt.addEvent(convertConformanceMessagingEventComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -216,8 +334,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol()));
|
||||
tgt.setAddress(src.getAddress());
|
||||
if (src.hasProtocol()) {
|
||||
tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol()));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -226,8 +348,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol()));
|
||||
tgt.setAddress(src.getAddress());
|
||||
if (src.hasProtocol()) {
|
||||
tgt.setProtocol(VersionConvertor_10_30.convertCoding(src.getProtocol()));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -236,13 +362,27 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode()));
|
||||
tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
|
||||
tgt.setMode(convertConformanceEventMode(src.getMode()));
|
||||
tgt.setFocus(src.getFocus());
|
||||
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
|
||||
tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertConformanceEventMode(src.getMode()));
|
||||
}
|
||||
if (src.hasFocus()) {
|
||||
tgt.setFocus(src.getFocus());
|
||||
}
|
||||
if (src.hasRequest()) {
|
||||
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -251,13 +391,27 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode()));
|
||||
tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
|
||||
tgt.setMode(convertConformanceEventMode(src.getMode()));
|
||||
tgt.setFocus(src.getFocus());
|
||||
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
|
||||
tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCoding(src.getCode()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertConformanceEventMode(src.getMode()));
|
||||
}
|
||||
if (src.hasFocus()) {
|
||||
tgt.setFocus(src.getFocus());
|
||||
}
|
||||
if (src.hasRequest()) {
|
||||
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(VersionConvertor_10_30.convertReference(src.getResponse()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -266,16 +420,32 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertSystemInteractionComponent(t));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasSecurity()) {
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
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));
|
||||
}
|
||||
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);
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
if (src.hasSearchParam()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCompartment()) {
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -284,10 +454,18 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasSecurity()) {
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
|
||||
}
|
||||
boolean batch = false;
|
||||
boolean transaction = false;
|
||||
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);
|
||||
else
|
||||
tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.TRANSACTION : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.NOTSUPPORTED);
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
if (src.hasSearchParam()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCompartment()) {
|
||||
for (org.hl7.fhir.dstu3.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -313,8 +497,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -323,8 +511,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setDefinition(VersionConvertor_10_30.convertReference(src.getDefinition()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -333,19 +525,41 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfile())
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
if (src.hasInteraction()) {
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
|
||||
}
|
||||
if (src.hasVersioning()) {
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
}
|
||||
if (src.hasReadHistory()) {
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
}
|
||||
if (src.hasUpdateCreate()) {
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
}
|
||||
if (src.hasConditionalCreate()) {
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
}
|
||||
if (src.hasConditionalUpdate()) {
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
}
|
||||
if (src.hasConditionalDelete()) {
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
}
|
||||
if (src.hasSearchInclude()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasSearchParam()) {
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -354,18 +568,42 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasVersioning()) {
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
}
|
||||
if (src.hasReadHistory()) {
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
}
|
||||
if (src.hasUpdateCreate()) {
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
}
|
||||
if (src.hasConditionalCreate()) {
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
}
|
||||
if (src.hasConditionalUpdate()) {
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
}
|
||||
if (src.hasConditionalDelete()) {
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
}
|
||||
if (src.hasSearchInclude()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasSearchParam()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -374,10 +612,18 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -386,10 +632,18 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -398,8 +652,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setBlob(src.getBlob());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasBlob()) {
|
||||
tgt.setBlob(src.getBlob());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -408,8 +666,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setBlob(src.getBlob());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasBlob()) {
|
||||
tgt.setBlob(src.getBlob());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -418,10 +680,18 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCors(src.getCors());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
|
||||
if (src.hasCors()) {
|
||||
tgt.setCors(src.getCors());
|
||||
}
|
||||
if (src.hasService()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasCertificate()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -430,10 +700,18 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCors(src.getCors());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
|
||||
if (src.hasCors()) {
|
||||
tgt.setCors(src.getCors());
|
||||
}
|
||||
if (src.hasService()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasCertificate()) {
|
||||
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent t : src.getCertificate()) tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -442,9 +720,15 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasReleaseDate()) {
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -453,9 +737,15 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasReleaseDate()) {
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -550,8 +840,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -560,8 +854,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -626,8 +924,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -636,8 +938,12 @@ public class Conformance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,8 +11,12 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.AgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.AgentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getEntity()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasEntity()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -21,8 +25,12 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.ActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ActorComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasActor()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -31,7 +39,9 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -40,7 +50,9 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -49,24 +61,60 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract tgt = new org.hl7.fhir.dstu2.model.Contract();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
|
||||
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.getAuthority()) tgt.addAuthority(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDomain()) tgt.addDomain(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
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.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.AgentComponent t : src.getAgent()) tgt.addActor(convertAgentComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.SignatoryComponent t : src.getSigner()) tgt.addSigner(convertSignatoryComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertValuedItemComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.TermComponent t : src.getTerm()) tgt.addTerm(convertTermComponent(t));
|
||||
tgt.setBinding(VersionConvertor_10_30.convertType(src.getBinding()));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent t : src.getFriendly()) tgt.addFriendly(convertFriendlyLanguageComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent t : src.getLegal()) tgt.addLegal(convertLegalLanguageComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent t : src.getRule()) tgt.addRule(convertComputableLanguageComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasApplies()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAuthority()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAction()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAgent()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasValuedItem()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasBinding()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasLegal()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -75,24 +123,60 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract tgt = new org.hl7.fhir.dstu3.model.Contract();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
|
||||
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.getAuthority()) tgt.addAuthority(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDomain()) tgt.addDomain(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
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.getAction()) tgt.addAction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.ActorComponent t : src.getActor()) tgt.addAgent(convertAgentComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.SignatoryComponent t : src.getSigner()) tgt.addSigner(convertSignatoryComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertValuedItemComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.TermComponent t : src.getTerm()) tgt.addTerm(convertTermComponent(t));
|
||||
tgt.setBinding(VersionConvertor_10_30.convertType(src.getBinding()));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent t : src.getFriendly()) tgt.addFriendly(convertFriendlyLanguageComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent t : src.getLegal()) tgt.addLegal(convertLegalLanguageComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent t : src.getRule()) tgt.addRule(convertComputableLanguageComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasApplies()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAuthority()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAction()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActor()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasValuedItem()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasBinding()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasLegal()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -101,7 +185,9 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -110,7 +196,9 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -119,7 +207,9 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -128,7 +218,9 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -137,8 +229,12 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu3.model.Contract.SignatoryComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasParty()) {
|
||||
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
|
||||
}
|
||||
if (src.hasSignature())
|
||||
tgt.addSignature(new org.hl7.fhir.dstu3.model.Signature().setBlob(src.getSignature().getBytes()));
|
||||
return tgt;
|
||||
|
@ -149,9 +245,15 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu2.model.Contract.SignatoryComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
tgt.setParty(VersionConvertor_10_30.convertReference(src.getParty()));
|
||||
for (org.hl7.fhir.dstu3.model.Signature t : src.getSignature()) tgt.setSignature(Base64.encodeBase64String(t.getBlob()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasParty()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -160,8 +262,12 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.TermActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermActorComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasActor()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -170,8 +276,12 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.TermAgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermAgentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getEntity()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasEntity()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -180,17 +290,39 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setSubType(VersionConvertor_10_30.convertCodeableConcept(src.getSubType()));
|
||||
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.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.TermActorComponent t : src.getActor()) tgt.addAgent(convertTermAgentComponent(t));
|
||||
tgt.setText(src.getText());
|
||||
for (org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertTermValuedItemComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Contract.TermComponent t : src.getGroup()) tgt.addGroup(convertTermComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasApplies()) {
|
||||
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasSubType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActionReason()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasValuedItem()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -199,17 +331,39 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setSubType(VersionConvertor_10_30.convertCodeableConcept(src.getSubType()));
|
||||
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.getActionReason()) tgt.addActionReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.TermAgentComponent t : src.getAgent()) tgt.addActor(convertTermAgentComponent(t));
|
||||
tgt.setText(src.getText());
|
||||
for (org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent t : src.getValuedItem()) tgt.addValuedItem(convertTermValuedItemComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Contract.TermComponent t : src.getGroup()) tgt.addGroup(convertTermComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasApplies()) {
|
||||
tgt.setApplies(VersionConvertor_10_30.convertPeriod(src.getApplies()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasSubType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActionReason()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasValuedItem()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -218,14 +372,30 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
tgt.setFactor(src.getFactor());
|
||||
tgt.setPoints(src.getPoints());
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasEffectiveTime()) {
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasUnitPrice()) {
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
}
|
||||
if (src.hasFactor()) {
|
||||
tgt.setFactor(src.getFactor());
|
||||
}
|
||||
if (src.hasPoints()) {
|
||||
tgt.setPoints(src.getPoints());
|
||||
}
|
||||
if (src.hasNet()) {
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -234,14 +404,30 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
tgt.setFactor(src.getFactor());
|
||||
tgt.setPoints(src.getPoints());
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasEffectiveTime()) {
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasUnitPrice()) {
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
}
|
||||
if (src.hasFactor()) {
|
||||
tgt.setFactor(src.getFactor());
|
||||
}
|
||||
if (src.hasPoints()) {
|
||||
tgt.setPoints(src.getPoints());
|
||||
}
|
||||
if (src.hasNet()) {
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -250,14 +436,30 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
tgt.setFactor(src.getFactor());
|
||||
tgt.setPoints(src.getPoints());
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasEffectiveTime()) {
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasUnitPrice()) {
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
}
|
||||
if (src.hasFactor()) {
|
||||
tgt.setFactor(src.getFactor());
|
||||
}
|
||||
if (src.hasPoints()) {
|
||||
tgt.setPoints(src.getPoints());
|
||||
}
|
||||
if (src.hasNet()) {
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -266,14 +468,30 @@ public class Contract10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
tgt.setFactor(src.getFactor());
|
||||
tgt.setPoints(src.getPoints());
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_30.convertType(src.getEntity()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasEffectiveTime()) {
|
||||
tgt.setEffectiveTime(src.getEffectiveTime());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasUnitPrice()) {
|
||||
tgt.setUnitPrice(VersionConvertor_10_30.convertMoney(src.getUnitPrice()));
|
||||
}
|
||||
if (src.hasFactor()) {
|
||||
tgt.setFactor(src.getFactor());
|
||||
}
|
||||
if (src.hasPoints()) {
|
||||
tgt.setPoints(src.getPoints());
|
||||
}
|
||||
if (src.hasNet()) {
|
||||
tgt.setNet(VersionConvertor_10_30.convertMoney(src.getNet()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package org.hl7.fhir.convertors.conv10_30;
|
|||
|
||||
import org.hl7.fhir.convertors.VersionConvertor_10_30;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -13,24 +12,48 @@ public class DataElement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DataElement tgt = new org.hl7.fhir.dstu2.model.DataElement();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));
|
||||
if (src.hasName()) {
|
||||
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.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setStringency(convertDataElementStringency(src.getStringency()));
|
||||
for (org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasStringency()) {
|
||||
tgt.setStringency(convertDataElementStringency(src.getStringency()));
|
||||
}
|
||||
if (src.hasMapping()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -39,24 +62,44 @@ public class DataElement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DataElement tgt = new org.hl7.fhir.dstu3.model.DataElement();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));
|
||||
if (src.hasName()) {
|
||||
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.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setStringency(convertDataElementStringency(src.getStringency()));
|
||||
for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasStringency()) {
|
||||
tgt.setStringency(convertDataElementStringency(src.getStringency()));
|
||||
}
|
||||
if (src.hasMapping()) {
|
||||
for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
|
||||
}
|
||||
List<String> slicePaths = new ArrayList<String>();
|
||||
for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
|
||||
if (t.hasSlicing())
|
||||
|
@ -71,8 +114,12 @@ public class DataElement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -81,8 +128,12 @@ public class DataElement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -91,10 +142,18 @@ public class DataElement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
tgt.setUri(src.getUri());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setComment(src.getComments());
|
||||
if (src.hasIdentity()) {
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
}
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasComments()) {
|
||||
tgt.setComment(src.getComments());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -103,10 +162,18 @@ public class DataElement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
tgt.setUri(src.getUri());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setComments(src.getComment());
|
||||
if (src.hasIdentity()) {
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
}
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComments(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,17 +10,35 @@ public class DetectedIssue10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DetectedIssue tgt = new org.hl7.fhir.dstu2.model.DetectedIssue();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setDetail(src.getDetail());
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(src.getDetail());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setReference(src.getReference());
|
||||
for (org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasReference()) {
|
||||
tgt.setReference(src.getReference());
|
||||
}
|
||||
if (src.hasMitigation()) {
|
||||
for (org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -29,17 +47,35 @@ public class DetectedIssue10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DetectedIssue tgt = new org.hl7.fhir.dstu3.model.DetectedIssue();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setDetail(src.getDetail());
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(src.getDetail());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setReference(src.getReference());
|
||||
for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasReference()) {
|
||||
tgt.setReference(src.getReference());
|
||||
}
|
||||
if (src.hasMitigation()) {
|
||||
for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -48,10 +84,14 @@ public class DetectedIssue10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasAction()) {
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -60,10 +100,14 @@ public class DetectedIssue10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasAction()) {
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,23 +10,53 @@ public class Device10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Device tgt = new org.hl7.fhir.dstu2.model.Device();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasUdi())
|
||||
tgt.setUdi(src.getUdi().getDeviceIdentifier());
|
||||
tgt.setStatus(convertDeviceStatus(src.getStatus()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
tgt.setManufacturer(src.getManufacturer());
|
||||
tgt.setManufactureDate(src.getManufactureDate());
|
||||
tgt.setExpiry(src.getExpirationDate());
|
||||
tgt.setModel(src.getModel());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setUrl(src.getUrl());
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertDeviceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasLotNumber()) {
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
}
|
||||
if (src.hasManufacturer()) {
|
||||
tgt.setManufacturer(src.getManufacturer());
|
||||
}
|
||||
if (src.hasManufactureDate()) {
|
||||
tgt.setManufactureDate(src.getManufactureDate());
|
||||
}
|
||||
if (src.hasExpirationDate()) {
|
||||
tgt.setExpiry(src.getExpirationDate());
|
||||
}
|
||||
if (src.hasModel()) {
|
||||
tgt.setModel(src.getModel());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasOwner()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasNote()) {
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -35,22 +65,54 @@ public class Device10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Device tgt = new org.hl7.fhir.dstu3.model.Device();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setUdi((new org.hl7.fhir.dstu3.model.Device.DeviceUdiComponent()).setDeviceIdentifier(src.getUdi()));
|
||||
tgt.setStatus(convertDeviceStatus(src.getStatus()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
tgt.setManufacturer(src.getManufacturer());
|
||||
tgt.setManufactureDate(src.getManufactureDate());
|
||||
tgt.setExpirationDate(src.getExpiry());
|
||||
tgt.setModel(src.getModel());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setOwner(VersionConvertor_10_30.convertReference(src.getOwner()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setUrl(src.getUrl());
|
||||
for (org.hl7.fhir.dstu2.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertDeviceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasLotNumber()) {
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
}
|
||||
if (src.hasManufacturer()) {
|
||||
tgt.setManufacturer(src.getManufacturer());
|
||||
}
|
||||
if (src.hasManufactureDate()) {
|
||||
tgt.setManufactureDate(src.getManufactureDate());
|
||||
}
|
||||
if (src.hasExpiry()) {
|
||||
tgt.setExpirationDate(src.getExpiry());
|
||||
}
|
||||
if (src.hasModel()) {
|
||||
tgt.setModel(src.getModel());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasOwner()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasNote()) {
|
||||
for (org.hl7.fhir.dstu2.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,16 +10,36 @@ public class DeviceComponent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setLastSystemChange(src.getLastSystemChange());
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOperationalStatus()) tgt.addOperationalStatus(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup()));
|
||||
tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple()));
|
||||
for (org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent t : src.getProductionSpecification()) tgt.addProductionSpecification(convertDeviceComponentProductionSpecificationComponent(t));
|
||||
tgt.setLanguageCode(VersionConvertor_10_30.convertCodeableConcept(src.getLanguageCode()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasLastSystemChange()) {
|
||||
tgt.setLastSystemChange(src.getLastSystemChange());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasParent()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasParameterGroup()) {
|
||||
tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup()));
|
||||
}
|
||||
if (src.hasMeasurementPrinciple()) {
|
||||
tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple()));
|
||||
}
|
||||
if (src.hasProductionSpecification()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -28,16 +48,36 @@ public class DeviceComponent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DeviceComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setLastSystemChange(src.getLastSystemChange());
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getOperationalStatus()) tgt.addOperationalStatus(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup()));
|
||||
tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple()));
|
||||
for (org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent t : src.getProductionSpecification()) tgt.addProductionSpecification(convertDeviceComponentProductionSpecificationComponent(t));
|
||||
tgt.setLanguageCode(VersionConvertor_10_30.convertCodeableConcept(src.getLanguageCode()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasLastSystemChange()) {
|
||||
tgt.setLastSystemChange(src.getLastSystemChange());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasParent()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasParameterGroup()) {
|
||||
tgt.setParameterGroup(VersionConvertor_10_30.convertCodeableConcept(src.getParameterGroup()));
|
||||
}
|
||||
if (src.hasMeasurementPrinciple()) {
|
||||
tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple()));
|
||||
}
|
||||
if (src.hasProductionSpecification()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -46,9 +86,15 @@ public class DeviceComponent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType()));
|
||||
tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId()));
|
||||
tgt.setProductionSpec(src.getProductionSpec());
|
||||
if (src.hasSpecType()) {
|
||||
tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType()));
|
||||
}
|
||||
if (src.hasComponentId()) {
|
||||
tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId()));
|
||||
}
|
||||
if (src.hasProductionSpec()) {
|
||||
tgt.setProductionSpec(src.getProductionSpec());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -57,9 +103,15 @@ public class DeviceComponent10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType()));
|
||||
tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId()));
|
||||
tgt.setProductionSpec(src.getProductionSpec());
|
||||
if (src.hasSpecType()) {
|
||||
tgt.setSpecType(VersionConvertor_10_30.convertCodeableConcept(src.getSpecType()));
|
||||
}
|
||||
if (src.hasComponentId()) {
|
||||
tgt.setComponentId(VersionConvertor_10_30.convertIdentifier(src.getComponentId()));
|
||||
}
|
||||
if (src.hasProductionSpec()) {
|
||||
tgt.setProductionSpec(src.getProductionSpec());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,16 +10,36 @@ public class DeviceMetric10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceMetric tgt = new org.hl7.fhir.dstu2.model.DeviceMetric();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit()));
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
tgt.setMeasurementPeriod(VersionConvertor_10_30.convertTiming(src.getMeasurementPeriod()));
|
||||
for (org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasUnit()) {
|
||||
tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasParent()) {
|
||||
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
|
||||
}
|
||||
if (src.hasOperationalStatus()) {
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
}
|
||||
if (src.hasColor()) {
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
}
|
||||
if (src.hasMeasurementPeriod()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -28,16 +48,36 @@ public class DeviceMetric10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DeviceMetric tgt = new org.hl7.fhir.dstu3.model.DeviceMetric();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit()));
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
tgt.setMeasurementPeriod(VersionConvertor_10_30.convertTiming(src.getMeasurementPeriod()));
|
||||
for (org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasUnit()) {
|
||||
tgt.setUnit(VersionConvertor_10_30.convertCodeableConcept(src.getUnit()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasParent()) {
|
||||
tgt.setParent(VersionConvertor_10_30.convertReference(src.getParent()));
|
||||
}
|
||||
if (src.hasOperationalStatus()) {
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
}
|
||||
if (src.hasColor()) {
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
}
|
||||
if (src.hasMeasurementPeriod()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -46,9 +86,15 @@ public class DeviceMetric10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
tgt.setTime(src.getTime());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
}
|
||||
if (src.hasState()) {
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
}
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -57,9 +103,15 @@ public class DeviceMetric10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
tgt.setTime(src.getTime());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
}
|
||||
if (src.hasState()) {
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
}
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,15 +11,33 @@ public class DeviceUseStatement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertType(src.getBodySite()));
|
||||
tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed()));
|
||||
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getIndication()) tgt.addIndication(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (Annotation t : src.getNote()) tgt.addNotes(t.getText());
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming()));
|
||||
if (src.hasBodySite()) {
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertType(src.getBodySite()));
|
||||
}
|
||||
if (src.hasWhenUsed()) {
|
||||
tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed()));
|
||||
}
|
||||
if (src.hasDevice()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasIndication()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasRecordedOn()) {
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -30,14 +48,30 @@ public class DeviceUseStatement10_30 {
|
|||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
if (src.hasBodySiteCodeableConcept())
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySiteCodeableConcept()));
|
||||
tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed()));
|
||||
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getIndication()) tgt.addIndication(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes()) tgt.addNote().setText(t.getValue());
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming()));
|
||||
if (src.hasWhenUsed()) {
|
||||
tgt.setWhenUsed(VersionConvertor_10_30.convertPeriod(src.getWhenUsed()));
|
||||
}
|
||||
if (src.hasDevice()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasIndication()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasRecordedOn()) {
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_30.convertType(src.getTiming()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,22 +10,54 @@ public class DiagnosticReport10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DiagnosticReport tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
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.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_30.convertReference(t));
|
||||
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.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t));
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addCodedDiagnosis(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_30.convertAttachment(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasBasedOn()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasResult()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasImage()) {
|
||||
for (org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t));
|
||||
}
|
||||
if (src.hasConclusion()) {
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
}
|
||||
if (src.hasCodedDiagnosis()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -34,22 +66,54 @@ public class DiagnosticReport10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DiagnosticReport tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
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.getSpecimen()) tgt.addSpecimen(VersionConvertor_10_30.convertReference(t));
|
||||
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.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t));
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addCodedDiagnosis(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_30.convertAttachment(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasRequest()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasResult()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasImage()) {
|
||||
for (org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addImage(convertDiagnosticReportImageComponent(t));
|
||||
}
|
||||
if (src.hasConclusion()) {
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
}
|
||||
if (src.hasCodedDiagnosis()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -58,8 +122,12 @@ public class DiagnosticReport10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink()));
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -68,8 +136,12 @@ public class DiagnosticReport10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink()));
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
tgt.setLink(VersionConvertor_10_30.convertReference(src.getLink()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,18 +10,42 @@ public class DocumentManifest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentManifest tgt = new org.hl7.fhir.dstu2.model.DocumentManifest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setSource(src.getSource());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent t : src.getContent()) tgt.addContent(convertDocumentManifestContentComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentManifestRelatedComponent(t));
|
||||
if (src.hasMasterIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(src.getSource());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasContent()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -30,18 +54,42 @@ public class DocumentManifest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentManifest tgt = new org.hl7.fhir.dstu3.model.DocumentManifest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setSource(src.getSource());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent t : src.getContent()) tgt.addContent(convertDocumentManifestContentComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentManifestRelatedComponent(t));
|
||||
if (src.hasMasterIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(src.getSource());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasContent()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -50,7 +98,9 @@ public class DocumentManifest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setP(VersionConvertor_10_30.convertType(src.getP()));
|
||||
if (src.hasP()) {
|
||||
tgt.setP(VersionConvertor_10_30.convertType(src.getP()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -59,7 +109,9 @@ public class DocumentManifest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setP(VersionConvertor_10_30.convertType(src.getP()));
|
||||
if (src.hasP()) {
|
||||
tgt.setP(VersionConvertor_10_30.convertType(src.getP()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -68,8 +120,12 @@ public class DocumentManifest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasRef()) {
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -78,8 +134,12 @@ public class DocumentManifest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasRef()) {
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,23 +45,57 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference tgt = new org.hl7.fhir.dstu3.model.DocumentReference();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
|
||||
tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator()));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setIndexed(src.getIndexed());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
if (src.hasMasterIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCustodian()) {
|
||||
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
|
||||
}
|
||||
if (src.hasAuthenticator()) {
|
||||
tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator()));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasIndexed()) {
|
||||
tgt.setIndexed(src.getIndexed());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDocStatus()) {
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
}
|
||||
if (src.hasRelatesTo()) {
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasSecurityLabel()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -70,23 +104,57 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference tgt = new org.hl7.fhir.dstu2.model.DocumentReference();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setMasterIdentifier(VersionConvertor_10_30.convertIdentifier(src.getMasterIdentifier()));
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setClass_(VersionConvertor_10_30.convertCodeableConcept(src.getClass_()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
|
||||
tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator()));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setIndexed(src.getIndexed());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
if (src.hasMasterIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCustodian()) {
|
||||
tgt.setCustodian(VersionConvertor_10_30.convertReference(src.getCustodian()));
|
||||
}
|
||||
if (src.hasAuthenticator()) {
|
||||
tgt.setAuthenticator(VersionConvertor_10_30.convertReference(src.getAuthenticator()));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasIndexed()) {
|
||||
tgt.setIndexed(src.getIndexed());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertDocumentReferenceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDocStatus()) {
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
}
|
||||
if (src.hasRelatesTo()) {
|
||||
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasSecurityLabel()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -95,8 +163,12 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAttachment(VersionConvertor_10_30.convertAttachment(src.getAttachment()));
|
||||
tgt.addFormat(VersionConvertor_10_30.convertCoding(src.getFormat()));
|
||||
if (src.hasAttachment()) {
|
||||
tgt.setAttachment(VersionConvertor_10_30.convertAttachment(src.getAttachment()));
|
||||
}
|
||||
if (src.hasFormat()) {
|
||||
tgt.addFormat(VersionConvertor_10_30.convertCoding(src.getFormat()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -105,8 +177,12 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAttachment(VersionConvertor_10_30.convertAttachment(src.getAttachment()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(VersionConvertor_10_30.convertCoding(t));
|
||||
if (src.hasAttachment()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -115,13 +191,27 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType()));
|
||||
tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting()));
|
||||
tgt.setSourcePatientInfo(VersionConvertor_10_30.convertReference(src.getSourcePatientInfo()));
|
||||
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
|
||||
if (src.hasEncounter()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasFacilityType()) {
|
||||
tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType()));
|
||||
}
|
||||
if (src.hasPracticeSetting()) {
|
||||
tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting()));
|
||||
}
|
||||
if (src.hasSourcePatientInfo()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -130,13 +220,27 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType()));
|
||||
tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting()));
|
||||
tgt.setSourcePatientInfo(VersionConvertor_10_30.convertReference(src.getSourcePatientInfo()));
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
|
||||
if (src.hasEncounter()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasFacilityType()) {
|
||||
tgt.setFacilityType(VersionConvertor_10_30.convertCodeableConcept(src.getFacilityType()));
|
||||
}
|
||||
if (src.hasPracticeSetting()) {
|
||||
tgt.setPracticeSetting(VersionConvertor_10_30.convertCodeableConcept(src.getPracticeSetting()));
|
||||
}
|
||||
if (src.hasSourcePatientInfo()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -145,8 +249,12 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasRef()) {
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -155,8 +263,12 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasRef()) {
|
||||
tgt.setRef(VersionConvertor_10_30.convertReference(src.getRef()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -165,8 +277,12 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -175,8 +291,12 @@ public class DocumentReference10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,23 +10,57 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Encounter tgt = new org.hl7.fhir.dstu3.model.Encounter();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertEncounterState(src.getStatus()));
|
||||
tgt.setClass_(convertEncounterClass(src.getClass_()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
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.getIncomingReferral()) tgt.addIncomingReferral(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
|
||||
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setLength(VersionConvertor_10_30.convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
for (org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
|
||||
tgt.setServiceProvider(VersionConvertor_10_30.convertReference(src.getServiceProvider()));
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasIncomingReferral()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAppointment()) {
|
||||
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasLength()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasHospitalization()) {
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -35,23 +69,57 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter tgt = new org.hl7.fhir.dstu2.model.Encounter();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertEncounterState(src.getStatus()));
|
||||
tgt.setClass_(convertEncounterClass(src.getClass_()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
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.getIncomingReferral()) tgt.addIncomingReferral(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
|
||||
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setLength(VersionConvertor_10_30.convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
for (org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
|
||||
tgt.setServiceProvider(VersionConvertor_10_30.convertReference(src.getServiceProvider()));
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(VersionConvertor_10_30.convertCodeableConcept(src.getPriority()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasIncomingReferral()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAppointment()) {
|
||||
tgt.setAppointment(VersionConvertor_10_30.convertReference(src.getAppointment()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasLength()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasHospitalization()) {
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -107,15 +175,33 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin()));
|
||||
tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource()));
|
||||
tgt.setReAdmission(VersionConvertor_10_30.convertCodeableConcept(src.getReAdmission()));
|
||||
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.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
if (src.hasPreAdmissionIdentifier()) {
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
}
|
||||
if (src.hasOrigin()) {
|
||||
tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin()));
|
||||
}
|
||||
if (src.hasAdmitSource()) {
|
||||
tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource()));
|
||||
}
|
||||
if (src.hasReAdmission()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSpecialCourtesy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
}
|
||||
if (src.hasDischargeDisposition()) {
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,15 +210,33 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin()));
|
||||
tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource()));
|
||||
tgt.setReAdmission(VersionConvertor_10_30.convertCodeableConcept(src.getReAdmission()));
|
||||
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.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
if (src.hasPreAdmissionIdentifier()) {
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
}
|
||||
if (src.hasOrigin()) {
|
||||
tgt.setOrigin(VersionConvertor_10_30.convertReference(src.getOrigin()));
|
||||
}
|
||||
if (src.hasAdmitSource()) {
|
||||
tgt.setAdmitSource(VersionConvertor_10_30.convertCodeableConcept(src.getAdmitSource()));
|
||||
}
|
||||
if (src.hasReAdmission()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSpecialCourtesy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
}
|
||||
if (src.hasDischargeDisposition()) {
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_30.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -141,9 +245,15 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -152,9 +262,15 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -197,9 +313,15 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasIndividual()) {
|
||||
tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -208,9 +330,15 @@ public class Encounter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasIndividual()) {
|
||||
tgt.setIndividual(VersionConvertor_10_30.convertReference(src.getIndividual()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,12 +10,24 @@ public class EnrollmentRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu3.model.EnrollmentRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setProvider(VersionConvertor_10_30.convertReference(src.getProvider()));
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasProvider()) {
|
||||
tgt.setProvider(VersionConvertor_10_30.convertReference(src.getProvider()));
|
||||
}
|
||||
if (src.hasOrganization()) {
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCoverage()) {
|
||||
tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -24,9 +36,15 @@ public class EnrollmentRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu2.model.EnrollmentRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasCoverage()) {
|
||||
tgt.setCoverage(VersionConvertor_10_30.convertReference(src.getCoverage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,13 +10,27 @@ public class EnrollmentResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu3.model.EnrollmentResponse();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getRequest()));
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
tgt.setRequestProvider(VersionConvertor_10_30.convertReference(src.getRequestProvider()));
|
||||
tgt.setRequestOrganization(VersionConvertor_10_30.convertReference(src.getRequestOrganization()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDisposition()) {
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasOrganization()) {
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
}
|
||||
if (src.hasRequestProvider()) {
|
||||
tgt.setRequestProvider(VersionConvertor_10_30.convertReference(src.getRequestProvider()));
|
||||
}
|
||||
if (src.hasRequestOrganization()) {
|
||||
tgt.setRequestOrganization(VersionConvertor_10_30.convertReference(src.getRequestOrganization()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -25,9 +39,15 @@ public class EnrollmentResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu2.model.EnrollmentResponse();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
tgt.setCreated(src.getCreated());
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasDisposition()) {
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,15 +10,33 @@ public class EpisodeOfCare10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
for (org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatusHistory()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCareManager()) {
|
||||
tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -27,15 +45,33 @@ public class EpisodeOfCare10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
for (org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatusHistory()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCareManager()) {
|
||||
tgt.setCareManager(VersionConvertor_10_30.convertReference(src.getCareManager()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -86,8 +122,12 @@ public class EpisodeOfCare10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -96,8 +136,12 @@ public class EpisodeOfCare10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,18 +44,38 @@ public class FamilyMemberHistory10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn()));
|
||||
tgt.setAge(VersionConvertor_10_30.convertType(src.getAge()));
|
||||
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRelationship()) {
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasBorn()) {
|
||||
tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn()));
|
||||
}
|
||||
if (src.hasAge()) {
|
||||
tgt.setAge(VersionConvertor_10_30.convertType(src.getAge()));
|
||||
}
|
||||
if (src.hasDeceased()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -64,18 +84,38 @@ public class FamilyMemberHistory10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn()));
|
||||
tgt.setAge(VersionConvertor_10_30.convertType(src.getAge()));
|
||||
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRelationship()) {
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasBorn()) {
|
||||
tgt.setBorn(VersionConvertor_10_30.convertType(src.getBorn()));
|
||||
}
|
||||
if (src.hasAge()) {
|
||||
tgt.setAge(VersionConvertor_10_30.convertType(src.getAge()));
|
||||
}
|
||||
if (src.hasDeceased()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -84,9 +124,15 @@ public class FamilyMemberHistory10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -95,9 +141,15 @@ public class FamilyMemberHistory10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_30.convertType(src.getOnset()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,14 +10,30 @@ public class Flag10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Flag tgt = new org.hl7.fhir.dstu3.model.Flag();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class Flag10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Flag tgt = new org.hl7.fhir.dstu2.model.Flag();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,14 +10,30 @@ public class Group10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group tgt = new org.hl7.fhir.dstu2.model.Group();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setType(convertGroupType(src.getType()));
|
||||
tgt.setActual(src.getActual());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
for (org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasActual()) {
|
||||
tgt.setActual(src.getActual());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
}
|
||||
if (src.hasCharacteristic()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class Group10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Group tgt = new org.hl7.fhir.dstu3.model.Group();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setType(convertGroupType(src.getType()));
|
||||
tgt.setActual(src.getActual());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
for (org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasActual()) {
|
||||
tgt.setActual(src.getActual());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
}
|
||||
if (src.hasCharacteristic()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -42,10 +74,18 @@ public class Group10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setExclude(src.getExclude());
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasExclude()) {
|
||||
tgt.setExclude(src.getExclude());
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,10 +94,18 @@ public class Group10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setExclude(src.getExclude());
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasExclude()) {
|
||||
tgt.setExclude(src.getExclude());
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,9 +114,15 @@ public class Group10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setInactive(src.getInactive());
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasInactive()) {
|
||||
tgt.setInactive(src.getInactive());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -77,9 +131,15 @@ public class Group10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupMemberComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setInactive(src.getInactive());
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_30.convertReference(src.getEntity()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasInactive()) {
|
||||
tgt.setInactive(src.getInactive());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,29 +56,65 @@ public class HealthcareService10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService tgt = new org.hl7.fhir.dstu2.model.HealthcareService();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setProvidedBy(VersionConvertor_10_30.convertReference(src.getProvidedBy()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSpecialty()) {
|
||||
if (!tgt.hasServiceType())
|
||||
tgt.addServiceType();
|
||||
tgt.getServiceType().get(0).addSpecialty(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility()));
|
||||
tgt.setEligibilityNote(src.getEligibilityNote());
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getProgramName()) tgt.addProgramName(t.getValue());
|
||||
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.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
if (src.hasLocation()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasExtraDetails()) {
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
}
|
||||
if (src.hasPhoto()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCoverageArea()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEligibility()) {
|
||||
tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility()));
|
||||
}
|
||||
if (src.hasEligibilityNote()) {
|
||||
tgt.setEligibilityNote(src.getEligibilityNote());
|
||||
}
|
||||
if (src.hasProgramName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReferralMethod()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasAppointmentRequired()) {
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
}
|
||||
if (src.hasAvailableTime()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAvailabilityExceptions()) {
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -87,27 +123,63 @@ public class HealthcareService10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.HealthcareService tgt = new org.hl7.fhir.dstu3.model.HealthcareService();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setProvidedBy(VersionConvertor_10_30.convertReference(src.getProvidedBy()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
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));
|
||||
}
|
||||
tgt.addLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility()));
|
||||
tgt.setEligibilityNote(src.getEligibilityNote());
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getProgramName()) tgt.addProgramName(t.getValue());
|
||||
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.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
if (src.hasLocation()) {
|
||||
tgt.addLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasExtraDetails()) {
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
}
|
||||
if (src.hasPhoto()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCoverageArea()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEligibility()) {
|
||||
tgt.setEligibility(VersionConvertor_10_30.convertCodeableConcept(src.getEligibility()));
|
||||
}
|
||||
if (src.hasEligibilityNote()) {
|
||||
tgt.setEligibilityNote(src.getEligibilityNote());
|
||||
}
|
||||
if (src.hasProgramName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReferralMethod()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasAppointmentRequired()) {
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
}
|
||||
if (src.hasAvailableTime()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAvailabilityExceptions()) {
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -116,10 +188,18 @@ public class HealthcareService10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
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())));
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
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())));
|
||||
}
|
||||
if (src.hasAllDay()) {
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
}
|
||||
if (src.hasAvailableStartTime()) {
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
}
|
||||
if (src.hasAvailableEndTime()) {
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -128,10 +208,18 @@ public class HealthcareService10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
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())));
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
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())));
|
||||
}
|
||||
if (src.hasAllDay()) {
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
}
|
||||
if (src.hasAvailableStartTime()) {
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
}
|
||||
if (src.hasAvailableEndTime()) {
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -140,8 +228,12 @@ public class HealthcareService10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring()));
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDuring()) {
|
||||
tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -150,8 +242,12 @@ public class HealthcareService10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring()));
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDuring()) {
|
||||
tgt.setDuring(VersionConvertor_10_30.convertPeriod(src.getDuring()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,20 +10,48 @@ public class ImagingStudy10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImagingStudy tgt = new org.hl7.fhir.dstu3.model.ImagingStudy();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUid(src.getUid());
|
||||
tgt.setAccession(VersionConvertor_10_30.convertIdentifier(src.getAccession()));
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getModalityList()) tgt.addModalityList(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setStarted(src.getStarted());
|
||||
tgt.setReferrer(VersionConvertor_10_30.convertReference(src.getReferrer()));
|
||||
tgt.addInterpreter(VersionConvertor_10_30.convertReference(src.getInterpreter()));
|
||||
tgt.setNumberOfSeries(src.getNumberOfSeries());
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getProcedure()) tgt.addProcedureReference(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t));
|
||||
if (src.hasUid()) {
|
||||
tgt.setUid(src.getUid());
|
||||
}
|
||||
if (src.hasAccession()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAvailability()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasStarted()) {
|
||||
tgt.setStarted(src.getStarted());
|
||||
}
|
||||
if (src.hasReferrer()) {
|
||||
tgt.setReferrer(VersionConvertor_10_30.convertReference(src.getReferrer()));
|
||||
}
|
||||
if (src.hasInterpreter()) {
|
||||
tgt.addInterpreter(VersionConvertor_10_30.convertReference(src.getInterpreter()));
|
||||
}
|
||||
if (src.hasNumberOfSeries()) {
|
||||
tgt.setNumberOfSeries(src.getNumberOfSeries());
|
||||
}
|
||||
if (src.hasNumberOfInstances()) {
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
}
|
||||
if (src.hasProcedure()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getProcedure()) tgt.addProcedureReference(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasSeries()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -32,20 +60,48 @@ public class ImagingStudy10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImagingStudy tgt = new org.hl7.fhir.dstu2.model.ImagingStudy();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUid(src.getUid());
|
||||
tgt.setAccession(VersionConvertor_10_30.convertIdentifier(src.getAccession()));
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getModalityList()) tgt.addModalityList(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setStarted(src.getStarted());
|
||||
tgt.setReferrer(VersionConvertor_10_30.convertReference(src.getReferrer()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getInterpreter()) tgt.setInterpreter(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setNumberOfSeries(src.getNumberOfSeries());
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getProcedureReference()) tgt.addProcedure(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t));
|
||||
if (src.hasUid()) {
|
||||
tgt.setUid(src.getUid());
|
||||
}
|
||||
if (src.hasAccession()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAvailability()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasStarted()) {
|
||||
tgt.setStarted(src.getStarted());
|
||||
}
|
||||
if (src.hasReferrer()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasNumberOfSeries()) {
|
||||
tgt.setNumberOfSeries(src.getNumberOfSeries());
|
||||
}
|
||||
if (src.hasNumberOfInstances()) {
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
}
|
||||
if (src.hasProcedureReference()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getProcedureReference()) tgt.addProcedure(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasSeries()) {
|
||||
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) tgt.addSeries(convertImagingStudySeriesComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,16 +110,36 @@ public class ImagingStudy10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setUid(src.getUid());
|
||||
tgt.setNumber(src.getNumber());
|
||||
tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite()));
|
||||
tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality()));
|
||||
tgt.setStarted(src.getStarted());
|
||||
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
|
||||
if (src.hasUid()) {
|
||||
tgt.setUid(src.getUid());
|
||||
}
|
||||
if (src.hasNumber()) {
|
||||
tgt.setNumber(src.getNumber());
|
||||
}
|
||||
if (src.hasModality()) {
|
||||
tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasNumberOfInstances()) {
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
}
|
||||
if (src.hasAvailability()) {
|
||||
tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
|
||||
}
|
||||
if (src.hasBodySite()) {
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite()));
|
||||
}
|
||||
if (src.hasLaterality()) {
|
||||
tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality()));
|
||||
}
|
||||
if (src.hasStarted()) {
|
||||
tgt.setStarted(src.getStarted());
|
||||
}
|
||||
if (src.hasInstance()) {
|
||||
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -72,16 +148,36 @@ public class ImagingStudy10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setUid(src.getUid());
|
||||
tgt.setNumber(src.getNumber());
|
||||
tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite()));
|
||||
tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality()));
|
||||
tgt.setStarted(src.getStarted());
|
||||
for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
|
||||
if (src.hasUid()) {
|
||||
tgt.setUid(src.getUid());
|
||||
}
|
||||
if (src.hasNumber()) {
|
||||
tgt.setNumber(src.getNumber());
|
||||
}
|
||||
if (src.hasModality()) {
|
||||
tgt.setModality(VersionConvertor_10_30.convertCoding(src.getModality()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasNumberOfInstances()) {
|
||||
tgt.setNumberOfInstances(src.getNumberOfInstances());
|
||||
}
|
||||
if (src.hasAvailability()) {
|
||||
tgt.setAvailability(convertInstanceAvailability(src.getAvailability()));
|
||||
}
|
||||
if (src.hasBodySite()) {
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCoding(src.getBodySite()));
|
||||
}
|
||||
if (src.hasLaterality()) {
|
||||
tgt.setLaterality(VersionConvertor_10_30.convertCoding(src.getLaterality()));
|
||||
}
|
||||
if (src.hasStarted()) {
|
||||
tgt.setStarted(src.getStarted());
|
||||
}
|
||||
if (src.hasInstance()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -90,10 +186,18 @@ public class ImagingStudy10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setUid(src.getUid());
|
||||
tgt.setNumber(src.getNumber());
|
||||
tgt.setSopClass(src.getSopClass());
|
||||
tgt.setTitle(src.getTitle());
|
||||
if (src.hasUid()) {
|
||||
tgt.setUid(src.getUid());
|
||||
}
|
||||
if (src.hasNumber()) {
|
||||
tgt.setNumber(src.getNumber());
|
||||
}
|
||||
if (src.hasSopClass()) {
|
||||
tgt.setSopClass(src.getSopClass());
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -102,10 +206,18 @@ public class ImagingStudy10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setUid(src.getUid());
|
||||
tgt.setNumber(src.getNumber());
|
||||
tgt.setSopClass(src.getSopClass());
|
||||
tgt.setTitle(src.getTitle());
|
||||
if (src.hasUid()) {
|
||||
tgt.setUid(src.getUid());
|
||||
}
|
||||
if (src.hasNumber()) {
|
||||
tgt.setNumber(src.getNumber());
|
||||
}
|
||||
if (src.hasSopClass()) {
|
||||
tgt.setSopClass(src.getSopClass());
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.Immunization.ImmunizationPractitionerComponent;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Immunization10_30 {
|
||||
|
@ -14,28 +13,68 @@ public class Immunization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Immunization tgt = new org.hl7.fhir.dstu2.model.Immunization();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(src.getStatus().toCode());
|
||||
if (src.hasIdentifier()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setWasNotGiven(src.getNotGiven());
|
||||
tgt.setReported(!src.getPrimarySource());
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(getPerformer(src.getPractitioner())));
|
||||
tgt.setRequester(VersionConvertor_10_30.convertReference(getRequester(src.getPractitioner())));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
tgt.setExpirationDate(src.getExpirationDate());
|
||||
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite()));
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
tgt.setDoseQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getDoseQuantity()));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
|
||||
tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation()));
|
||||
for (org.hl7.fhir.dstu3.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) tgt.addReaction(convertImmunizationReactionComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent t : src.getVaccinationProtocol()) tgt.addVaccinationProtocol(convertImmunizationVaccinationProtocolComponent(t));
|
||||
if (src.hasVaccineCode()) {
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasNotGiven()) {
|
||||
tgt.setWasNotGiven(src.getNotGiven());
|
||||
}
|
||||
if (src.hasPrimarySource()) {
|
||||
tgt.setReported(!src.getPrimarySource());
|
||||
}
|
||||
if (src.hasPractitioner()) {
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(getPerformer(src.getPractitioner())));
|
||||
}
|
||||
if (src.hasPractitioner()) {
|
||||
tgt.setRequester(VersionConvertor_10_30.convertReference(getRequester(src.getPractitioner())));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasManufacturer()) {
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasLotNumber()) {
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
}
|
||||
if (src.hasExpirationDate()) {
|
||||
tgt.setExpirationDate(src.getExpirationDate());
|
||||
}
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite()));
|
||||
}
|
||||
if (src.hasRoute()) {
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
}
|
||||
if (src.hasDoseQuantity()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasExplanation()) {
|
||||
tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation()));
|
||||
}
|
||||
if (src.hasReaction()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -44,34 +83,70 @@ public class Immunization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Immunization tgt = new org.hl7.fhir.dstu3.model.Immunization();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
try {
|
||||
tgt.setStatus(org.hl7.fhir.dstu3.model.Immunization.ImmunizationStatus.fromCode(src.getStatus()));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(org.hl7.fhir.dstu3.model.Immunization.ImmunizationStatus.fromCode(src.getStatus()));
|
||||
}
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
throw new FHIRException(e);
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setNotGiven(src.getWasNotGiven());
|
||||
tgt.setPrimarySource(!src.getReported());
|
||||
if (src.hasVaccineCode()) {
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasWasNotGiven()) {
|
||||
tgt.setNotGiven(src.getWasNotGiven());
|
||||
}
|
||||
if (src.hasReported()) {
|
||||
tgt.setPrimarySource(!src.getReported());
|
||||
}
|
||||
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")));
|
||||
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.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
tgt.setExpirationDate(src.getExpirationDate());
|
||||
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite()));
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
tgt.setDoseQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getDoseQuantity()));
|
||||
for (org.hl7.fhir.dstu2.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_10_30.convertAnnotation(t));
|
||||
tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation()));
|
||||
for (org.hl7.fhir.dstu2.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) tgt.addReaction(convertImmunizationReactionComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent t : src.getVaccinationProtocol()) tgt.addVaccinationProtocol(convertImmunizationVaccinationProtocolComponent(t));
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasManufacturer()) {
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasLotNumber()) {
|
||||
tgt.setLotNumber(src.getLotNumber());
|
||||
}
|
||||
if (src.hasExpirationDate()) {
|
||||
tgt.setExpirationDate(src.getExpirationDate());
|
||||
}
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSite()));
|
||||
}
|
||||
if (src.hasRoute()) {
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
}
|
||||
if (src.hasDoseQuantity()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasExplanation()) {
|
||||
tgt.setExplanation(convertImmunizationExplanationComponent(src.getExplanation()));
|
||||
}
|
||||
if (src.hasReaction()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -80,8 +155,12 @@ public class Immunization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
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.getReasonNotGiven()) tgt.addReasonNotGiven(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -90,8 +169,12 @@ public class Immunization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
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.getReasonNotGiven()) tgt.addReasonNotGiven(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -102,8 +185,12 @@ public class Immunization10_30 {
|
|||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail()));
|
||||
tgt.setReported(src.getReported());
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail()));
|
||||
}
|
||||
if (src.hasReported()) {
|
||||
tgt.setReported(src.getReported());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -114,8 +201,12 @@ public class Immunization10_30 {
|
|||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail()));
|
||||
tgt.setReported(src.getReported());
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(VersionConvertor_10_30.convertReference(src.getDetail()));
|
||||
}
|
||||
if (src.hasReported()) {
|
||||
tgt.setReported(src.getReported());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,14 +215,30 @@ public class Immunization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
tgt.setSeries(src.getSeries());
|
||||
tgt.setSeriesDoses(src.getSeriesDoses());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDoseStatus(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatus()));
|
||||
tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason()));
|
||||
if (src.hasDoseSequence()) {
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAuthority()) {
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
}
|
||||
if (src.hasSeries()) {
|
||||
tgt.setSeries(src.getSeries());
|
||||
}
|
||||
if (src.hasSeriesDoses()) {
|
||||
tgt.setSeriesDoses(src.getSeriesDoses());
|
||||
}
|
||||
if (src.hasTargetDisease()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDoseStatusReason()) {
|
||||
tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -140,14 +247,30 @@ public class Immunization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
tgt.setSeries(src.getSeries());
|
||||
tgt.setSeriesDoses(src.getSeriesDoses());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getTargetDisease()) tgt.addTargetDisease(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setDoseStatus(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatus()));
|
||||
tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason()));
|
||||
if (src.hasDoseSequence()) {
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAuthority()) {
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
}
|
||||
if (src.hasSeries()) {
|
||||
tgt.setSeries(src.getSeries());
|
||||
}
|
||||
if (src.hasSeriesDoses()) {
|
||||
tgt.setSeriesDoses(src.getSeriesDoses());
|
||||
}
|
||||
if (src.hasTargetDisease()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDoseStatusReason()) {
|
||||
tgt.setDoseStatusReason(VersionConvertor_10_30.convertCodeableConcept(src.getDoseStatusReason()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,15 @@ public class ImmunizationRecommendation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImmunizationRecommendation tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
for (org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRecommendation()) {
|
||||
for (org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -21,9 +27,15 @@ public class ImmunizationRecommendation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImmunizationRecommendation tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
for (org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRecommendation()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent t : src.getRecommendation()) tgt.addRecommendation(convertImmunizationRecommendationRecommendationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -34,13 +46,27 @@ public class ImmunizationRecommendation10_30 {
|
|||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
tgt.setDoseNumber(src.getDoseNumber());
|
||||
tgt.setForecastStatus(VersionConvertor_10_30.convertCodeableConcept(src.getForecastStatus()));
|
||||
for (org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent t : src.getDateCriterion()) tgt.addDateCriterion(convertImmunizationRecommendationRecommendationDateCriterionComponent(t));
|
||||
tgt.setProtocol(convertImmunizationRecommendationRecommendationProtocolComponent(src.getProtocol()));
|
||||
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.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasVaccineCode()) {
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
}
|
||||
if (src.hasDoseNumber()) {
|
||||
tgt.setDoseNumber(src.getDoseNumber());
|
||||
}
|
||||
if (src.hasForecastStatus()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProtocol()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSupportingPatientInformation()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -51,13 +77,27 @@ public class ImmunizationRecommendation10_30 {
|
|||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
tgt.setDoseNumber(src.getDoseNumber());
|
||||
tgt.setForecastStatus(VersionConvertor_10_30.convertCodeableConcept(src.getForecastStatus()));
|
||||
for (org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent t : src.getDateCriterion()) tgt.addDateCriterion(convertImmunizationRecommendationRecommendationDateCriterionComponent(t));
|
||||
tgt.setProtocol(convertImmunizationRecommendationRecommendationProtocolComponent(src.getProtocol()));
|
||||
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.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasVaccineCode()) {
|
||||
tgt.setVaccineCode(VersionConvertor_10_30.convertCodeableConcept(src.getVaccineCode()));
|
||||
}
|
||||
if (src.hasDoseNumber()) {
|
||||
tgt.setDoseNumber(src.getDoseNumber());
|
||||
}
|
||||
if (src.hasForecastStatus()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProtocol()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSupportingPatientInformation()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingPatientInformation()) tgt.addSupportingPatientInformation(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,8 +106,12 @@ public class ImmunizationRecommendation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -76,8 +120,12 @@ public class ImmunizationRecommendation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -86,10 +134,18 @@ public class ImmunizationRecommendation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
tgt.setSeries(src.getSeries());
|
||||
if (src.hasDoseSequence()) {
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAuthority()) {
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
}
|
||||
if (src.hasSeries()) {
|
||||
tgt.setSeries(src.getSeries());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -98,10 +154,18 @@ public class ImmunizationRecommendation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
tgt.setSeries(src.getSeries());
|
||||
if (src.hasDoseSequence()) {
|
||||
tgt.setDoseSequence(src.getDoseSequence());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAuthority()) {
|
||||
tgt.setAuthority(VersionConvertor_10_30.convertReference(src.getAuthority()));
|
||||
}
|
||||
if (src.hasSeries()) {
|
||||
tgt.setSeries(src.getSeries());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,28 +86,56 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependency(convertImplementationGuideDependencyComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.addPackage(convertImplementationGuidePackageComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getBinary()) tgt.addBinary(t.getValue());
|
||||
tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasFhirVersion()) {
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
}
|
||||
if (src.hasDependency()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasGlobal()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasPage()) {
|
||||
tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -116,27 +144,57 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependency(convertImplementationGuideDependencyComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage()) tgt.addPackage(convertImplementationGuidePackageComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.UriType t : src.getBinary()) tgt.addBinary(t.getValue());
|
||||
tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasFhirVersion()) {
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
}
|
||||
if (src.hasDependency()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasGlobal()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasPage()) {
|
||||
tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -145,8 +203,12 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -155,8 +217,12 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -165,8 +231,12 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertGuideDependencyType(src.getType()));
|
||||
tgt.setUri(src.getUri());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertGuideDependencyType(src.getType()));
|
||||
}
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -175,8 +245,12 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertGuideDependencyType(src.getType()));
|
||||
tgt.setUri(src.getUri());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertGuideDependencyType(src.getType()));
|
||||
}
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -185,8 +259,12 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -195,8 +273,12 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -205,9 +287,15 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -216,9 +304,15 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -227,12 +321,24 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setExample(src.getPurpose() == org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAcronym(src.getAcronym());
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor()));
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setExample(src.getPurpose() == org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE);
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAcronym()) {
|
||||
tgt.setAcronym(src.getAcronym());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
}
|
||||
if (src.hasExampleFor()) {
|
||||
tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -245,11 +351,21 @@ public class ImplementationGuide10_30 {
|
|||
tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE);
|
||||
else
|
||||
tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.PROFILE);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAcronym(src.getAcronym());
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAcronym()) {
|
||||
tgt.setAcronym(src.getAcronym());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
|
||||
}
|
||||
if (src.hasExampleFor()) {
|
||||
tgt.setExampleFor(VersionConvertor_10_30.convertReference(src.getExampleFor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -258,13 +374,27 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSource(src.getSource());
|
||||
tgt.setName(src.getTitle());
|
||||
tgt.setKind(convertGuidePageKind(src.getKind()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getType()) tgt.addType(t.getValue());
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue());
|
||||
tgt.setFormat(src.getFormat());
|
||||
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(src.getSource());
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setName(src.getTitle());
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertGuidePageKind(src.getKind()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasFormat()) {
|
||||
tgt.setFormat(src.getFormat());
|
||||
}
|
||||
if (src.hasPage()) {
|
||||
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -273,13 +403,27 @@ public class ImplementationGuide10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSource(src.getSource());
|
||||
tgt.setTitle(src.getName());
|
||||
tgt.setKind(convertGuidePageKind(src.getKind()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeType t : src.getType()) tgt.addType(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue());
|
||||
tgt.setFormat(src.getFormat());
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(src.getSource());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setTitle(src.getName());
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertGuidePageKind(src.getKind()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasFormat()) {
|
||||
tgt.setFormat(src.getFormat());
|
||||
}
|
||||
if (src.hasPage()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,19 +10,41 @@ public class List10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.List_ tgt = new org.hl7.fhir.dstu2.model.List_();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
|
||||
for (org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
|
||||
if (src.hasOrderedBy()) {
|
||||
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
}
|
||||
if (src.hasNote()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -31,20 +53,40 @@ public class List10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ListResource tgt = new org.hl7.fhir.dstu3.model.ListResource();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
if (src.hasOrderedBy()) {
|
||||
tgt.setOrderedBy(VersionConvertor_10_30.convertCodeableConcept(src.getOrderedBy()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
}
|
||||
if (src.hasNote())
|
||||
tgt.addNote(new org.hl7.fhir.dstu3.model.Annotation().setText(src.getNote()));
|
||||
for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
|
||||
if (src.hasEntry()) {
|
||||
for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -53,11 +95,17 @@ public class List10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent();
|
||||
copyBackboneElement(src, tgt);
|
||||
tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag()));
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
if (src.hasFlag()) {
|
||||
tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag()));
|
||||
}
|
||||
if (src.hasDeleted()) {
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem()));
|
||||
if (src.hasItem()) {
|
||||
tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,11 +114,17 @@ public class List10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.List_.ListEntryComponent tgt = new org.hl7.fhir.dstu2.model.List_.ListEntryComponent();
|
||||
copyBackboneElement(src, tgt);
|
||||
tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag()));
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
if (src.hasFlag()) {
|
||||
tgt.setFlag(VersionConvertor_10_30.convertCodeableConcept(src.getFlag()));
|
||||
}
|
||||
if (src.hasDeleted()) {
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem()));
|
||||
if (src.hasItem()) {
|
||||
tgt.setItem(VersionConvertor_10_30.convertReference(src.getItem()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,18 +10,42 @@ public class Location10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Location tgt = new org.hl7.fhir.dstu2.model.Location();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertLocationStatus(src.getStatus()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setMode(convertLocationMode(src.getMode()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType()));
|
||||
tgt.setPosition(convertLocationPositionComponent(src.getPosition()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertLocationMode(src.getMode()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
}
|
||||
if (src.hasPhysicalType()) {
|
||||
tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType()));
|
||||
}
|
||||
if (src.hasPosition()) {
|
||||
tgt.setPosition(convertLocationPositionComponent(src.getPosition()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -30,18 +54,42 @@ public class Location10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Location tgt = new org.hl7.fhir.dstu3.model.Location();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertLocationStatus(src.getStatus()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setMode(convertLocationMode(src.getMode()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType()));
|
||||
tgt.setPosition(convertLocationPositionComponent(src.getPosition()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertLocationMode(src.getMode()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
}
|
||||
if (src.hasPhysicalType()) {
|
||||
tgt.setPhysicalType(VersionConvertor_10_30.convertCodeableConcept(src.getPhysicalType()));
|
||||
}
|
||||
if (src.hasPosition()) {
|
||||
tgt.setPosition(convertLocationPositionComponent(src.getPosition()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -76,9 +124,15 @@ public class Location10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLongitude(src.getLongitude());
|
||||
tgt.setLatitude(src.getLatitude());
|
||||
tgt.setAltitude(src.getAltitude());
|
||||
if (src.hasLongitude()) {
|
||||
tgt.setLongitude(src.getLongitude());
|
||||
}
|
||||
if (src.hasLatitude()) {
|
||||
tgt.setLatitude(src.getLatitude());
|
||||
}
|
||||
if (src.hasAltitude()) {
|
||||
tgt.setAltitude(src.getAltitude());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -87,9 +141,15 @@ public class Location10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLongitude(src.getLongitude());
|
||||
tgt.setLatitude(src.getLatitude());
|
||||
tgt.setAltitude(src.getAltitude());
|
||||
if (src.hasLongitude()) {
|
||||
tgt.setLongitude(src.getLongitude());
|
||||
}
|
||||
if (src.hasLatitude()) {
|
||||
tgt.setLatitude(src.getLatitude());
|
||||
}
|
||||
if (src.hasAltitude()) {
|
||||
tgt.setAltitude(src.getAltitude());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,18 +40,42 @@ public class Media10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Media tgt = new org.hl7.fhir.dstu2.model.Media();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setType(convertDigitalMediaType(src.getType()));
|
||||
tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype()));
|
||||
tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator()));
|
||||
tgt.setDeviceName(src.getDevice().getDisplay());
|
||||
tgt.setHeight(src.getHeight());
|
||||
tgt.setWidth(src.getWidth());
|
||||
tgt.setFrames(src.getFrames());
|
||||
tgt.setDuration(src.getDuration());
|
||||
tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSubtype()) {
|
||||
tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype()));
|
||||
}
|
||||
if (src.hasView()) {
|
||||
tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasOperator()) {
|
||||
tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator()));
|
||||
}
|
||||
if (src.hasDevice()) {
|
||||
tgt.setDeviceName(src.getDevice().getDisplay());
|
||||
}
|
||||
if (src.hasHeight()) {
|
||||
tgt.setHeight(src.getHeight());
|
||||
}
|
||||
if (src.hasWidth()) {
|
||||
tgt.setWidth(src.getWidth());
|
||||
}
|
||||
if (src.hasFrames()) {
|
||||
tgt.setFrames(src.getFrames());
|
||||
}
|
||||
if (src.hasDuration()) {
|
||||
tgt.setDuration(src.getDuration());
|
||||
}
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -60,18 +84,42 @@ public class Media10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Media tgt = new org.hl7.fhir.dstu3.model.Media();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setType(convertDigitalMediaType(src.getType()));
|
||||
tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype()));
|
||||
tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator()));
|
||||
tgt.getDevice().setDisplay(src.getDeviceName());
|
||||
tgt.setHeight(src.getHeight());
|
||||
tgt.setWidth(src.getWidth());
|
||||
tgt.setFrames(src.getFrames());
|
||||
tgt.setDuration(src.getDuration());
|
||||
tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSubtype()) {
|
||||
tgt.setSubtype(VersionConvertor_10_30.convertCodeableConcept(src.getSubtype()));
|
||||
}
|
||||
if (src.hasView()) {
|
||||
tgt.setView(VersionConvertor_10_30.convertCodeableConcept(src.getView()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasOperator()) {
|
||||
tgt.setOperator(VersionConvertor_10_30.convertReference(src.getOperator()));
|
||||
}
|
||||
if (src.hasDeviceName()) {
|
||||
tgt.getDevice().setDisplay(src.getDeviceName());
|
||||
}
|
||||
if (src.hasHeight()) {
|
||||
tgt.setHeight(src.getHeight());
|
||||
}
|
||||
if (src.hasWidth()) {
|
||||
tgt.setWidth(src.getWidth());
|
||||
}
|
||||
if (src.hasFrames()) {
|
||||
tgt.setFrames(src.getFrames());
|
||||
}
|
||||
if (src.hasDuration()) {
|
||||
tgt.setDuration(src.getDuration());
|
||||
}
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_30.convertAttachment(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,10 +10,18 @@ public class Medication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Medication tgt = new org.hl7.fhir.dstu2.model.Medication();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setIsBrand(src.getIsBrand());
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
tgt.setPackage(convertMedicationPackageComponent(src.getPackage()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasIsBrand()) {
|
||||
tgt.setIsBrand(src.getIsBrand());
|
||||
}
|
||||
if (src.hasManufacturer()) {
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
}
|
||||
if (src.hasPackage()) {
|
||||
tgt.setPackage(convertMedicationPackageComponent(src.getPackage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -22,10 +30,18 @@ public class Medication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Medication tgt = new org.hl7.fhir.dstu3.model.Medication();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setIsBrand(src.getIsBrand());
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
tgt.setPackage(convertMedicationPackageComponent(src.getPackage()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasIsBrand()) {
|
||||
tgt.setIsBrand(src.getIsBrand());
|
||||
}
|
||||
if (src.hasManufacturer()) {
|
||||
tgt.setManufacturer(VersionConvertor_10_30.convertReference(src.getManufacturer()));
|
||||
}
|
||||
if (src.hasPackage()) {
|
||||
tgt.setPackage(convertMedicationPackageComponent(src.getPackage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -34,8 +50,12 @@ public class Medication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContainer(VersionConvertor_10_30.convertCodeableConcept(src.getContainer()));
|
||||
for (org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent t : src.getContent()) tgt.addContent(convertMedicationPackageContentComponent(t));
|
||||
if (src.hasContainer()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -44,8 +64,12 @@ public class Medication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setContainer(VersionConvertor_10_30.convertCodeableConcept(src.getContainer()));
|
||||
for (org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent t : src.getContent()) tgt.addContent(convertMedicationPackageContentComponent(t));
|
||||
if (src.hasContainer()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -56,7 +80,9 @@ public class Medication10_30 {
|
|||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
if (src.hasItemReference())
|
||||
tgt.setItem((org.hl7.fhir.dstu2.model.Reference) VersionConvertor_10_30.convertType(src.getItem()));
|
||||
tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount()));
|
||||
if (src.hasAmount()) {
|
||||
tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -65,8 +91,12 @@ public class Medication10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setItem(VersionConvertor_10_30.convertType(src.getItem()));
|
||||
tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount()));
|
||||
if (src.hasItem()) {
|
||||
tgt.setItem(VersionConvertor_10_30.convertType(src.getItem()));
|
||||
}
|
||||
if (src.hasAmount()) {
|
||||
tgt.setAmount(VersionConvertor_10_30.convertSimpleQuantity(src.getAmount()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,22 +11,50 @@ public class MedicationDispense10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.MedicationDispense tgt = new org.hl7.fhir.dstu3.model.MedicationDispense();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setStatus(convertMedicationDispenseStatus(src.getStatus()));
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply()));
|
||||
tgt.setWhenPrepared(src.getWhenPrepared());
|
||||
tgt.setWhenHandedOver(src.getWhenHandedOver());
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertMedicationDispenseStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasMedication()) {
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasDaysSupply()) {
|
||||
tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply()));
|
||||
}
|
||||
if (src.hasWhenPrepared()) {
|
||||
tgt.setWhenPrepared(src.getWhenPrepared());
|
||||
}
|
||||
if (src.hasWhenHandedOver()) {
|
||||
tgt.setWhenHandedOver(src.getWhenHandedOver());
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasNote())
|
||||
tgt.addNote().setText(src.getNote());
|
||||
for (org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent t : src.getDosageInstruction()) tgt.addDosageInstruction(convertMedicationDispenseDosageInstructionComponent(t));
|
||||
tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution()));
|
||||
if (src.hasDosageInstruction()) {
|
||||
for (org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent t : src.getDosageInstruction()) tgt.addDosageInstruction(convertMedicationDispenseDosageInstructionComponent(t));
|
||||
}
|
||||
if (src.hasSubstitution()) {
|
||||
tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -35,21 +63,51 @@ public class MedicationDispense10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MedicationDispense tgt = new org.hl7.fhir.dstu2.model.MedicationDispense();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifierFirstRep()));
|
||||
tgt.setStatus(convertMedicationDispenseStatus(src.getStatus()));
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthorizingPrescription()) tgt.addAuthorizingPrescription(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply()));
|
||||
tgt.setWhenPrepared(src.getWhenPrepared());
|
||||
tgt.setWhenHandedOver(src.getWhenHandedOver());
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
|
||||
for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosageInstruction()) tgt.addDosageInstruction(convertMedicationDispenseDosageInstructionComponent(t));
|
||||
tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifierFirstRep()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertMedicationDispenseStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasMedication()) {
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasDaysSupply()) {
|
||||
tgt.setDaysSupply(VersionConvertor_10_30.convertSimpleQuantity(src.getDaysSupply()));
|
||||
}
|
||||
if (src.hasWhenPrepared()) {
|
||||
tgt.setWhenPrepared(src.getWhenPrepared());
|
||||
}
|
||||
if (src.hasWhenHandedOver()) {
|
||||
tgt.setWhenHandedOver(src.getWhenHandedOver());
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasNote()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSubstitution()) {
|
||||
tgt.setSubstitution(convertMedicationDispenseSubstitutionComponent(src.getSubstitution()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -58,16 +116,32 @@ public class MedicationDispense10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Dosage tgt = new org.hl7.fhir.dstu3.model.Dosage();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setText(src.getText());
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
}
|
||||
if (src.hasAsNeeded()) {
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
}
|
||||
if (src.hasSiteCodeableConcept())
|
||||
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSiteCodeableConcept()));
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
tgt.setDose(VersionConvertor_10_30.convertType(src.getDose()));
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
if (src.hasRoute()) {
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
}
|
||||
if (src.hasDose()) {
|
||||
tgt.setDose(VersionConvertor_10_30.convertType(src.getDose()));
|
||||
}
|
||||
if (src.hasRate()) {
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
}
|
||||
if (src.hasMaxDosePerPeriod()) {
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -76,15 +150,33 @@ public class MedicationDispense10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseDosageInstructionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setText(src.getText());
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
tgt.setSite(VersionConvertor_10_30.convertType(src.getSite()));
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
tgt.setDose(VersionConvertor_10_30.convertType(src.getDose()));
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
}
|
||||
if (src.hasAsNeeded()) {
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
}
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(VersionConvertor_10_30.convertType(src.getSite()));
|
||||
}
|
||||
if (src.hasRoute()) {
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
}
|
||||
if (src.hasDose()) {
|
||||
tgt.setDose(VersionConvertor_10_30.convertType(src.getDose()));
|
||||
}
|
||||
if (src.hasRate()) {
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
}
|
||||
if (src.hasMaxDosePerPeriod()) {
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -131,9 +223,15 @@ public class MedicationDispense10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasResponsibleParty()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -142,9 +240,15 @@ public class MedicationDispense10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasResponsibleParty()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,19 +10,37 @@ public class MedicationStatement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.MedicationStatement tgt = new org.hl7.fhir.dstu3.model.MedicationStatement();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertMedicationStatementStatus(src.getStatus()));
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
tgt.setInformationSource(VersionConvertor_10_30.convertReference(src.getInformationSource()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingInformation()) tgt.addDerivedFrom(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasMedication()) {
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasInformationSource()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDateAsserted())
|
||||
tgt.setDateAsserted(src.getDateAsserted());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotTaken()) tgt.addReasonNotTaken(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasReasonNotTaken()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotTaken()) tgt.addReasonNotTaken(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasNote())
|
||||
tgt.addNote().setText(src.getNote());
|
||||
for (org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t));
|
||||
if (src.hasDosage()) {
|
||||
for (org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -31,18 +49,38 @@ public class MedicationStatement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MedicationStatement tgt = new org.hl7.fhir.dstu2.model.MedicationStatement();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertMedicationStatementStatus(src.getStatus()));
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
tgt.setInformationSource(VersionConvertor_10_30.convertReference(src.getInformationSource()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDerivedFrom()) tgt.addSupportingInformation(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasMedication()) {
|
||||
tgt.setMedication(VersionConvertor_10_30.convertType(src.getMedication()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasInformationSource()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDateAsserted())
|
||||
tgt.setDateAsserted(src.getDateAsserted());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotTaken()) tgt.addReasonNotTaken(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
|
||||
for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t));
|
||||
if (src.hasReasonNotTaken()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasDosage()) {
|
||||
for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosage()) tgt.addDosage(convertMedicationStatementDosageComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -51,15 +89,29 @@ public class MedicationStatement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Dosage tgt = new org.hl7.fhir.dstu3.model.Dosage();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setText(src.getText());
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
}
|
||||
if (src.hasAsNeeded()) {
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
}
|
||||
if (src.hasSiteCodeableConcept())
|
||||
tgt.setSite(VersionConvertor_10_30.convertCodeableConcept(src.getSiteCodeableConcept()));
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
if (src.hasRoute()) {
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
}
|
||||
if (src.hasRate()) {
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
}
|
||||
if (src.hasMaxDosePerPeriod()) {
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -68,14 +120,30 @@ public class MedicationStatement10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent tgt = new org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setText(src.getText());
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
tgt.setSite(VersionConvertor_10_30.convertType(src.getSite()));
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_30.convertTiming(src.getTiming()));
|
||||
}
|
||||
if (src.hasAsNeeded()) {
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
}
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(VersionConvertor_10_30.convertType(src.getSite()));
|
||||
}
|
||||
if (src.hasRoute()) {
|
||||
tgt.setRoute(VersionConvertor_10_30.convertCodeableConcept(src.getRoute()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
}
|
||||
if (src.hasRate()) {
|
||||
tgt.setRate(VersionConvertor_10_30.convertType(src.getRate()));
|
||||
}
|
||||
if (src.hasMaxDosePerPeriod()) {
|
||||
tgt.setMaxDosePerPeriod(VersionConvertor_10_30.convertRatio(src.getMaxDosePerPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,15 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
if (src.hasEndpoint()) {
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -21,9 +27,15 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
if (src.hasEndpoint()) {
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -32,17 +44,39 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader tgt = new org.hl7.fhir.dstu2.model.MessageHeader();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent()));
|
||||
tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse()));
|
||||
tgt.setSource(convertMessageSourceComponent(src.getSource()));
|
||||
for (org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent t : src.getDestination()) tgt.addDestination(convertMessageDestinationComponent(t));
|
||||
tgt.setEnterer(VersionConvertor_10_30.convertReference(src.getEnterer()));
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver()));
|
||||
tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible()));
|
||||
tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(src.getReason()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getFocus()) tgt.addData(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasTimestamp()) {
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent()));
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(convertMessageSourceComponent(src.getSource()));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasReceiver()) {
|
||||
tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver()));
|
||||
}
|
||||
if (src.hasResponsible()) {
|
||||
tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible()));
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -51,17 +85,39 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.MessageHeader tgt = new org.hl7.fhir.dstu3.model.MessageHeader();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent()));
|
||||
tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse()));
|
||||
tgt.setSource(convertMessageSourceComponent(src.getSource()));
|
||||
for (org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent t : src.getDestination()) tgt.addDestination(convertMessageDestinationComponent(t));
|
||||
tgt.setEnterer(VersionConvertor_10_30.convertReference(src.getEnterer()));
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver()));
|
||||
tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible()));
|
||||
tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(src.getReason()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getData()) tgt.addFocus(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasTimestamp()) {
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setEvent(VersionConvertor_10_30.convertCoding(src.getEvent()));
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(convertMessageHeaderResponseComponent(src.getResponse()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(convertMessageSourceComponent(src.getSource()));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasReceiver()) {
|
||||
tgt.setReceiver(VersionConvertor_10_30.convertReference(src.getReceiver()));
|
||||
}
|
||||
if (src.hasResponsible()) {
|
||||
tgt.setResponsible(VersionConvertor_10_30.convertReference(src.getResponsible()));
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -70,9 +126,15 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
tgt.setCode(convertResponseType(src.getCode()));
|
||||
tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertResponseType(src.getCode()));
|
||||
}
|
||||
if (src.hasDetails()) {
|
||||
tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -81,9 +143,15 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
tgt.setCode(convertResponseType(src.getCode()));
|
||||
tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertResponseType(src.getCode()));
|
||||
}
|
||||
if (src.hasDetails()) {
|
||||
tgt.setDetails(VersionConvertor_10_30.convertReference(src.getDetails()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -92,11 +160,21 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setSoftware(src.getSoftware());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact()));
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasSoftware()) {
|
||||
tgt.setSoftware(src.getSoftware());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact()));
|
||||
}
|
||||
if (src.hasEndpoint()) {
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -105,11 +183,21 @@ public class MessageHeader10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setSoftware(src.getSoftware());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact()));
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasSoftware()) {
|
||||
tgt.setSoftware(src.getSoftware());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
tgt.setContact(VersionConvertor_10_30.convertContactPoint(src.getContact()));
|
||||
}
|
||||
if (src.hasEndpoint()) {
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,23 +10,45 @@ public class NamingSystem10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.NamingSystem tgt = new org.hl7.fhir.dstu3.model.NamingSystem();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
tgt.setKind(convertNamingSystemType(src.getKind()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertNamingSystemType(src.getKind()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
|
||||
tgt.setResponsible(src.getResponsible());
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
|
||||
}
|
||||
if (src.hasResponsible()) {
|
||||
tgt.setResponsible(src.getResponsible());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setUsage(src.getUsage());
|
||||
for (org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
|
||||
tgt.setReplacedBy(VersionConvertor_10_30.convertReference(src.getReplacedBy()));
|
||||
if (src.hasUsage()) {
|
||||
tgt.setUsage(src.getUsage());
|
||||
}
|
||||
if (src.hasUniqueId()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -35,22 +57,46 @@ public class NamingSystem10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.NamingSystem tgt = new org.hl7.fhir.dstu2.model.NamingSystem();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
tgt.setKind(convertNamingSystemType(src.getKind()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertNamingSystemType(src.getKind()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
|
||||
tgt.setResponsible(src.getResponsible());
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
|
||||
}
|
||||
if (src.hasResponsible()) {
|
||||
tgt.setResponsible(src.getResponsible());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setUsage(src.getUsage());
|
||||
for (org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
|
||||
tgt.setReplacedBy(VersionConvertor_10_30.convertReference(src.getReplacedBy()));
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasUsage()) {
|
||||
tgt.setUsage(src.getUsage());
|
||||
}
|
||||
if (src.hasUniqueId()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -59,8 +105,12 @@ public class NamingSystem10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -69,8 +119,12 @@ public class NamingSystem10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -143,10 +197,18 @@ public class NamingSystem10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
|
||||
tgt.setValue(src.getValue());
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
if (src.hasPreferred()) {
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -155,10 +217,18 @@ public class NamingSystem10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
|
||||
tgt.setValue(src.getValue());
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
if (src.hasPreferred()) {
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,26 +10,66 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Observation tgt = new org.hl7.fhir.dstu3.model.Observation();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertObservationStatus(src.getStatus()));
|
||||
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
|
||||
tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation()));
|
||||
tgt.setComment(src.getComments());
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen()));
|
||||
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent t : src.getRelated()) tgt.addRelated(convertObservationRelatedComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent t : src.getComponent()) tgt.addComponent(convertObservationComponentComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasPerformer()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDataAbsentReason()) {
|
||||
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
|
||||
}
|
||||
if (src.hasInterpretation()) {
|
||||
tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation()));
|
||||
}
|
||||
if (src.hasComments()) {
|
||||
tgt.setComment(src.getComments());
|
||||
}
|
||||
if (src.hasBodySite()) {
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
}
|
||||
if (src.hasSpecimen()) {
|
||||
tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen()));
|
||||
}
|
||||
if (src.hasDevice()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRelated()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -38,26 +78,66 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation tgt = new org.hl7.fhir.dstu2.model.Observation();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertObservationStatus(src.getStatus()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept c : src.getCategory()) tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(c));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
|
||||
tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation()));
|
||||
tgt.setComments(src.getComment());
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen()));
|
||||
tgt.setDevice(VersionConvertor_10_30.convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent t : src.getRelated()) tgt.addRelated(convertObservationRelatedComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent t : src.getComponent()) tgt.addComponent(convertObservationComponentComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_30.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasPerformer()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDataAbsentReason()) {
|
||||
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
|
||||
}
|
||||
if (src.hasInterpretation()) {
|
||||
tgt.setInterpretation(VersionConvertor_10_30.convertCodeableConcept(src.getInterpretation()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComments(src.getComment());
|
||||
}
|
||||
if (src.hasBodySite()) {
|
||||
tgt.setBodySite(VersionConvertor_10_30.convertCodeableConcept(src.getBodySite()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
}
|
||||
if (src.hasSpecimen()) {
|
||||
tgt.setSpecimen(VersionConvertor_10_30.convertReference(src.getSpecimen()));
|
||||
}
|
||||
if (src.hasDevice()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRelated()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,10 +146,18 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
|
||||
for (org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasDataAbsentReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -78,10 +166,18 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setDataAbsentReason(VersionConvertor_10_30.convertCodeableConcept(src.getDataAbsentReason()));
|
||||
for (org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent t : src.getReferenceRange()) tgt.addReferenceRange(convertObservationReferenceRangeComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasDataAbsentReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -90,11 +186,21 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow()));
|
||||
tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getMeaning()));
|
||||
tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge()));
|
||||
tgt.setText(src.getText());
|
||||
if (src.hasLow()) {
|
||||
tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow()));
|
||||
}
|
||||
if (src.hasHigh()) {
|
||||
tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh()));
|
||||
}
|
||||
if (src.hasMeaning()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getMeaning()));
|
||||
}
|
||||
if (src.hasAge()) {
|
||||
tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge()));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -103,11 +209,21 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow()));
|
||||
tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh()));
|
||||
tgt.setMeaning(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge()));
|
||||
tgt.setText(src.getText());
|
||||
if (src.hasLow()) {
|
||||
tgt.setLow(VersionConvertor_10_30.convertSimpleQuantity(src.getLow()));
|
||||
}
|
||||
if (src.hasHigh()) {
|
||||
tgt.setHigh(VersionConvertor_10_30.convertSimpleQuantity(src.getHigh()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setMeaning(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasAge()) {
|
||||
tgt.setAge(VersionConvertor_10_30.convertRange(src.getAge()));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -116,8 +232,12 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertObservationRelationshipType(src.getType()));
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertObservationRelationshipType(src.getType()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -126,8 +246,12 @@ public class Observation10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertObservationRelationshipType(src.getType()));
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertObservationRelationshipType(src.getType()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,29 +12,61 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition tgt = new org.hl7.fhir.dstu2.model.OperationDefinition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
tgt.setKind(convertOperationKind(src.getKind()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertOperationKind(src.getKind()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setIdempotent(src.getIdempotent());
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setNotes(src.getComment());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasIdempotent()) {
|
||||
tgt.setIdempotent(src.getIdempotent());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setNotes(src.getComment());
|
||||
}
|
||||
if (src.hasBase())
|
||||
tgt.setBase(VersionConvertor_10_30.convertReference(src.getBase()));
|
||||
tgt.setSystem(src.getSystem());
|
||||
if (src.hasSystem()) {
|
||||
tgt.setSystem(src.getSystem());
|
||||
}
|
||||
if (src.getType())
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getResource()) tgt.addType(t.getValue());
|
||||
tgt.setInstance(src.getInstance());
|
||||
for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
|
||||
if (src.hasResource()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getResource()) tgt.addType(t.getValue());
|
||||
}
|
||||
if (src.hasInstance()) {
|
||||
tgt.setInstance(src.getInstance());
|
||||
}
|
||||
if (src.hasParameter()) {
|
||||
for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -43,29 +75,61 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationDefinition tgt = new org.hl7.fhir.dstu3.model.OperationDefinition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
tgt.setKind(convertOperationKind(src.getKind()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertOperationKind(src.getKind()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasIdempotent())
|
||||
tgt.setIdempotent(src.getIdempotent());
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setComment(src.getNotes());
|
||||
tgt.setBase(VersionConvertor_10_30.convertReference(src.getBase()));
|
||||
tgt.setSystem(src.getSystem());
|
||||
for (org.hl7.fhir.dstu2.model.CodeType t : src.getType()) tgt.addResource(t.getValue());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasNotes()) {
|
||||
tgt.setComment(src.getNotes());
|
||||
}
|
||||
if (src.hasBase()) {
|
||||
tgt.setBase(VersionConvertor_10_30.convertReference(src.getBase()));
|
||||
}
|
||||
if (src.hasSystem()) {
|
||||
tgt.setSystem(src.getSystem());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeType t : src.getType()) tgt.addResource(t.getValue());
|
||||
}
|
||||
tgt.setType(tgt.hasResource());
|
||||
tgt.setInstance(src.getInstance());
|
||||
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
|
||||
if (src.hasInstance()) {
|
||||
tgt.setInstance(src.getInstance());
|
||||
}
|
||||
if (src.hasParameter()) {
|
||||
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -74,8 +138,12 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -84,8 +152,12 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -94,8 +166,12 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength()));
|
||||
tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet()));
|
||||
if (src.hasStrength()) {
|
||||
tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength()));
|
||||
}
|
||||
if (src.hasValueSet()) {
|
||||
tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -104,8 +180,12 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength()));
|
||||
tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet()));
|
||||
if (src.hasStrength()) {
|
||||
tgt.setStrength(VersionConvertor_10_30.convertBindingStrength(src.getStrength()));
|
||||
}
|
||||
if (src.hasValueSet()) {
|
||||
tgt.setValueSet(VersionConvertor_10_30.convertType(src.getValueSet()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -114,20 +194,34 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setUse(convertOperationParameterUse(src.getUse()));
|
||||
tgt.setMin(src.getMin());
|
||||
tgt.setMax(src.getMax());
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasUse()) {
|
||||
tgt.setUse(convertOperationParameterUse(src.getUse()));
|
||||
}
|
||||
if (src.hasMin()) {
|
||||
tgt.setMin(src.getMin());
|
||||
}
|
||||
if (src.hasMax()) {
|
||||
tgt.setMax(src.getMax());
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasSearchType()) {
|
||||
tgt.setType(src.getSearchType().toCode());
|
||||
if (src.hasSearchType()) {
|
||||
tgt.setType(src.getSearchType().toCode());
|
||||
}
|
||||
} else
|
||||
tgt.setType(src.getType());
|
||||
if (src.hasProfile())
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
if (src.hasBinding())
|
||||
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
|
||||
for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t));
|
||||
if (src.hasPart()) {
|
||||
for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -136,20 +230,40 @@ public class OperationDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setUse(convertOperationParameterUse(src.getUse()));
|
||||
tgt.setMin(src.getMin());
|
||||
tgt.setMax(src.getMax());
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasUse()) {
|
||||
tgt.setUse(convertOperationParameterUse(src.getUse()));
|
||||
}
|
||||
if (src.hasMin()) {
|
||||
tgt.setMin(src.getMin());
|
||||
}
|
||||
if (src.hasMax()) {
|
||||
tgt.setMax(src.getMax());
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (Utilities.existsInList(src.getType(), "token", "reference", "composite", "number", "date", "quantity", "uri")) {
|
||||
tgt.setType("string");
|
||||
tgt.setSearchType(SearchParamType.fromCode(src.getType()));
|
||||
if (src.hasType()) {
|
||||
tgt.setSearchType(SearchParamType.fromCode(src.getType()));
|
||||
}
|
||||
} else {
|
||||
tgt.setType(src.getType());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
}
|
||||
if (src.hasBinding()) {
|
||||
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
|
||||
}
|
||||
if (src.hasPart()) {
|
||||
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t));
|
||||
}
|
||||
tgt.setProfile(VersionConvertor_10_30.convertReference(src.getProfile()));
|
||||
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
|
||||
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart()) tgt.addPart(convertOperationDefinitionParameterComponent(t));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,9 @@ public class OperationOutcome10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationOutcome tgt = new org.hl7.fhir.dstu3.model.OperationOutcome();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t));
|
||||
if (src.hasIssue()) {
|
||||
for (org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -187,7 +189,9 @@ public class OperationOutcome10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationOutcome tgt = new org.hl7.fhir.dstu2.model.OperationOutcome();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t));
|
||||
if (src.hasIssue()) {
|
||||
for (org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue()) tgt.addIssue(convertOperationOutcomeIssueComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -196,11 +200,21 @@ public class OperationOutcome10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
|
||||
tgt.setCode(convertIssueType(src.getCode()));
|
||||
tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails()));
|
||||
tgt.setDiagnostics(src.getDiagnostics());
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
|
||||
if (src.hasSeverity()) {
|
||||
tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertIssueType(src.getCode()));
|
||||
}
|
||||
if (src.hasDetails()) {
|
||||
tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails()));
|
||||
}
|
||||
if (src.hasDiagnostics()) {
|
||||
tgt.setDiagnostics(src.getDiagnostics());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -209,11 +223,21 @@ public class OperationOutcome10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
|
||||
tgt.setCode(convertIssueType(src.getCode()));
|
||||
tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails()));
|
||||
tgt.setDiagnostics(src.getDiagnostics());
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
|
||||
if (src.hasSeverity()) {
|
||||
tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertIssueType(src.getCode()));
|
||||
}
|
||||
if (src.hasDetails()) {
|
||||
tgt.setDetails(VersionConvertor_10_30.convertCodeableConcept(src.getDetails()));
|
||||
}
|
||||
if (src.hasDiagnostics()) {
|
||||
tgt.setDiagnostics(src.getDiagnostics());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,14 +10,30 @@ public class Organization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Organization tgt = new org.hl7.fhir.dstu3.model.Organization();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setActive(src.getActive());
|
||||
tgt.addType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
for (org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.addType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class Organization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Organization tgt = new org.hl7.fhir.dstu2.model.Organization();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setActive(src.getActive());
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getTypeFirstRep()));
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setPartOf(VersionConvertor_10_30.convertReference(src.getPartOf()));
|
||||
for (org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getTypeFirstRep()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -42,10 +74,18 @@ public class Organization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose()));
|
||||
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,10 +94,18 @@ public class Organization10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose()));
|
||||
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setPurpose(VersionConvertor_10_30.convertCodeableConcept(src.getPurpose()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,9 @@ public class Parameters10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Parameters tgt = new org.hl7.fhir.dstu3.model.Parameters();
|
||||
VersionConvertor_10_30.copyResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t));
|
||||
if (src.hasParameter()) {
|
||||
for (org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -19,7 +21,9 @@ public class Parameters10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Parameters tgt = new org.hl7.fhir.dstu2.model.Parameters();
|
||||
VersionConvertor_10_30.copyResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t));
|
||||
if (src.hasParameter()) {
|
||||
for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getParameter()) tgt.addParameter(convertParametersParameterComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -28,10 +32,18 @@ public class Parameters10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource()));
|
||||
for (org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent t : src.getPart()) tgt.addPart(convertParametersParameterComponent(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -40,10 +52,18 @@ public class Parameters10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
tgt.setResource(VersionConvertor_10_30.convertResource(src.getResource()));
|
||||
for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getPart()) tgt.addPart(convertParametersParameterComponent(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,9 +10,15 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu3.model.Patient.AnimalComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies()));
|
||||
tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed()));
|
||||
tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus()));
|
||||
if (src.hasSpecies()) {
|
||||
tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies()));
|
||||
}
|
||||
if (src.hasBreed()) {
|
||||
tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed()));
|
||||
}
|
||||
if (src.hasGenderStatus()) {
|
||||
tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -21,9 +27,15 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu2.model.Patient.AnimalComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies()));
|
||||
tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed()));
|
||||
tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus()));
|
||||
if (src.hasSpecies()) {
|
||||
tgt.setSpecies(VersionConvertor_10_30.convertCodeableConcept(src.getSpecies()));
|
||||
}
|
||||
if (src.hasBreed()) {
|
||||
tgt.setBreed(VersionConvertor_10_30.convertCodeableConcept(src.getBreed()));
|
||||
}
|
||||
if (src.hasGenderStatus()) {
|
||||
tgt.setGenderStatus(VersionConvertor_10_30.convertCodeableConcept(src.getGenderStatus()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -32,13 +44,27 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu3.model.Patient.ContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasRelationship()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasOrganization()) {
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -47,13 +73,27 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName()));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setAddress(VersionConvertor_10_30.convertAddress(src.getAddress()));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasRelationship()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasOrganization()) {
|
||||
tgt.setOrganization(VersionConvertor_10_30.convertReference(src.getOrganization()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -94,23 +134,57 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient tgt = new org.hl7.fhir.dstu3.model.Patient();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setActive(src.getActive());
|
||||
for (org.hl7.fhir.dstu2.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus()));
|
||||
tgt.setMultipleBirth(VersionConvertor_10_30.convertType(src.getMultipleBirth()));
|
||||
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
|
||||
for (org.hl7.fhir.dstu2.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t));
|
||||
tgt.setAnimal(convertAnimalComponent(src.getAnimal()));
|
||||
for (org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent t : src.getCommunication()) tgt.addCommunication(convertPatientCommunicationComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getCareProvider()) tgt.addGeneralPractitioner(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
for (org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent t : src.getLink()) tgt.addLink(convertPatientLinkComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasDeceased()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasMaritalStatus()) {
|
||||
tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus()));
|
||||
}
|
||||
if (src.hasMultipleBirth()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t));
|
||||
}
|
||||
if (src.hasAnimal()) {
|
||||
tgt.setAnimal(convertAnimalComponent(src.getAnimal()));
|
||||
}
|
||||
if (src.hasCommunication()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -119,23 +193,57 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient tgt = new org.hl7.fhir.dstu2.model.Patient();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setActive(src.getActive());
|
||||
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
tgt.setDeceased(VersionConvertor_10_30.convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus()));
|
||||
tgt.setMultipleBirth(VersionConvertor_10_30.convertType(src.getMultipleBirth()));
|
||||
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
|
||||
for (org.hl7.fhir.dstu3.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t));
|
||||
tgt.setAnimal(convertAnimalComponent(src.getAnimal()));
|
||||
for (org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent t : src.getCommunication()) tgt.addCommunication(convertPatientCommunicationComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getGeneralPractitioner()) tgt.addCareProvider(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
for (org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent t : src.getLink()) tgt.addLink(convertPatientLinkComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasDeceased()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasMaritalStatus()) {
|
||||
tgt.setMaritalStatus(VersionConvertor_10_30.convertCodeableConcept(src.getMaritalStatus()));
|
||||
}
|
||||
if (src.hasMultipleBirth()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.Patient.ContactComponent t : src.getContact()) tgt.addContact(convertContactComponent(t));
|
||||
}
|
||||
if (src.hasAnimal()) {
|
||||
tgt.setAnimal(convertAnimalComponent(src.getAnimal()));
|
||||
}
|
||||
if (src.hasCommunication()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -144,8 +252,12 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage()));
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
if (src.hasLanguage()) {
|
||||
tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage()));
|
||||
}
|
||||
if (src.hasPreferred()) {
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -154,8 +266,12 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage()));
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
if (src.hasLanguage()) {
|
||||
tgt.setLanguage(VersionConvertor_10_30.convertCodeableConcept(src.getLanguage()));
|
||||
}
|
||||
if (src.hasPreferred()) {
|
||||
tgt.setPreferred(src.getPreferred());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -164,8 +280,12 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther()));
|
||||
tgt.setType(convertLinkType(src.getType()));
|
||||
if (src.hasOther()) {
|
||||
tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertLinkType(src.getType()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -174,8 +294,12 @@ public class Patient10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther()));
|
||||
tgt.setType(convertLinkType(src.getType()));
|
||||
if (src.hasOther()) {
|
||||
tgt.setOther(VersionConvertor_10_30.convertReference(src.getOther()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertLinkType(src.getType()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,16 +44,36 @@ public class Person10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Person tgt = new org.hl7.fhir.dstu3.model.Person();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu2.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
tgt.setActive(src.getActive());
|
||||
for (org.hl7.fhir.dstu2.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
for (org.hl7.fhir.dstu2.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -62,16 +82,36 @@ public class Person10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Person tgt = new org.hl7.fhir.dstu2.model.Person();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_10_30.convertHumanName(t));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setPhoto(VersionConvertor_10_30.convertAttachment(src.getPhoto()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
tgt.setActive(src.getActive());
|
||||
for (org.hl7.fhir.dstu3.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_30.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
for (org.hl7.fhir.dstu3.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -80,8 +120,12 @@ public class Person10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu3.model.Person.PersonLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance()));
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
if (src.hasAssurance()) {
|
||||
tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -90,8 +134,12 @@ public class Person10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance()));
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_30.convertReference(src.getTarget()));
|
||||
}
|
||||
if (src.hasAssurance()) {
|
||||
tgt.setAssurance(convertIdentityAssuranceLevel(src.getAssurance()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,17 +10,35 @@ public class Practitioner10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Practitioner tgt = new org.hl7.fhir.dstu3.model.Practitioner();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setActive(src.getActive());
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasName())
|
||||
tgt.addName(VersionConvertor_10_30.convertHumanName(src.getName()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
|
||||
for (org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasTelecom()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasPhoto()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCommunication()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -29,16 +47,36 @@ public class Practitioner10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Practitioner tgt = new org.hl7.fhir.dstu2.model.Practitioner();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setActive(src.getActive());
|
||||
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.setName(VersionConvertor_10_30.convertHumanName(t));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
|
||||
for (org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasActive()) {
|
||||
tgt.setActive(src.getActive());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasPhoto()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCommunication()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -47,10 +85,18 @@ public class Practitioner10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasIssuer()) {
|
||||
tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -59,10 +105,18 @@ public class Practitioner10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasIssuer()) {
|
||||
tgt.setIssuer(VersionConvertor_10_30.convertReference(src.getIssuer()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,25 +10,63 @@ public class Procedure10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Procedure tgt = new org.hl7.fhir.dstu2.model.Procedure();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setStatus(convertProcedureStatus(src.getStatus()));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setNotPerformed(src.getNotDone());
|
||||
tgt.addReasonNotPerformed(VersionConvertor_10_30.convertCodeableConcept(src.getNotDoneReason()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setReason(VersionConvertor_10_30.convertType(src.getReasonCodeFirstRep()));
|
||||
for (org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent t : src.getPerformer()) tgt.addPerformer(convertProcedurePerformerComponent(t));
|
||||
tgt.setPerformed(VersionConvertor_10_30.convertType(src.getPerformed()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReport()) tgt.addReport(VersionConvertor_10_30.convertReference(t));
|
||||
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.getFollowUp()) tgt.addFollowUp(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setRequest(VersionConvertor_10_30.convertReference(src.getBasedOnFirstRep()));
|
||||
for (org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice()) tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertProcedureStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasNotDone()) {
|
||||
tgt.setNotPerformed(src.getNotDone());
|
||||
}
|
||||
if (src.hasNotDoneReason()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPerformed()) {
|
||||
tgt.setPerformed(VersionConvertor_10_30.convertType(src.getPerformed()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasComplication()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasBasedOn()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -37,27 +75,61 @@ public class Procedure10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Procedure tgt = new org.hl7.fhir.dstu3.model.Procedure();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setStatus(convertProcedureStatus(src.getStatus()));
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setNotDone(src.getNotPerformed());
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertProcedureStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_30.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasNotPerformed()) {
|
||||
tgt.setNotDone(src.getNotPerformed());
|
||||
}
|
||||
if (src.hasReasonNotPerformed())
|
||||
tgt.setNotDoneReason(VersionConvertor_10_30.convertCodeableConcept(src.getReasonNotPerformed().get(0)));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasBodySite()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasReasonCodeableConcept())
|
||||
tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReasonCodeableConcept()));
|
||||
for (org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent t : src.getPerformer()) tgt.addPerformer(convertProcedurePerformerComponent(t));
|
||||
tgt.setPerformed(VersionConvertor_10_30.convertType(src.getPerformed()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getReport()) tgt.addReport(VersionConvertor_10_30.convertReference(t));
|
||||
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.getFollowUp()) tgt.addFollowUp(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.addBasedOn(VersionConvertor_10_30.convertReference(src.getRequest()));
|
||||
for (org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice()) tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t));
|
||||
if (src.hasPerformer()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasComplication()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRequest()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,8 +138,12 @@ public class Procedure10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated()));
|
||||
if (src.hasAction()) {
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
}
|
||||
if (src.hasManipulated()) {
|
||||
tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -76,8 +152,12 @@ public class Procedure10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated()));
|
||||
if (src.hasAction()) {
|
||||
tgt.setAction(VersionConvertor_10_30.convertCodeableConcept(src.getAction()));
|
||||
}
|
||||
if (src.hasManipulated()) {
|
||||
tgt.setManipulated(VersionConvertor_10_30.convertReference(src.getManipulated()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -86,8 +166,12 @@ public class Procedure10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole()));
|
||||
if (src.hasActor()) {
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
}
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -96,8 +180,12 @@ public class Procedure10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole()));
|
||||
if (src.hasActor()) {
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
}
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(VersionConvertor_10_30.convertCodeableConcept(src.getRole()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,19 +10,41 @@ public class ProcedureRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ProcedureRequest tgt = new org.hl7.fhir.dstu3.model.ProcedureRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonCodeableConcept())
|
||||
tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReasonCodeableConcept()));
|
||||
tgt.setOccurrence(VersionConvertor_10_30.convertType(src.getScheduled()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
tgt.setStatus(convertProcedureRequestStatus(src.getStatus()));
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
tgt.setAuthoredOn(src.getOrderedOn());
|
||||
tgt.setPriority(convertProcedureRequestPriority(src.getPriority()));
|
||||
if (src.hasScheduled()) {
|
||||
tgt.setOccurrence(VersionConvertor_10_30.convertType(src.getScheduled()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasPerformer()) {
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertProcedureRequestStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasAsNeeded()) {
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
}
|
||||
if (src.hasOrderedOn()) {
|
||||
tgt.setAuthoredOn(src.getOrderedOn());
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertProcedureRequestPriority(src.getPriority()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -31,18 +53,42 @@ public class ProcedureRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ProcedureRequest tgt = new org.hl7.fhir.dstu2.model.ProcedureRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setReason(VersionConvertor_10_30.convertType(src.getReasonCodeFirstRep()));
|
||||
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getOccurrence()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
tgt.setStatus(convertProcedureRequestStatus(src.getStatus()));
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
tgt.setOrderedOn(src.getAuthoredOn());
|
||||
tgt.setPriority(convertProcedureRequestPriority(src.getPriority()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonCode()) {
|
||||
tgt.setReason(VersionConvertor_10_30.convertType(src.getReasonCodeFirstRep()));
|
||||
}
|
||||
if (src.hasOccurrence()) {
|
||||
tgt.setScheduled(VersionConvertor_10_30.convertType(src.getOccurrence()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasPerformer()) {
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertProcedureRequestStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasAsNeeded()) {
|
||||
tgt.setAsNeeded(VersionConvertor_10_30.convertType(src.getAsNeeded()));
|
||||
}
|
||||
if (src.hasAuthoredOn()) {
|
||||
tgt.setOrderedOn(src.getAuthoredOn());
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertProcedureRequestPriority(src.getPriority()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,16 +10,36 @@ public class Provenance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Provenance tgt = new org.hl7.fhir.dstu2.model.Provenance();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getTarget()) tgt.addTarget(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setRecorded(src.getRecorded());
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getReason()) tgt.addReason().addCoding(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setActivity(new org.hl7.fhir.dstu2.model.CodeableConcept().addCoding(VersionConvertor_10_30.convertCoding(src.getActivity())));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu3.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
|
||||
for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.addAgent(convertProvenanceAgentComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent t : src.getEntity()) tgt.addEntity(convertProvenanceEntityComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Signature t : src.getSignature()) tgt.addSignature(VersionConvertor_10_30.convertSignature(t));
|
||||
if (src.hasTarget()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRecorded()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActivity()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPolicy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEntity()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -28,16 +48,36 @@ public class Provenance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Provenance tgt = new org.hl7.fhir.dstu3.model.Provenance();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getTarget()) tgt.addTarget(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
tgt.setRecorded(src.getRecorded());
|
||||
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.Coding t : src.getActivity().getCoding()) tgt.setActivity(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setLocation(VersionConvertor_10_30.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.addAgent(convertProvenanceAgentComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent t : src.getEntity()) tgt.addEntity(convertProvenanceEntityComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Signature t : src.getSignature()) tgt.addSignature(VersionConvertor_10_30.convertSignature(t));
|
||||
if (src.hasTarget()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRecorded()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActivity()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPolicy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEntity()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -56,7 +96,9 @@ public class Provenance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setWho(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
if (src.hasActor()) {
|
||||
tgt.setWho(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -65,10 +107,14 @@ public class Provenance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setRole(convertProvenanceEntityRole(src.getRole()));
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(convertProvenanceEntityRole(src.getRole()));
|
||||
}
|
||||
if (src.hasWhatReference() && src.getWhatReference().hasReference())
|
||||
tgt.setReference(src.getWhatReference().getReference());
|
||||
for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t));
|
||||
if (src.hasAgent()) {
|
||||
for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -77,10 +123,14 @@ public class Provenance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setRole(convertProvenanceEntityRole(src.getRole()));
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(convertProvenanceEntityRole(src.getRole()));
|
||||
}
|
||||
if (src.hasReference())
|
||||
tgt.setWhat(new org.hl7.fhir.dstu3.model.Reference().setReference(src.getReference()));
|
||||
tgt.addAgent(convertProvenanceAgentComponent(src.getAgent()));
|
||||
if (src.hasAgent()) {
|
||||
tgt.addAgent(convertProvenanceAgentComponent(src.getAgent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,19 +11,33 @@ public class Questionnaire10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Questionnaire tgt = new org.hl7.fhir.dstu2.model.Questionnaire();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setStatus(convertQuestionnaireStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertQuestionnaireStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (ContactDetail t : src.getContact()) for (org.hl7.fhir.dstu3.model.ContactPoint t1 : t.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t1));
|
||||
if (src.hasPublisher()) {
|
||||
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));
|
||||
}
|
||||
org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent root = tgt.getGroup();
|
||||
root.setTitle(src.getTitle());
|
||||
if (src.hasTitle()) {
|
||||
root.setTitle(src.getTitle());
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) {
|
||||
root.addConcept(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getSubjectType()) tgt.addSubjectType(t.getValue());
|
||||
if (src.hasSubjectType()) {
|
||||
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)
|
||||
root.addGroup(convertQuestionnaireGroupComponent(t));
|
||||
else
|
||||
|
@ -65,11 +79,21 @@ public class Questionnaire10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setText(src.getText());
|
||||
tgt.setRequired(src.getRequired());
|
||||
tgt.setRepeats(src.getRepeats());
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(src.getRequired());
|
||||
}
|
||||
if (src.hasRepeats()) {
|
||||
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)
|
||||
tgt.addGroup(convertQuestionnaireGroupComponent(t));
|
||||
else
|
||||
|
@ -82,14 +106,28 @@ public class Questionnaire10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setText(src.getText());
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasConcept()) {
|
||||
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.setType(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.GROUP);
|
||||
tgt.setRequired(src.getRequired());
|
||||
tgt.setRepeats(src.getRepeats());
|
||||
for (org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireGroupComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent t : src.getQuestion()) tgt.addItem(convertQuestionnaireQuestionComponent(t));
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(src.getRequired());
|
||||
}
|
||||
if (src.hasRepeats()) {
|
||||
tgt.setRepeats(src.getRepeats());
|
||||
}
|
||||
if (src.hasGroup()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -135,15 +173,33 @@ public class Questionnaire10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setText(src.getText());
|
||||
tgt.setType(convertQuestionnaireQuestionType(src.getType()));
|
||||
tgt.setRequired(src.getRequired());
|
||||
tgt.setRepeats(src.getRepeats());
|
||||
tgt.setOptions(VersionConvertor_10_30.convertReference(src.getOptions()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getOption()) tgt.addOption().setValue(VersionConvertor_10_30.convertCoding(t));
|
||||
for (org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireGroupComponent(t));
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasConcept()) {
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertQuestionnaireQuestionType(src.getType()));
|
||||
}
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(src.getRequired());
|
||||
}
|
||||
if (src.hasRepeats()) {
|
||||
tgt.setRepeats(src.getRepeats());
|
||||
}
|
||||
if (src.hasOptions()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasGroup()) {
|
||||
for (org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireGroupComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -152,20 +208,36 @@ public class Questionnaire10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setText(src.getText());
|
||||
tgt.setType(convertQuestionnaireItemType(src.getType()));
|
||||
tgt.setRequired(src.getRequired());
|
||||
tgt.setRepeats(src.getRepeats());
|
||||
tgt.setOptions(VersionConvertor_10_30.convertReference(src.getOptions()));
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertQuestionnaireItemType(src.getType()));
|
||||
}
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(src.getRequired());
|
||||
}
|
||||
if (src.hasRepeats()) {
|
||||
tgt.setRepeats(src.getRepeats());
|
||||
}
|
||||
if (src.hasOptions()) {
|
||||
tgt.setOptions(VersionConvertor_10_30.convertReference(src.getOptions()));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent t : src.getOption()) if (t.hasValueCoding())
|
||||
try {
|
||||
tgt.addOption(VersionConvertor_10_30.convertCoding(t.getValueCoding()));
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
throw new FHIRException(e);
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) tgt.addGroup(convertQuestionnaireGroupComponent(t));
|
||||
if (src.hasItem()) {
|
||||
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem()) tgt.addGroup(convertQuestionnaireGroupComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,15 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
tgt.setText(src.getText());
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) if (t.hasAnswer())
|
||||
tgt.addQuestion(convertQuestionnaireItemToQuestion(t));
|
||||
else
|
||||
|
@ -25,9 +31,15 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
tgt.setText(src.getText());
|
||||
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasAnswer()) {
|
||||
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -36,17 +48,35 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire()));
|
||||
tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setAuthored(src.getAuthored());
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasQuestionnaire()) {
|
||||
tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasAuthored()) {
|
||||
tgt.setAuthored(src.getAuthored());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.getItem().size() != 1)
|
||||
throw new FHIRException("multiple root items not supported");
|
||||
tgt.setGroup(convertQuestionnaireItemToGroup(src.getItem().get(0)));
|
||||
if (src.hasItem()) {
|
||||
tgt.setGroup(convertQuestionnaireItemToGroup(src.getItem().get(0)));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -55,14 +85,30 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire()));
|
||||
tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
tgt.setAuthored(src.getAuthored());
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasQuestionnaire()) {
|
||||
tgt.setQuestionnaire(VersionConvertor_10_30.convertReference(src.getQuestionnaire()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_30.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasAuthored()) {
|
||||
tgt.setAuthored(src.getAuthored());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_30.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasGroup())
|
||||
tgt.addItem(convertQuestionnaireResponseGroupComponent(src.getGroup()));
|
||||
return tgt;
|
||||
|
@ -73,11 +119,21 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
tgt.setText(src.getText());
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireResponseGroupComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent t : src.getQuestion()) tgt.addItem(convertQuestionnaireResponseQuestionComponent(t));
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasQuestion()) {
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent t : src.getQuestion()) tgt.addItem(convertQuestionnaireResponseQuestionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -86,8 +142,12 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) tgt.addGroup(convertQuestionnaireItemToGroup(t));
|
||||
if (src.hasValue()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -96,8 +156,12 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) tgt.addItem(convertQuestionnaireResponseGroupComponent(t));
|
||||
if (src.hasValue()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -106,9 +170,15 @@ public class QuestionnaireResponse10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
tgt.setText(src.getText());
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
|
||||
if (src.hasLinkId()) {
|
||||
tgt.setLinkId(src.getLinkId());
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(src.getText());
|
||||
}
|
||||
if (src.hasAnswer()) {
|
||||
for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,19 +47,45 @@ public class ReferralRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ReferralRequest tgt = new org.hl7.fhir.dstu2.model.ReferralRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertReferralStatus(src.getStatus()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setPriority(convertReferralPriorityCode(src.getPriority()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setFulfillmentTime(VersionConvertor_10_30.convertPeriod(src.getOccurrencePeriod()));
|
||||
tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent()));
|
||||
tgt.setSpecialty(VersionConvertor_10_30.convertCodeableConcept(src.getSpecialty()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getReasonCode()) tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(cc));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceRequested()) tgt.addServiceRequested(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingInfo()) tgt.addSupportingInformation(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertReferralPriorityCode(src.getPriority()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasOccurrencePeriod()) {
|
||||
tgt.setFulfillmentTime(VersionConvertor_10_30.convertPeriod(src.getOccurrencePeriod()));
|
||||
}
|
||||
if (src.hasRequester()) {
|
||||
tgt.setRequester(VersionConvertor_10_30.convertReference(src.getRequester().getAgent()));
|
||||
}
|
||||
if (src.hasSpecialty()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonCode()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getReasonCode()) tgt.setReason(VersionConvertor_10_30.convertCodeableConcept(cc));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasServiceRequested()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -68,19 +94,45 @@ public class ReferralRequest10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ReferralRequest tgt = new org.hl7.fhir.dstu3.model.ReferralRequest();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setStatus(convertReferralStatus(src.getStatus()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setPriority(convertReferralPriorityCode(src.getPriority()));
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setOccurrence(VersionConvertor_10_30.convertPeriod(src.getFulfillmentTime()));
|
||||
tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester()));
|
||||
tgt.setSpecialty(VersionConvertor_10_30.convertCodeableConcept(src.getSpecialty()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_30.convertReference(t));
|
||||
tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReason()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceRequested()) tgt.addServiceRequested(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInfo(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertReferralPriorityCode(src.getPriority()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasFulfillmentTime()) {
|
||||
tgt.setOccurrence(VersionConvertor_10_30.convertPeriod(src.getFulfillmentTime()));
|
||||
}
|
||||
if (src.hasRequester()) {
|
||||
tgt.getRequester().setAgent(VersionConvertor_10_30.convertReference(src.getRequester()));
|
||||
}
|
||||
if (src.hasSpecialty()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
tgt.addReasonCode(VersionConvertor_10_30.convertCodeableConcept(src.getReason()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasServiceRequested()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,16 +10,36 @@ public class RelatedPerson10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.RelatedPerson tgt = new org.hl7.fhir.dstu3.model.RelatedPerson();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
tgt.addName(VersionConvertor_10_30.convertHumanName(src.getName()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRelationship()) {
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasGender()) {
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -28,17 +48,35 @@ public class RelatedPerson10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.RelatedPerson tgt = new org.hl7.fhir.dstu2.model.RelatedPerson();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRelationship()) {
|
||||
tgt.setRelationship(VersionConvertor_10_30.convertCodeableConcept(src.getRelationship()));
|
||||
}
|
||||
if (!src.getName().isEmpty())
|
||||
tgt.setName(VersionConvertor_10_30.convertHumanName(src.getName().get(0)));
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setGender(VersionConvertor_10_30.convertAdministrativeGender(src.getGender()));
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(VersionConvertor_10_30.convertAddress(t));
|
||||
for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(VersionConvertor_10_30.convertAttachment(t));
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
if (src.hasTelecom()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasBirthDate()) {
|
||||
tgt.setBirthDate(src.getBirthDate());
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_30.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,15 +10,33 @@ public class RiskAssessment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.RiskAssessment tgt = new org.hl7.fhir.dstu2.model.RiskAssessment();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition()));
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getBasis()) tgt.addBasis(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
|
||||
tgt.setMitigation(src.getMitigation());
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCondition()) {
|
||||
tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_30.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasPerformer()) {
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPrediction()) {
|
||||
for (org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
|
||||
}
|
||||
if (src.hasMitigation()) {
|
||||
tgt.setMitigation(src.getMitigation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -27,15 +45,33 @@ public class RiskAssessment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.RiskAssessment tgt = new org.hl7.fhir.dstu3.model.RiskAssessment();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition()));
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setMethod(VersionConvertor_10_30.convertCodeableConcept(src.getMethod()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getBasis()) tgt.addBasis(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
|
||||
tgt.setMitigation(src.getMitigation());
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCondition()) {
|
||||
tgt.setCondition(VersionConvertor_10_30.convertReference(src.getCondition()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_30.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasPerformer()) {
|
||||
tgt.setPerformer(VersionConvertor_10_30.convertReference(src.getPerformer()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasMethod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPrediction()) {
|
||||
for (org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
|
||||
}
|
||||
if (src.hasMitigation()) {
|
||||
tgt.setMitigation(src.getMitigation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -44,11 +80,21 @@ public class RiskAssessment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability()));
|
||||
tgt.setRelativeRisk(src.getRelativeRisk());
|
||||
tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen()));
|
||||
tgt.setRationale(src.getRationale());
|
||||
if (src.hasOutcome()) {
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
}
|
||||
if (src.hasProbability()) {
|
||||
tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability()));
|
||||
}
|
||||
if (src.hasRelativeRisk()) {
|
||||
tgt.setRelativeRisk(src.getRelativeRisk());
|
||||
}
|
||||
if (src.hasWhen()) {
|
||||
tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen()));
|
||||
}
|
||||
if (src.hasRationale()) {
|
||||
tgt.setRationale(src.getRationale());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -57,11 +103,21 @@ public class RiskAssessment10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability()));
|
||||
tgt.setRelativeRisk(src.getRelativeRisk());
|
||||
tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen()));
|
||||
tgt.setRationale(src.getRationale());
|
||||
if (src.hasOutcome()) {
|
||||
tgt.setOutcome(VersionConvertor_10_30.convertCodeableConcept(src.getOutcome()));
|
||||
}
|
||||
if (src.hasProbability()) {
|
||||
tgt.setProbability(VersionConvertor_10_30.convertType(src.getProbability()));
|
||||
}
|
||||
if (src.hasRelativeRisk()) {
|
||||
tgt.setRelativeRisk(src.getRelativeRisk());
|
||||
}
|
||||
if (src.hasWhen()) {
|
||||
tgt.setWhen(VersionConvertor_10_30.convertType(src.getWhen()));
|
||||
}
|
||||
if (src.hasRationale()) {
|
||||
tgt.setRationale(src.getRationale());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,11 +10,21 @@ public class Schedule10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Schedule tgt = new org.hl7.fhir.dstu2.model.Schedule();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.addType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActorFirstRep()));
|
||||
tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon()));
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActor()) {
|
||||
tgt.setActor(VersionConvertor_10_30.convertReference(src.getActorFirstRep()));
|
||||
}
|
||||
if (src.hasPlanningHorizon()) {
|
||||
tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -23,11 +33,21 @@ public class Schedule10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Schedule tgt = new org.hl7.fhir.dstu3.model.Schedule();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.addActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon()));
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActor()) {
|
||||
tgt.addActor(VersionConvertor_10_30.convertReference(src.getActor()));
|
||||
}
|
||||
if (src.hasPlanningHorizon()) {
|
||||
tgt.setPlanningHorizon(VersionConvertor_10_30.convertPeriod(src.getPlanningHorizon()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,24 +11,52 @@ public class SearchParameter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.SearchParameter tgt = new org.hl7.fhir.dstu2.model.SearchParameter();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setCode(src.getCode());
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getBase()) tgt.setBase(t.asStringValue());
|
||||
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
org.hl7.fhir.dstu2.utils.ToolingExtensions.setStringExtension(tgt, ToolingExtensions.EXT_EXPRESSION, src.getExpression());
|
||||
tgt.setXpath(src.getXpath());
|
||||
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasBase()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasExpression()) {
|
||||
org.hl7.fhir.dstu2.utils.ToolingExtensions.setStringExtension(tgt, ToolingExtensions.EXT_EXPRESSION, src.getExpression());
|
||||
}
|
||||
if (src.hasXpath()) {
|
||||
tgt.setXpath(src.getXpath());
|
||||
}
|
||||
if (src.hasXpathUsage()) {
|
||||
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -37,24 +65,50 @@ public class SearchParameter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.SearchParameter tgt = new org.hl7.fhir.dstu3.model.SearchParameter();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.addBase(src.getBase());
|
||||
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
|
||||
}
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasBase()) {
|
||||
tgt.addBase(src.getBase());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
tgt.setExpression(ToolingExtensions.readStringExtension(src, ToolingExtensions.EXT_EXPRESSION));
|
||||
tgt.setXpath(src.getXpath());
|
||||
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue());
|
||||
if (src.hasXpath()) {
|
||||
tgt.setXpath(src.getXpath());
|
||||
}
|
||||
if (src.hasXpathUsage()) {
|
||||
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -63,8 +117,12 @@ public class SearchParameter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent tgt = new org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -73,8 +131,12 @@ public class SearchParameter10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,14 +10,26 @@ public class Slot10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Slot tgt = new org.hl7.fhir.dstu3.model.Slot();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasType())
|
||||
tgt.addServiceType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule()));
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
tgt.setOverbooked(src.getOverbooked());
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasSchedule()) {
|
||||
tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule()));
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasOverbooked()) {
|
||||
tgt.setOverbooked(src.getOverbooked());
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,13 +38,27 @@ public class Slot10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Slot tgt = new org.hl7.fhir.dstu2.model.Slot();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule()));
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
tgt.setOverbooked(src.getOverbooked());
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSchedule()) {
|
||||
tgt.setSchedule(VersionConvertor_10_30.convertReference(src.getSchedule()));
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasOverbooked()) {
|
||||
tgt.setOverbooked(src.getOverbooked());
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,9 @@ public class Specimen10_30 {
|
|||
}
|
||||
org.hl7.fhir.dstu2.model.Specimen tgt = new org.hl7.fhir.dstu2.model.Specimen();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasAccessionIdentifier())
|
||||
tgt.setAccessionIdentifier(VersionConvertor_10_30.convertIdentifier(src.getAccessionIdentifier()));
|
||||
if (src.hasStatus())
|
||||
|
@ -23,11 +25,17 @@ public class Specimen10_30 {
|
|||
tgt.setSubject(VersionConvertor_10_30.convertReference(src.getSubject()));
|
||||
if (src.hasReceivedTime())
|
||||
tgt.setReceivedTime(src.getReceivedTime());
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getParent()) tgt.addParent(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasParent()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getParent()) tgt.addParent(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
if (src.hasCollection())
|
||||
tgt.setCollection(convertSpecimenCollectionComponent(src.getCollection()));
|
||||
for (org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent t : src.getProcessing()) tgt.addTreatment(convertSpecimenProcessingComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent t : src.getContainer()) tgt.addContainer(convertSpecimenContainerComponent(t));
|
||||
if (src.hasProcessing()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,7 +62,9 @@ public class Specimen10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasDescription())
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasType())
|
||||
|
@ -77,7 +87,9 @@ public class Specimen10_30 {
|
|||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasProcedure())
|
||||
tgt.setProcedure(VersionConvertor_10_30.convertCodeableConcept(src.getProcedure()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAdditive()) tgt.addAdditive(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasAdditive()) {
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAdditive()) tgt.addAdditive(VersionConvertor_10_30.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ import org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionKind;
|
|||
import org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -46,35 +45,81 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition tgt = new org.hl7.fhir.dstu2.model.StructureDefinition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDisplay(src.getTitle());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setDisplay(src.getTitle());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getKeyword()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
for (org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent t : src.getMapping()) tgt.addMapping(convertStructureDefinitionMappingComponent(t));
|
||||
tgt.setKind(convertStructureDefinitionKind(src.getKind()));
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
tgt.setContextType(convertExtensionContext(src.getContextType()));
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
|
||||
tgt.setConstrainedType(src.getType());
|
||||
tgt.setBase(src.getBaseDefinition());
|
||||
tgt.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot()));
|
||||
tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential()));
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasKeyword()) {
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getKeyword()) tgt.addCode(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
if (src.hasFhirVersion()) {
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
}
|
||||
if (src.hasMapping()) {
|
||||
for (org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent t : src.getMapping()) tgt.addMapping(convertStructureDefinitionMappingComponent(t));
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertStructureDefinitionKind(src.getKind()));
|
||||
}
|
||||
if (src.hasAbstract()) {
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
}
|
||||
if (src.hasContextType()) {
|
||||
tgt.setContextType(convertExtensionContext(src.getContextType()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setConstrainedType(src.getType());
|
||||
}
|
||||
if (src.hasBaseDefinition()) {
|
||||
tgt.setBase(src.getBaseDefinition());
|
||||
}
|
||||
if (src.hasSnapshot()) {
|
||||
tgt.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot()));
|
||||
}
|
||||
if (src.hasDifferential()) {
|
||||
tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential()));
|
||||
}
|
||||
if (tgt.hasBase()) {
|
||||
if (tgt.hasDifferential())
|
||||
tgt.getDifferential().getElement().get(0).addType().setCode(tail(tgt.getBase()));
|
||||
|
@ -89,32 +134,68 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.StructureDefinition tgt = new org.hl7.fhir.dstu3.model.StructureDefinition();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setTitle(src.getDisplay());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDisplay()) {
|
||||
tgt.setTitle(src.getDisplay());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getCode()) tgt.addKeyword(VersionConvertor_10_30.convertCoding(t));
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
for (org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent t : src.getMapping()) tgt.addMapping(convertStructureDefinitionMappingComponent(t));
|
||||
tgt.setKind(convertStructureDefinitionKind(src.getKind(), tgt.getId()));
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
tgt.setContextType(convertExtensionContext(src.getContextType()));
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getCode()) tgt.addKeyword(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
if (src.hasFhirVersion()) {
|
||||
tgt.setFhirVersion(src.getFhirVersion());
|
||||
}
|
||||
if (src.hasMapping()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasAbstract()) {
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
}
|
||||
if (src.hasContextType()) {
|
||||
tgt.setContextType(convertExtensionContext(src.getContextType()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
|
||||
}
|
||||
if (src.hasConstrainedType())
|
||||
tgt.setType(src.getConstrainedType());
|
||||
else if (src.getSnapshot().hasElement())
|
||||
|
@ -123,10 +204,16 @@ public class StructureDefinition10_30 {
|
|||
tgt.setType(src.getDifferential().getElement().get(0).getPath());
|
||||
else
|
||||
tgt.setType(src.getDifferential().getElement().get(0).getPath().substring(0, src.getDifferential().getElement().get(0).getPath().indexOf(".")));
|
||||
tgt.setBaseDefinition(src.getBase());
|
||||
if (src.hasBase()) {
|
||||
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.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot()));
|
||||
tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential()));
|
||||
if (src.hasSnapshot()) {
|
||||
tgt.setSnapshot(convertStructureDefinitionSnapshotComponent(src.getSnapshot()));
|
||||
}
|
||||
if (src.hasDifferential()) {
|
||||
tgt.setDifferential(convertStructureDefinitionDifferentialComponent(src.getDifferential()));
|
||||
}
|
||||
if (tgt.hasSnapshot())
|
||||
tgt.getSnapshot().getElementFirstRep().getType().clear();
|
||||
if (tgt.hasDifferential())
|
||||
|
@ -144,8 +231,12 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -154,8 +245,12 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -164,7 +259,9 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
|
||||
if (src.hasElement()) {
|
||||
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -222,10 +319,18 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
tgt.setUri(src.getUri());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setComments(src.getComment());
|
||||
if (src.hasIdentity()) {
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
}
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComments(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -234,10 +339,18 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
tgt.setUri(src.getUri());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setComment(src.getComments());
|
||||
if (src.hasIdentity()) {
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
}
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasComments()) {
|
||||
tgt.setComment(src.getComments());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -246,7 +359,9 @@ public class StructureDefinition10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
|
||||
if (src.hasElement()) {
|
||||
for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(VersionConvertor_10_30.convertElementDefinition(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,14 +10,30 @@ public class Subscription10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Subscription tgt = new org.hl7.fhir.dstu3.model.Subscription();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setCriteria(src.getCriteria());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setReason(src.getReason());
|
||||
tgt.setStatus(convertSubscriptionStatus(src.getStatus()));
|
||||
tgt.setError(src.getError());
|
||||
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
|
||||
tgt.setEnd(src.getEnd());
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t));
|
||||
if (src.hasCriteria()) {
|
||||
tgt.setCriteria(src.getCriteria());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
tgt.setReason(src.getReason());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertSubscriptionStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasError()) {
|
||||
tgt.setError(src.getError());
|
||||
}
|
||||
if (src.hasChannel()) {
|
||||
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasTag()) {
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class Subscription10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Subscription tgt = new org.hl7.fhir.dstu2.model.Subscription();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setCriteria(src.getCriteria());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
|
||||
tgt.setReason(src.getReason());
|
||||
tgt.setStatus(convertSubscriptionStatus(src.getStatus()));
|
||||
tgt.setError(src.getError());
|
||||
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
|
||||
tgt.setEnd(src.getEnd());
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t));
|
||||
if (src.hasCriteria()) {
|
||||
tgt.setCriteria(src.getCriteria());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
tgt.setReason(src.getReason());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertSubscriptionStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasError()) {
|
||||
tgt.setError(src.getError());
|
||||
}
|
||||
if (src.hasChannel()) {
|
||||
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasTag()) {
|
||||
for (org.hl7.fhir.dstu3.model.Coding t : src.getTag()) tgt.addTag(VersionConvertor_10_30.convertCoding(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -42,9 +74,15 @@ public class Subscription10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertSubscriptionChannelType(src.getType()));
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
tgt.setPayload(src.getPayload());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertSubscriptionChannelType(src.getType()));
|
||||
}
|
||||
if (src.hasEndpoint()) {
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
tgt.setPayload(src.getPayload());
|
||||
}
|
||||
if (src.hasHeader())
|
||||
tgt.setHeaderElement(VersionConvertor_10_30.convertString(src.getHeader().get(0)));
|
||||
return tgt;
|
||||
|
@ -55,10 +93,18 @@ public class Subscription10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(convertSubscriptionChannelType(src.getType()));
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
tgt.setPayload(src.getPayload());
|
||||
tgt.addHeader(src.getHeader());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertSubscriptionChannelType(src.getType()));
|
||||
}
|
||||
if (src.hasEndpoint()) {
|
||||
tgt.setEndpoint(src.getEndpoint());
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
tgt.setPayload(src.getPayload());
|
||||
}
|
||||
if (src.hasHeader()) {
|
||||
tgt.addHeader(src.getHeader());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,12 +10,24 @@ public class Substance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Substance tgt = new org.hl7.fhir.dstu2.model.Substance();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasInstance()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -24,12 +36,24 @@ public class Substance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Substance tgt = new org.hl7.fhir.dstu3.model.Substance();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_30.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasInstance()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -38,8 +62,12 @@ public class Substance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity()));
|
||||
tgt.setSubstance(VersionConvertor_10_30.convertReference(src.getSubstance()));
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity()));
|
||||
}
|
||||
if (src.hasSubstance()) {
|
||||
tgt.setSubstance(VersionConvertor_10_30.convertReference(src.getSubstance()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -48,7 +76,9 @@ public class Substance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity()));
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertRatio(src.getQuantity()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -57,9 +87,15 @@ public class Substance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setExpiry(src.getExpiry());
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasExpiry()) {
|
||||
tgt.setExpiry(src.getExpiry());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -68,9 +104,15 @@ public class Substance10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setExpiry(src.getExpiry());
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasExpiry()) {
|
||||
tgt.setExpiry(src.getExpiry());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_30.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,13 +10,27 @@ public class SupplyDelivery10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.SupplyDelivery tgt = new org.hl7.fhir.dstu3.model.SupplyDelivery();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier()));
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasSupplier()) {
|
||||
tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier()));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -25,13 +39,27 @@ public class SupplyDelivery10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.SupplyDelivery tgt = new org.hl7.fhir.dstu2.model.SupplyDelivery();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus()));
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier()));
|
||||
tgt.setDestination(VersionConvertor_10_30.convertReference(src.getDestination()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReceiver()) tgt.addReceiver(VersionConvertor_10_30.convertReference(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_30.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasSupplier()) {
|
||||
tgt.setSupplier(VersionConvertor_10_30.convertReference(src.getSupplier()));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -186,24 +186,60 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLabel(src.getLabel());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
|
||||
tgt.setCompareToSourceId(src.getCompareToSourceId());
|
||||
tgt.setCompareToSourcePath(src.getCompareToSourcePath());
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
tgt.setMinimumId(src.getMinimumId());
|
||||
tgt.setNavigationLinks(src.getNavigationLinks());
|
||||
tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
|
||||
tgt.setPath(src.getPath());
|
||||
tgt.setResource(src.getResource());
|
||||
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
|
||||
tgt.setResponseCode(src.getResponseCode());
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
tgt.setValidateProfileId(src.getValidateProfileId());
|
||||
tgt.setValue(src.getValue());
|
||||
tgt.setWarningOnly(src.getWarningOnly());
|
||||
if (src.hasLabel()) {
|
||||
tgt.setLabel(src.getLabel());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDirection()) {
|
||||
tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
|
||||
}
|
||||
if (src.hasCompareToSourceId()) {
|
||||
tgt.setCompareToSourceId(src.getCompareToSourceId());
|
||||
}
|
||||
if (src.hasCompareToSourcePath()) {
|
||||
tgt.setCompareToSourcePath(src.getCompareToSourcePath());
|
||||
}
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
}
|
||||
if (src.hasHeaderField()) {
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
}
|
||||
if (src.hasMinimumId()) {
|
||||
tgt.setMinimumId(src.getMinimumId());
|
||||
}
|
||||
if (src.hasNavigationLinks()) {
|
||||
tgt.setNavigationLinks(src.getNavigationLinks());
|
||||
}
|
||||
if (src.hasOperator()) {
|
||||
tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
|
||||
}
|
||||
if (src.hasPath()) {
|
||||
tgt.setPath(src.getPath());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(src.getResource());
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
|
||||
}
|
||||
if (src.hasResponseCode()) {
|
||||
tgt.setResponseCode(src.getResponseCode());
|
||||
}
|
||||
if (src.hasSourceId()) {
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
}
|
||||
if (src.hasValidateProfileId()) {
|
||||
tgt.setValidateProfileId(src.getValidateProfileId());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
if (src.hasWarningOnly()) {
|
||||
tgt.setWarningOnly(src.getWarningOnly());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -212,24 +248,60 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLabel(src.getLabel());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
|
||||
tgt.setCompareToSourceId(src.getCompareToSourceId());
|
||||
tgt.setCompareToSourcePath(src.getCompareToSourcePath());
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
tgt.setMinimumId(src.getMinimumId());
|
||||
tgt.setNavigationLinks(src.getNavigationLinks());
|
||||
tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
|
||||
tgt.setPath(src.getPath());
|
||||
tgt.setResource(src.getResource());
|
||||
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
|
||||
tgt.setResponseCode(src.getResponseCode());
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
tgt.setValidateProfileId(src.getValidateProfileId());
|
||||
tgt.setValue(src.getValue());
|
||||
tgt.setWarningOnly(src.getWarningOnly());
|
||||
if (src.hasLabel()) {
|
||||
tgt.setLabel(src.getLabel());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDirection()) {
|
||||
tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
|
||||
}
|
||||
if (src.hasCompareToSourceId()) {
|
||||
tgt.setCompareToSourceId(src.getCompareToSourceId());
|
||||
}
|
||||
if (src.hasCompareToSourcePath()) {
|
||||
tgt.setCompareToSourcePath(src.getCompareToSourcePath());
|
||||
}
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
}
|
||||
if (src.hasHeaderField()) {
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
}
|
||||
if (src.hasMinimumId()) {
|
||||
tgt.setMinimumId(src.getMinimumId());
|
||||
}
|
||||
if (src.hasNavigationLinks()) {
|
||||
tgt.setNavigationLinks(src.getNavigationLinks());
|
||||
}
|
||||
if (src.hasOperator()) {
|
||||
tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
|
||||
}
|
||||
if (src.hasPath()) {
|
||||
tgt.setPath(src.getPath());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(src.getResource());
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
|
||||
}
|
||||
if (src.hasResponseCode()) {
|
||||
tgt.setResponseCode(src.getResponseCode());
|
||||
}
|
||||
if (src.hasSourceId()) {
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
}
|
||||
if (src.hasValidateProfileId()) {
|
||||
tgt.setValidateProfileId(src.getValidateProfileId());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
if (src.hasWarningOnly()) {
|
||||
tgt.setWarningOnly(src.getWarningOnly());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -238,8 +310,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
if (src.hasOperation()) {
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
}
|
||||
if (src.hasAssert()) {
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -248,8 +324,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
if (src.hasOperation()) {
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
}
|
||||
if (src.hasAssert()) {
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -258,20 +338,48 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
tgt.setResource(src.getResource());
|
||||
tgt.setLabel(src.getLabel());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAccept(convertContentType(src.getAccept()));
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
tgt.setDestination(src.getDestination());
|
||||
tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
|
||||
tgt.setParams(src.getParams());
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
|
||||
tgt.setResponseId(src.getResponseId());
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
tgt.setTargetId(src.getTargetId());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(src.getResource());
|
||||
}
|
||||
if (src.hasLabel()) {
|
||||
tgt.setLabel(src.getLabel());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAccept()) {
|
||||
tgt.setAccept(convertContentType(src.getAccept()));
|
||||
}
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(src.getDestination());
|
||||
}
|
||||
if (src.hasEncodeRequestUrl()) {
|
||||
tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
|
||||
}
|
||||
if (src.hasParams()) {
|
||||
tgt.setParams(src.getParams());
|
||||
}
|
||||
if (src.hasRequestHeader()) {
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
|
||||
}
|
||||
if (src.hasResponseId()) {
|
||||
tgt.setResponseId(src.getResponseId());
|
||||
}
|
||||
if (src.hasSourceId()) {
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
}
|
||||
if (src.hasTargetId()) {
|
||||
tgt.setTargetId(src.getTargetId());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -280,20 +388,48 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
tgt.setResource(src.getResource());
|
||||
tgt.setLabel(src.getLabel());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setAccept(convertContentType(src.getAccept()));
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
tgt.setDestination(src.getDestination());
|
||||
tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
|
||||
tgt.setParams(src.getParams());
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
|
||||
tgt.setResponseId(src.getResponseId());
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
tgt.setTargetId(src.getTargetId());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_30.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(src.getResource());
|
||||
}
|
||||
if (src.hasLabel()) {
|
||||
tgt.setLabel(src.getLabel());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAccept()) {
|
||||
tgt.setAccept(convertContentType(src.getAccept()));
|
||||
}
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(convertContentType(src.getContentType()));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(src.getDestination());
|
||||
}
|
||||
if (src.hasEncodeRequestUrl()) {
|
||||
tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
|
||||
}
|
||||
if (src.hasParams()) {
|
||||
tgt.setParams(src.getParams());
|
||||
}
|
||||
if (src.hasRequestHeader()) {
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
|
||||
}
|
||||
if (src.hasResponseId()) {
|
||||
tgt.setResponseId(src.getResponseId());
|
||||
}
|
||||
if (src.hasSourceId()) {
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
}
|
||||
if (src.hasTargetId()) {
|
||||
tgt.setTargetId(src.getTargetId());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -302,8 +438,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setField(src.getField());
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasField()) {
|
||||
tgt.setField(src.getField());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -312,8 +452,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setField(src.getField());
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasField()) {
|
||||
tgt.setField(src.getField());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -322,7 +466,9 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
if (src.hasOperation()) {
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -331,7 +477,9 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
if (src.hasOperation()) {
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -340,8 +488,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
if (src.hasOperation()) {
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
}
|
||||
if (src.hasAssert()) {
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -350,8 +502,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
if (src.hasOperation()) {
|
||||
tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
|
||||
}
|
||||
if (src.hasAssert()) {
|
||||
tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -360,30 +516,66 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript tgt = new org.hl7.fhir.dstu2.model.TestScript();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata()));
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t));
|
||||
tgt.setSetup(convertTestScriptSetupComponent(src.getSetup()));
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t));
|
||||
tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown()));
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasMetadata()) {
|
||||
tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata()));
|
||||
}
|
||||
if (src.hasFixture()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasVariable()) {
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t));
|
||||
}
|
||||
if (src.hasSetup()) {
|
||||
tgt.setSetup(convertTestScriptSetupComponent(src.getSetup()));
|
||||
}
|
||||
if (src.hasTest()) {
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t));
|
||||
}
|
||||
if (src.hasTeardown()) {
|
||||
tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -392,31 +584,65 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript tgt = new org.hl7.fhir.dstu3.model.TestScript();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent t : src.getContact()) tgt.addContact(convertTestScriptContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata()));
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent t : src.getFixture()) tgt.addFixture(convertTestScriptFixtureComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getProfile()) tgt.addProfile(VersionConvertor_10_30.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t));
|
||||
tgt.setSetup(convertTestScriptSetupComponent(src.getSetup()));
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t));
|
||||
tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown()));
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasMetadata()) {
|
||||
tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata()));
|
||||
}
|
||||
if (src.hasFixture()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasVariable()) {
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent t : src.getVariable()) tgt.addVariable(convertTestScriptVariableComponent(t));
|
||||
}
|
||||
if (src.hasSetup()) {
|
||||
tgt.setSetup(convertTestScriptSetupComponent(src.getSetup()));
|
||||
}
|
||||
if (src.hasTest()) {
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent t : src.getTest()) tgt.addTest(convertTestScriptTestComponent(t));
|
||||
}
|
||||
if (src.hasTeardown()) {
|
||||
tgt.setTeardown(convertTestScriptTeardownComponent(src.getTeardown()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -425,8 +651,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -435,8 +665,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -445,9 +679,15 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAutocreate(src.getAutocreate());
|
||||
tgt.setAutodelete(src.getAutodelete());
|
||||
tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource()));
|
||||
if (src.hasAutocreate()) {
|
||||
tgt.setAutocreate(src.getAutocreate());
|
||||
}
|
||||
if (src.hasAutodelete()) {
|
||||
tgt.setAutodelete(src.getAutodelete());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -456,9 +696,15 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setAutocreate(src.getAutocreate());
|
||||
tgt.setAutodelete(src.getAutodelete());
|
||||
tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource()));
|
||||
if (src.hasAutocreate()) {
|
||||
tgt.setAutocreate(src.getAutocreate());
|
||||
}
|
||||
if (src.hasAutodelete()) {
|
||||
tgt.setAutodelete(src.getAutodelete());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(VersionConvertor_10_30.convertReference(src.getResource()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -467,12 +713,24 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setRequired(src.getRequired());
|
||||
tgt.setValidated(src.getValidated());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDestination(src.getDestination());
|
||||
for (org.hl7.fhir.dstu3.model.UriType t : src.getLink()) tgt.addLink(t.getValue());
|
||||
tgt.setConformance(VersionConvertor_10_30.convertReference(src.getCapabilities()));
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(src.getRequired());
|
||||
}
|
||||
if (src.hasValidated()) {
|
||||
tgt.setValidated(src.getValidated());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(src.getDestination());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -481,12 +739,24 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setRequired(src.getRequired());
|
||||
tgt.setValidated(src.getValidated());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDestination(src.getDestination());
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getLink()) tgt.addLink(t.getValue());
|
||||
tgt.setCapabilities(VersionConvertor_10_30.convertReference(src.getConformance()));
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(src.getRequired());
|
||||
}
|
||||
if (src.hasValidated()) {
|
||||
tgt.setValidated(src.getValidated());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(src.getDestination());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -495,8 +765,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t));
|
||||
if (src.hasLink()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -505,8 +779,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t));
|
||||
if (src.hasLink()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -515,8 +793,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -525,8 +807,12 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -535,7 +821,9 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t));
|
||||
if (src.hasAction()) {
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -544,7 +832,9 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t));
|
||||
if (src.hasAction()) {
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -553,7 +843,9 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t));
|
||||
if (src.hasAction()) {
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -562,7 +854,9 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t));
|
||||
if (src.hasAction()) {
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -571,9 +865,15 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAction()) {
|
||||
for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -582,9 +882,15 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAction()) {
|
||||
for (org.hl7.fhir.dstu3.model.TestScript.TestActionComponent t : src.getAction()) tgt.addAction(convertTestActionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -593,10 +899,18 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
tgt.setPath(src.getPath());
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasHeaderField()) {
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
}
|
||||
if (src.hasPath()) {
|
||||
tgt.setPath(src.getPath());
|
||||
}
|
||||
if (src.hasSourceId()) {
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -605,10 +919,18 @@ public class TestScript10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
tgt.setPath(src.getPath());
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasHeaderField()) {
|
||||
tgt.setHeaderField(src.getHeaderField());
|
||||
}
|
||||
if (src.hasPath()) {
|
||||
tgt.setPath(src.getPath());
|
||||
}
|
||||
if (src.hasSourceId()) {
|
||||
tgt.setSourceId(src.getSourceId());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.terminologies.CodeSystemUtilities;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ValueSet10_30 {
|
||||
|
@ -17,9 +16,15 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasDisplay()) {
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
}
|
||||
if (src.hasDesignation()) {
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -28,9 +33,15 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasDisplay()) {
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
}
|
||||
if (src.hasDesignation()) {
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -39,9 +50,15 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLanguage(src.getLanguage());
|
||||
tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse()));
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasLanguage()) {
|
||||
tgt.setLanguage(src.getLanguage());
|
||||
}
|
||||
if (src.hasUse()) {
|
||||
tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -50,9 +67,15 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setLanguage(src.getLanguage());
|
||||
tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse()));
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasLanguage()) {
|
||||
tgt.setLanguage(src.getLanguage());
|
||||
}
|
||||
if (src.hasUse()) {
|
||||
tgt.setUse(VersionConvertor_10_30.convertCoding(src.getUse()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -61,10 +84,18 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSystem(src.getSystem());
|
||||
tgt.setVersion(src.getVersion());
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent t : src.getFilter()) tgt.addFilter(convertConceptSetFilterComponent(t));
|
||||
if (src.hasSystem()) {
|
||||
tgt.setSystem(src.getSystem());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasConcept()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -73,10 +104,18 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSystem(src.getSystem());
|
||||
tgt.setVersion(src.getVersion());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent t : src.getFilter()) tgt.addFilter(convertConceptSetFilterComponent(t));
|
||||
if (src.hasSystem()) {
|
||||
tgt.setSystem(src.getSystem());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasConcept()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -85,9 +124,15 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setProperty(src.getProperty());
|
||||
tgt.setOp(convertFilterOperator(src.getOp()));
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasProperty()) {
|
||||
tgt.setProperty(src.getProperty());
|
||||
}
|
||||
if (src.hasOp()) {
|
||||
tgt.setOp(convertFilterOperator(src.getOp()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -96,9 +141,15 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setProperty(src.getProperty());
|
||||
tgt.setOp(convertFilterOperator(src.getOp()));
|
||||
tgt.setValue(src.getValue());
|
||||
if (src.hasProperty()) {
|
||||
tgt.setProperty(src.getProperty());
|
||||
}
|
||||
if (src.hasOp()) {
|
||||
tgt.setOp(convertFilterOperator(src.getOp()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -149,59 +200,113 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet tgt = new org.hl7.fhir.dstu3.model.ValueSet();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.addIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgt.addContact(convertValueSetContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgt.addContact(convertValueSetContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setImmutable(src.getImmutable());
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setExtensible(src.getExtensible());
|
||||
if (src.hasImmutable()) {
|
||||
tgt.setImmutable(src.getImmutable());
|
||||
}
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasExtensible()) {
|
||||
tgt.setExtensible(src.getExtensible());
|
||||
}
|
||||
if (src.hasCompose()) {
|
||||
tgt.setCompose(convertValueSetComposeComponent(src.getCompose()));
|
||||
tgt.getCompose().setLockedDate(src.getLockedDate());
|
||||
if (src.hasCompose()) {
|
||||
tgt.setCompose(convertValueSetComposeComponent(src.getCompose()));
|
||||
}
|
||||
if (src.hasLockedDate()) {
|
||||
tgt.getCompose().setLockedDate(src.getLockedDate());
|
||||
}
|
||||
}
|
||||
if (src.hasCodeSystem() && advisor != null) {
|
||||
org.hl7.fhir.dstu3.model.CodeSystem tgtcs = new org.hl7.fhir.dstu3.model.CodeSystem();
|
||||
VersionConvertor_10_30.copyDomainResource(src, tgtcs);
|
||||
tgtcs.setUrl(src.getCodeSystem().getSystem());
|
||||
tgtcs.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
tgtcs.setVersion(src.getCodeSystem().getVersion());
|
||||
tgtcs.setName(src.getName() + " Code System");
|
||||
tgtcs.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasCodeSystem()) {
|
||||
tgtcs.setUrl(src.getCodeSystem().getSystem());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgtcs.setIdentifier(VersionConvertor_10_30.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasCodeSystem()) {
|
||||
tgtcs.setVersion(src.getCodeSystem().getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgtcs.setName(src.getName() + " Code System");
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgtcs.setStatus(VersionConvertor_10_30.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgtcs.setExperimental(src.getExperimental());
|
||||
tgtcs.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgtcs.addContact(convertValueSetContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgtcs.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgtcs.addContact(convertValueSetContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgtcs.setDate(src.getDate());
|
||||
tgtcs.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgtcs.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
|
||||
tgtcs.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
|
||||
else
|
||||
tgtcs.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
|
||||
tgtcs.setPurpose(src.getRequirements());
|
||||
tgtcs.setCopyright(src.getCopyright());
|
||||
if (src.hasRequirements()) {
|
||||
tgtcs.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgtcs.setCopyright(src.getCopyright());
|
||||
}
|
||||
tgtcs.setContent(CodeSystemContentMode.COMPLETE);
|
||||
tgtcs.setCaseSensitive(src.getCodeSystem().getCaseSensitive());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionComponent cs : src.getCodeSystem().getConcept()) processConcept(tgtcs.getConcept(), cs, tgtcs);
|
||||
if (src.hasCodeSystem()) {
|
||||
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);
|
||||
}
|
||||
advisor.handleCodeSystem(tgtcs, tgt);
|
||||
tgt.setUserData("r2-cs", tgtcs);
|
||||
tgt.getCompose().addInclude().setSystem(tgtcs.getUrl());
|
||||
}
|
||||
tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion()));
|
||||
if (src.hasExpansion()) {
|
||||
tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -257,9 +362,15 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t));
|
||||
if (src.hasImport()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasExclude()) {
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -273,7 +384,9 @@ public class ValueSet10_30 {
|
|||
if (noSystem == null || !t.getSystem().equals(noSystem))
|
||||
tgt.addInclude(convertConceptSetComponent(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t));
|
||||
if (src.hasExclude()) {
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getExclude()) tgt.addExclude(convertConceptSetComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -282,8 +395,12 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetContactComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -292,8 +409,12 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ContactDetail tgt = new org.hl7.fhir.dstu3.model.ContactDetail();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_30.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -302,12 +423,24 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
tgt.setTotal(src.getTotal());
|
||||
tgt.setOffset(src.getOffset());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
}
|
||||
if (src.hasTimestamp()) {
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
}
|
||||
if (src.hasTotal()) {
|
||||
tgt.setTotal(src.getTotal());
|
||||
}
|
||||
if (src.hasOffset()) {
|
||||
tgt.setOffset(src.getOffset());
|
||||
}
|
||||
if (src.hasParameter()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -316,12 +449,24 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
tgt.setTotal(src.getTotal());
|
||||
tgt.setOffset(src.getOffset());
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(src.getIdentifier());
|
||||
}
|
||||
if (src.hasTimestamp()) {
|
||||
tgt.setTimestamp(src.getTimestamp());
|
||||
}
|
||||
if (src.hasTotal()) {
|
||||
tgt.setTotal(src.getTotal());
|
||||
}
|
||||
if (src.hasOffset()) {
|
||||
tgt.setOffset(src.getOffset());
|
||||
}
|
||||
if (src.hasParameter()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -330,12 +475,24 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSystem(src.getSystem());
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
|
||||
if (src.hasSystem()) {
|
||||
tgt.setSystem(src.getSystem());
|
||||
}
|
||||
if (src.hasAbstract()) {
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasDisplay()) {
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
}
|
||||
if (src.hasContains()) {
|
||||
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -344,12 +501,24 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setSystem(src.getSystem());
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
|
||||
if (src.hasSystem()) {
|
||||
tgt.setSystem(src.getSystem());
|
||||
}
|
||||
if (src.hasAbstract()) {
|
||||
tgt.setAbstract(src.getAbstract());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasDisplay()) {
|
||||
tgt.setDisplay(src.getDisplay());
|
||||
}
|
||||
if (src.hasContains()) {
|
||||
for (org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -358,8 +527,12 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -368,8 +541,12 @@ public class ValueSet10_30 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent();
|
||||
VersionConvertor_10_30.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_30.convertType(src.getValue()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,18 +10,38 @@ public class Appointment10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Appointment tgt = new org.hl7.fhir.r4.model.Appointment();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertAppointmentStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasType())
|
||||
tgt.addServiceType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
tgt.setPriority(src.getPriority());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setComment(src.getComment());
|
||||
for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(src.getPriority());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasMinutesDuration()) {
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
}
|
||||
if (src.hasSlot()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasParticipant()) {
|
||||
for (org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -30,17 +50,39 @@ public class Appointment10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Appointment tgt = new org.hl7.fhir.dstu2.model.Appointment();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertAppointmentStatus(src.getStatus()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPriority(src.getPriority());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setComment(src.getComment());
|
||||
for (org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasServiceType()) {
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(src.getPriority());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasMinutesDuration()) {
|
||||
tgt.setMinutesDuration(src.getMinutesDuration());
|
||||
}
|
||||
if (src.hasSlot()) {
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_10_40.convertReference(t));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasParticipant()) {
|
||||
for (org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertAppointmentParticipantComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -49,10 +91,18 @@ public class Appointment10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -61,10 +111,18 @@ public class Appointment10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasRequired()) {
|
||||
tgt.setRequired(convertParticipantRequired(src.getRequired()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertParticipationStatus(src.getStatus()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,14 +10,30 @@ public class AppointmentResponse10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.AppointmentResponse tgt = new org.hl7.fhir.r4.model.AppointmentResponse();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointment()));
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasParticipantType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasParticipantStatus()) {
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class AppointmentResponse10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AppointmentResponse tgt = new org.hl7.fhir.dstu2.model.AppointmentResponse();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointment()));
|
||||
tgt.setStart(src.getStart());
|
||||
tgt.setEnd(src.getEnd());
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setActor(VersionConvertor_10_40.convertReference(src.getActor()));
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
tgt.setComment(src.getComment());
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStart()) {
|
||||
tgt.setStart(src.getStart());
|
||||
}
|
||||
if (src.hasEnd()) {
|
||||
tgt.setEnd(src.getEnd());
|
||||
}
|
||||
if (src.hasParticipantType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasParticipantStatus()) {
|
||||
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,17 +11,37 @@ public class AuditEvent10_40 {
|
|||
org.hl7.fhir.r4.model.AuditEvent tgt = new org.hl7.fhir.r4.model.AuditEvent();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
if (src.hasEvent()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCoding(src.getEvent().getType()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getSubtype()) tgt.addSubtype(VersionConvertor_10_40.convertCoding(t));
|
||||
tgt.setAction(convertAuditEventAction(src.getEvent().getAction()));
|
||||
tgt.setRecorded(src.getEvent().getDateTime());
|
||||
tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome()));
|
||||
tgt.setOutcomeDesc(src.getEvent().getOutcomeDesc());
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getEvent().getPurposeOfEvent()) tgt.addPurposeOfEvent().addCoding(VersionConvertor_10_40.convertCoding(t));
|
||||
if (src.hasEvent()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setAction(convertAuditEventAction(src.getEvent().getAction()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setRecorded(src.getEvent().getDateTime());
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
tgt.setOutcome(convertAuditEventOutcome(src.getEvent().getOutcome()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
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));
|
||||
}
|
||||
}
|
||||
if (src.hasParticipant()) {
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
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.AuditEventParticipantComponent t : src.getParticipant()) tgt.addAgent(convertAuditEventAgentComponent(t));
|
||||
tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent t : src.getObject()) tgt.addEntity(convertAuditEventEntityComponent(t));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -30,16 +50,36 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent tgt = new org.hl7.fhir.dstu2.model.AuditEvent();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.getEvent().setType(VersionConvertor_10_40.convertCoding(src.getType()));
|
||||
for (org.hl7.fhir.r4.model.Coding t : src.getSubtype()) tgt.getEvent().addSubtype(VersionConvertor_10_40.convertCoding(t));
|
||||
tgt.getEvent().setAction(convertAuditEventAction(src.getAction()));
|
||||
tgt.getEvent().setDateTime(src.getRecorded());
|
||||
tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome()));
|
||||
tgt.getEvent().setOutcomeDesc(src.getOutcomeDesc());
|
||||
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.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t));
|
||||
tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
|
||||
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t));
|
||||
if (src.hasType()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAction()) {
|
||||
tgt.getEvent().setAction(convertAuditEventAction(src.getAction()));
|
||||
}
|
||||
if (src.hasRecorded()) {
|
||||
tgt.getEvent().setDateTime(src.getRecorded());
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
tgt.getEvent().setOutcome(convertAuditEventOutcome(src.getOutcome()));
|
||||
}
|
||||
if (src.hasOutcomeDesc()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAgent()) {
|
||||
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent t : src.getAgent()) tgt.addParticipant(convertAuditEventAgentComponent(t));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(convertAuditEventSourceComponent(src.getSource()));
|
||||
}
|
||||
if (src.hasEntity()) {
|
||||
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent t : src.getEntity()) tgt.addObject(convertAuditEventEntityComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -86,18 +126,38 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setWho(VersionConvertor_10_40.convertReference(src.getReference()));
|
||||
if (src.hasRole()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasUserId())
|
||||
tgt.getWho().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getUserId()));
|
||||
tgt.setAltId(src.getAltId());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
|
||||
tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia()));
|
||||
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getPurposeOfUse()) tgt.addPurposeOfUse().addCoding(VersionConvertor_10_40.convertCoding(t));
|
||||
if (src.hasAltId()) {
|
||||
tgt.setAltId(src.getAltId());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRequestor()) {
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasMedia()) {
|
||||
tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia()));
|
||||
}
|
||||
if (src.hasNetwork()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -106,21 +166,39 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
if (src.hasRole()) {
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasWho()) {
|
||||
if (src.getWho().hasIdentifier())
|
||||
tgt.setUserId(VersionConvertor_10_40.convertIdentifier(src.getWho().getIdentifier()));
|
||||
if (src.getWho().hasReference() || src.getWho().hasDisplay() || src.getWho().hasExtension() || src.getWho().hasId())
|
||||
tgt.setReference(VersionConvertor_10_40.convertReference(src.getWho()));
|
||||
}
|
||||
tgt.setAltId(src.getAltId());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.r4.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue());
|
||||
tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia()));
|
||||
tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork()));
|
||||
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));
|
||||
if (src.hasAltId()) {
|
||||
tgt.setAltId(src.getAltId());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRequestor()) {
|
||||
tgt.setRequestor(src.getRequestor());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasMedia()) {
|
||||
tgt.setMedia(VersionConvertor_10_40.convertCoding(src.getMedia()));
|
||||
}
|
||||
if (src.hasNetwork()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -129,8 +207,12 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setAddress(src.getAddress());
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -139,8 +221,12 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setAddress(src.getAddress());
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertAuditEventParticipantNetworkType(src.getType()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -153,14 +239,30 @@ public class AuditEvent10_40 {
|
|||
tgt.getWhat().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasReference())
|
||||
tgt.setWhat(VersionConvertor_10_40.convertReference(src.getReference()));
|
||||
tgt.setType(VersionConvertor_10_40.convertCoding(src.getType()));
|
||||
tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole()));
|
||||
tgt.setLifecycle(VersionConvertor_10_40.convertCoding(src.getLifecycle()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCoding(t));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setQuery(src.getQuery());
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole()));
|
||||
}
|
||||
if (src.hasLifecycle()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasQuery()) {
|
||||
tgt.setQuery(src.getQuery());
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -175,14 +277,30 @@ public class AuditEvent10_40 {
|
|||
if (src.getWhat().hasReference() || src.getWhat().hasDisplay() || src.getWhat().hasExtension() || src.getWhat().hasId())
|
||||
tgt.setReference(VersionConvertor_10_40.convertReference(src.getWhat()));
|
||||
}
|
||||
tgt.setType(VersionConvertor_10_40.convertCoding(src.getType()));
|
||||
tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole()));
|
||||
tgt.setLifecycle(VersionConvertor_10_40.convertCoding(src.getLifecycle()));
|
||||
for (org.hl7.fhir.r4.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCoding(t));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setQuery(src.getQuery());
|
||||
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCoding(src.getType()));
|
||||
}
|
||||
if (src.hasRole()) {
|
||||
tgt.setRole(VersionConvertor_10_40.convertCoding(src.getRole()));
|
||||
}
|
||||
if (src.hasLifecycle()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasQuery()) {
|
||||
tgt.setQuery(src.getQuery());
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -191,7 +309,9 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasValueStringType())
|
||||
tgt.setValue(src.getValueStringType().getValue().getBytes());
|
||||
else if (src.hasValueBase64BinaryType())
|
||||
|
@ -204,7 +324,9 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasValue())
|
||||
tgt.setValue(new org.hl7.fhir.r4.model.Base64BinaryType(src.getValue()));
|
||||
return tgt;
|
||||
|
@ -287,10 +409,14 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setSite(src.getSite());
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(src.getSite());
|
||||
}
|
||||
if (src.hasIdentifier())
|
||||
tgt.getObserver().setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t));
|
||||
if (src.hasType()) {
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -299,10 +425,14 @@ public class AuditEvent10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setSite(src.getSite());
|
||||
if (src.hasSite()) {
|
||||
tgt.setSite(src.getSite());
|
||||
}
|
||||
if (src.hasObserver())
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getObserver().getIdentifier()));
|
||||
for (org.hl7.fhir.r4.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t));
|
||||
if (src.hasType()) {
|
||||
for (org.hl7.fhir.r4.model.Coding t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCoding(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,11 +10,21 @@ public class Basic10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Basic tgt = new org.hl7.fhir.r4.model.Basic();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -23,11 +33,21 @@ public class Basic10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Basic tgt = new org.hl7.fhir.dstu2.model.Basic();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,9 @@ public class Binary10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Binary tgt = new org.hl7.fhir.dstu2.model.Binary();
|
||||
VersionConvertor_10_40.copyResource(src, tgt);
|
||||
tgt.setContentType(src.getContentType());
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(src.getContentType());
|
||||
}
|
||||
tgt.setContent(src.getContent());
|
||||
return tgt;
|
||||
}
|
||||
|
@ -20,8 +22,12 @@ public class Binary10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Binary tgt = new org.hl7.fhir.r4.model.Binary();
|
||||
VersionConvertor_10_40.copyResource(src, tgt);
|
||||
tgt.setContentType(src.getContentType());
|
||||
tgt.setContent(src.getContent());
|
||||
if (src.hasContentType()) {
|
||||
tgt.setContentType(src.getContentType());
|
||||
}
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(src.getContent());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,12 +11,20 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle tgt = new org.hl7.fhir.r4.model.Bundle();
|
||||
VersionConvertor_10_40.copyResource(src, tgt);
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
}
|
||||
if (src.hasTotal())
|
||||
tgt.setTotal(src.getTotal());
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t));
|
||||
tgt.setSignature(VersionConvertor_10_40.convertSignature(src.getSignature()));
|
||||
if (src.hasLink()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSignature()) {
|
||||
tgt.setSignature(VersionConvertor_10_40.convertSignature(src.getSignature()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -25,11 +33,17 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle tgt = new org.hl7.fhir.dstu2.model.Bundle();
|
||||
VersionConvertor_10_40.copyResource(src, tgt);
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertBundleType(src.getType()));
|
||||
}
|
||||
if (src.hasTotal())
|
||||
tgt.setTotal(src.getTotal());
|
||||
for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
for (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent t : src.getEntry()) tgt.addEntry(convertBundleEntryComponent(t, advisor));
|
||||
if (src.hasLink()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSignature())
|
||||
tgt.setSignature(VersionConvertor_10_40.convertSignature(src.getSignature()));
|
||||
return tgt;
|
||||
|
@ -44,12 +58,24 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
tgt.setFullUrl(src.getFullUrl());
|
||||
tgt.setResource(VersionConvertor_10_40.convertResource(src.getResource()));
|
||||
tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
|
||||
tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
|
||||
tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
|
||||
if (src.hasLink()) {
|
||||
for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
|
||||
}
|
||||
if (src.hasFullUrl()) {
|
||||
tgt.setFullUrl(src.getFullUrl());
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
tgt.setResource(VersionConvertor_10_40.convertResource(src.getResource()));
|
||||
}
|
||||
if (src.hasSearch()) {
|
||||
tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
|
||||
}
|
||||
if (src.hasRequest()) {
|
||||
tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
|
||||
}
|
||||
if (src.hasResponse()) {
|
||||
tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -84,12 +110,24 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIfNoneMatch()) {
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
}
|
||||
if (src.hasIfModifiedSince()) {
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
}
|
||||
if (src.hasIfMatch()) {
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
}
|
||||
if (src.hasIfNoneExist()) {
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -98,12 +136,24 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
if (src.hasMethod()) {
|
||||
tgt.setMethod(convertHTTPVerb(src.getMethod()));
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIfNoneMatch()) {
|
||||
tgt.setIfNoneMatch(src.getIfNoneMatch());
|
||||
}
|
||||
if (src.hasIfModifiedSince()) {
|
||||
tgt.setIfModifiedSince(src.getIfModifiedSince());
|
||||
}
|
||||
if (src.hasIfMatch()) {
|
||||
tgt.setIfMatch(src.getIfMatch());
|
||||
}
|
||||
if (src.hasIfNoneExist()) {
|
||||
tgt.setIfNoneExist(src.getIfNoneExist());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -112,10 +162,18 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setStatus(src.getStatus());
|
||||
tgt.setLocation(src.getLocation());
|
||||
tgt.setEtag(src.getEtag());
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(src.getStatus());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(src.getLocation());
|
||||
}
|
||||
if (src.hasEtag()) {
|
||||
tgt.setEtag(src.getEtag());
|
||||
}
|
||||
if (src.hasLastModified()) {
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,10 +182,18 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setStatus(src.getStatus());
|
||||
tgt.setLocation(src.getLocation());
|
||||
tgt.setEtag(src.getEtag());
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(src.getStatus());
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(src.getLocation());
|
||||
}
|
||||
if (src.hasEtag()) {
|
||||
tgt.setEtag(src.getEtag());
|
||||
}
|
||||
if (src.hasLastModified()) {
|
||||
tgt.setLastModified(src.getLastModified());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -136,8 +202,12 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
tgt.setScore(src.getScore());
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
}
|
||||
if (src.hasScore()) {
|
||||
tgt.setScore(src.getScore());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -146,8 +216,12 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
tgt.setScore(src.getScore());
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertSearchEntryMode(src.getMode()));
|
||||
}
|
||||
if (src.hasScore()) {
|
||||
tgt.setScore(src.getScore());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -156,8 +230,12 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setRelation(src.getRelation());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasRelation()) {
|
||||
tgt.setRelation(src.getRelation());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -166,8 +244,12 @@ public class Bundle10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setRelation(src.getRelation());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasRelation()) {
|
||||
tgt.setRelation(src.getRelation());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,20 +10,40 @@ public class CarePlan10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CarePlan tgt = new org.hl7.fhir.r4.model.CarePlan();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getContext()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getContext()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) if (!tgt.hasAuthor())
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(t));
|
||||
else
|
||||
tgt.addContributor(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
if (src.hasCategory()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAddresses()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActivity()) {
|
||||
for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -32,19 +52,41 @@ public class CarePlan10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan tgt = new org.hl7.fhir.dstu2.model.CarePlan();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
tgt.setContext(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setContext(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasAuthor())
|
||||
tgt.addAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getContributor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
if (src.hasContributor()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasAddresses()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasActivity()) {
|
||||
for (org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent t : src.getActivity()) tgt.addActivity(convertCarePlanActivityComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -53,9 +95,15 @@ public class CarePlan10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_40.convertAnnotation(t));
|
||||
tgt.setReference(VersionConvertor_10_40.convertReference(src.getReference()));
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
if (src.hasProgress()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -64,9 +112,15 @@ public class CarePlan10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_40.convertAnnotation(t));
|
||||
tgt.setReference(VersionConvertor_10_40.convertReference(src.getReference()));
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
if (src.hasProgress()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -75,19 +129,45 @@ public class CarePlan10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
tgt.setProhibited(src.getDoNotPerform());
|
||||
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled()));
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct()));
|
||||
tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount()));
|
||||
tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonReference()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDoNotPerform()) {
|
||||
tgt.setProhibited(src.getDoNotPerform());
|
||||
}
|
||||
if (src.hasScheduled()) {
|
||||
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProduct()) {
|
||||
tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct()));
|
||||
}
|
||||
if (src.hasDailyAmount()) {
|
||||
tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount()));
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -96,19 +176,45 @@ public class CarePlan10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
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.getGoal()) tgt.addGoal(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
tgt.setDoNotPerform(src.getProhibited());
|
||||
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled()));
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getPerformer()) tgt.addPerformer(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct()));
|
||||
tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount()));
|
||||
tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity()));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonReference()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasProhibited()) {
|
||||
tgt.setDoNotPerform(src.getProhibited());
|
||||
}
|
||||
if (src.hasScheduled()) {
|
||||
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getScheduled()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasProduct()) {
|
||||
tgt.setProduct(VersionConvertor_10_40.convertType(src.getProduct()));
|
||||
}
|
||||
if (src.hasDailyAmount()) {
|
||||
tgt.setDailyAmount(VersionConvertor_10_40.convertSimpleQuantity(src.getDailyAmount()));
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(VersionConvertor_10_40.convertSimpleQuantity(src.getQuantity()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,18 +10,42 @@ public class Communication10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Communication tgt = new org.hl7.fhir.r4.model.Communication();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setSent(src.getSent());
|
||||
tgt.setReceived(src.getReceived());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasSent()) {
|
||||
tgt.setSent(src.getSent());
|
||||
}
|
||||
if (src.hasReceived()) {
|
||||
tgt.setReceived(src.getReceived());
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -30,18 +54,42 @@ public class Communication10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Communication tgt = new org.hl7.fhir.dstu2.model.Communication();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setSent(src.getSent());
|
||||
tgt.setReceived(src.getReceived());
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasSent()) {
|
||||
tgt.setSent(src.getSent());
|
||||
}
|
||||
if (src.hasReceived()) {
|
||||
tgt.setReceived(src.getReceived());
|
||||
}
|
||||
if (src.hasReasonCode()) {
|
||||
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()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -50,7 +98,9 @@ public class Communication10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -59,7 +109,9 @@ public class Communication10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,20 +10,48 @@ public class CommunicationRequest10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CommunicationRequest tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester()));
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setScheduled(VersionConvertor_10_40.convertType(src.getOccurrence()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setRequestedOn(src.getAuthoredOn());
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRequester()) {
|
||||
tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasOccurrence()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAuthoredOn()) {
|
||||
tgt.setRequestedOn(src.getAuthoredOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -32,20 +60,48 @@ public class CommunicationRequest10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CommunicationRequest tgt = new org.hl7.fhir.r4.model.CommunicationRequest();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setSender(VersionConvertor_10_40.convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getRecipient()) tgt.addRecipient(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent t : src.getPayload()) tgt.addPayload(convertCommunicationRequestPayloadComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getMedium()) tgt.addMedium(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester()));
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setOccurrence(VersionConvertor_10_40.convertType(src.getScheduled()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setAuthoredOn(src.getRequestedOn());
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSender()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPayload()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRequester()) {
|
||||
tgt.setRequester(VersionConvertor_10_40.convertReference(src.getRequester()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasScheduled()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRequestedOn()) {
|
||||
tgt.setAuthoredOn(src.getRequestedOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,7 +110,9 @@ public class CommunicationRequest10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -63,7 +121,9 @@ public class CommunicationRequest10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
if (src.hasContent()) {
|
||||
tgt.setContent(VersionConvertor_10_40.convertType(src.getContent()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,22 +10,46 @@ public class Composition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition tgt = new org.hl7.fhir.dstu2.model.Composition();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasCategory())
|
||||
tgt.setClass_(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
tgt.setConfidentiality(src.getConfidentiality().toCode());
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
|
||||
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
|
||||
for (org.hl7.fhir.r4.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.r4.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasConfidentiality()) {
|
||||
tgt.setConfidentiality(src.getConfidentiality().toCode());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAttester()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSection()) {
|
||||
for (org.hl7.fhir.r4.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -34,25 +58,51 @@ public class Composition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Composition tgt = new org.hl7.fhir.r4.model.Composition();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_()));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_()));
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertCompositionStatus(src.getStatus()));
|
||||
}
|
||||
try {
|
||||
tgt.setConfidentiality(org.hl7.fhir.r4.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality()));
|
||||
if (src.hasConfidentiality()) {
|
||||
tgt.setConfidentiality(org.hl7.fhir.r4.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality()));
|
||||
}
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
throw new FHIRException(e);
|
||||
}
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
|
||||
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAttester()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEvent()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasSection()) {
|
||||
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -97,8 +147,12 @@ public class Composition10_40 {
|
|||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
if (src.hasMode())
|
||||
tgt.addMode(convertCompositionAttestationMode(src.getMode()));
|
||||
tgt.setTime(src.getTime());
|
||||
tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty()));
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
if (src.hasParty()) {
|
||||
tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -109,8 +163,12 @@ public class Composition10_40 {
|
|||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
if (src.hasMode())
|
||||
tgt.setMode(convertCompositionAttestationMode(src.getMode().get(0).getValue()));
|
||||
tgt.setTime(src.getTime());
|
||||
tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty()));
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
if (src.hasParty()) {
|
||||
tgt.setParty(VersionConvertor_10_40.convertReference(src.getParty()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -119,9 +177,15 @@ public class Composition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -130,9 +194,15 @@ public class Composition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionEventComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -175,18 +245,34 @@ public class Composition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText()));
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText()));
|
||||
}
|
||||
try {
|
||||
tgt.setMode(org.hl7.fhir.r4.model.Composition.SectionMode.fromCode(src.getMode()));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(org.hl7.fhir.r4.model.Composition.SectionMode.fromCode(src.getMode()));
|
||||
}
|
||||
} catch (org.hl7.fhir.exceptions.FHIRException e) {
|
||||
throw new FHIRException(e);
|
||||
}
|
||||
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setEmptyReason(VersionConvertor_10_40.convertCodeableConcept(src.getEmptyReason()));
|
||||
for (org.hl7.fhir.dstu2.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasOrderedBy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEmptyReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -195,14 +281,30 @@ public class Composition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText()));
|
||||
tgt.setMode(src.getMode().toCode());
|
||||
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getEntry()) tgt.addEntry(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setEmptyReason(VersionConvertor_10_40.convertCodeableConcept(src.getEmptyReason()));
|
||||
for (org.hl7.fhir.r4.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasText()) {
|
||||
tgt.setText(VersionConvertor_10_40.convertNarrative(src.getText()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(src.getMode().toCode());
|
||||
}
|
||||
if (src.hasOrderedBy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEmptyReason()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ import org.hl7.fhir.exceptions.FHIRException;
|
|||
import org.hl7.fhir.r4.model.CanonicalType;
|
||||
import org.hl7.fhir.r4.model.ConceptMap;
|
||||
import org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -50,26 +49,54 @@ public class ConceptMap10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap tgt = new org.hl7.fhir.dstu2.model.ConceptMap();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setSource(VersionConvertor_10_40.convertType(src.getSource()));
|
||||
tgt.setTarget(VersionConvertor_10_40.convertType(src.getTarget()));
|
||||
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));
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_40.convertType(src.getSource()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -78,8 +105,12 @@ public class ConceptMap10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -88,8 +119,12 @@ public class ConceptMap10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -152,9 +187,15 @@ public class ConceptMap10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setProperty(src.getElement());
|
||||
tgt.setSystem(src.getCodeSystem());
|
||||
tgt.setValue(src.getCode());
|
||||
if (src.hasElement()) {
|
||||
tgt.setProperty(src.getElement());
|
||||
}
|
||||
if (src.hasCodeSystem()) {
|
||||
tgt.setSystem(src.getCodeSystem());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setValue(src.getCode());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -163,9 +204,15 @@ public class ConceptMap10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setElement(src.getProperty());
|
||||
tgt.setCodeSystem(src.getSystem());
|
||||
tgt.setCode(src.getValue());
|
||||
if (src.hasProperty()) {
|
||||
tgt.setElement(src.getProperty());
|
||||
}
|
||||
if (src.hasSystem()) {
|
||||
tgt.setCodeSystem(src.getSystem());
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setCode(src.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -176,9 +223,13 @@ public class ConceptMap10_40 {
|
|||
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();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
tgt.addTarget(convertTargetElementComponent(t));
|
||||
res.add(new VersionConvertor_10_40.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem()));
|
||||
if (src.hasCodeSystem()) {
|
||||
res.add(new VersionConvertor_10_40.SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem()));
|
||||
}
|
||||
}
|
||||
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();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCodeSystem(g.getSource());
|
||||
tgt.setCode(src.getCode());
|
||||
for (org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
for (org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g));
|
||||
}
|
||||
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();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCodeSystem(g.getTarget());
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
tgt.setComments(src.getComment());
|
||||
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.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasEquivalence()) {
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComments(src.getComment());
|
||||
}
|
||||
if (src.hasDependsOn()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -213,11 +278,21 @@ public class ConceptMap10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(src.getCode());
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
tgt.setComment(src.getComments());
|
||||
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.getProduct()) tgt.addProduct(convertOtherElementComponent(t));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(src.getCode());
|
||||
}
|
||||
if (src.hasEquivalence()) {
|
||||
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
|
||||
}
|
||||
if (src.hasComments()) {
|
||||
tgt.setComment(src.getComments());
|
||||
}
|
||||
if (src.hasDependsOn()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,23 +10,49 @@ public class Condition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition tgt = new org.hl7.fhir.dstu2.model.Condition();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasAsserter()) {
|
||||
tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter()));
|
||||
}
|
||||
if (src.hasRecordedDate())
|
||||
tgt.setDateRecorded(src.getRecordedDate());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasClinicalStatus())
|
||||
tgt.setClinicalStatus(convertConditionClinicalStatus(src.getClinicalStatus()));
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
|
||||
tgt.setStage(convertConditionStageComponent(src.getStageFirstRep()));
|
||||
for (org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
if (src.hasVerificationStatus()) {
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
}
|
||||
if (src.hasAbatement()) {
|
||||
tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
|
||||
}
|
||||
if (src.hasStage()) {
|
||||
tgt.setStage(convertConditionStageComponent(src.getStageFirstRep()));
|
||||
}
|
||||
if (src.hasEvidence()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -35,23 +61,49 @@ public class Condition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Condition tgt = new org.hl7.fhir.r4.model.Condition();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasAsserter()) {
|
||||
tgt.setAsserter(VersionConvertor_10_40.convertReference(src.getAsserter()));
|
||||
}
|
||||
if (src.hasDateRecorded())
|
||||
tgt.setRecordedDate(src.getDateRecorded());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasClinicalStatus())
|
||||
tgt.setClinicalStatus(convertConditionClinicalStatus(src.getClinicalStatus()));
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
|
||||
tgt.addStage(convertConditionStageComponent(src.getStage()));
|
||||
for (org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent t : src.getEvidence()) tgt.addEvidence(convertConditionEvidenceComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
if (src.hasVerificationStatus()) {
|
||||
tgt.setVerificationStatus(convertConditionVerificationStatus(src.getVerificationStatus()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
}
|
||||
if (src.hasAbatement()) {
|
||||
tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
|
||||
}
|
||||
if (src.hasStage()) {
|
||||
tgt.addStage(convertConditionStageComponent(src.getStage()));
|
||||
}
|
||||
if (src.hasEvidence()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -78,8 +130,12 @@ public class Condition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.addCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -88,8 +144,12 @@ public class Condition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept cc : src.getCode()) tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(cc));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(VersionConvertor_10_40.convertReference(t));
|
||||
if (src.hasCode()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -98,8 +158,12 @@ public class Condition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setSummary(VersionConvertor_10_40.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_40.convertReference(t));
|
||||
if (src.hasSummary()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -108,8 +172,12 @@ public class Condition10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionStageComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setSummary(VersionConvertor_10_40.convertCodeableConcept(src.getSummary()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) tgt.addAssessment(VersionConvertor_10_40.convertReference(t));
|
||||
if (src.hasSummary()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,32 +44,64 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
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");
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasPurpose()) {
|
||||
tgt.setRequirements(src.getPurpose());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
}
|
||||
if (src.hasSoftware()) {
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
}
|
||||
if (src.hasImplementation())
|
||||
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
|
||||
if (src.hasFhirVersion())
|
||||
tgt.setFhirVersion(src.getFhirVersion().toCode());
|
||||
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()));
|
||||
for (org.hl7.fhir.r4.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
|
||||
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 (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
|
||||
if (src.hasFormat()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasRest()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDocument()) {
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -78,29 +110,63 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement tgt = new org.hl7.fhir.r4.model.CapabilityStatement();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
|
||||
tgt.setFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasRequirements()) {
|
||||
tgt.setPurpose(src.getRequirements());
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasKind()) {
|
||||
tgt.setKind(convertConformanceStatementKind(src.getKind()));
|
||||
}
|
||||
if (src.hasSoftware()) {
|
||||
tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
|
||||
}
|
||||
if (src.hasImplementation()) {
|
||||
tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
|
||||
}
|
||||
if (src.hasFhirVersion()) {
|
||||
tgt.setFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
|
||||
}
|
||||
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()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeType t : src.getFormat()) tgt.addFormat(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent t : src.getRest()) tgt.addRest(convertConformanceRestComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent t : src.getMessaging()) tgt.addMessaging(convertConformanceMessagingComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent t : src.getDocument()) tgt.addDocument(convertConformanceDocumentComponent(t));
|
||||
if (src.hasFormat()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasMessaging()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -109,8 +175,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceContactComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -119,8 +189,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -129,9 +203,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -140,9 +220,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertDocumentMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasProfileElement()) {
|
||||
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -151,8 +237,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -161,8 +251,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setUrl(src.getUrl());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -171,9 +265,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasEndpoint()) {
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
}
|
||||
if (src.hasReliableCache()) {
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
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();
|
||||
tgt.addEvent(event);
|
||||
|
@ -201,9 +301,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasEndpoint()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
|
||||
}
|
||||
if (src.hasReliableCache()) {
|
||||
tgt.setReliableCache(src.getReliableCache());
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
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);
|
||||
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;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol()));
|
||||
tgt.setAddress(src.getAddress());
|
||||
if (src.hasProtocol()) {
|
||||
tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol()));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -242,8 +352,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol()));
|
||||
tgt.setAddress(src.getAddress());
|
||||
if (src.hasProtocol()) {
|
||||
tgt.setProtocol(VersionConvertor_10_40.convertCoding(src.getProtocol()));
|
||||
}
|
||||
if (src.hasAddress()) {
|
||||
tgt.setAddress(src.getAddress());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -252,16 +366,32 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertSystemInteractionComponent(t));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasSecurity()) {
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
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));
|
||||
}
|
||||
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);
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
if (src.hasSearchParam()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCompartment()) {
|
||||
for (org.hl7.fhir.dstu2.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -270,10 +400,18 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertRestfulConformanceMode(src.getMode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
if (src.hasSecurity()) {
|
||||
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
|
||||
}
|
||||
if (src.hasResource()) {
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource()) tgt.addResource(convertConformanceRestResourceComponent(t));
|
||||
}
|
||||
boolean batch = false;
|
||||
boolean transaction = false;
|
||||
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);
|
||||
else
|
||||
tgt.setTransactionMode(transaction ? org.hl7.fhir.dstu2.model.Conformance.TransactionMode.TRANSACTION : org.hl7.fhir.dstu2.model.Conformance.TransactionMode.NOTSUPPORTED);
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent t : src.getOperation()) tgt.addOperation(convertConformanceRestOperationComponent(t));
|
||||
for (org.hl7.fhir.r4.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
if (src.hasSearchParam()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCompartment()) {
|
||||
for (org.hl7.fhir.r4.model.UriType t : src.getCompartment()) tgt.addCompartment(t.getValue());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -299,8 +443,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinitionElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getDefinition()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setDefinitionElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getDefinition()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -309,8 +457,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinition(VersionConvertor_10_40.convertCanonicalToReference(src.getDefinitionElement()));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinitionElement()) {
|
||||
tgt.setDefinition(VersionConvertor_10_40.convertCanonicalToReference(src.getDefinitionElement()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -319,18 +471,42 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasVersioning()) {
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
}
|
||||
if (src.hasReadHistory()) {
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
}
|
||||
if (src.hasUpdateCreate()) {
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
}
|
||||
if (src.hasConditionalCreate()) {
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
}
|
||||
if (src.hasConditionalUpdate()) {
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
}
|
||||
if (src.hasConditionalDelete()) {
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
}
|
||||
if (src.hasSearchInclude()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasSearchParam()) {
|
||||
for (org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -339,19 +515,41 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfile())
|
||||
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
for (org.hl7.fhir.r4.model.StringType t : src.getSearchInclude()) tgt.addSearchInclude(t.getValue());
|
||||
for (org.hl7.fhir.r4.model.StringType t : src.getSearchRevInclude()) tgt.addSearchRevInclude(t.getValue());
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
if (src.hasInteraction()) {
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
|
||||
}
|
||||
if (src.hasVersioning()) {
|
||||
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
|
||||
}
|
||||
if (src.hasReadHistory()) {
|
||||
tgt.setReadHistory(src.getReadHistory());
|
||||
}
|
||||
if (src.hasUpdateCreate()) {
|
||||
tgt.setUpdateCreate(src.getUpdateCreate());
|
||||
}
|
||||
if (src.hasConditionalCreate()) {
|
||||
tgt.setConditionalCreate(src.getConditionalCreate());
|
||||
}
|
||||
if (src.hasConditionalUpdate()) {
|
||||
tgt.setConditionalUpdate(src.getConditionalUpdate());
|
||||
}
|
||||
if (src.hasConditionalDelete()) {
|
||||
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
|
||||
}
|
||||
if (src.hasSearchInclude()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasSearchParam()) {
|
||||
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam()) tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -360,10 +558,18 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -372,10 +578,18 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setDefinition(src.getDefinition());
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertSearchParamType(src.getType()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -384,9 +598,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCors(src.getCors());
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasCors()) {
|
||||
tgt.setCors(src.getCors());
|
||||
}
|
||||
if (src.hasService()) {
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -395,9 +615,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCors(src.getCors());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasCors()) {
|
||||
tgt.setCors(src.getCors());
|
||||
}
|
||||
if (src.hasService()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -406,9 +632,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasReleaseDate()) {
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -417,9 +649,15 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasReleaseDate()) {
|
||||
tgt.setReleaseDate(src.getReleaseDate());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -484,8 +722,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -494,8 +736,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -560,8 +806,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -570,8 +820,12 @@ public class Conformance10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
|
||||
}
|
||||
if (src.hasDocumentation()) {
|
||||
tgt.setDocumentation(src.getDocumentation());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ import org.hl7.fhir.convertors.VersionConvertor_10_40;
|
|||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind;
|
||||
import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -17,27 +16,45 @@ public class DataElement10_40 {
|
|||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
if (src.hasUrl())
|
||||
tgt.setUrl(src.getUrl().replace("/DataElement/", "/StructureDefinition/de-"));
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));
|
||||
if (src.hasName()) {
|
||||
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.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_40.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasMapping()) {
|
||||
for (org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
|
||||
}
|
||||
List<String> slicePaths = new ArrayList<String>();
|
||||
for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
|
||||
if (t.hasSlicing())
|
||||
slicePaths.add(t.getPath());
|
||||
tgt.getSnapshot().addElement(VersionConvertor_10_40.convertElementDefinition(t, slicePaths, src.getElement(), src.getElement().indexOf(t)));
|
||||
if (src.hasElement()) {
|
||||
tgt.getSnapshot().addElement(VersionConvertor_10_40.convertElementDefinition(t, slicePaths, src.getElement(), src.getElement().indexOf(t)));
|
||||
}
|
||||
}
|
||||
tgt.setKind(StructureDefinitionKind.COMPLEXTYPE);
|
||||
tgt.setAbstract(false);
|
||||
|
@ -52,8 +69,12 @@ public class DataElement10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -62,8 +83,12 @@ public class DataElement10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -72,10 +97,18 @@ public class DataElement10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
tgt.setUri(src.getUri());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setComment(src.getComments());
|
||||
if (src.hasIdentity()) {
|
||||
tgt.setIdentity(src.getIdentity());
|
||||
}
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasComments()) {
|
||||
tgt.setComment(src.getComments());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,17 +10,35 @@ public class DetectedIssue10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DetectedIssue tgt = new org.hl7.fhir.dstu2.model.DetectedIssue();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setDetail(src.getDetail());
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(src.getDetail());
|
||||
}
|
||||
if (src.hasIdentifiedDateTimeType())
|
||||
tgt.setDateElement(VersionConvertor_10_40.convertDateTime(src.getIdentifiedDateTimeType()));
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep()));
|
||||
tgt.setReference(src.getReference());
|
||||
for (org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep()));
|
||||
}
|
||||
if (src.hasReference()) {
|
||||
tgt.setReference(src.getReference());
|
||||
}
|
||||
if (src.hasMitigation()) {
|
||||
for (org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -29,17 +47,35 @@ public class DetectedIssue10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DetectedIssue tgt = new org.hl7.fhir.r4.model.DetectedIssue();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setSeverity(convertDetectedIssueSeverity(src.getSeverity()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setDetail(src.getDetail());
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasSeverity()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDetail()) {
|
||||
tgt.setDetail(src.getDetail());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setIdentified(VersionConvertor_10_40.convertDateTime(src.getDateElement()));
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setReference(src.getReference());
|
||||
for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasReference()) {
|
||||
tgt.setReference(src.getReference());
|
||||
}
|
||||
if (src.hasMitigation()) {
|
||||
for (org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -48,10 +84,14 @@ public class DetectedIssue10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasAction()) {
|
||||
tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -60,10 +100,14 @@ public class DetectedIssue10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction()));
|
||||
if (src.hasAction()) {
|
||||
tgt.setAction(VersionConvertor_10_40.convertCodeableConcept(src.getAction()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,16 +10,36 @@ public class DeviceMetric10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DeviceMetric tgt = new org.hl7.fhir.r4.model.DeviceMetric();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit()));
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent()));
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
tgt.setMeasurementPeriod(VersionConvertor_10_40.convertTiming(src.getMeasurementPeriod()));
|
||||
for (org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
if (src.hasUnit()) {
|
||||
tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasParent()) {
|
||||
tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent()));
|
||||
}
|
||||
if (src.hasOperationalStatus()) {
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
}
|
||||
if (src.hasColor()) {
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
}
|
||||
if (src.hasMeasurementPeriod()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -28,16 +48,36 @@ public class DeviceMetric10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceMetric tgt = new org.hl7.fhir.dstu2.model.DeviceMetric();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep()));
|
||||
tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit()));
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent()));
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
tgt.setMeasurementPeriod(VersionConvertor_10_40.convertTiming(src.getMeasurementPeriod()));
|
||||
for (org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent t : src.getCalibration()) tgt.addCalibration(convertDeviceMetricCalibrationComponent(t));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifierFirstRep()));
|
||||
}
|
||||
if (src.hasUnit()) {
|
||||
tgt.setUnit(VersionConvertor_10_40.convertCodeableConcept(src.getUnit()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasParent()) {
|
||||
tgt.setParent(VersionConvertor_10_40.convertReference(src.getParent()));
|
||||
}
|
||||
if (src.hasOperationalStatus()) {
|
||||
tgt.setOperationalStatus(convertDeviceMetricOperationalStatus(src.getOperationalStatus()));
|
||||
}
|
||||
if (src.hasColor()) {
|
||||
tgt.setColor(convertDeviceMetricColor(src.getColor()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(convertDeviceMetricCategory(src.getCategory()));
|
||||
}
|
||||
if (src.hasMeasurementPeriod()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -46,9 +86,15 @@ public class DeviceMetric10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
tgt.setTime(src.getTime());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
}
|
||||
if (src.hasState()) {
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
}
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -57,9 +103,15 @@ public class DeviceMetric10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
tgt.setTime(src.getTime());
|
||||
if (src.hasType()) {
|
||||
tgt.setType(convertDeviceMetricCalibrationType(src.getType()));
|
||||
}
|
||||
if (src.hasState()) {
|
||||
tgt.setState(convertDeviceMetricCalibrationState(src.getState()));
|
||||
}
|
||||
if (src.hasTime()) {
|
||||
tgt.setTime(src.getTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,14 +11,30 @@ public class DeviceUseStatement10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setBodySite(VersionConvertor_10_40.convertType(src.getBodySite()));
|
||||
tgt.setDevice(VersionConvertor_10_40.convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addIndication(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (Annotation t : src.getNote()) tgt.addNotes(t.getText());
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming()));
|
||||
if (src.hasBodySite()) {
|
||||
tgt.setBodySite(VersionConvertor_10_40.convertType(src.getBodySite()));
|
||||
}
|
||||
if (src.hasDevice()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReasonCode()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasRecordedOn()) {
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -29,13 +45,27 @@ public class DeviceUseStatement10_40 {
|
|||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
if (src.hasBodySiteCodeableConcept())
|
||||
tgt.setBodySite(VersionConvertor_10_40.convertCodeableConcept(src.getBodySiteCodeableConcept()));
|
||||
tgt.setDevice(VersionConvertor_10_40.convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getIndication()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes()) tgt.addNote().setText(t.getValue());
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming()));
|
||||
if (src.hasDevice()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasIndication()) {
|
||||
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());
|
||||
}
|
||||
if (src.hasRecordedOn()) {
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasTiming()) {
|
||||
tgt.setTiming(VersionConvertor_10_40.convertType(src.getTiming()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,21 +10,51 @@ public class DiagnosticReport10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DiagnosticReport tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
|
||||
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
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.getResult()) tgt.addResult(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent t : src.getMedia()) tgt.addImage(convertDiagnosticReportImageComponent(t));
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getConclusionCode()) tgt.addCodedDiagnosis(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r4.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_40.convertAttachment(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasSpecimen()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasImagingStudy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasConclusion()) {
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
}
|
||||
if (src.hasConclusionCode()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -33,21 +63,51 @@ public class DiagnosticReport10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DiagnosticReport tgt = new org.hl7.fhir.r4.model.DiagnosticReport();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertDiagnosticReportStatus(src.getStatus()));
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective()));
|
||||
tgt.setIssued(src.getIssued());
|
||||
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.getResult()) tgt.addResult(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getImagingStudy()) tgt.addImagingStudy(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addMedia(convertDiagnosticReportImageComponent(t));
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addConclusionCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.Attachment t : src.getPresentedForm()) tgt.addPresentedForm(VersionConvertor_10_40.convertAttachment(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasEffective()) {
|
||||
tgt.setEffective(VersionConvertor_10_40.convertType(src.getEffective()));
|
||||
}
|
||||
if (src.hasIssued()) {
|
||||
tgt.setIssued(src.getIssued());
|
||||
}
|
||||
if (src.hasSpecimen()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasImagingStudy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasConclusion()) {
|
||||
tgt.setConclusion(src.getConclusion());
|
||||
}
|
||||
if (src.hasCodedDiagnosis()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -56,8 +116,12 @@ public class DiagnosticReport10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink()));
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,8 +130,12 @@ public class DiagnosticReport10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink()));
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasLink()) {
|
||||
tgt.setLink(VersionConvertor_10_40.convertReference(src.getLink()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -45,21 +45,51 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference tgt = new org.hl7.fhir.dstu2.model.DocumentReference();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setMasterIdentifier(VersionConvertor_10_40.convertIdentifier(src.getMasterIdentifier()));
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
tgt.setClass_(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
|
||||
tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator()));
|
||||
tgt.setCreated(src.getDate());
|
||||
tgt.setStatus(convertDocumentReferenceStatus(src.getStatus()));
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
if (src.hasMasterIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasCategory()) {
|
||||
tgt.setClass_(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
}
|
||||
if (src.hasCustodian()) {
|
||||
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
|
||||
}
|
||||
if (src.hasAuthenticator()) {
|
||||
tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator()));
|
||||
}
|
||||
if (src.hasDate()) {
|
||||
tgt.setCreated(src.getDate());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertDocumentReferenceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDocStatus()) {
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
}
|
||||
if (src.hasRelatesTo()) {
|
||||
for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasSecurityLabel()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -68,21 +98,51 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DocumentReference tgt = new org.hl7.fhir.r4.model.DocumentReference();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setMasterIdentifier(VersionConvertor_10_40.convertIdentifier(src.getMasterIdentifier()));
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_()));
|
||||
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
|
||||
tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator()));
|
||||
tgt.setDate(src.getCreated());
|
||||
tgt.setStatus(convertDocumentReferenceStatus(src.getStatus()));
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t));
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
if (src.hasMasterIdentifier()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasType()) {
|
||||
tgt.setType(VersionConvertor_10_40.convertCodeableConcept(src.getType()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getClass_()));
|
||||
}
|
||||
if (src.hasCustodian()) {
|
||||
tgt.setCustodian(VersionConvertor_10_40.convertReference(src.getCustodian()));
|
||||
}
|
||||
if (src.hasAuthenticator()) {
|
||||
tgt.setAuthenticator(VersionConvertor_10_40.convertReference(src.getAuthenticator()));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setDate(src.getCreated());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertDocumentReferenceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDocStatus()) {
|
||||
tgt.setDocStatus(convertDocStatus(src.getDocStatus()));
|
||||
}
|
||||
if (src.hasRelatesTo()) {
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasSecurityLabel()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasContext()) {
|
||||
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -91,8 +151,12 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setAttachment(VersionConvertor_10_40.convertAttachment(src.getAttachment()));
|
||||
for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(VersionConvertor_10_40.convertCoding(t));
|
||||
if (src.hasAttachment()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -101,8 +165,12 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setAttachment(VersionConvertor_10_40.convertAttachment(src.getAttachment()));
|
||||
tgt.addFormat(VersionConvertor_10_40.convertCoding(src.getFormat()));
|
||||
if (src.hasAttachment()) {
|
||||
tgt.setAttachment(VersionConvertor_10_40.convertAttachment(src.getAttachment()));
|
||||
}
|
||||
if (src.hasFormat()) {
|
||||
tgt.addFormat(VersionConvertor_10_40.convertCoding(src.getFormat()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -111,13 +179,27 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.addEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType()));
|
||||
tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting()));
|
||||
tgt.setSourcePatientInfo(VersionConvertor_10_40.convertReference(src.getSourcePatientInfo()));
|
||||
for (org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
|
||||
if (src.hasEncounter()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasFacilityType()) {
|
||||
tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType()));
|
||||
}
|
||||
if (src.hasPracticeSetting()) {
|
||||
tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting()));
|
||||
}
|
||||
if (src.hasSourcePatientInfo()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -128,12 +210,24 @@ public class DocumentReference10_40 {
|
|||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
if (src.hasEncounter())
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounterFirstRep()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getEvent()) tgt.addEvent(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType()));
|
||||
tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting()));
|
||||
tgt.setSourcePatientInfo(VersionConvertor_10_40.convertReference(src.getSourcePatientInfo()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getRelated()) tgt.addRelated(convertDocumentReferenceContextRelatedComponent(t));
|
||||
if (src.hasEvent()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasFacilityType()) {
|
||||
tgt.setFacilityType(VersionConvertor_10_40.convertCodeableConcept(src.getFacilityType()));
|
||||
}
|
||||
if (src.hasPracticeSetting()) {
|
||||
tgt.setPracticeSetting(VersionConvertor_10_40.convertCodeableConcept(src.getPracticeSetting()));
|
||||
}
|
||||
if (src.hasSourcePatientInfo()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -142,7 +236,9 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
if (src.hasIdentifier()) {
|
||||
tgt.setIdentifier(VersionConvertor_10_40.convertIdentifier(src.getIdentifier()));
|
||||
}
|
||||
tgt.setRef(VersionConvertor_10_40.convertReference(src));
|
||||
return tgt;
|
||||
}
|
||||
|
@ -161,8 +257,12 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -171,8 +271,12 @@ public class DocumentReference10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(convertDocumentRelationshipType(src.getCode()));
|
||||
}
|
||||
if (src.hasTarget()) {
|
||||
tgt.setTarget(VersionConvertor_10_40.convertReference(src.getTarget()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,23 +10,57 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter tgt = new org.hl7.fhir.dstu2.model.Encounter();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertEncounterState(src.getStatus()));
|
||||
tgt.setClass_(convertEncounterClass(src.getClass_()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority()));
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
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.getBasedOn()) tgt.addIncomingReferral(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
|
||||
tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointmentFirstRep()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setLength(VersionConvertor_10_40.convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
for (org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
|
||||
tgt.setServiceProvider(VersionConvertor_10_40.convertReference(src.getServiceProvider()));
|
||||
tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasBasedOn()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAppointment()) {
|
||||
tgt.setAppointment(VersionConvertor_10_40.convertReference(src.getAppointmentFirstRep()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasLength()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasHospitalization()) {
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -35,23 +69,57 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Encounter tgt = new org.hl7.fhir.r4.model.Encounter();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertEncounterState(src.getStatus()));
|
||||
tgt.setClass_(convertEncounterClass(src.getClass_()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
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.getIncomingReferral()) tgt.addBasedOn(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t));
|
||||
tgt.addAppointment(VersionConvertor_10_40.convertReference(src.getAppointment()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setLength(VersionConvertor_10_40.convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReasonCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
for (org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t));
|
||||
tgt.setServiceProvider(VersionConvertor_10_40.convertReference(src.getServiceProvider()));
|
||||
tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasClass_()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPriority()) {
|
||||
tgt.setPriority(VersionConvertor_10_40.convertCodeableConcept(src.getPriority()));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasIncomingReferral()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAppointment()) {
|
||||
tgt.addAppointment(VersionConvertor_10_40.convertReference(src.getAppointment()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasLength()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasHospitalization()) {
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
}
|
||||
if (src.hasLocation()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasPartOf()) {
|
||||
tgt.setPartOf(VersionConvertor_10_40.convertReference(src.getPartOf()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -107,15 +175,33 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin()));
|
||||
tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource()));
|
||||
tgt.setReAdmission(VersionConvertor_10_40.convertCodeableConcept(src.getReAdmission()));
|
||||
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.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination()));
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
if (src.hasPreAdmissionIdentifier()) {
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
}
|
||||
if (src.hasOrigin()) {
|
||||
tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin()));
|
||||
}
|
||||
if (src.hasAdmitSource()) {
|
||||
tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource()));
|
||||
}
|
||||
if (src.hasReAdmission()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSpecialCourtesy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination()));
|
||||
}
|
||||
if (src.hasDischargeDisposition()) {
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,15 +210,33 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin()));
|
||||
tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource()));
|
||||
tgt.setReAdmission(VersionConvertor_10_40.convertCodeableConcept(src.getReAdmission()));
|
||||
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.getSpecialCourtesy()) tgt.addSpecialCourtesy(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialArrangement()) tgt.addSpecialArrangement(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination()));
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
if (src.hasPreAdmissionIdentifier()) {
|
||||
tgt.setPreAdmissionIdentifier(VersionConvertor_10_40.convertIdentifier(src.getPreAdmissionIdentifier()));
|
||||
}
|
||||
if (src.hasOrigin()) {
|
||||
tgt.setOrigin(VersionConvertor_10_40.convertReference(src.getOrigin()));
|
||||
}
|
||||
if (src.hasAdmitSource()) {
|
||||
tgt.setAdmitSource(VersionConvertor_10_40.convertCodeableConcept(src.getAdmitSource()));
|
||||
}
|
||||
if (src.hasReAdmission()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasSpecialCourtesy()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDestination()) {
|
||||
tgt.setDestination(VersionConvertor_10_40.convertReference(src.getDestination()));
|
||||
}
|
||||
if (src.hasDischargeDisposition()) {
|
||||
tgt.setDischargeDisposition(VersionConvertor_10_40.convertCodeableConcept(src.getDischargeDisposition()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -141,9 +245,15 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -152,9 +262,15 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasLocation()) {
|
||||
tgt.setLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEncounterLocationStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -197,9 +313,15 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasIndividual()) {
|
||||
tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -208,9 +330,15 @@ public class Encounter10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual()));
|
||||
if (src.hasType()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasIndividual()) {
|
||||
tgt.setIndividual(VersionConvertor_10_40.convertReference(src.getIndividual()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,11 +10,21 @@ public class EnrollmentRequest10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.EnrollmentRequest tgt = new org.hl7.fhir.r4.model.EnrollmentRequest();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setProvider(VersionConvertor_10_40.convertReference(src.getProvider()));
|
||||
tgt.setCandidate(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasProvider()) {
|
||||
tgt.setProvider(VersionConvertor_10_40.convertReference(src.getProvider()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setCandidate(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasCoverage()) {
|
||||
tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -23,9 +33,15 @@ public class EnrollmentRequest10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu2.model.EnrollmentRequest();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasCoverage()) {
|
||||
tgt.setCoverage(VersionConvertor_10_40.convertReference(src.getCoverage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,12 +10,24 @@ public class EnrollmentResponse10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.EnrollmentResponse tgt = new org.hl7.fhir.r4.model.EnrollmentResponse();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setRequest(VersionConvertor_10_40.convertReference(src.getRequest()));
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
tgt.setCreated(src.getCreated());
|
||||
tgt.setOrganization(VersionConvertor_10_40.convertReference(src.getOrganization()));
|
||||
tgt.setRequestProvider(VersionConvertor_10_40.convertReference(src.getRequestProvider()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDisposition()) {
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
if (src.hasOrganization()) {
|
||||
tgt.setOrganization(VersionConvertor_10_40.convertReference(src.getOrganization()));
|
||||
}
|
||||
if (src.hasRequestProvider()) {
|
||||
tgt.setRequestProvider(VersionConvertor_10_40.convertReference(src.getRequestProvider()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -24,9 +36,15 @@ public class EnrollmentResponse10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EnrollmentResponse tgt = new org.hl7.fhir.dstu2.model.EnrollmentResponse();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
tgt.setCreated(src.getCreated());
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasDisposition()) {
|
||||
tgt.setDisposition(src.getDisposition());
|
||||
}
|
||||
if (src.hasCreated()) {
|
||||
tgt.setCreated(src.getCreated());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,15 +10,33 @@ public class EpisodeOfCare10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EpisodeOfCare tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
for (org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatusHistory()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCareManager()) {
|
||||
tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -27,15 +45,33 @@ public class EpisodeOfCare10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.EpisodeOfCare tgt = new org.hl7.fhir.r4.model.EpisodeOfCare();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
for (org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent t : src.getStatusHistory()) tgt.addStatusHistory(convertEpisodeOfCareStatusHistoryComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getReferralRequest()) tgt.addReferralRequest(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatusHistory()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPatient()) {
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
}
|
||||
if (src.hasManagingOrganization()) {
|
||||
tgt.setManagingOrganization(VersionConvertor_10_40.convertReference(src.getManagingOrganization()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCareManager()) {
|
||||
tgt.setCareManager(VersionConvertor_10_40.convertReference(src.getCareManager()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -86,8 +122,12 @@ public class EpisodeOfCare10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -96,8 +136,12 @@ public class EpisodeOfCare10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertEpisodeOfCareStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,17 +44,35 @@ public class FamilyMemberHistory10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.FamilyMemberHistory tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship()));
|
||||
tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn()));
|
||||
tgt.setAge(VersionConvertor_10_40.convertType(src.getAge()));
|
||||
tgt.setDeceased(VersionConvertor_10_40.convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRelationship()) {
|
||||
tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship()));
|
||||
}
|
||||
if (src.hasBorn()) {
|
||||
tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn()));
|
||||
}
|
||||
if (src.hasAge()) {
|
||||
tgt.setAge(VersionConvertor_10_40.convertType(src.getAge()));
|
||||
}
|
||||
if (src.hasDeceased()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -63,17 +81,35 @@ public class FamilyMemberHistory10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.FamilyMemberHistory tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setPatient(VersionConvertor_10_40.convertReference(src.getPatient()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship()));
|
||||
tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn()));
|
||||
tgt.setAge(VersionConvertor_10_40.convertType(src.getAge()));
|
||||
tgt.setDeceased(VersionConvertor_10_40.convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition()) tgt.addCondition(convertFamilyMemberHistoryConditionComponent(t));
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFamilyHistoryStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasRelationship()) {
|
||||
tgt.setRelationship(VersionConvertor_10_40.convertCodeableConcept(src.getRelationship()));
|
||||
}
|
||||
if (src.hasBorn()) {
|
||||
tgt.setBorn(VersionConvertor_10_40.convertType(src.getBorn()));
|
||||
}
|
||||
if (src.hasAge()) {
|
||||
tgt.setAge(VersionConvertor_10_40.convertType(src.getAge()));
|
||||
}
|
||||
if (src.hasDeceased()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -82,9 +118,15 @@ public class FamilyMemberHistory10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome()));
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -93,9 +135,15 @@ public class FamilyMemberHistory10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome()));
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasOutcome()) {
|
||||
tgt.setOutcome(VersionConvertor_10_40.convertCodeableConcept(src.getOutcome()));
|
||||
}
|
||||
if (src.hasOnset()) {
|
||||
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,14 +10,30 @@ public class Flag10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Flag tgt = new org.hl7.fhir.r4.model.Flag();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.addCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategory()));
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class Flag10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Flag tgt = new org.hl7.fhir.dstu2.model.Flag();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setCategory(VersionConvertor_10_40.convertCodeableConcept(src.getCategoryFirstRep()));
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertFlagStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasAuthor()) {
|
||||
tgt.setAuthor(VersionConvertor_10_40.convertReference(src.getAuthor()));
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,14 +10,30 @@ public class Group10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Group tgt = new org.hl7.fhir.r4.model.Group();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setType(convertGroupType(src.getType()));
|
||||
tgt.setActual(src.getActual());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
for (org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasActual()) {
|
||||
tgt.setActual(src.getActual());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
}
|
||||
if (src.hasCharacteristic()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -26,14 +42,30 @@ public class Group10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group tgt = new org.hl7.fhir.dstu2.model.Group();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setType(convertGroupType(src.getType()));
|
||||
tgt.setActual(src.getActual());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setName(src.getName());
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
for (org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
|
||||
for (org.hl7.fhir.r4.model.Group.GroupMemberComponent t : src.getMember()) tgt.addMember(convertGroupMemberComponent(t));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
if (src.hasActual()) {
|
||||
tgt.setActual(src.getActual());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasQuantity()) {
|
||||
tgt.setQuantity(src.getQuantity());
|
||||
}
|
||||
if (src.hasCharacteristic()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -42,10 +74,18 @@ public class Group10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(VersionConvertor_10_40.convertType(src.getValue()));
|
||||
tgt.setExclude(src.getExclude());
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_40.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasExclude()) {
|
||||
tgt.setExclude(src.getExclude());
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -54,10 +94,18 @@ public class Group10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setValue(VersionConvertor_10_40.convertType(src.getValue()));
|
||||
tgt.setExclude(src.getExclude());
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasValue()) {
|
||||
tgt.setValue(VersionConvertor_10_40.convertType(src.getValue()));
|
||||
}
|
||||
if (src.hasExclude()) {
|
||||
tgt.setExclude(src.getExclude());
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,9 +114,15 @@ public class Group10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r4.model.Group.GroupMemberComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setInactive(src.getInactive());
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasInactive()) {
|
||||
tgt.setInactive(src.getInactive());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -77,9 +131,15 @@ public class Group10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity()));
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
tgt.setInactive(src.getInactive());
|
||||
if (src.hasEntity()) {
|
||||
tgt.setEntity(VersionConvertor_10_40.convertReference(src.getEntity()));
|
||||
}
|
||||
if (src.hasPeriod()) {
|
||||
tgt.setPeriod(VersionConvertor_10_40.convertPeriod(src.getPeriod()));
|
||||
}
|
||||
if (src.hasInactive()) {
|
||||
tgt.setInactive(src.getInactive());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,29 +56,61 @@ public class HealthcareService10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.HealthcareService tgt = new org.hl7.fhir.r4.model.HealthcareService();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setProvidedBy(VersionConvertor_10_40.convertReference(src.getProvidedBy()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
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));
|
||||
}
|
||||
tgt.addLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
tgt.setPhoto(VersionConvertor_10_40.convertAttachment(src.getPhoto()));
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
if (src.hasLocation()) {
|
||||
tgt.addLocation(VersionConvertor_10_40.convertReference(src.getLocation()));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasExtraDetails()) {
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
}
|
||||
if (src.hasPhoto()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCoverageArea()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEligibility())
|
||||
tgt.getEligibilityFirstRep().setCode(VersionConvertor_10_40.convertCodeableConcept(src.getEligibility()));
|
||||
if (src.hasEligibilityNote())
|
||||
tgt.getEligibilityFirstRep().setComment(src.getEligibilityNote());
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getProgramName()) tgt.addProgram().setText(t.getValue());
|
||||
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.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
|
||||
for (org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
if (src.hasProgramName()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasReferralMethod()) {
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasAppointmentRequired()) {
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
}
|
||||
if (src.hasAvailableTime()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAvailabilityExceptions()) {
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -87,30 +119,64 @@ public class HealthcareService10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService tgt = new org.hl7.fhir.dstu2.model.HealthcareService();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setProvidedBy(VersionConvertor_10_40.convertReference(src.getProvidedBy()));
|
||||
if (src.hasIdentifier()) {
|
||||
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()));
|
||||
}
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSpecialty()) {
|
||||
if (!tgt.hasServiceType())
|
||||
tgt.addServiceType();
|
||||
tgt.getServiceType().get(0).addSpecialty(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_40.convertReference(t));
|
||||
tgt.setComment(src.getComment());
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
tgt.setPhoto(VersionConvertor_10_40.convertAttachment(src.getPhoto()));
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getCoverageArea()) tgt.addCoverageArea(VersionConvertor_10_40.convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getServiceProvisionCode()) tgt.addServiceProvisionCode(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setEligibility(VersionConvertor_10_40.convertCodeableConcept(src.getEligibilityFirstRep().getCode()));
|
||||
tgt.setEligibilityNote(src.getEligibilityFirstRep().getComment());
|
||||
if (src.hasLocation()) {
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getLocation()) tgt.setLocation(VersionConvertor_10_40.convertReference(t));
|
||||
}
|
||||
if (src.hasComment()) {
|
||||
tgt.setComment(src.getComment());
|
||||
}
|
||||
if (src.hasExtraDetails()) {
|
||||
tgt.setExtraDetails(src.getExtraDetails());
|
||||
}
|
||||
if (src.hasPhoto()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasCoverageArea()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasEligibility()) {
|
||||
tgt.setEligibility(VersionConvertor_10_40.convertCodeableConcept(src.getEligibilityFirstRep().getCode()));
|
||||
}
|
||||
if (src.hasEligibility()) {
|
||||
tgt.setEligibilityNote(src.getEligibilityFirstRep().getComment());
|
||||
}
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProgram()) if (t.hasText())
|
||||
tgt.addProgramName(t.getText());
|
||||
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.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
|
||||
for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
if (src.hasCharacteristic()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAppointmentRequired()) {
|
||||
tgt.setAppointmentRequired(src.getAppointmentRequired());
|
||||
}
|
||||
if (src.hasAvailableTime()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasAvailabilityExceptions()) {
|
||||
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -119,10 +185,18 @@ public class HealthcareService10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
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())));
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
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())));
|
||||
}
|
||||
if (src.hasAllDay()) {
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
}
|
||||
if (src.hasAvailableStartTime()) {
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
}
|
||||
if (src.hasAvailableEndTime()) {
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -131,10 +205,18 @@ public class HealthcareService10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
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())));
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
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())));
|
||||
}
|
||||
if (src.hasAllDay()) {
|
||||
tgt.setAllDay(src.getAllDay());
|
||||
}
|
||||
if (src.hasAvailableStartTime()) {
|
||||
tgt.setAvailableStartTime(src.getAvailableStartTime());
|
||||
}
|
||||
if (src.hasAvailableEndTime()) {
|
||||
tgt.setAvailableEndTime(src.getAvailableEndTime());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -143,8 +225,12 @@ public class HealthcareService10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring()));
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDuring()) {
|
||||
tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -153,8 +239,12 @@ public class HealthcareService10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setDescription(src.getDescription());
|
||||
tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring()));
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
if (src.hasDuring()) {
|
||||
tgt.setDuring(VersionConvertor_10_40.convertPeriod(src.getDuring()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ import org.hl7.fhir.dstu2.model.ImplementationGuide.GuidePageKind;
|
|||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
import org.hl7.fhir.r4.model.Enumeration;
|
||||
import org.hl7.fhir.r4.model.ImplementationGuide.GuidePageGeneration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ImplementationGuide10_40 {
|
||||
|
@ -15,27 +14,53 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide tgt = new org.hl7.fhir.r4.model.ImplementationGuide();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_40.isJurisdiction(t))
|
||||
tgt.addJurisdiction(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
else
|
||||
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConceptToUsageContext(t));
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
tgt.addFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependsOn(convertImplementationGuideDependencyComponent(t));
|
||||
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.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
|
||||
tgt.getDefinition().setPage(convertImplementationGuidePageComponent(src.getPage()));
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
if (src.hasFhirVersion()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPackage()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasPage()) {
|
||||
tgt.getDefinition().setPage(convertImplementationGuidePageComponent(src.getPage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -44,29 +69,57 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
tgt.setUrl(src.getUrl());
|
||||
tgt.setVersion(src.getVersion());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
if (src.hasUrl()) {
|
||||
tgt.setUrl(src.getUrl());
|
||||
}
|
||||
if (src.hasVersion()) {
|
||||
tgt.setVersion(src.getVersion());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(VersionConvertor_10_40.convertConformanceResourceStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasExperimental())
|
||||
tgt.setExperimental(src.getExperimental());
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
if (src.hasPublisher()) {
|
||||
tgt.setPublisher(src.getPublisher());
|
||||
}
|
||||
if (src.hasContact()) {
|
||||
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
|
||||
tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t.getValueCodeableConcept()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
if (src.hasJurisdiction()) {
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_10_40.convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasCopyright()) {
|
||||
tgt.setCopyright(src.getCopyright());
|
||||
}
|
||||
for (Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> v : src.getFhirVersion()) {
|
||||
tgt.setFhirVersion(v.asStringValue());
|
||||
}
|
||||
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent t : src.getDependsOn()) tgt.addDependency(convertImplementationGuideDependencyComponent(t));
|
||||
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent t : src.getDefinition().getGrouping()) tgt.addPackage(convertImplementationGuidePackageComponent(t));
|
||||
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.ImplementationGuideGlobalComponent t : src.getGlobal()) tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
|
||||
tgt.setPage(convertImplementationGuidePageComponent(src.getDefinition().getPage()));
|
||||
if (src.hasDependsOn()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
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));
|
||||
}
|
||||
if (src.hasDefinition()) {
|
||||
tgt.setPage(convertImplementationGuidePageComponent(src.getDefinition().getPage()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -75,8 +128,12 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -85,8 +142,12 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideContactComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setName(src.getName());
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasTelecom()) {
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_10_40.convertContactPoint(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -95,7 +156,9 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setUri(src.getUri());
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
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();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideDependencyType.REFERENCE);
|
||||
tgt.setUri(src.getUri());
|
||||
if (src.hasUri()) {
|
||||
tgt.setUri(src.getUri());
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -114,8 +179,12 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfileElement()) {
|
||||
tgt.setProfile(VersionConvertor_10_40.convertCanonicalToReference(src.getProfileElement()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -124,8 +193,12 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setType(src.getType());
|
||||
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
|
||||
if (src.hasType()) {
|
||||
tgt.setType(src.getType());
|
||||
}
|
||||
if (src.hasProfile()) {
|
||||
tgt.setProfileElement(VersionConvertor_10_40.convertReferenceToCanonical(src.getProfile()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -134,9 +207,15 @@ public class ImplementationGuide10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
tgt.setId(src.getId());
|
||||
tgt.setName(src.getName());
|
||||
tgt.setDescription(src.getDescription());
|
||||
if (src.hasId()) {
|
||||
tgt.setId(src.getId());
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setName(src.getName());
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
}
|
||||
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();
|
||||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
if (src.hasSource()) {
|
||||
tgt.setName(convertUriToUrl(src.getSourceElement()));
|
||||
if (src.hasSourceElement()) {
|
||||
tgt.setName(convertUriToUrl(src.getSourceElement()));
|
||||
}
|
||||
}
|
||||
if (src.hasName()) {
|
||||
tgt.setTitle(src.getName());
|
||||
}
|
||||
tgt.setTitle(src.getName());
|
||||
if (src.hasKind())
|
||||
tgt.setGeneration(convertPageGeneration(src.getKind()));
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
if (src.hasPage()) {
|
||||
for (org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -214,10 +299,14 @@ public class ImplementationGuide10_40 {
|
|||
VersionConvertor_10_40.copyElement(src, tgt);
|
||||
if (src.hasNameUrlType())
|
||||
tgt.setSource(src.getNameUrlType().getValue());
|
||||
tgt.setName(src.getTitle());
|
||||
if (src.hasTitle()) {
|
||||
tgt.setName(src.getTitle());
|
||||
}
|
||||
if (src.hasGeneration())
|
||||
tgt.setKind(convertPageGeneration(src.getGeneration()));
|
||||
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
if (src.hasPage()) {
|
||||
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,20 +10,40 @@ public class List10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ListResource tgt = new org.hl7.fhir.r4.model.ListResource();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
if (src.hasOrderedBy()) {
|
||||
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
}
|
||||
if (src.hasNote())
|
||||
tgt.addNote(new org.hl7.fhir.r4.model.Annotation().setText(src.getNote()));
|
||||
for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
|
||||
if (src.hasEntry()) {
|
||||
for (org.hl7.fhir.dstu2.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -32,19 +52,41 @@ public class List10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.List_ tgt = new org.hl7.fhir.dstu2.model.List_();
|
||||
VersionConvertor_10_40.copyDomainResource(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
tgt.setTitle(src.getTitle());
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
if (src.hasIdentifier()) {
|
||||
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
|
||||
}
|
||||
if (src.hasTitle()) {
|
||||
tgt.setTitle(src.getTitle());
|
||||
}
|
||||
if (src.hasCode()) {
|
||||
tgt.setCode(VersionConvertor_10_40.convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
if (src.hasSubject()) {
|
||||
tgt.setSubject(VersionConvertor_10_40.convertReference(src.getSubject()));
|
||||
}
|
||||
if (src.hasSource()) {
|
||||
tgt.setSource(VersionConvertor_10_40.convertReference(src.getSource()));
|
||||
}
|
||||
if (src.hasEncounter()) {
|
||||
tgt.setEncounter(VersionConvertor_10_40.convertReference(src.getEncounter()));
|
||||
}
|
||||
if (src.hasStatus()) {
|
||||
tgt.setStatus(convertListStatus(src.getStatus()));
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.setNote(t.getText());
|
||||
for (org.hl7.fhir.r4.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t));
|
||||
if (src.hasOrderedBy()) {
|
||||
tgt.setOrderedBy(VersionConvertor_10_40.convertCodeableConcept(src.getOrderedBy()));
|
||||
}
|
||||
if (src.hasMode()) {
|
||||
tgt.setMode(convertListMode(src.getMode()));
|
||||
}
|
||||
if (src.hasNote()) {
|
||||
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));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -53,11 +95,17 @@ public class List10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r4.model.ListResource.ListEntryComponent();
|
||||
copyBackboneElement(src, tgt);
|
||||
tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag()));
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
if (src.hasFlag()) {
|
||||
tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag()));
|
||||
}
|
||||
if (src.hasDeleted()) {
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem()));
|
||||
if (src.hasItem()) {
|
||||
tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -66,11 +114,17 @@ public class List10_40 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu2.model.List_.ListEntryComponent tgt = new org.hl7.fhir.dstu2.model.List_.ListEntryComponent();
|
||||
copyBackboneElement(src, tgt);
|
||||
tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag()));
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
if (src.hasFlag()) {
|
||||
tgt.setFlag(VersionConvertor_10_40.convertCodeableConcept(src.getFlag()));
|
||||
}
|
||||
if (src.hasDeleted()) {
|
||||
tgt.setDeleted(src.getDeleted());
|
||||
}
|
||||
if (src.hasDate())
|
||||
tgt.setDate(src.getDate());
|
||||
tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem()));
|
||||
if (src.hasItem()) {
|
||||
tgt.setItem(VersionConvertor_10_40.convertReference(src.getItem()));
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue