rebuild R5 generated code for changes to abstract types.

This commit is contained in:
Grahame Grieve 2019-12-30 10:24:14 +11:00
parent f262236b87
commit 5e27541288
287 changed files with 241664 additions and 224034 deletions

1
.gitignore vendored
View File

@ -301,3 +301,4 @@ local.properties
/org.hl7.fhir.r5/src/test/resources/snapshot-generation/t29b-input.xml
/org.hl7.fhir.r5/src/test/resources/snapshot-generation/logical1-actual.xml
/org.hl7.fhir.r5/src/test/resources/snapshot-generation/logical2-actual.xml
/org.hl7.fhir.r5.new

View File

@ -42,22 +42,25 @@ import org.hl7.fhir.r5.model.CodeSystem;
import org.hl7.fhir.r5.model.CodeSystem.CodeSystemContentMode;
import org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent;
import org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.ConceptMap;
import org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent;
import org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent;
import org.hl7.fhir.r5.model.ContactDetail;
import org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus;
import org.hl7.fhir.r5.model.Dosage;
import org.hl7.fhir.r5.model.Dosage.DosageDoseAndRateComponent;
import org.hl7.fhir.r5.model.ElementDefinition;
import org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.r5.model.Immunization.ImmunizationPerformerComponent;
import org.hl7.fhir.r5.model.ImplementationGuide.GuidePageGeneration;
import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent;
import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind;
import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule;
import org.hl7.fhir.r5.model.TerminologyCapabilities;
import org.hl7.fhir.r5.model.TestScript;
import org.hl7.fhir.r5.model.Timing.EventTiming;
import org.hl7.fhir.r5.model.DataType;
import org.hl7.fhir.r5.terminologies.CodeSystemUtilities;
@ -687,19 +690,19 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.QuantityComparator convertQuantityComparator(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case LESS_THAN: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.LESS_THAN;
case LESS_OR_EQUAL: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.LESS_OR_EQUAL;
case GREATER_OR_EQUAL: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.GREATER_OR_EQUAL;
case GREATER_THAN: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.GREATER_THAN;
default: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.NULL;
case LESS_THAN: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.LESS_THAN;
case LESS_OR_EQUAL: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.LESS_OR_EQUAL;
case GREATER_OR_EQUAL: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.GREATER_OR_EQUAL;
case GREATER_THAN: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.GREATER_THAN;
default: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.NULL;
}
}
public org.hl7.fhir.dstu2.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.r5.model.Quantity.QuantityComparator src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.r5.model.Enumerations.QuantityComparator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -2288,19 +2291,19 @@ public class VersionConvertor_10_50 {
}
}
public org.hl7.fhir.r5.model.Appointment.ParticipationStatus convertParticipationStatus(org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.ParticipationStatus convertParticipationStatus(org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACCEPTED: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.TENTATIVE;
case NEEDSACTION: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.NULL;
case ACCEPTED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.TENTATIVE;
case NEEDSACTION: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NULL;
}
}
public org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus convertParticipationStatus(org.hl7.fhir.r5.model.Appointment.ParticipationStatus src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus convertParticipationStatus(org.hl7.fhir.r5.model.Enumerations.ParticipationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -2330,21 +2333,21 @@ public class VersionConvertor_10_50 {
return tgt;
}
private org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus convertParticipantStatus(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus src) {
private org.hl7.fhir.r5.model.Enumerations.ParticipationStatus convertParticipantStatus(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus src) {
if (src == null)
return null;
switch (src) {
case ACCEPTED: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.TENTATIVE;
case INPROCESS: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.ACCEPTED;
case COMPLETED: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.ACCEPTED;
case NEEDSACTION: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.NULL;
case ACCEPTED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.TENTATIVE;
case INPROCESS: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.ACCEPTED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.ACCEPTED;
case NEEDSACTION: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NULL;
}
}
private org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus convertParticipantStatus(org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus src) {
private org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus convertParticipantStatus(org.hl7.fhir.r5.model.Enumerations.ParticipationStatus src) {
if (src == null)
return null;
switch (src) {
@ -2608,7 +2611,7 @@ public class VersionConvertor_10_50 {
for (org.hl7.fhir.dstu2.model.Coding t : src.getSecurityLabel())
tgt.addSecurityLabel(convertCoding(t));
tgt.setName(src.getName());
tgt.setDescription(src.getDescription());
// tgt.setDescription(src.getDescription());
tgt.setQuery(src.getQuery());
for (org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent t : src.getDetail())
tgt.addDetail(convertAuditEventEntityDetailComponent(t));
@ -2632,7 +2635,7 @@ public class VersionConvertor_10_50 {
for (org.hl7.fhir.r5.model.Coding t : src.getSecurityLabel())
tgt.addSecurityLabel(convertCoding(t));
tgt.setName(src.getName());
tgt.setDescription(src.getDescription());
// tgt.setDescription(src.getDescription());
tgt.setQuery(src.getQuery());
for (org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail())
tgt.addDetail(convertAuditEventEntityDetailComponent(t));
@ -3026,20 +3029,20 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.CarePlan.CarePlanStatus convertCarePlanStatus(org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.RequestStatus convertCarePlanStatus(org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PROPOSED: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.DRAFT;
case DRAFT: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.COMPLETED;
case CANCELLED: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.REVOKED;
default: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.NULL;
case PROPOSED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus convertCarePlanStatus(org.hl7.fhir.r5.model.CarePlan.CarePlanStatus src) throws FHIRException {
public org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus convertCarePlanStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3400,20 +3403,20 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.Communication.CommunicationStatus convertCommunicationStatus(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.EventStatus convertCommunicationStatus(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case INPROGRESS: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.INPROGRESS;
case COMPLETED: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.COMPLETED;
case SUSPENDED: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.ONHOLD;
case REJECTED: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.ENTEREDINERROR;
case FAILED: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.NOTDONE;
default: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.NULL;
case INPROGRESS: return org.hl7.fhir.r5.model.Enumerations.EventStatus.INPROGRESS;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.COMPLETED;
case SUSPENDED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.ONHOLD;
case REJECTED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.ENTEREDINERROR;
case FAILED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.NOTDONE;
default: return org.hl7.fhir.r5.model.Enumerations.EventStatus.NULL;
}
}
public org.hl7.fhir.dstu2.model.Communication.CommunicationStatus convertCommunicationStatus(org.hl7.fhir.r5.model.Communication.CommunicationStatus src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Communication.CommunicationStatus convertCommunicationStatus(org.hl7.fhir.r5.model.Enumerations.EventStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3471,16 +3474,16 @@ public class VersionConvertor_10_50 {
return tgt;
}
private org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority convertPriorityCode(org.hl7.fhir.dstu2.model.CodeableConcept priority) {
private org.hl7.fhir.r5.model.Enumerations.RequestPriority convertPriorityCode(org.hl7.fhir.dstu2.model.CodeableConcept priority) {
for (org.hl7.fhir.dstu2.model.Coding c : priority.getCoding()) {
if ("http://hl7.org/fhir/diagnostic-order-priority".equals(c.getSystem()) && "routine".equals(c.getCode()))
return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.ROUTINE;
return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
if ("http://hl7.org/fhir/diagnostic-order-priority".equals(c.getSystem()) && "urgent".equals(c.getCode()))
return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.URGENT;
return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
if ("http://hl7.org/fhir/diagnostic-order-priority".equals(c.getSystem()) && "stat".equals(c.getCode()))
return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.STAT;
return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
if ("http://hl7.org/fhir/diagnostic-order-priority".equals(c.getSystem()) && "asap".equals(c.getCode()))
return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.ASAP;
return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
}
return null;
}
@ -3512,7 +3515,7 @@ public class VersionConvertor_10_50 {
return tgt;
}
private org.hl7.fhir.dstu2.model.CodeableConcept convertPriorityCode(org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority priority) {
private org.hl7.fhir.dstu2.model.CodeableConcept convertPriorityCode(org.hl7.fhir.r5.model.Enumerations.RequestPriority priority) {
org.hl7.fhir.dstu2.model.CodeableConcept cc = new org.hl7.fhir.dstu2.model.CodeableConcept();
switch (priority) {
case ROUTINE: cc.addCoding().setSystem("http://hl7.org/fhir/diagnostic-order-priority").setCode("routine"); break;
@ -3524,25 +3527,25 @@ public class VersionConvertor_10_50 {
return cc;
}
public org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus convertCommunicationRequestStatus(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.RequestStatus convertCommunicationRequestStatus(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PROPOSED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.DRAFT;
case PLANNED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE;
case REQUESTED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE;
case RECEIVED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE;
case ACCEPTED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE;
case INPROGRESS: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.COMPLETED;
case SUSPENDED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ONHOLD;
case REJECTED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ENTEREDINERROR;
// case FAILED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.FAILED;
default: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.NULL;
case PROPOSED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case PLANNED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case REQUESTED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case RECEIVED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case ACCEPTED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case INPROGRESS: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case SUSPENDED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD;
case REJECTED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR;
// case FAILED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.FAILED;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus convertCommunicationRequestStatus(org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus src) throws FHIRException {
public org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus convertCommunicationRequestStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3591,7 +3594,7 @@ public class VersionConvertor_10_50 {
tgt.setTitle(src.getTitle());
tgt.setStatus(convertCompositionStatus(src.getStatus()));
try {
tgt.setConfidentiality(org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.fromCode(src.getConfidentiality()));
tgt.setConfidentiality(org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.fromCode(src.getConfidentiality()));
} catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e);
}
@ -3637,19 +3640,19 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.Composition.CompositionStatus convertCompositionStatus(org.hl7.fhir.dstu2.model.Composition.CompositionStatus src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.CompositionStatus convertCompositionStatus(org.hl7.fhir.dstu2.model.Composition.CompositionStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PRELIMINARY: return org.hl7.fhir.r5.model.Composition.CompositionStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Composition.CompositionStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Composition.CompositionStatus.AMENDED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Composition.CompositionStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Composition.CompositionStatus.NULL;
case PRELIMINARY: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.AMENDED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.NULL;
}
}
public org.hl7.fhir.dstu2.model.Composition.CompositionStatus convertCompositionStatus(org.hl7.fhir.r5.model.Composition.CompositionStatus src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Composition.CompositionStatus convertCompositionStatus(org.hl7.fhir.r5.model.Enumerations.CompositionStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3744,7 +3747,7 @@ public class VersionConvertor_10_50 {
tgt.setCode(convertCodeableConcept(src.getCode()));
tgt.setText(convertNarrative(src.getText()));
try {
tgt.setMode(org.hl7.fhir.r5.model.Composition.SectionMode.fromCode(src.getMode()));
tgt.setMode(org.hl7.fhir.r5.model.Enumerations.ListMode.fromCode(src.getMode()));
} catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e);
}
@ -3794,7 +3797,7 @@ public class VersionConvertor_10_50 {
org.hl7.fhir.r5.model.ConceptMap tgt = new org.hl7.fhir.r5.model.ConceptMap();
copyDomainResource(src, tgt);
tgt.setUrl(src.getUrl());
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
tgt.addIdentifier(convertIdentifier(src.getIdentifier()));
tgt.setVersion(src.getVersion());
tgt.setName(src.getName());
tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
@ -3851,7 +3854,9 @@ public class VersionConvertor_10_50 {
org.hl7.fhir.dstu2.model.ConceptMap tgt = new org.hl7.fhir.dstu2.model.ConceptMap();
copyDomainResource(src, tgt);
tgt.setUrl(src.getUrl());
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasIdentifier()) {
tgt.setIdentifier(convertIdentifier(src.getIdentifierFirstRep()));
}
tgt.setVersion(src.getVersion());
tgt.setName(src.getName());
tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
@ -4293,18 +4298,18 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind convertConformanceStatementKind(org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind convertConformanceStatementKind(org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case INSTANCE: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.NULL;
case INSTANCE: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.NULL;
}
}
public org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind convertConformanceStatementKind(org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind convertConformanceStatementKind(org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -4459,17 +4464,17 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode convertRestfulConformanceMode(org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceMode src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode convertRestfulConformanceMode(org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case CLIENT: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.CLIENT;
case SERVER: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.SERVER;
default: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.NULL;
case CLIENT: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.CLIENT;
case SERVER: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.SERVER;
default: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.NULL;
}
}
public org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceMode convertRestfulConformanceMode(org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceMode convertRestfulConformanceMode(org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -4533,7 +4538,9 @@ public class VersionConvertor_10_50 {
return null;
org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent();
copyElement(src, tgt);
tgt.setType(src.getType());
if (src.hasType()) {
tgt.setType(src.getType());
}
if (src.hasProfile())
tgt.setProfile(convertCanonicalToReference(src.getProfileElement()));
for (org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction())
@ -6067,20 +6074,20 @@ public class VersionConvertor_10_50 {
return tgt;
}
private ReferredDocumentStatus convertDocStatus(CodeableConcept cc) {
private org.hl7.fhir.r5.model.Enumerations.CompositionStatus convertDocStatus(CodeableConcept cc) {
if (hasConcept(cc, "http://hl7.org/fhir/composition-status", "preliminary"))
return ReferredDocumentStatus.PRELIMINARY;
return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.PRELIMINARY;
if (hasConcept(cc, "http://hl7.org/fhir/composition-status", "final"))
return ReferredDocumentStatus.FINAL;
return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.FINAL;
if (hasConcept(cc, "http://hl7.org/fhir/composition-status", "amended"))
return ReferredDocumentStatus.AMENDED;
return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.AMENDED;
if (hasConcept(cc, "http://hl7.org/fhir/composition-status", "entered-in-error"))
return ReferredDocumentStatus.ENTEREDINERROR;
return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.ENTEREDINERROR;
return null;
}
private CodeableConcept convertDocStatus(ReferredDocumentStatus docStatus) {
private CodeableConcept convertDocStatus(org.hl7.fhir.r5.model.Enumerations.CompositionStatus docStatus) {
CodeableConcept cc = new CodeableConcept ();
switch (docStatus) {
case AMENDED: cc.addCoding(). setSystem("http://hl7.org/fhir/composition-status").setCode("amended"); break;
@ -6142,19 +6149,19 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.dstu2.model.DocumentReference.DocumentRelationshipType src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.dstu2.model.DocumentReference.DocumentRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case REPLACES: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.REPLACES;
case TRANSFORMS: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.TRANSFORMS;
case SIGNS: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.SIGNS;
case APPENDS: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.APPENDS;
default: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.NULL;
case REPLACES: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.REPLACES;
case TRANSFORMS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.TRANSFORMS;
case SIGNS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.SIGNS;
case APPENDS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.APPENDS;
default: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.NULL;
}
}
public org.hl7.fhir.dstu2.model.DocumentReference.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType src) throws FHIRException {
public org.hl7.fhir.dstu2.model.DocumentReference.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -7029,7 +7036,7 @@ public class VersionConvertor_10_50 {
return null;
org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
copyElement(src, tgt);
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek())
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.DaysOfWeek> t : src.getDaysOfWeek())
copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
tgt.setAllDay(src.getAllDay());
tgt.setAvailableStartTime(src.getAvailableStartTime());
@ -7037,22 +7044,22 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case MON: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.NULL;
case MON: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL;
}
}
public org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek src) throws FHIRException {
public org.hl7.fhir.dstu2.model.HealthcareService.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -7460,7 +7467,9 @@ public class VersionConvertor_10_50 {
return null;
org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent();
copyElement(src, tgt);
tgt.setType(src.getType());
if (src.hasType()) {
tgt.setType(src.getType());
}
tgt.setProfile(convertCanonicalToReference(src.getProfileElement()));
return tgt;
}
@ -7876,23 +7885,23 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus> convertMedicationDispenseStatus(org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseStatus> src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes> convertMedicationDispenseStatus(org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseStatus> src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus>();
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes>();
copyElement(src, tgt);
switch (src.getValue()) {
case COMPLETED: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus.COMPLETED); break;
case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus.ENTEREDINERROR); break;
case INPROGRESS: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus.INPROGRESS); break;
case NULL: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus.NULL); break;
case ONHOLD: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus.ONHOLD); break;
case STOPPED: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus.STOPPED); break;
case COMPLETED: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes.COMPLETED); break;
case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes.ENTEREDINERROR); break;
case INPROGRESS: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes.INPROGRESS); break;
case NULL: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes.NULL); break;
case ONHOLD: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes.ONHOLD); break;
case STOPPED: tgt.setValue(org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes.STOPPED); break;
}
return tgt;
}
public org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseStatus> convertMedicationDispenseStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus> src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseStatus> convertMedicationDispenseStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes> src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseStatus> tgt = new org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseStatus>(new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseStatusEnumFactory());
@ -8210,19 +8219,19 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus convertMedicationStatementStatus(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus src) throws FHIRException {
public org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes convertMedicationStatementStatus(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.ENTEREDINERROR;
case INTENDED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.INTENDED;
default: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR;
case INTENDED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED;
default: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL;
}
}
public org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus convertMedicationStatementStatus(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus src) throws FHIRException {
public org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus convertMedicationStatementStatus(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -8625,22 +8634,22 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.Observation.ObservationStatus convertObservationStatus(org.hl7.fhir.dstu2.model.Observation.ObservationStatus src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.ObservationStatus convertObservationStatus(org.hl7.fhir.dstu2.model.Observation.ObservationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case REGISTERED: return org.hl7.fhir.r5.model.Observation.ObservationStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.Observation.ObservationStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Observation.ObservationStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Observation.ObservationStatus.AMENDED;
case CANCELLED: return org.hl7.fhir.r5.model.Observation.ObservationStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Observation.ObservationStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Observation.ObservationStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Observation.ObservationStatus.NULL;
case REGISTERED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.AMENDED;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.NULL;
}
}
public org.hl7.fhir.dstu2.model.Observation.ObservationStatus convertObservationStatus(org.hl7.fhir.r5.model.Observation.ObservationStatus src) throws FHIRException {
public org.hl7.fhir.dstu2.model.Observation.ObservationStatus convertObservationStatus(org.hl7.fhir.r5.model.Enumerations.ObservationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -8780,7 +8789,7 @@ public class VersionConvertor_10_50 {
tgt.setBase(convertCanonicalToReference(src.getBaseElement()));
tgt.setSystem(src.getSystem());
if (src.getType())
for (org.hl7.fhir.r5.model.CodeType t : src.getResource())
for (CodeType t : src.getResource())
tgt.addType(t.getValue());
tgt.setInstance(src.getInstance());
for (org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter())
@ -8840,7 +8849,7 @@ public class VersionConvertor_10_50 {
tgt.setMin(src.getMin());
tgt.setMax(src.getMax());
tgt.setDocumentation(src.getDocumentation());
tgt.setType(src.getType());
tgt.setType(Enumerations.FHIRAllTypes.fromCode(src.getType()));
tgt.addTargetProfile(src.getProfile().getReference());
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart())
@ -8862,7 +8871,7 @@ public class VersionConvertor_10_50 {
tgt.setType(src.getSearchType().toCode());
tgt.setType("string");
} else
tgt.setType(src.getType());
tgt.setType(src.getType().toCode());
for (org.hl7.fhir.r5.model.UriType t: src.getTargetProfile())
tgt.setProfile(new Reference(t.getValue()));
if (src.hasBinding())
@ -8872,17 +8881,17 @@ public class VersionConvertor_10_50 {
return tgt;
}
public org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.dstu2.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.dstu2.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case IN: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.OUT;
default: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.NULL;
case IN: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.OUT;
default: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.NULL;
}
}
public org.hl7.fhir.dstu2.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
public org.hl7.fhir.dstu2.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r5.model.Enumerations.OperationParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -9705,7 +9714,7 @@ public class VersionConvertor_10_50 {
for (org.hl7.fhir.r5.model.Coding t : src.getCode()) {
root.addConcept(convertCoding(t));
}
for (org.hl7.fhir.r5.model.CodeType t : src.getSubjectType())
for (CodeType t : src.getSubjectType())
tgt.addSubjectType(t.getValue());
for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent t : src.getItem())
if (t.getType() == org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.GROUP)
@ -10155,14 +10164,14 @@ public class VersionConvertor_10_50 {
tgt.addContact(convertSearchParameterContactComponent(t));
tgt.setRequirements(src.getPurpose());
tgt.setCode(src.getCode());
for (org.hl7.fhir.r5.model.CodeType t : src.getBase())
for (CodeType t : src.getBase())
tgt.setBase(t.asStringValue());
tgt.setType(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.r5.model.CodeType t : src.getTarget())
for (CodeType t : src.getTarget())
tgt.addTarget(t.getValue());
return tgt;
}
@ -10871,7 +10880,7 @@ public class VersionConvertor_10_50 {
tgt.setVersion(src.getVersion());
tgt.setName(src.getName());
tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
tgt.addIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
tgt.setPublisher(src.getPublisher());
@ -10910,7 +10919,9 @@ public class VersionConvertor_10_50 {
tgt.setVersion(src.getVersion());
tgt.setName(src.getName());
tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasIdentifier()) {
tgt.setIdentifier(convertIdentifier(src.getIdentifierFirstRep()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
tgt.setPublisher(src.getPublisher());
@ -11128,7 +11139,7 @@ public class VersionConvertor_10_50 {
org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent();
copyElement(src, tgt);
tgt.setType(convertCoding(src.getType()));
tgt.setResource(src.getResource());
tgt.setResource(TestScript.FHIRDefinedType.fromCode(src.getResource()));
tgt.setLabel(src.getLabel());
tgt.setDescription(src.getDescription());
tgt.setAccept(convertContentType(src.getAccept()));
@ -11151,7 +11162,7 @@ public class VersionConvertor_10_50 {
org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent();
copyElement(src, tgt);
tgt.setType(convertCoding(src.getType()));
tgt.setResource(src.getResource());
tgt.setResource(src.getResource().toCode());
tgt.setLabel(src.getLabel());
tgt.setDescription(src.getDescription());
tgt.setAccept(convertContentType(src.getAccept()));
@ -11223,7 +11234,7 @@ public class VersionConvertor_10_50 {
tgt.setNavigationLinks(src.getNavigationLinks());
tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
tgt.setPath(src.getPath());
tgt.setResource(src.getResource());
tgt.setResource(TestScript.FHIRDefinedType.fromCode(src.getResource()));
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
tgt.setResponseCode(src.getResponseCode());
tgt.setSourceId(src.getSourceId());
@ -11249,7 +11260,7 @@ public class VersionConvertor_10_50 {
tgt.setNavigationLinks(src.getNavigationLinks());
tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
tgt.setPath(src.getPath());
tgt.setResource(src.getResource());
tgt.setResource(src.getResource().toCode());
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
tgt.setResponseCode(src.getResponseCode());
tgt.setSourceId(src.getSourceId());
@ -11786,21 +11797,21 @@ public org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent c
return tgt;
}
public org.hl7.fhir.r5.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.dstu2.model.ValueSet.FilterOperator src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.FilterOperator convertFilterOperator(org.hl7.fhir.dstu2.model.ValueSet.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case EQUAL: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.ISA;
case ISNOTA: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.NOTIN;
default: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.NULL;
case EQUAL: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISA;
case ISNOTA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NOTIN;
default: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NULL;
}
}
public org.hl7.fhir.dstu2.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.ValueSet.FilterOperator src) throws FHIRException {
public org.hl7.fhir.dstu2.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.Enumerations.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -11932,21 +11943,21 @@ public org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent c
}
}
public org.hl7.fhir.r5.model.ListResource.ListMode convertListMode(org.hl7.fhir.dstu2.model.List_.ListMode src) throws FHIRException {
public org.hl7.fhir.r5.model.Enumerations.ListMode convertListMode(org.hl7.fhir.dstu2.model.List_.ListMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case WORKING: return org.hl7.fhir.r5.model.ListResource.ListMode.WORKING;
case SNAPSHOT: return org.hl7.fhir.r5.model.ListResource.ListMode.SNAPSHOT;
case CHANGES: return org.hl7.fhir.r5.model.ListResource.ListMode.CHANGES;
default: return org.hl7.fhir.r5.model.ListResource.ListMode.NULL;
case WORKING: return org.hl7.fhir.r5.model.Enumerations.ListMode.WORKING;
case SNAPSHOT: return org.hl7.fhir.r5.model.Enumerations.ListMode.SNAPSHOT;
case CHANGES: return org.hl7.fhir.r5.model.Enumerations.ListMode.CHANGES;
default: return org.hl7.fhir.r5.model.Enumerations.ListMode.NULL;
}
}
public org.hl7.fhir.r5.model.ListResource.ListEntryComponent convertListEntry(org.hl7.fhir.dstu2.model.List_.ListEntryComponent src) throws FHIRException {
public org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent convertListEntry(org.hl7.fhir.dstu2.model.List_.ListEntryComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r5.model.ListResource.ListEntryComponent();
org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent tgt = new org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent();
copyBackboneElement(src, tgt);
tgt.setFlag(convertCodeableConcept(src.getFlag()));
tgt.setDeleted(src.getDeleted());
@ -11975,7 +11986,7 @@ public org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent c
tgt.setMode(convertListMode(src.getMode()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
tgt.setNote(t.getText());
for (org.hl7.fhir.r5.model.ListResource.ListEntryComponent t : src.getEntry())
for (org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent t : src.getEntry())
tgt.addEntry(convertListEntry(t));
return tgt;
}
@ -11992,7 +12003,7 @@ public org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent c
}
}
public org.hl7.fhir.dstu2.model.List_.ListMode convertListMode(org.hl7.fhir.r5.model.ListResource.ListMode src) throws FHIRException {
public org.hl7.fhir.dstu2.model.List_.ListMode convertListMode(org.hl7.fhir.r5.model.Enumerations.ListMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -12003,7 +12014,7 @@ public org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent c
}
}
public org.hl7.fhir.dstu2.model.List_.ListEntryComponent convertListEntry(org.hl7.fhir.r5.model.ListResource.ListEntryComponent src) throws FHIRException {
public org.hl7.fhir.dstu2.model.List_.ListEntryComponent convertListEntry(org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2.model.List_.ListEntryComponent tgt = new org.hl7.fhir.dstu2.model.List_.ListEntryComponent();

View File

@ -69,7 +69,10 @@ import org.hl7.fhir.r5.model.CanonicalType;
import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent;
import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent;
import org.hl7.fhir.r5.model.CodeSystem;
import org.hl7.fhir.r5.model.CodeSystem.FilterOperator;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.Enumerations;
import org.hl7.fhir.r5.model.Enumerations.FilterOperator;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.r5.model.ConceptMap;
import org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent;
import org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent;
@ -902,19 +905,19 @@ public class VersionConvertor_14_50 {
return tgt;
}
private static org.hl7.fhir.r5.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.dstu2016may.model.Quantity.QuantityComparator src) throws FHIRException {
private static org.hl7.fhir.r5.model.Enumerations.QuantityComparator convertQuantityComparator(org.hl7.fhir.dstu2016may.model.Quantity.QuantityComparator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case LESS_THAN: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.LESS_THAN;
case LESS_OR_EQUAL: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.LESS_OR_EQUAL;
case GREATER_OR_EQUAL: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.GREATER_OR_EQUAL;
case GREATER_THAN: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.GREATER_THAN;
default: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.NULL;
case LESS_THAN: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.LESS_THAN;
case LESS_OR_EQUAL: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.LESS_OR_EQUAL;
case GREATER_OR_EQUAL: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.GREATER_OR_EQUAL;
case GREATER_THAN: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.GREATER_THAN;
default: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.NULL;
}
}
private static org.hl7.fhir.dstu2016may.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.r5.model.Quantity.QuantityComparator src) throws FHIRException {
private static org.hl7.fhir.dstu2016may.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.r5.model.Enumerations.QuantityComparator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -2829,7 +2832,7 @@ public class VersionConvertor_14_50 {
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2016may.model.CodeType t : src.getOperator())
try {
tgt.addOperator(CodeSystem.FilterOperator.fromCode(t.getValue()));
tgt.addOperator(Enumerations.FilterOperator.fromCode(t.getValue()));
} catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e);
}
@ -3039,20 +3042,20 @@ public class VersionConvertor_14_50 {
return tgt;
}
private static org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType convertCompartmentType(org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentType src) throws FHIRException {
private static org.hl7.fhir.r5.model.Enumerations.CompartmentType convertCompartmentType(org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PATIENT: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.PATIENT;
case ENCOUNTER: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.ENCOUNTER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.RELATEDPERSON;
case PRACTITIONER: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.PRACTITIONER;
case DEVICE: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.DEVICE;
default: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.NULL;
case PATIENT: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.PATIENT;
case ENCOUNTER: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.ENCOUNTER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.RELATEDPERSON;
case PRACTITIONER: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.PRACTITIONER;
case DEVICE: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.DEVICE;
default: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.NULL;
}
}
private static org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentType convertCompartmentType(org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType src) throws FHIRException {
private static org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentType convertCompartmentType(org.hl7.fhir.r5.model.Enumerations.CompartmentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3107,7 +3110,9 @@ public class VersionConvertor_14_50 {
return null;
org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
copyElement(src, tgt);
tgt.setCode(src.getCode());
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
for (org.hl7.fhir.r5.model.StringType t : src.getParam())
tgt.addParam(t.getValue());
if (src.hasDocumentation())
@ -3123,7 +3128,7 @@ public class VersionConvertor_14_50 {
copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
tgt.addIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
@ -3179,7 +3184,9 @@ public class VersionConvertor_14_50 {
copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasIdentifier()) {
tgt.setIdentifier(convertIdentifier(src.getIdentifierFirstRep()));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
@ -3499,18 +3506,18 @@ public class VersionConvertor_14_50 {
return tgt;
}
private static org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind convertConformanceStatementKind(org.hl7.fhir.dstu2016may.model.Conformance.ConformanceStatementKind src) throws FHIRException {
private static org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind convertConformanceStatementKind(org.hl7.fhir.dstu2016may.model.Conformance.ConformanceStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case INSTANCE: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.NULL;
case INSTANCE: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.NULL;
}
}
private static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceStatementKind convertConformanceStatementKind(org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind src) throws FHIRException {
private static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceStatementKind convertConformanceStatementKind(org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3661,17 +3668,17 @@ public class VersionConvertor_14_50 {
return tgt;
}
private static org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode convertRestfulConformanceMode(org.hl7.fhir.dstu2016may.model.Conformance.RestfulConformanceMode src) throws FHIRException {
private static org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode convertRestfulConformanceMode(org.hl7.fhir.dstu2016may.model.Conformance.RestfulConformanceMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case CLIENT: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.CLIENT;
case SERVER: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.SERVER;
default: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.NULL;
case CLIENT: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.CLIENT;
case SERVER: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.SERVER;
default: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.NULL;
}
}
private static org.hl7.fhir.dstu2016may.model.Conformance.RestfulConformanceMode convertRestfulConformanceMode(org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode src) throws FHIRException {
private static org.hl7.fhir.dstu2016may.model.Conformance.RestfulConformanceMode convertRestfulConformanceMode(org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3742,7 +3749,9 @@ public class VersionConvertor_14_50 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent();
copyElement(src, tgt);
tgt.setType(src.getType());
if (src.hasType()) {
tgt.setType(src.getType());
}
tgt.setProfile(convertCanonicalToReference(src.getProfileElement()));
for (org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction())
tgt.addInteraction(convertResourceInteractionComponent(t));
@ -4499,7 +4508,9 @@ public class VersionConvertor_14_50 {
return null;
org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent();
copyElement(src, tgt);
tgt.setType(src.getType());
if (tgt.hasType()) {
tgt.setType(src.getType());
}
tgt.setProfile(convertCanonicalToReference(src.getProfileElement()));
return tgt;
}
@ -4788,7 +4799,7 @@ public class VersionConvertor_14_50 {
tgt.setBase(convertCanonicalToReference(src.getBaseElement()));
tgt.setSystem(src.getSystem());
if (src.getType())
for (org.hl7.fhir.r5.model.CodeType t : src.getResource())
for (CodeType t : src.getResource())
tgt.addType(t.getValue());
tgt.setInstance(src.getInstance());
for (org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter())
@ -4852,7 +4863,7 @@ public class VersionConvertor_14_50 {
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasType())
tgt.setType(src.getType());
tgt.setType(Enumerations.FHIRAllTypes.fromCode(src.getType()));
tgt.setSearchType(convertSearchParamType(src.getSearchType()));
tgt.addTargetProfile(src.getProfile().getReference());
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
@ -4872,8 +4883,9 @@ public class VersionConvertor_14_50 {
tgt.setMax(src.getMax());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasType()) {
tgt.setType(src.getType().toCode());
}
tgt.setSearchType(convertSearchParamType(src.getSearchType()));
for (org.hl7.fhir.r5.model.UriType t : src.getTargetProfile())
tgt.setProfile(new org.hl7.fhir.dstu2016may.model.Reference(t.getValue()));
@ -4883,17 +4895,17 @@ public class VersionConvertor_14_50 {
return tgt;
}
private static org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
private static org.hl7.fhir.r5.model.Enumerations.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case IN: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.OUT;
default: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.NULL;
case IN: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.OUT;
default: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.NULL;
}
}
private static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
private static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r5.model.Enumerations.OperationParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -5150,7 +5162,7 @@ public class VersionConvertor_14_50 {
tgt.setTitle(src.getTitle());
for (org.hl7.fhir.r5.model.Coding t : src.getCode())
tgt.addConcept(convertCoding(t));
for (org.hl7.fhir.r5.model.CodeType t : src.getSubjectType())
for (CodeType t : src.getSubjectType())
tgt.addSubjectType(t.getValue());
for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent t : src.getItem())
tgt.addItem(convertQuestionnaireItemComponent(t));
@ -5262,7 +5274,7 @@ public class VersionConvertor_14_50 {
switch (src) {
case GROUP: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.GROUP;
case DISPLAY: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.DISPLAY;
case QUESTION: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.QUESTION;
case QUESTION: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.GROUP;
case BOOLEAN: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.BOOLEAN;
case DECIMAL: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.DECIMAL;
case INTEGER: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.INTEGER;
@ -5288,7 +5300,7 @@ public class VersionConvertor_14_50 {
switch (src) {
case GROUP: return org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.GROUP;
case DISPLAY: return org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.DISPLAY;
case QUESTION: return org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.QUESTION;
// case QUESTION: return org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.QUESTION;
case BOOLEAN: return org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.BOOLEAN;
case DECIMAL: return org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.DECIMAL;
case INTEGER: return org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.INTEGER;
@ -5529,7 +5541,7 @@ public class VersionConvertor_14_50 {
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
tgt.setCode(src.getCode());
for (org.hl7.fhir.r5.model.CodeType t : src.getBase())
for (CodeType t : src.getBase())
tgt.setBase(t.asStringValue());
tgt.setType(convertSearchParamType(src.getType()));
tgt.setDescription(src.getDescription());
@ -5538,7 +5550,7 @@ public class VersionConvertor_14_50 {
if (src.hasXpath())
tgt.setXpath(src.getXpath());
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
for (org.hl7.fhir.r5.model.CodeType t : src.getTarget())
for (CodeType t : src.getTarget())
tgt.addTarget(t.getValue());
return tgt;
}
@ -6638,21 +6650,21 @@ public class VersionConvertor_14_50 {
return tgt;
}
private static org.hl7.fhir.r5.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.dstu2016may.model.ValueSet.FilterOperator src) throws FHIRException {
private static org.hl7.fhir.r5.model.Enumerations.FilterOperator convertFilterOperator(org.hl7.fhir.dstu2016may.model.ValueSet.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case EQUAL: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.ISA;
case ISNOTA: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.NOTIN;
default: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.NULL;
case EQUAL: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISA;
case ISNOTA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NOTIN;
default: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NULL;
}
}
private static org.hl7.fhir.dstu2016may.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.ValueSet.FilterOperator src) throws FHIRException {
private static org.hl7.fhir.dstu2016may.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.Enumerations.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -28,6 +28,10 @@ package org.hl7.fhir.convertors;
*/
import org.hl7.fhir.convertors.conv40_50.*;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnumEnumFactory;
/*
@ -886,7 +890,7 @@ public class VersionConvertor_40_50 {
org.hl7.fhir.r5.model.DataRequirement tgt = new org.hl7.fhir.r5.model.DataRequirement();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setType(org.hl7.fhir.r5.model.Enumerations.FHIRAllTypes.fromCode(src.getType()));
for (org.hl7.fhir.r4.model.CanonicalType t : src.getProfile())
tgt.getProfile().add(convertCanonical(t));
if (src.hasSubject())
@ -910,7 +914,7 @@ public class VersionConvertor_40_50 {
org.hl7.fhir.r4.model.DataRequirement tgt = new org.hl7.fhir.r4.model.DataRequirement();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setType(src.getType().toCode());
for (org.hl7.fhir.r5.model.CanonicalType t : src.getProfile())
tgt.getProfile().add(convertCanonical(t));
if (src.hasSubject())
@ -1452,7 +1456,7 @@ public class VersionConvertor_40_50 {
if (src.hasDocumentation())
tgt.setDocumentationElement(convertString(src.getDocumentationElement()));
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setType(org.hl7.fhir.r5.model.Enumerations.FHIRAllTypes.fromCode(src.getType()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
return tgt;
@ -1474,23 +1478,23 @@ public class VersionConvertor_40_50 {
if (src.hasDocumentation())
tgt.setDocumentationElement(convertString(src.getDocumentationElement()));
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setType(src.getType().toCode());
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
return tgt;
}
public static org.hl7.fhir.r5.model.ParameterDefinition.ParameterUse convertParameterUse(org.hl7.fhir.r4.model.ParameterDefinition.ParameterUse src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.OperationParameterUse convertParameterUse(org.hl7.fhir.r4.model.ParameterDefinition.ParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case IN: return org.hl7.fhir.r5.model.ParameterDefinition.ParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.ParameterDefinition.ParameterUse.OUT;
default: return org.hl7.fhir.r5.model.ParameterDefinition.ParameterUse.NULL;
case IN: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.OUT;
default: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.NULL;
}
}
public static org.hl7.fhir.r4.model.ParameterDefinition.ParameterUse convertParameterUse(org.hl7.fhir.r5.model.ParameterDefinition.ParameterUse src) throws FHIRException {
public static org.hl7.fhir.r4.model.ParameterDefinition.ParameterUse convertParameterUse(org.hl7.fhir.r5.model.Enumerations.OperationParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -1716,19 +1720,19 @@ public class VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.r4.model.Quantity.QuantityComparator src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.QuantityComparator convertQuantityComparator(org.hl7.fhir.r4.model.Quantity.QuantityComparator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case LESS_THAN: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.LESS_THAN;
case LESS_OR_EQUAL: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.LESS_OR_EQUAL;
case GREATER_OR_EQUAL: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.GREATER_OR_EQUAL;
case GREATER_THAN: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.GREATER_THAN;
default: return org.hl7.fhir.r5.model.Quantity.QuantityComparator.NULL;
case LESS_THAN: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.LESS_THAN;
case LESS_OR_EQUAL: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.LESS_OR_EQUAL;
case GREATER_OR_EQUAL: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.GREATER_OR_EQUAL;
case GREATER_THAN: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.GREATER_THAN;
default: return org.hl7.fhir.r5.model.Enumerations.QuantityComparator.NULL;
}
}
public static org.hl7.fhir.r4.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.r5.model.Quantity.QuantityComparator src) throws FHIRException {
public static org.hl7.fhir.r4.model.Quantity.QuantityComparator convertQuantityComparator(org.hl7.fhir.r5.model.Enumerations.QuantityComparator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -2133,7 +2137,7 @@ public class VersionConvertor_40_50 {
tgt.setPeriodMaxElement(convertDecimal(src.getPeriodMaxElement()));
if (src.hasPeriodUnit())
tgt.setPeriodUnit(convertUnitsOfTime(src.getPeriodUnit()));
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Timing.DaysOfWeek> t : src.getDayOfWeek())
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.DaysOfWeek> t : src.getDayOfWeek())
copyElement(t, tgt.addDayOfWeekElement().setValue(convertDayOfWeek(t.getValue())));
for (org.hl7.fhir.r5.model.TimeType t : src.getTimeOfDay())
tgt.getTimeOfDay().add(convertTime(t));
@ -2174,22 +2178,22 @@ public class VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Timing.DaysOfWeek convertDayOfWeek(org.hl7.fhir.r4.model.Timing.DayOfWeek src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DaysOfWeek convertDayOfWeek(org.hl7.fhir.r4.model.Timing.DayOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case MON: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.Timing.DaysOfWeek.NULL;
case MON: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL;
}
}
public static org.hl7.fhir.r4.model.Timing.DayOfWeek convertDayOfWeek(org.hl7.fhir.r5.model.Timing.DaysOfWeek src) throws FHIRException {
public static org.hl7.fhir.r4.model.Timing.DayOfWeek convertDayOfWeek(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -3797,5 +3801,12 @@ public class VersionConvertor_40_50 {
throw new Error("Unknown resource "+src.fhirType());
}
protected static org.hl7.fhir.r5.model.CodeType convertResourceEnum(org.hl7.fhir.r4.model.CodeType src) {
return convertCode(src);
}
protected static org.hl7.fhir.r4.model.CodeType convertResourceEnum(org.hl7.fhir.r5.model.CodeType src) {
return convertCode(src);
}
}

View File

@ -260,30 +260,30 @@ public class ActivityDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind convertActivityDefinitionKind(org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKind src) throws FHIRException {
public static org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType convertActivityDefinitionKind(org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case APPOINTMENT: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.APPOINTMENT;
case APPOINTMENTRESPONSE: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.APPOINTMENTRESPONSE;
case CAREPLAN: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.CAREPLAN;
case CLAIM: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.CLAIM;
case COMMUNICATIONREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.COMMUNICATIONREQUEST;
case CONTRACT: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.CONTRACT;
case DEVICEREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.DEVICEREQUEST;
case ENROLLMENTREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.ENROLLMENTREQUEST;
case IMMUNIZATIONRECOMMENDATION: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.IMMUNIZATIONRECOMMENDATION;
case MEDICATIONREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.MEDICATIONREQUEST;
case NUTRITIONORDER: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.NUTRITIONORDER;
case SERVICEREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.SERVICEREQUEST;
case SUPPLYREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.SUPPLYREQUEST;
case TASK: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.TASK;
case VISIONPRESCRIPTION: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.VISIONPRESCRIPTION;
default: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind.NULL;
case APPOINTMENT: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENT;
case APPOINTMENTRESPONSE: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENTRESPONSE;
case CAREPLAN: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CAREPLAN;
case CLAIM: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CLAIM;
case COMMUNICATIONREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.COMMUNICATIONREQUEST;
case CONTRACT: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CONTRACT;
case DEVICEREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.DEVICEREQUEST;
case ENROLLMENTREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.ENROLLMENTREQUEST;
case IMMUNIZATIONRECOMMENDATION: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.IMMUNIZATIONRECOMMENDATION;
case MEDICATIONREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.MEDICATIONREQUEST;
case NUTRITIONORDER: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NUTRITIONORDER;
case SERVICEREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SERVICEREQUEST;
case SUPPLYREQUEST: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SUPPLYREQUEST;
case TASK: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.TASK;
case VISIONPRESCRIPTION: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.VISIONPRESCRIPTION;
default: return org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NULL;
}
}
public static org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKind convertActivityDefinitionKind(org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionKind src) throws FHIRException {
public static org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKind convertActivityDefinitionKind(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -306,24 +306,24 @@ public class ActivityDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent convertRequestIntent(org.hl7.fhir.r4.model.ActivityDefinition.RequestIntent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestIntent convertRequestIntent(org.hl7.fhir.r4.model.ActivityDefinition.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PROPOSAL: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent.NULL;
case PROPOSAL: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.NULL;
}
}
public static org.hl7.fhir.r4.model.ActivityDefinition.RequestIntent convertRequestIntent(org.hl7.fhir.r5.model.ActivityDefinition.RequestIntent src) throws FHIRException {
public static org.hl7.fhir.r4.model.ActivityDefinition.RequestIntent convertRequestIntent(org.hl7.fhir.r5.model.Enumerations.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -340,19 +340,19 @@ public class ActivityDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ActivityDefinition.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.ActivityDefinition.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.ActivityDefinition.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.ActivityDefinition.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.ActivityDefinition.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.ActivityDefinition.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.ActivityDefinition.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.ActivityDefinition.RequestPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.ActivityDefinition.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.ActivityDefinition.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.ActivityDefinition.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -388,19 +388,19 @@ public class ActivityDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ActivityDefinition.ActivityParticipantType convertActivityParticipantType(org.hl7.fhir.r4.model.ActivityDefinition.ActivityParticipantType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionParticipantType convertActivityParticipantType(org.hl7.fhir.r4.model.ActivityDefinition.ActivityParticipantType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PATIENT: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityParticipantType.PATIENT;
case PRACTITIONER: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityParticipantType.PRACTITIONER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityParticipantType.RELATEDPERSON;
case DEVICE: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityParticipantType.DEVICE;
default: return org.hl7.fhir.r5.model.ActivityDefinition.ActivityParticipantType.NULL;
case PATIENT: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.PATIENT;
case PRACTITIONER: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.PRACTITIONER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.RELATEDPERSON;
case DEVICE: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.DEVICE;
default: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.NULL;
}
}
public static org.hl7.fhir.r4.model.ActivityDefinition.ActivityParticipantType convertActivityParticipantType(org.hl7.fhir.r5.model.ActivityDefinition.ActivityParticipantType src) throws FHIRException {
public static org.hl7.fhir.r4.model.ActivityDefinition.ActivityParticipantType convertActivityParticipantType(org.hl7.fhir.r5.model.Enumerations.ActionParticipantType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -258,19 +258,19 @@ public class Appointment extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Appointment.ParticipationStatus convertParticipationStatus(org.hl7.fhir.r4.model.Appointment.ParticipationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ParticipationStatus convertParticipationStatus(org.hl7.fhir.r4.model.Appointment.ParticipationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACCEPTED: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.TENTATIVE;
case NEEDSACTION: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.Appointment.ParticipationStatus.NULL;
case ACCEPTED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.TENTATIVE;
case NEEDSACTION: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.Appointment.ParticipationStatus convertParticipationStatus(org.hl7.fhir.r5.model.Appointment.ParticipationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Appointment.ParticipationStatus convertParticipationStatus(org.hl7.fhir.r5.model.Enumerations.ParticipationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -108,19 +108,19 @@ public class AppointmentResponse extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus convertParticipantStatus(org.hl7.fhir.r4.model.AppointmentResponse.ParticipantStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ParticipationStatus convertParticipantStatus(org.hl7.fhir.r4.model.AppointmentResponse.ParticipantStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACCEPTED: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.TENTATIVE;
case NEEDSACTION: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus.NULL;
case ACCEPTED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.ACCEPTED;
case DECLINED: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.DECLINED;
case TENTATIVE: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.TENTATIVE;
case NEEDSACTION: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NEEDSACTION;
default: return org.hl7.fhir.r5.model.Enumerations.ParticipationStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.AppointmentResponse.ParticipantStatus convertParticipantStatus(org.hl7.fhir.r5.model.AppointmentResponse.ParticipantStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.AppointmentResponse.ParticipantStatus convertParticipantStatus(org.hl7.fhir.r5.model.Enumerations.ParticipationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -325,8 +325,8 @@ public class AuditEvent extends VersionConvertor_40_50 {
tgt.addSecurityLabel(convertCoding(t));
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
// if (src.hasDescription())
// tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasQuery())
tgt.setQueryElement(convertBase64Binary(src.getQueryElement()));
for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail())
@ -351,8 +351,8 @@ public class AuditEvent extends VersionConvertor_40_50 {
tgt.addSecurityLabel(convertCoding(t));
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
// if (src.hasDescription())
// tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasQuery())
tgt.setQueryElement(convertBase64Binary(src.getQueryElement()));
for (org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail())

View File

@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -180,18 +180,18 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementKind src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case INSTANCE: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind.NULL;
case INSTANCE: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.NULL;
}
}
public static org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementKind src) throws FHIRException {
public static org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -306,17 +306,17 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode convertRestfulCapabilityMode(org.hl7.fhir.r4.model.CapabilityStatement.RestfulCapabilityMode src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode convertRestfulCapabilityMode(org.hl7.fhir.r4.model.CapabilityStatement.RestfulCapabilityMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case CLIENT: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.CLIENT;
case SERVER: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.SERVER;
default: return org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode.NULL;
case CLIENT: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.CLIENT;
case SERVER: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.SERVER;
default: return org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode.NULL;
}
}
public static org.hl7.fhir.r4.model.CapabilityStatement.RestfulCapabilityMode convertRestfulCapabilityMode(org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode src) throws FHIRException {
public static org.hl7.fhir.r4.model.CapabilityStatement.RestfulCapabilityMode convertRestfulCapabilityMode(org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -360,7 +360,7 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setTypeElement(convertResourceEnum(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
for (org.hl7.fhir.r4.model.CanonicalType t : src.getSupportedProfile())
@ -396,13 +396,14 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent convertCapabilityStatementRestResourceComponent(org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setTypeElement(convertResourceEnum(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
for (org.hl7.fhir.r5.model.CanonicalType t : src.getSupportedProfile())

View File

@ -168,22 +168,22 @@ public class CarePlan extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CarePlan.CarePlanStatus convertCarePlanStatus(org.hl7.fhir.r4.model.CarePlan.CarePlanStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestStatus convertCarePlanStatus(org.hl7.fhir.r4.model.CarePlan.CarePlanStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.CarePlan.CarePlanStatus.NULL;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.CarePlan.CarePlanStatus convertCarePlanStatus(org.hl7.fhir.r5.model.CarePlan.CarePlanStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.CarePlan.CarePlanStatus convertCarePlanStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -252,21 +252,21 @@ public class ChargeItemDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case BASE: return org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.BASE;
case SURCHARGE: return org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.SURCHARGE;
case DEDUCTION: return org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.DEDUCTION;
case DISCOUNT: return org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.DISCOUNT;
case TAX: return org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.TAX;
case INFORMATIONAL: return org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.INFORMATIONAL;
default: return org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.NULL;
case BASE: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE;
case SURCHARGE: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE;
case DEDUCTION: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION;
case DISCOUNT: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT;
case TAX: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX;
case INFORMATIONAL: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL;
default: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL;
}
}
public static org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType src) throws FHIRException {
public static org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -184,19 +184,19 @@ public class Claim extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Claim.ClaimStatus convertClaimStatus(org.hl7.fhir.r4.model.Claim.ClaimStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertClaimStatus(org.hl7.fhir.r4.model.Claim.ClaimStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.Claim.ClaimStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Claim.ClaimStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Claim.ClaimStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Claim.ClaimStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Claim.ClaimStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Claim.ClaimStatus convertClaimStatus(org.hl7.fhir.r5.model.Claim.ClaimStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Claim.ClaimStatus convertClaimStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -208,18 +208,18 @@ public class Claim extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Claim.Use convertUse(org.hl7.fhir.r4.model.Claim.Use src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.Use convertUse(org.hl7.fhir.r4.model.Claim.Use src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case CLAIM: return org.hl7.fhir.r5.model.Claim.Use.CLAIM;
case PREAUTHORIZATION: return org.hl7.fhir.r5.model.Claim.Use.PREAUTHORIZATION;
case PREDETERMINATION: return org.hl7.fhir.r5.model.Claim.Use.PREDETERMINATION;
default: return org.hl7.fhir.r5.model.Claim.Use.NULL;
case CLAIM: return org.hl7.fhir.r5.model.Enumerations.Use.CLAIM;
case PREAUTHORIZATION: return org.hl7.fhir.r5.model.Enumerations.Use.PREAUTHORIZATION;
case PREDETERMINATION: return org.hl7.fhir.r5.model.Enumerations.Use.PREDETERMINATION;
default: return org.hl7.fhir.r5.model.Enumerations.Use.NULL;
}
}
public static org.hl7.fhir.r4.model.Claim.Use convertUse(org.hl7.fhir.r5.model.Claim.Use src) throws FHIRException {
public static org.hl7.fhir.r4.model.Claim.Use convertUse(org.hl7.fhir.r5.model.Enumerations.Use src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -184,19 +184,19 @@ public class ClaimResponse extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ClaimResponse.ClaimResponseStatus convertClaimResponseStatus(org.hl7.fhir.r4.model.ClaimResponse.ClaimResponseStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertClaimResponseStatus(org.hl7.fhir.r4.model.ClaimResponse.ClaimResponseStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.ClaimResponse.ClaimResponseStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.ClaimResponse.ClaimResponseStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.ClaimResponse.ClaimResponseStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.ClaimResponse.ClaimResponseStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.ClaimResponse.ClaimResponseStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.ClaimResponse.ClaimResponseStatus convertClaimResponseStatus(org.hl7.fhir.r5.model.ClaimResponse.ClaimResponseStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.ClaimResponse.ClaimResponseStatus convertClaimResponseStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -208,18 +208,18 @@ public class ClaimResponse extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ClaimResponse.Use convertUse(org.hl7.fhir.r4.model.ClaimResponse.Use src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.Use convertUse(org.hl7.fhir.r4.model.ClaimResponse.Use src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case CLAIM: return org.hl7.fhir.r5.model.ClaimResponse.Use.CLAIM;
case PREAUTHORIZATION: return org.hl7.fhir.r5.model.ClaimResponse.Use.PREAUTHORIZATION;
case PREDETERMINATION: return org.hl7.fhir.r5.model.ClaimResponse.Use.PREDETERMINATION;
default: return org.hl7.fhir.r5.model.ClaimResponse.Use.NULL;
case CLAIM: return org.hl7.fhir.r5.model.Enumerations.Use.CLAIM;
case PREAUTHORIZATION: return org.hl7.fhir.r5.model.Enumerations.Use.PREAUTHORIZATION;
case PREDETERMINATION: return org.hl7.fhir.r5.model.Enumerations.Use.PREDETERMINATION;
default: return org.hl7.fhir.r5.model.Enumerations.Use.NULL;
}
}
public static org.hl7.fhir.r4.model.ClaimResponse.Use convertUse(org.hl7.fhir.r5.model.ClaimResponse.Use src) throws FHIRException {
public static org.hl7.fhir.r4.model.ClaimResponse.Use convertUse(org.hl7.fhir.r5.model.Enumerations.Use src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -230,19 +230,19 @@ public class ClaimResponse extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ClaimResponse.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r4.model.ClaimResponse.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes convertRemittanceOutcome(org.hl7.fhir.r4.model.ClaimResponse.RemittanceOutcome src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case QUEUED: return org.hl7.fhir.r5.model.ClaimResponse.RemittanceOutcome.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.ClaimResponse.RemittanceOutcome.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.ClaimResponse.RemittanceOutcome.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.ClaimResponse.RemittanceOutcome.PARTIAL;
default: return org.hl7.fhir.r5.model.ClaimResponse.RemittanceOutcome.NULL;
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.ClaimResponse.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.ClaimResponse.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r4.model.ClaimResponse.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -71,8 +71,8 @@ public class ClinicalImpression extends VersionConvertor_40_50 {
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
if (src.hasStatusReason())
tgt.setStatusReason(convertCodeableConcept(src.getStatusReason()));
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
// if (src.hasCode())
// tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasSubject())
@ -117,8 +117,8 @@ public class ClinicalImpression extends VersionConvertor_40_50 {
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
if (src.hasStatusReason())
tgt.setStatusReason(convertCodeableConcept(src.getStatusReason()));
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
// if (src.hasCode())
// tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasSubject())
@ -152,18 +152,18 @@ public class ClinicalImpression extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionStatus convertClinicalImpressionStatus(org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.EventStatus convertClinicalImpressionStatus(org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case INPROGRESS: return org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionStatus.INPROGRESS;
case COMPLETED: return org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionStatus.NULL;
case INPROGRESS: return org.hl7.fhir.r5.model.Enumerations.EventStatus.INPROGRESS;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.EventStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.EventStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionStatus convertClinicalImpressionStatus(org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionStatus convertClinicalImpressionStatus(org.hl7.fhir.r5.model.Enumerations.EventStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -255,31 +255,31 @@ public class CodeSystem extends VersionConvertor_40_50 {
tgt.setCodeElement(convertCode(src.getCodeElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.CodeSystem.FilterOperator> t : src.getOperator())
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FilterOperator> t : src.getOperator())
copyElement(t, tgt.addOperatorElement().setValue(convertFilterOperator(t.getValue())));
if (src.hasValue())
tgt.setValueElement(convertString(src.getValueElement()));
return tgt;
}
public static org.hl7.fhir.r5.model.CodeSystem.FilterOperator convertFilterOperator(org.hl7.fhir.r4.model.CodeSystem.FilterOperator src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FilterOperator convertFilterOperator(org.hl7.fhir.r4.model.CodeSystem.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case EQUAL: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.ISA;
case DESCENDENTOF: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.DESCENDENTOF;
case ISNOTA: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.NOTIN;
case GENERALIZES: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.GENERALIZES;
case EXISTS: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.EXISTS;
default: return org.hl7.fhir.r5.model.CodeSystem.FilterOperator.NULL;
case EQUAL: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISA;
case DESCENDENTOF: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.DESCENDENTOF;
case ISNOTA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NOTIN;
case GENERALIZES: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.GENERALIZES;
case EXISTS: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.EXISTS;
default: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NULL;
}
}
public static org.hl7.fhir.r4.model.CodeSystem.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.CodeSystem.FilterOperator src) throws FHIRException {
public static org.hl7.fhir.r4.model.CodeSystem.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.Enumerations.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -168,23 +168,23 @@ public class Communication extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Communication.CommunicationStatus convertCommunicationStatus(org.hl7.fhir.r4.model.Communication.CommunicationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.EventStatus convertCommunicationStatus(org.hl7.fhir.r4.model.Communication.CommunicationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PREPARATION: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.PREPARATION;
case INPROGRESS: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.INPROGRESS;
case NOTDONE: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.NOTDONE;
case ONHOLD: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.ONHOLD;
case STOPPED: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.STOPPED;
case COMPLETED: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Communication.CommunicationStatus.NULL;
case PREPARATION: return org.hl7.fhir.r5.model.Enumerations.EventStatus.PREPARATION;
case INPROGRESS: return org.hl7.fhir.r5.model.Enumerations.EventStatus.INPROGRESS;
case NOTDONE: return org.hl7.fhir.r5.model.Enumerations.EventStatus.NOTDONE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.EventStatus.ONHOLD;
case STOPPED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.STOPPED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.EventStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.EventStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.EventStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.Communication.CommunicationStatus convertCommunicationStatus(org.hl7.fhir.r5.model.Communication.CommunicationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Communication.CommunicationStatus convertCommunicationStatus(org.hl7.fhir.r5.model.Enumerations.EventStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -200,19 +200,19 @@ public class Communication extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Communication.CommunicationPriority convertCommunicationPriority(org.hl7.fhir.r4.model.Communication.CommunicationPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertCommunicationPriority(org.hl7.fhir.r4.model.Communication.CommunicationPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.Communication.CommunicationPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Communication.CommunicationPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Communication.CommunicationPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Communication.CommunicationPriority.STAT;
default: return org.hl7.fhir.r5.model.Communication.CommunicationPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.Communication.CommunicationPriority convertCommunicationPriority(org.hl7.fhir.r5.model.Communication.CommunicationPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.Communication.CommunicationPriority convertCommunicationPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -164,22 +164,22 @@ public class CommunicationRequest extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus convertCommunicationRequestStatus(org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestStatus convertCommunicationRequestStatus(org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus.NULL;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestStatus convertCommunicationRequestStatus(org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestStatus convertCommunicationRequestStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -194,19 +194,19 @@ public class CommunicationRequest extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority convertCommunicationPriority(org.hl7.fhir.r4.model.CommunicationRequest.CommunicationPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertCommunicationPriority(org.hl7.fhir.r4.model.CommunicationRequest.CommunicationPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.STAT;
default: return org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.CommunicationRequest.CommunicationPriority convertCommunicationPriority(org.hl7.fhir.r5.model.CommunicationRequest.CommunicationPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.CommunicationRequest.CommunicationPriority convertCommunicationPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -132,20 +132,20 @@ public class CompartmentDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType convertCompartmentType(org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.CompartmentType convertCompartmentType(org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PATIENT: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.PATIENT;
case ENCOUNTER: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.ENCOUNTER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.RELATEDPERSON;
case PRACTITIONER: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.PRACTITIONER;
case DEVICE: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.DEVICE;
default: return org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType.NULL;
case PATIENT: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.PATIENT;
case ENCOUNTER: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.ENCOUNTER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.RELATEDPERSON;
case PRACTITIONER: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.PRACTITIONER;
case DEVICE: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.DEVICE;
default: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.NULL;
}
}
public static org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentType convertCompartmentType(org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentType src) throws FHIRException {
public static org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentType convertCompartmentType(org.hl7.fhir.r5.model.Enumerations.CompartmentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -164,7 +164,7 @@ public class CompartmentDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
copyElement(src, tgt);
if (src.hasCode())
tgt.setCodeElement(convertCode(src.getCodeElement()));
tgt.setCodeElement(convertResourceEnum(src.getCodeElement()));
for (org.hl7.fhir.r4.model.StringType t : src.getParam())
tgt.getParam().add(convertString(t));
if (src.hasDocumentation())
@ -178,7 +178,7 @@ public class CompartmentDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
copyElement(src, tgt);
if (src.hasCode())
tgt.setCodeElement(convertCode(src.getCodeElement()));
tgt.setCodeElement(convertResourceEnum(src.getCodeElement()));
for (org.hl7.fhir.r5.model.StringType t : src.getParam())
tgt.getParam().add(convertString(t));
if (src.hasDocumentation())

View File

@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -136,19 +136,19 @@ public class Composition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Composition.CompositionStatus convertCompositionStatus(org.hl7.fhir.r4.model.Composition.CompositionStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.CompositionStatus convertCompositionStatus(org.hl7.fhir.r4.model.Composition.CompositionStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PRELIMINARY: return org.hl7.fhir.r5.model.Composition.CompositionStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Composition.CompositionStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Composition.CompositionStatus.AMENDED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Composition.CompositionStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Composition.CompositionStatus.NULL;
case PRELIMINARY: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.AMENDED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.Composition.CompositionStatus convertCompositionStatus(org.hl7.fhir.r5.model.Composition.CompositionStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Composition.CompositionStatus convertCompositionStatus(org.hl7.fhir.r5.model.Enumerations.CompositionStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -160,21 +160,21 @@ public class Composition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Composition.DocumentConfidentiality convertDocumentConfidentiality(org.hl7.fhir.r4.model.Composition.DocumentConfidentiality src) throws FHIRException {
public static org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification convertDocumentConfidentiality(org.hl7.fhir.r4.model.Composition.DocumentConfidentiality src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case U: return org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.U;
case L: return org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.L;
case M: return org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.M;
case N: return org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.N;
case R: return org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.R;
case V: return org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.V;
default: return org.hl7.fhir.r5.model.Composition.DocumentConfidentiality.NULL;
case U: return org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.U;
case L: return org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.L;
case M: return org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.M;
case N: return org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.N;
case R: return org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.R;
case V: return org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.V;
default: return org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification.NULL;
}
}
public static org.hl7.fhir.r4.model.Composition.DocumentConfidentiality convertDocumentConfidentiality(org.hl7.fhir.r5.model.Composition.DocumentConfidentiality src) throws FHIRException {
public static org.hl7.fhir.r4.model.Composition.DocumentConfidentiality convertDocumentConfidentiality(org.hl7.fhir.r5.model.Composition.V3ConfidentialityClassification src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -264,19 +264,19 @@ public class Composition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Composition.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r4.model.Composition.DocumentRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r4.model.Composition.DocumentRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case REPLACES: return org.hl7.fhir.r5.model.Composition.DocumentRelationshipType.REPLACES;
case TRANSFORMS: return org.hl7.fhir.r5.model.Composition.DocumentRelationshipType.TRANSFORMS;
case SIGNS: return org.hl7.fhir.r5.model.Composition.DocumentRelationshipType.SIGNS;
case APPENDS: return org.hl7.fhir.r5.model.Composition.DocumentRelationshipType.APPENDS;
default: return org.hl7.fhir.r5.model.Composition.DocumentRelationshipType.NULL;
case REPLACES: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.REPLACES;
case TRANSFORMS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.TRANSFORMS;
case SIGNS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.SIGNS;
case APPENDS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.APPENDS;
default: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.NULL;
}
}
public static org.hl7.fhir.r4.model.Composition.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r5.model.Composition.DocumentRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r4.model.Composition.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -372,18 +372,18 @@ public class Composition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Composition.SectionMode convertSectionMode(org.hl7.fhir.r4.model.Composition.SectionMode src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ListMode convertSectionMode(org.hl7.fhir.r4.model.Composition.SectionMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case WORKING: return org.hl7.fhir.r5.model.Composition.SectionMode.WORKING;
case SNAPSHOT: return org.hl7.fhir.r5.model.Composition.SectionMode.SNAPSHOT;
case CHANGES: return org.hl7.fhir.r5.model.Composition.SectionMode.CHANGES;
default: return org.hl7.fhir.r5.model.Composition.SectionMode.NULL;
case WORKING: return org.hl7.fhir.r5.model.Enumerations.ListMode.WORKING;
case SNAPSHOT: return org.hl7.fhir.r5.model.Enumerations.ListMode.SNAPSHOT;
case CHANGES: return org.hl7.fhir.r5.model.Enumerations.ListMode.CHANGES;
default: return org.hl7.fhir.r5.model.Enumerations.ListMode.NULL;
}
}
public static org.hl7.fhir.r4.model.Composition.SectionMode convertSectionMode(org.hl7.fhir.r5.model.Composition.SectionMode src) throws FHIRException {
public static org.hl7.fhir.r4.model.Composition.SectionMode convertSectionMode(org.hl7.fhir.r5.model.Enumerations.ListMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -68,7 +68,7 @@ public class ConceptMap extends VersionConvertor_40_50 {
if (src.hasUrl())
tgt.setUrlElement(convertUri(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
tgt.addIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersionElement(convertString(src.getVersionElement()));
if (src.hasName())
@ -112,7 +112,7 @@ public class ConceptMap extends VersionConvertor_40_50 {
if (src.hasUrl())
tgt.setUrlElement(convertUri(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
tgt.setIdentifier(convertIdentifier(src.getIdentifierFirstRep()));
if (src.hasVersion())
tgt.setVersionElement(convertString(src.getVersionElement()));
if (src.hasName())

View File

@ -137,9 +137,9 @@ public class Consent extends VersionConvertor_40_50 {
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r5.model.Consent.ConsentState.DRAFT;
case PROPOSED: return org.hl7.fhir.r5.model.Consent.ConsentState.PROPOSED;
case PROPOSED: return org.hl7.fhir.r5.model.Consent.ConsentState.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Consent.ConsentState.ACTIVE;
case REJECTED: return org.hl7.fhir.r5.model.Consent.ConsentState.REJECTED;
case REJECTED: return org.hl7.fhir.r5.model.Consent.ConsentState.INACTIVE;
case INACTIVE: return org.hl7.fhir.r5.model.Consent.ConsentState.INACTIVE;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Consent.ConsentState.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Consent.ConsentState.NULL;
@ -151,9 +151,7 @@ public class Consent extends VersionConvertor_40_50 {
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r4.model.Consent.ConsentState.DRAFT;
case PROPOSED: return org.hl7.fhir.r4.model.Consent.ConsentState.PROPOSED;
case ACTIVE: return org.hl7.fhir.r4.model.Consent.ConsentState.ACTIVE;
case REJECTED: return org.hl7.fhir.r4.model.Consent.ConsentState.REJECTED;
case INACTIVE: return org.hl7.fhir.r4.model.Consent.ConsentState.INACTIVE;
case ENTEREDINERROR: return org.hl7.fhir.r4.model.Consent.ConsentState.ENTEREDINERROR;
default: return org.hl7.fhir.r4.model.Consent.ConsentState.NULL;
@ -194,7 +192,7 @@ public class Consent extends VersionConvertor_40_50 {
if (src.hasVerifiedWith())
tgt.setVerifiedWith(convertReference(src.getVerifiedWith()));
if (src.hasVerificationDate())
tgt.setVerificationDateElement(convertDateTime(src.getVerificationDateElement()));
tgt.getVerificationDate().add(convertDateTime(src.getVerificationDateElement()));
return tgt;
}
@ -208,14 +206,14 @@ public class Consent extends VersionConvertor_40_50 {
if (src.hasVerifiedWith())
tgt.setVerifiedWith(convertReference(src.getVerifiedWith()));
if (src.hasVerificationDate())
tgt.setVerificationDateElement(convertDateTime(src.getVerificationDateElement()));
tgt.setVerificationDateElement(convertDateTime(src.getVerificationDate().get(0)));
return tgt;
}
public static org.hl7.fhir.r5.model.Consent.provisionComponent convertprovisionComponent(org.hl7.fhir.r4.model.Consent.provisionComponent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Consent.ProvisionComponent convertprovisionComponent(org.hl7.fhir.r4.model.Consent.provisionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.Consent.provisionComponent tgt = new org.hl7.fhir.r5.model.Consent.provisionComponent();
org.hl7.fhir.r5.model.Consent.ProvisionComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertConsentProvisionType(src.getType()));
@ -242,7 +240,7 @@ public class Consent extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r4.model.Consent.provisionComponent convertprovisionComponent(org.hl7.fhir.r5.model.Consent.provisionComponent src) throws FHIRException {
public static org.hl7.fhir.r4.model.Consent.provisionComponent convertprovisionComponent(org.hl7.fhir.r5.model.Consent.ProvisionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.Consent.provisionComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionComponent();
@ -251,7 +249,7 @@ public class Consent extends VersionConvertor_40_50 {
tgt.setType(convertConsentProvisionType(src.getType()));
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
for (org.hl7.fhir.r5.model.Consent.provisionActorComponent t : src.getActor())
for (org.hl7.fhir.r5.model.Consent.ProvisionActorComponent t : src.getActor())
tgt.addActor(convertprovisionActorComponent(t));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAction())
tgt.addAction(convertCodeableConcept(t));
@ -265,9 +263,9 @@ public class Consent extends VersionConvertor_40_50 {
tgt.addCode(convertCodeableConcept(t));
if (src.hasDataPeriod())
tgt.setDataPeriod(convertPeriod(src.getDataPeriod()));
for (org.hl7.fhir.r5.model.Consent.provisionDataComponent t : src.getData())
for (org.hl7.fhir.r5.model.Consent.ProvisionDataComponent t : src.getData())
tgt.addData(convertprovisionDataComponent(t));
for (org.hl7.fhir.r5.model.Consent.provisionComponent t : src.getProvision())
for (org.hl7.fhir.r5.model.Consent.ProvisionComponent t : src.getProvision())
tgt.addProvision(convertprovisionComponent(t));
return tgt;
}
@ -292,10 +290,10 @@ public class Consent extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Consent.provisionActorComponent convertprovisionActorComponent(org.hl7.fhir.r4.model.Consent.provisionActorComponent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Consent.ProvisionActorComponent convertprovisionActorComponent(org.hl7.fhir.r4.model.Consent.provisionActorComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.Consent.provisionActorComponent tgt = new org.hl7.fhir.r5.model.Consent.provisionActorComponent();
org.hl7.fhir.r5.model.Consent.ProvisionActorComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionActorComponent();
copyElement(src, tgt);
if (src.hasRole())
tgt.setRole(convertCodeableConcept(src.getRole()));
@ -304,7 +302,7 @@ public class Consent extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r4.model.Consent.provisionActorComponent convertprovisionActorComponent(org.hl7.fhir.r5.model.Consent.provisionActorComponent src) throws FHIRException {
public static org.hl7.fhir.r4.model.Consent.provisionActorComponent convertprovisionActorComponent(org.hl7.fhir.r5.model.Consent.ProvisionActorComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.Consent.provisionActorComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionActorComponent();
@ -316,10 +314,10 @@ public class Consent extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Consent.provisionDataComponent convertprovisionDataComponent(org.hl7.fhir.r4.model.Consent.provisionDataComponent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Consent.ProvisionDataComponent convertprovisionDataComponent(org.hl7.fhir.r4.model.Consent.provisionDataComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.Consent.provisionDataComponent tgt = new org.hl7.fhir.r5.model.Consent.provisionDataComponent();
org.hl7.fhir.r5.model.Consent.ProvisionDataComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionDataComponent();
copyElement(src, tgt);
if (src.hasMeaning())
tgt.setMeaning(convertConsentDataMeaning(src.getMeaning()));
@ -328,7 +326,7 @@ public class Consent extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r4.model.Consent.provisionDataComponent convertprovisionDataComponent(org.hl7.fhir.r5.model.Consent.provisionDataComponent src) throws FHIRException {
public static org.hl7.fhir.r4.model.Consent.provisionDataComponent convertprovisionDataComponent(org.hl7.fhir.r5.model.Consent.ProvisionDataComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.Consent.provisionDataComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionDataComponent();

View File

@ -208,30 +208,30 @@ public class Contract extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Contract.ContractStatus convertContractStatus(org.hl7.fhir.r4.model.Contract.ContractStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes convertContractStatus(org.hl7.fhir.r4.model.Contract.ContractStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case AMENDED: return org.hl7.fhir.r5.model.Contract.ContractStatus.AMENDED;
case APPENDED: return org.hl7.fhir.r5.model.Contract.ContractStatus.APPENDED;
case CANCELLED: return org.hl7.fhir.r5.model.Contract.ContractStatus.CANCELLED;
case DISPUTED: return org.hl7.fhir.r5.model.Contract.ContractStatus.DISPUTED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Contract.ContractStatus.ENTEREDINERROR;
case EXECUTABLE: return org.hl7.fhir.r5.model.Contract.ContractStatus.EXECUTABLE;
case EXECUTED: return org.hl7.fhir.r5.model.Contract.ContractStatus.EXECUTED;
case NEGOTIABLE: return org.hl7.fhir.r5.model.Contract.ContractStatus.NEGOTIABLE;
case OFFERED: return org.hl7.fhir.r5.model.Contract.ContractStatus.OFFERED;
case POLICY: return org.hl7.fhir.r5.model.Contract.ContractStatus.POLICY;
case REJECTED: return org.hl7.fhir.r5.model.Contract.ContractStatus.REJECTED;
case RENEWED: return org.hl7.fhir.r5.model.Contract.ContractStatus.RENEWED;
case REVOKED: return org.hl7.fhir.r5.model.Contract.ContractStatus.REVOKED;
case RESOLVED: return org.hl7.fhir.r5.model.Contract.ContractStatus.RESOLVED;
case TERMINATED: return org.hl7.fhir.r5.model.Contract.ContractStatus.TERMINATED;
default: return org.hl7.fhir.r5.model.Contract.ContractStatus.NULL;
case AMENDED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.AMENDED;
case APPENDED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.APPENDED;
case CANCELLED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.CANCELLED;
case DISPUTED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.DISPUTED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.ENTEREDINERROR;
case EXECUTABLE: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.EXECUTABLE;
case EXECUTED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.EXECUTED;
case NEGOTIABLE: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.NEGOTIABLE;
case OFFERED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.OFFERED;
case POLICY: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.POLICY;
case REJECTED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.REJECTED;
case RENEWED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.RENEWED;
case REVOKED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.REVOKED;
case RESOLVED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.RESOLVED;
case TERMINATED: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.TERMINATED;
default: return org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Contract.ContractStatus convertContractStatus(org.hl7.fhir.r5.model.Contract.ContractStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Contract.ContractStatus convertContractStatus(org.hl7.fhir.r5.model.Contract.ContractResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -294,30 +294,30 @@ public class Contract extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Contract.ContractPublicationStatus convertContractPublicationStatus(org.hl7.fhir.r4.model.Contract.ContractPublicationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes convertContractPublicationStatus(org.hl7.fhir.r4.model.Contract.ContractPublicationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case AMENDED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.AMENDED;
case APPENDED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.APPENDED;
case CANCELLED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.CANCELLED;
case DISPUTED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.DISPUTED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.ENTEREDINERROR;
case EXECUTABLE: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.EXECUTABLE;
case EXECUTED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.EXECUTED;
case NEGOTIABLE: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.NEGOTIABLE;
case OFFERED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.OFFERED;
case POLICY: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.POLICY;
case REJECTED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.REJECTED;
case RENEWED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.RENEWED;
case REVOKED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.REVOKED;
case RESOLVED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.RESOLVED;
case TERMINATED: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.TERMINATED;
default: return org.hl7.fhir.r5.model.Contract.ContractPublicationStatus.NULL;
case AMENDED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.AMENDED;
case APPENDED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.APPENDED;
case CANCELLED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.CANCELLED;
case DISPUTED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.DISPUTED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.ENTEREDINERROR;
case EXECUTABLE: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.EXECUTABLE;
case EXECUTED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.EXECUTED;
case NEGOTIABLE: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.NEGOTIABLE;
case OFFERED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.OFFERED;
case POLICY: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.POLICY;
case REJECTED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.REJECTED;
case RENEWED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.RENEWED;
case REVOKED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.REVOKED;
case RESOLVED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.RESOLVED;
case TERMINATED: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.TERMINATED;
default: return org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Contract.ContractPublicationStatus convertContractPublicationStatus(org.hl7.fhir.r5.model.Contract.ContractPublicationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Contract.ContractPublicationStatus convertContractPublicationStatus(org.hl7.fhir.r5.model.Contract.ContractResourcePublicationStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -144,19 +144,19 @@ public class Coverage extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Coverage.CoverageStatus convertCoverageStatus(org.hl7.fhir.r4.model.Coverage.CoverageStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertCoverageStatus(org.hl7.fhir.r4.model.Coverage.CoverageStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.Coverage.CoverageStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Coverage.CoverageStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Coverage.CoverageStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Coverage.CoverageStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Coverage.CoverageStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Coverage.CoverageStatus convertCoverageStatus(org.hl7.fhir.r5.model.Coverage.CoverageStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Coverage.CoverageStatus convertCoverageStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -132,19 +132,19 @@ public class CoverageEligibilityRequest extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CoverageEligibilityRequest.EligibilityRequestStatus convertEligibilityRequestStatus(org.hl7.fhir.r4.model.CoverageEligibilityRequest.EligibilityRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertEligibilityRequestStatus(org.hl7.fhir.r4.model.CoverageEligibilityRequest.EligibilityRequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.CoverageEligibilityRequest.EligibilityRequestStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.CoverageEligibilityRequest.EligibilityRequestStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.CoverageEligibilityRequest.EligibilityRequestStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.CoverageEligibilityRequest.EligibilityRequestStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.CoverageEligibilityRequest.EligibilityRequestStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.CoverageEligibilityRequest.EligibilityRequestStatus convertEligibilityRequestStatus(org.hl7.fhir.r5.model.CoverageEligibilityRequest.EligibilityRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.CoverageEligibilityRequest.EligibilityRequestStatus convertEligibilityRequestStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -136,19 +136,19 @@ public class CoverageEligibilityResponse extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponseStatus convertEligibilityResponseStatus(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertEligibilityResponseStatus(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponseStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponseStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponseStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponseStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponseStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus convertEligibilityResponseStatus(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponseStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus convertEligibilityResponseStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -184,19 +184,19 @@ public class CoverageEligibilityResponse extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.NULL;
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -124,23 +124,23 @@ public class DetectedIssue extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus convertDetectedIssueStatus(org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ObservationStatus convertDetectedIssueStatus(org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case REGISTERED: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.AMENDED;
case CORRECTED: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.CORRECTED;
case CANCELLED: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus.NULL;
case REGISTERED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.AMENDED;
case CORRECTED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.CORRECTED;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueStatus convertDetectedIssueStatus(org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueStatus convertDetectedIssueStatus(org.hl7.fhir.r5.model.Enumerations.ObservationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -296,21 +296,21 @@ public class Device extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Device.DeviceNameType convertDeviceNameType(org.hl7.fhir.r4.model.Device.DeviceNameType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DeviceNameType convertDeviceNameType(org.hl7.fhir.r4.model.Device.DeviceNameType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case UDILABELNAME: return org.hl7.fhir.r5.model.Device.DeviceNameType.UDILABELNAME;
case USERFRIENDLYNAME: return org.hl7.fhir.r5.model.Device.DeviceNameType.USERFRIENDLYNAME;
case PATIENTREPORTEDNAME: return org.hl7.fhir.r5.model.Device.DeviceNameType.PATIENTREPORTEDNAME;
case MANUFACTURERNAME: return org.hl7.fhir.r5.model.Device.DeviceNameType.MANUFACTURERNAME;
case MODELNAME: return org.hl7.fhir.r5.model.Device.DeviceNameType.MODELNAME;
case OTHER: return org.hl7.fhir.r5.model.Device.DeviceNameType.OTHER;
default: return org.hl7.fhir.r5.model.Device.DeviceNameType.NULL;
case UDILABELNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.UDILABELNAME;
case USERFRIENDLYNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.USERFRIENDLYNAME;
case PATIENTREPORTEDNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.PATIENTREPORTEDNAME;
case MANUFACTURERNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.MANUFACTURERNAME;
case MODELNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.MODELNAME;
case OTHER: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.OTHER;
default: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.NULL;
}
}
public static org.hl7.fhir.r4.model.Device.DeviceNameType convertDeviceNameType(org.hl7.fhir.r5.model.Device.DeviceNameType src) throws FHIRException {
public static org.hl7.fhir.r4.model.Device.DeviceNameType convertDeviceNameType(org.hl7.fhir.r5.model.Enumerations.DeviceNameType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -216,21 +216,21 @@ public class DeviceDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType convertDeviceNameType(org.hl7.fhir.r4.model.DeviceDefinition.DeviceNameType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DeviceNameType convertDeviceNameType(org.hl7.fhir.r4.model.DeviceDefinition.DeviceNameType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case UDILABELNAME: return org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType.UDILABELNAME;
case USERFRIENDLYNAME: return org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType.USERFRIENDLYNAME;
case PATIENTREPORTEDNAME: return org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType.PATIENTREPORTEDNAME;
case MANUFACTURERNAME: return org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType.MANUFACTURERNAME;
case MODELNAME: return org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType.MODELNAME;
case OTHER: return org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType.OTHER;
default: return org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType.NULL;
case UDILABELNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.UDILABELNAME;
case USERFRIENDLYNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.USERFRIENDLYNAME;
case PATIENTREPORTEDNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.PATIENTREPORTEDNAME;
case MANUFACTURERNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.MANUFACTURERNAME;
case MODELNAME: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.MODELNAME;
case OTHER: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.OTHER;
default: return org.hl7.fhir.r5.model.Enumerations.DeviceNameType.NULL;
}
}
public static org.hl7.fhir.r4.model.DeviceDefinition.DeviceNameType convertDeviceNameType(org.hl7.fhir.r5.model.DeviceDefinition.DeviceNameType src) throws FHIRException {
public static org.hl7.fhir.r4.model.DeviceDefinition.DeviceNameType convertDeviceNameType(org.hl7.fhir.r5.model.Enumerations.DeviceNameType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -172,22 +172,22 @@ public class DeviceRequest extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus convertDeviceRequestStatus(org.hl7.fhir.r4.model.DeviceRequest.DeviceRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestStatus convertDeviceRequestStatus(org.hl7.fhir.r4.model.DeviceRequest.DeviceRequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus.NULL;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.DeviceRequest.DeviceRequestStatus convertDeviceRequestStatus(org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.DeviceRequest.DeviceRequestStatus convertDeviceRequestStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -202,24 +202,24 @@ public class DeviceRequest extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.DeviceRequest.RequestIntent convertRequestIntent(org.hl7.fhir.r4.model.DeviceRequest.RequestIntent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestIntent convertRequestIntent(org.hl7.fhir.r4.model.DeviceRequest.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PROPOSAL: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.DeviceRequest.RequestIntent.NULL;
case PROPOSAL: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.NULL;
}
}
public static org.hl7.fhir.r4.model.DeviceRequest.RequestIntent convertRequestIntent(org.hl7.fhir.r5.model.DeviceRequest.RequestIntent src) throws FHIRException {
public static org.hl7.fhir.r4.model.DeviceRequest.RequestIntent convertRequestIntent(org.hl7.fhir.r5.model.Enumerations.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -236,19 +236,19 @@ public class DeviceRequest extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.DeviceRequest.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.DeviceRequest.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.DeviceRequest.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.DeviceRequest.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.DeviceRequest.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.DeviceRequest.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.DeviceRequest.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.DeviceRequest.RequestPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.DeviceRequest.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.DeviceRequest.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.DeviceRequest.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -140,19 +140,19 @@ public class DocumentReference extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus convertReferredDocumentStatus(org.hl7.fhir.r4.model.DocumentReference.ReferredDocumentStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.CompositionStatus convertReferredDocumentStatus(org.hl7.fhir.r4.model.DocumentReference.ReferredDocumentStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PRELIMINARY: return org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus.AMENDED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus.NULL;
case PRELIMINARY: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.AMENDED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.CompositionStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.DocumentReference.ReferredDocumentStatus convertReferredDocumentStatus(org.hl7.fhir.r5.model.DocumentReference.ReferredDocumentStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.DocumentReference.ReferredDocumentStatus convertReferredDocumentStatus(org.hl7.fhir.r5.model.Enumerations.CompositionStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -188,19 +188,19 @@ public class DocumentReference extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r4.model.DocumentReference.DocumentRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r4.model.DocumentReference.DocumentRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case REPLACES: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.REPLACES;
case TRANSFORMS: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.TRANSFORMS;
case SIGNS: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.SIGNS;
case APPENDS: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.APPENDS;
default: return org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType.NULL;
case REPLACES: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.REPLACES;
case TRANSFORMS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.TRANSFORMS;
case SIGNS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.SIGNS;
case APPENDS: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.APPENDS;
default: return org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType.NULL;
}
}
public static org.hl7.fhir.r4.model.DocumentReference.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r5.model.DocumentReference.DocumentRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r4.model.DocumentReference.DocumentRelationshipType convertDocumentRelationshipType(org.hl7.fhir.r5.model.Enumerations.DocumentRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -104,19 +104,19 @@ public class EnrollmentRequest extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.EnrollmentRequest.EnrollmentRequestStatus convertEnrollmentRequestStatus(org.hl7.fhir.r4.model.EnrollmentRequest.EnrollmentRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertEnrollmentRequestStatus(org.hl7.fhir.r4.model.EnrollmentRequest.EnrollmentRequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.EnrollmentRequest.EnrollmentRequestStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.EnrollmentRequest.EnrollmentRequestStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.EnrollmentRequest.EnrollmentRequestStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.EnrollmentRequest.EnrollmentRequestStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.EnrollmentRequest.EnrollmentRequestStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.EnrollmentRequest.EnrollmentRequestStatus convertEnrollmentRequestStatus(org.hl7.fhir.r5.model.EnrollmentRequest.EnrollmentRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.EnrollmentRequest.EnrollmentRequestStatus convertEnrollmentRequestStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -108,19 +108,19 @@ public class EnrollmentResponse extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.EnrollmentResponse.EnrollmentResponseStatus convertEnrollmentResponseStatus(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertEnrollmentResponseStatus(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.EnrollmentResponse.EnrollmentResponseStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.EnrollmentResponse.EnrollmentResponseStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.EnrollmentResponse.EnrollmentResponseStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.EnrollmentResponse.EnrollmentResponseStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.EnrollmentResponse.EnrollmentResponseStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus convertEnrollmentResponseStatus(org.hl7.fhir.r5.model.EnrollmentResponse.EnrollmentResponseStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus convertEnrollmentResponseStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -132,19 +132,19 @@ public class EnrollmentResponse extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.NULL;
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -204,7 +204,7 @@ public class ExampleScenario extends VersionConvertor_40_50 {
if (src.hasResourceId())
tgt.setResourceIdElement(convertString(src.getResourceIdElement()));
if (src.hasResourceType())
tgt.setResourceType(convertFHIRResourceType(src.getResourceType()));
tgt.setResourceTypeElement(convertFHIRResourceType(src.getResourceTypeElement()));
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasDescription())
@ -224,7 +224,7 @@ public class ExampleScenario extends VersionConvertor_40_50 {
if (src.hasResourceId())
tgt.setResourceIdElement(convertString(src.getResourceIdElement()));
if (src.hasResourceType())
tgt.setResourceType(convertFHIRResourceType(src.getResourceType()));
tgt.setResourceTypeElement(convertFHIRResourceType(src.getResourceTypeElement()));
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasDescription())
@ -236,286 +236,23 @@ public class ExampleScenario extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType convertFHIRResourceType(org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType src) throws FHIRException {
public static org.hl7.fhir.r5.model.CodeType convertFHIRResourceType(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType> src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACCOUNT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ACCOUNT;
case ACTIVITYDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ACTIVITYDEFINITION;
case ADVERSEEVENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ADVERSEEVENT;
case ALLERGYINTOLERANCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ALLERGYINTOLERANCE;
case APPOINTMENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.APPOINTMENT;
case APPOINTMENTRESPONSE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.APPOINTMENTRESPONSE;
case AUDITEVENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.AUDITEVENT;
case BASIC: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.BASIC;
case BINARY: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.BINARY;
case BIOLOGICALLYDERIVEDPRODUCT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.BIOLOGICALLYDERIVEDPRODUCT;
case BODYSTRUCTURE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.BODYSTRUCTURE;
case BUNDLE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.BUNDLE;
case CAPABILITYSTATEMENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CAPABILITYSTATEMENT;
case CAREPLAN: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CAREPLAN;
case CARETEAM: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CARETEAM;
case CATALOGENTRY: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CATALOGENTRY;
case CHARGEITEM: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CHARGEITEM;
case CHARGEITEMDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CHARGEITEMDEFINITION;
case CLAIM: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CLAIM;
case CLAIMRESPONSE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CLAIMRESPONSE;
case CLINICALIMPRESSION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CLINICALIMPRESSION;
case CODESYSTEM: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CODESYSTEM;
case COMMUNICATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.COMMUNICATION;
case COMMUNICATIONREQUEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.COMMUNICATIONREQUEST;
case COMPARTMENTDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.COMPARTMENTDEFINITION;
case COMPOSITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.COMPOSITION;
case CONCEPTMAP: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CONCEPTMAP;
case CONDITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CONDITION;
case CONSENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CONSENT;
case CONTRACT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.CONTRACT;
case COVERAGE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.COVERAGE;
case COVERAGEELIGIBILITYREQUEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.COVERAGEELIGIBILITYREQUEST;
case COVERAGEELIGIBILITYRESPONSE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.COVERAGEELIGIBILITYRESPONSE;
case DETECTEDISSUE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DETECTEDISSUE;
case DEVICE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DEVICE;
case DEVICEDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DEVICEDEFINITION;
case DEVICEMETRIC: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DEVICEMETRIC;
case DEVICEREQUEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DEVICEREQUEST;
case DEVICEUSESTATEMENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DEVICEUSESTATEMENT;
case DIAGNOSTICREPORT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DIAGNOSTICREPORT;
case DOCUMENTMANIFEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DOCUMENTMANIFEST;
case DOCUMENTREFERENCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DOCUMENTREFERENCE;
case DOMAINRESOURCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DOMAINRESOURCE;
case ENCOUNTER: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ENCOUNTER;
case ENDPOINT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ENDPOINT;
case ENROLLMENTREQUEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ENROLLMENTREQUEST;
case ENROLLMENTRESPONSE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ENROLLMENTRESPONSE;
case EPISODEOFCARE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.EPISODEOFCARE;
case EVENTDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.EVENTDEFINITION;
case EVIDENCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.EVIDENCE;
case EVIDENCEVARIABLE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.EVIDENCEVARIABLE;
case EXAMPLESCENARIO: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.EXAMPLESCENARIO;
case EXPLANATIONOFBENEFIT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.EXPLANATIONOFBENEFIT;
case FAMILYMEMBERHISTORY: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.FAMILYMEMBERHISTORY;
case FLAG: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.FLAG;
case GOAL: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.GOAL;
case GRAPHDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.GRAPHDEFINITION;
case GROUP: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.GROUP;
case GUIDANCERESPONSE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.GUIDANCERESPONSE;
case HEALTHCARESERVICE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.HEALTHCARESERVICE;
case IMAGINGSTUDY: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.IMAGINGSTUDY;
case IMMUNIZATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.IMMUNIZATION;
case IMMUNIZATIONEVALUATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.IMMUNIZATIONEVALUATION;
case IMMUNIZATIONRECOMMENDATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.IMMUNIZATIONRECOMMENDATION;
case IMPLEMENTATIONGUIDE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.IMPLEMENTATIONGUIDE;
case INSURANCEPLAN: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.INSURANCEPLAN;
case INVOICE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.INVOICE;
case LIBRARY: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.LIBRARY;
case LINKAGE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.LINKAGE;
case LIST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.LIST;
case LOCATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.LOCATION;
case MEASURE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEASURE;
case MEASUREREPORT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEASUREREPORT;
case MEDIA: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.DOCUMENTREFERENCE;
case MEDICATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEDICATION;
case MEDICATIONADMINISTRATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEDICATIONADMINISTRATION;
case MEDICATIONDISPENSE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEDICATIONDISPENSE;
case MEDICATIONKNOWLEDGE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEDICATIONKNOWLEDGE;
case MEDICATIONREQUEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEDICATIONREQUEST;
case MEDICATIONSTATEMENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MEDICATIONUSAGE;
case MESSAGEDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MESSAGEDEFINITION;
case MESSAGEHEADER: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MESSAGEHEADER;
case MOLECULARSEQUENCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.MOLECULARSEQUENCE;
case NAMINGSYSTEM: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.NAMINGSYSTEM;
case NUTRITIONORDER: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.NUTRITIONORDER;
case OBSERVATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.OBSERVATION;
case OBSERVATIONDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.OBSERVATIONDEFINITION;
case OPERATIONDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.OPERATIONDEFINITION;
case OPERATIONOUTCOME: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.OPERATIONOUTCOME;
case ORGANIZATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ORGANIZATION;
case ORGANIZATIONAFFILIATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.ORGANIZATIONAFFILIATION;
case PARAMETERS: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PARAMETERS;
case PATIENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PATIENT;
case PAYMENTNOTICE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PAYMENTNOTICE;
case PAYMENTRECONCILIATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PAYMENTRECONCILIATION;
case PERSON: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PERSON;
case PLANDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PLANDEFINITION;
case PRACTITIONER: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PRACTITIONER;
case PRACTITIONERROLE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PRACTITIONERROLE;
case PROCEDURE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PROCEDURE;
case PROVENANCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.PROVENANCE;
case QUESTIONNAIRE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.QUESTIONNAIRE;
case QUESTIONNAIRERESPONSE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.QUESTIONNAIRERESPONSE;
case RELATEDPERSON: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.RELATEDPERSON;
case REQUESTGROUP: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.REQUESTGROUP;
case RESEARCHSTUDY: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.RESEARCHSTUDY;
case RESEARCHSUBJECT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.RESEARCHSUBJECT;
case RESOURCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.RESOURCE;
case RISKASSESSMENT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.RISKASSESSMENT;
case SCHEDULE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SCHEDULE;
case SEARCHPARAMETER: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SEARCHPARAMETER;
case SERVICEREQUEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SERVICEREQUEST;
case SLOT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SLOT;
case SPECIMEN: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SPECIMEN;
case SPECIMENDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SPECIMENDEFINITION;
case STRUCTUREDEFINITION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.STRUCTUREDEFINITION;
case STRUCTUREMAP: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.STRUCTUREMAP;
case SUBSCRIPTION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUBSCRIPTION;
case SUBSTANCE: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUBSTANCE;
case SUBSTANCENUCLEICACID: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUBSTANCENUCLEICACID;
case SUBSTANCEPOLYMER: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUBSTANCEPOLYMER;
case SUBSTANCEPROTEIN: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUBSTANCEPROTEIN;
case SUBSTANCEREFERENCEINFORMATION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUBSTANCEREFERENCEINFORMATION;
case SUBSTANCESOURCEMATERIAL: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUBSTANCESOURCEMATERIAL;
case SUPPLYDELIVERY: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUPPLYDELIVERY;
case SUPPLYREQUEST: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.SUPPLYREQUEST;
case TASK: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.TASK;
case TERMINOLOGYCAPABILITIES: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.TERMINOLOGYCAPABILITIES;
case TESTREPORT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.TESTREPORT;
case TESTSCRIPT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.TESTSCRIPT;
case VALUESET: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.VALUESET;
case VERIFICATIONRESULT: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.VERIFICATIONRESULT;
case VISIONPRESCRIPTION: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.VISIONPRESCRIPTION;
default: return org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType.NULL;
org.hl7.fhir.r5.model.CodeType tgt = new org.hl7.fhir.r5.model.CodeType(src.asStringValue());
copyElement(src, tgt);
return tgt;
}
}
public static org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType convertFHIRResourceType(org.hl7.fhir.r5.model.ExampleScenario.FHIRResourceType src) throws FHIRException {
public static org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType> convertFHIRResourceType(org.hl7.fhir.r5.model.CodeType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACCOUNT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ACCOUNT;
case ACTIVITYDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ACTIVITYDEFINITION;
case ADVERSEEVENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ADVERSEEVENT;
case ALLERGYINTOLERANCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ALLERGYINTOLERANCE;
case APPOINTMENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.APPOINTMENT;
case APPOINTMENTRESPONSE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.APPOINTMENTRESPONSE;
case AUDITEVENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.AUDITEVENT;
case BASIC: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.BASIC;
case BINARY: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.BINARY;
case BIOLOGICALLYDERIVEDPRODUCT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.BIOLOGICALLYDERIVEDPRODUCT;
case BODYSTRUCTURE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.BODYSTRUCTURE;
case BUNDLE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.BUNDLE;
case CAPABILITYSTATEMENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CAPABILITYSTATEMENT;
case CAREPLAN: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CAREPLAN;
case CARETEAM: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CARETEAM;
case CATALOGENTRY: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CATALOGENTRY;
case CHARGEITEM: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CHARGEITEM;
case CHARGEITEMDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CHARGEITEMDEFINITION;
case CLAIM: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CLAIM;
case CLAIMRESPONSE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CLAIMRESPONSE;
case CLINICALIMPRESSION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CLINICALIMPRESSION;
case CODESYSTEM: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CODESYSTEM;
case COMMUNICATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.COMMUNICATION;
case COMMUNICATIONREQUEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.COMMUNICATIONREQUEST;
case COMPARTMENTDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.COMPARTMENTDEFINITION;
case COMPOSITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.COMPOSITION;
case CONCEPTMAP: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CONCEPTMAP;
case CONDITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CONDITION;
case CONSENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CONSENT;
case CONTRACT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.CONTRACT;
case COVERAGE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.COVERAGE;
case COVERAGEELIGIBILITYREQUEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.COVERAGEELIGIBILITYREQUEST;
case COVERAGEELIGIBILITYRESPONSE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.COVERAGEELIGIBILITYRESPONSE;
case DETECTEDISSUE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DETECTEDISSUE;
case DEVICE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DEVICE;
case DEVICEDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DEVICEDEFINITION;
case DEVICEMETRIC: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DEVICEMETRIC;
case DEVICEREQUEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DEVICEREQUEST;
case DEVICEUSESTATEMENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DEVICEUSESTATEMENT;
case DIAGNOSTICREPORT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DIAGNOSTICREPORT;
case DOCUMENTMANIFEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DOCUMENTMANIFEST;
case DOCUMENTREFERENCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DOCUMENTREFERENCE;
case DOMAINRESOURCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.DOMAINRESOURCE;
case ENCOUNTER: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ENCOUNTER;
case ENDPOINT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ENDPOINT;
case ENROLLMENTREQUEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ENROLLMENTREQUEST;
case ENROLLMENTRESPONSE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ENROLLMENTRESPONSE;
case EPISODEOFCARE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.EPISODEOFCARE;
case EVENTDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.EVENTDEFINITION;
case EVIDENCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.EVIDENCE;
case EVIDENCEVARIABLE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.EVIDENCEVARIABLE;
case EXAMPLESCENARIO: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.EXAMPLESCENARIO;
case EXPLANATIONOFBENEFIT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.EXPLANATIONOFBENEFIT;
case FAMILYMEMBERHISTORY: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.FAMILYMEMBERHISTORY;
case FLAG: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.FLAG;
case GOAL: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.GOAL;
case GRAPHDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.GRAPHDEFINITION;
case GROUP: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.GROUP;
case GUIDANCERESPONSE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.GUIDANCERESPONSE;
case HEALTHCARESERVICE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.HEALTHCARESERVICE;
case IMAGINGSTUDY: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.IMAGINGSTUDY;
case IMMUNIZATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.IMMUNIZATION;
case IMMUNIZATIONEVALUATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.IMMUNIZATIONEVALUATION;
case IMMUNIZATIONRECOMMENDATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.IMMUNIZATIONRECOMMENDATION;
case IMPLEMENTATIONGUIDE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.IMPLEMENTATIONGUIDE;
case INSURANCEPLAN: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.INSURANCEPLAN;
case INVOICE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.INVOICE;
case LIBRARY: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.LIBRARY;
case LINKAGE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.LINKAGE;
case LIST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.LIST;
case LOCATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.LOCATION;
case MEASURE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEASURE;
case MEASUREREPORT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEASUREREPORT;
case MEDICATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEDICATION;
case MEDICATIONADMINISTRATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEDICATIONADMINISTRATION;
case MEDICATIONDISPENSE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEDICATIONDISPENSE;
case MEDICATIONKNOWLEDGE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEDICATIONKNOWLEDGE;
case MEDICATIONREQUEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEDICATIONREQUEST;
case MEDICATIONUSAGE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MEDICATIONSTATEMENT;
case MESSAGEDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MESSAGEDEFINITION;
case MESSAGEHEADER: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MESSAGEHEADER;
case MOLECULARSEQUENCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.MOLECULARSEQUENCE;
case NAMINGSYSTEM: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.NAMINGSYSTEM;
case NUTRITIONORDER: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.NUTRITIONORDER;
case OBSERVATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.OBSERVATION;
case OBSERVATIONDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.OBSERVATIONDEFINITION;
case OPERATIONDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.OPERATIONDEFINITION;
case OPERATIONOUTCOME: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.OPERATIONOUTCOME;
case ORGANIZATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ORGANIZATION;
case ORGANIZATIONAFFILIATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.ORGANIZATIONAFFILIATION;
case PARAMETERS: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PARAMETERS;
case PATIENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PATIENT;
case PAYMENTNOTICE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PAYMENTNOTICE;
case PAYMENTRECONCILIATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PAYMENTRECONCILIATION;
case PERSON: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PERSON;
case PLANDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PLANDEFINITION;
case PRACTITIONER: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PRACTITIONER;
case PRACTITIONERROLE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PRACTITIONERROLE;
case PROCEDURE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PROCEDURE;
case PROVENANCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.PROVENANCE;
case QUESTIONNAIRE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.QUESTIONNAIRE;
case QUESTIONNAIRERESPONSE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.QUESTIONNAIRERESPONSE;
case RELATEDPERSON: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.RELATEDPERSON;
case REQUESTGROUP: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.REQUESTGROUP;
case RESEARCHSTUDY: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.RESEARCHSTUDY;
case RESEARCHSUBJECT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.RESEARCHSUBJECT;
case RESOURCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.RESOURCE;
case RISKASSESSMENT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.RISKASSESSMENT;
case SCHEDULE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SCHEDULE;
case SEARCHPARAMETER: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SEARCHPARAMETER;
case SERVICEREQUEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SERVICEREQUEST;
case SLOT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SLOT;
case SPECIMEN: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SPECIMEN;
case SPECIMENDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SPECIMENDEFINITION;
case STRUCTUREDEFINITION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.STRUCTUREDEFINITION;
case STRUCTUREMAP: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.STRUCTUREMAP;
case SUBSCRIPTION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUBSCRIPTION;
case SUBSTANCE: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUBSTANCE;
case SUBSTANCENUCLEICACID: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUBSTANCENUCLEICACID;
case SUBSTANCEPOLYMER: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUBSTANCEPOLYMER;
case SUBSTANCEPROTEIN: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUBSTANCEPROTEIN;
case SUBSTANCEREFERENCEINFORMATION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUBSTANCEREFERENCEINFORMATION;
case SUBSTANCESOURCEMATERIAL: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUBSTANCESOURCEMATERIAL;
case SUPPLYDELIVERY: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUPPLYDELIVERY;
case SUPPLYREQUEST: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.SUPPLYREQUEST;
case TASK: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.TASK;
case TERMINOLOGYCAPABILITIES: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.TERMINOLOGYCAPABILITIES;
case TESTREPORT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.TESTREPORT;
case TESTSCRIPT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.TESTSCRIPT;
case VALUESET: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.VALUESET;
case VERIFICATIONRESULT: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.VERIFICATIONRESULT;
case VISIONPRESCRIPTION: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.VISIONPRESCRIPTION;
default: return org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType.NULL;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType> tgt = new org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType>(new org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceTypeEnumFactory(), src.getCode());
copyElement(src, tgt);
return tgt;
}
}
public static org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent convertExampleScenarioInstanceVersionComponent(org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceVersionComponent src) throws FHIRException {
if (src == null)

View File

@ -272,18 +272,18 @@ public class ExplanationOfBenefit extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ExplanationOfBenefit.Use convertUse(org.hl7.fhir.r4.model.ExplanationOfBenefit.Use src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.Use convertUse(org.hl7.fhir.r4.model.ExplanationOfBenefit.Use src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case CLAIM: return org.hl7.fhir.r5.model.ExplanationOfBenefit.Use.CLAIM;
case PREAUTHORIZATION: return org.hl7.fhir.r5.model.ExplanationOfBenefit.Use.PREAUTHORIZATION;
case PREDETERMINATION: return org.hl7.fhir.r5.model.ExplanationOfBenefit.Use.PREDETERMINATION;
default: return org.hl7.fhir.r5.model.ExplanationOfBenefit.Use.NULL;
case CLAIM: return org.hl7.fhir.r5.model.Enumerations.Use.CLAIM;
case PREAUTHORIZATION: return org.hl7.fhir.r5.model.Enumerations.Use.PREAUTHORIZATION;
case PREDETERMINATION: return org.hl7.fhir.r5.model.Enumerations.Use.PREDETERMINATION;
default: return org.hl7.fhir.r5.model.Enumerations.Use.NULL;
}
}
public static org.hl7.fhir.r4.model.ExplanationOfBenefit.Use convertUse(org.hl7.fhir.r5.model.ExplanationOfBenefit.Use src) throws FHIRException {
public static org.hl7.fhir.r4.model.ExplanationOfBenefit.Use convertUse(org.hl7.fhir.r5.model.Enumerations.Use src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -294,19 +294,19 @@ public class ExplanationOfBenefit extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ExplanationOfBenefit.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r4.model.ExplanationOfBenefit.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes convertRemittanceOutcome(org.hl7.fhir.r4.model.ExplanationOfBenefit.RemittanceOutcome src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case QUEUED: return org.hl7.fhir.r5.model.ExplanationOfBenefit.RemittanceOutcome.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.ExplanationOfBenefit.RemittanceOutcome.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.ExplanationOfBenefit.RemittanceOutcome.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.ExplanationOfBenefit.RemittanceOutcome.PARTIAL;
default: return org.hl7.fhir.r5.model.ExplanationOfBenefit.RemittanceOutcome.NULL;
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.ExplanationOfBenefit.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.ExplanationOfBenefit.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r4.model.ExplanationOfBenefit.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -22,7 +22,9 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -90,7 +92,7 @@ public class GraphDefinition extends VersionConvertor_40_50 {
if (src.hasPurpose())
tgt.setPurposeElement(convertMarkdown(src.getPurposeElement()));
if (src.hasStart())
tgt.setStartElement(convertCode(src.getStartElement()));
tgt.setStartElement(convertResourceEnum(src.getStartElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
for (org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent t : src.getLink())
@ -128,7 +130,7 @@ public class GraphDefinition extends VersionConvertor_40_50 {
if (src.hasPurpose())
tgt.setPurposeElement(convertMarkdown(src.getPurposeElement()));
if (src.hasStart())
tgt.setStartElement(convertCode(src.getStartElement()));
tgt.setStartElement(convertResourceEnum(src.getStartElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
for (org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkComponent t : src.getLink())
@ -182,7 +184,7 @@ public class GraphDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setTypeElement(convertResourceEnum(src.getTypeElement()));
if (src.hasParams())
tgt.setParamsElement(convertString(src.getParamsElement()));
if (src.hasProfile())
@ -200,7 +202,7 @@ public class GraphDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setTypeElement(convertResourceEnum(src.getTypeElement()));
if (src.hasParams())
tgt.setParamsElement(convertString(src.getParamsElement()));
if (src.hasProfile())
@ -268,20 +270,20 @@ public class GraphDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode convertCompartmentCode(org.hl7.fhir.r4.model.GraphDefinition.CompartmentCode src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.CompartmentType convertCompartmentCode(org.hl7.fhir.r4.model.GraphDefinition.CompartmentCode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PATIENT: return org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode.PATIENT;
case ENCOUNTER: return org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode.ENCOUNTER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode.RELATEDPERSON;
case PRACTITIONER: return org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode.PRACTITIONER;
case DEVICE: return org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode.DEVICE;
default: return org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode.NULL;
case PATIENT: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.PATIENT;
case ENCOUNTER: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.ENCOUNTER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.RELATEDPERSON;
case PRACTITIONER: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.PRACTITIONER;
case DEVICE: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.DEVICE;
default: return org.hl7.fhir.r5.model.Enumerations.CompartmentType.NULL;
}
}
public static org.hl7.fhir.r4.model.GraphDefinition.CompartmentCode convertCompartmentCode(org.hl7.fhir.r5.model.GraphDefinition.CompartmentCode src) throws FHIRException {
public static org.hl7.fhir.r4.model.GraphDefinition.CompartmentCode convertCompartmentCode(org.hl7.fhir.r5.model.Enumerations.CompartmentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -217,7 +217,7 @@ public class HealthcareService extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
copyElement(src, tgt);
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek())
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.DaysOfWeek> t : src.getDaysOfWeek())
copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
if (src.hasAllDay())
tgt.setAllDayElement(convertBoolean(src.getAllDayElement()));
@ -228,22 +228,22 @@ public class HealthcareService extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r4.model.HealthcareService.DaysOfWeek src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r4.model.HealthcareService.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case MON: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek.NULL;
case MON: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL;
}
}
public static org.hl7.fhir.r4.model.HealthcareService.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.HealthcareService.DaysOfWeek src) throws FHIRException {
public static org.hl7.fhir.r4.model.HealthcareService.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.ImagingStudy.ImagingStudyProcedureComponent;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -90,9 +90,9 @@ public class ImagingStudy extends VersionConvertor_40_50 {
if (src.hasNumberOfInstances())
tgt.setNumberOfInstancesElement(convertUnsignedInt(src.getNumberOfInstancesElement()));
if (src.hasProcedureReference())
tgt.setProcedureReference(convertReference(src.getProcedureReference()));
tgt.addProcedure().setValue(convertReference(src.getProcedureReference()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProcedureCode())
tgt.addProcedureCode(convertCodeableConcept(t));
tgt.addProcedure().setValue(convertCodeableConcept(t));
if (src.hasLocation())
tgt.setLocation(convertReference(src.getLocation()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
@ -137,10 +137,13 @@ public class ImagingStudy extends VersionConvertor_40_50 {
tgt.setNumberOfSeriesElement(convertUnsignedInt(src.getNumberOfSeriesElement()));
if (src.hasNumberOfInstances())
tgt.setNumberOfInstancesElement(convertUnsignedInt(src.getNumberOfInstancesElement()));
if (src.hasProcedureReference())
tgt.setProcedureReference(convertReference(src.getProcedureReference()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getProcedureCode())
tgt.addProcedureCode(convertCodeableConcept(t));
for (ImagingStudyProcedureComponent t : src.getProcedure()) {
if (t.hasValueCodeableConcept())
tgt.addProcedureCode(convertCodeableConcept(t.getValueCodeableConcept()));
if (t.hasValueReference()) {
tgt.setProcedureReference(convertReference(t.getValueReference()));
}
}
if (src.hasLocation())
tgt.setLocation(convertReference(src.getLocation()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())

View File

@ -188,18 +188,18 @@ public class Immunization extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Immunization.ImmunizationStatus convertImmunizationStatus(org.hl7.fhir.r4.model.Immunization.ImmunizationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Immunization.ImmunizationStatusCodes convertImmunizationStatus(org.hl7.fhir.r4.model.Immunization.ImmunizationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case COMPLETED: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatus.ENTEREDINERROR;
case NOTDONE: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatus.NOTDONE;
default: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatus.NULL;
case COMPLETED: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatusCodes.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatusCodes.ENTEREDINERROR;
case NOTDONE: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatusCodes.NOTDONE;
default: return org.hl7.fhir.r5.model.Immunization.ImmunizationStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Immunization.ImmunizationStatus convertImmunizationStatus(org.hl7.fhir.r5.model.Immunization.ImmunizationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Immunization.ImmunizationStatus convertImmunizationStatus(org.hl7.fhir.r5.model.Immunization.ImmunizationStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -128,17 +128,17 @@ public class ImmunizationEvaluation extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatus convertImmunizationEvaluationStatus(org.hl7.fhir.r4.model.ImmunizationEvaluation.ImmunizationEvaluationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatusCodes convertImmunizationEvaluationStatus(org.hl7.fhir.r4.model.ImmunizationEvaluation.ImmunizationEvaluationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case COMPLETED: return org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatus.NULL;
case COMPLETED: return org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatusCodes.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.ImmunizationEvaluation.ImmunizationEvaluationStatus convertImmunizationEvaluationStatus(org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.ImmunizationEvaluation.ImmunizationEvaluationStatus convertImmunizationEvaluationStatus(org.hl7.fhir.r5.model.ImmunizationEvaluation.ImmunizationEvaluationStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -898,7 +898,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setTypeElement(convertResourceEnum(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
return tgt;
@ -910,7 +910,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setTypeElement(convertResourceEnum(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
return tgt;

View File

@ -250,21 +250,21 @@ public class Invoice extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType convertInvoicePriceComponentType(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType convertInvoicePriceComponentType(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case BASE: return org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType.BASE;
case SURCHARGE: return org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType.SURCHARGE;
case DEDUCTION: return org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType.DEDUCTION;
case DISCOUNT: return org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType.DISCOUNT;
case TAX: return org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType.TAX;
case INFORMATIONAL: return org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType.INFORMATIONAL;
default: return org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType.NULL;
case BASE: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE;
case SURCHARGE: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE;
case DEDUCTION: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION;
case DISCOUNT: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT;
case TAX: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX;
case INFORMATIONAL: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL;
default: return org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL;
}
}
public static org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType convertInvoicePriceComponentType(org.hl7.fhir.r5.model.Invoice.InvoicePriceComponentType src) throws FHIRException {
public static org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType convertInvoicePriceComponentType(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -121,7 +121,7 @@ public class ListResource extends VersionConvertor_40_50 {
tgt.setOrderedBy(convertCodeableConcept(src.getOrderedBy()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
tgt.addNote(convertAnnotation(t));
for (org.hl7.fhir.r5.model.ListResource.ListEntryComponent t : src.getEntry())
for (org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent t : src.getEntry())
tgt.addEntry(convertListEntryComponent(t));
if (src.hasEmptyReason())
tgt.setEmptyReason(convertCodeableConcept(src.getEmptyReason()));
@ -150,18 +150,18 @@ public class ListResource extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ListResource.ListMode convertListMode(org.hl7.fhir.r4.model.ListResource.ListMode src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ListMode convertListMode(org.hl7.fhir.r4.model.ListResource.ListMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case WORKING: return org.hl7.fhir.r5.model.ListResource.ListMode.WORKING;
case SNAPSHOT: return org.hl7.fhir.r5.model.ListResource.ListMode.SNAPSHOT;
case CHANGES: return org.hl7.fhir.r5.model.ListResource.ListMode.CHANGES;
default: return org.hl7.fhir.r5.model.ListResource.ListMode.NULL;
case WORKING: return org.hl7.fhir.r5.model.Enumerations.ListMode.WORKING;
case SNAPSHOT: return org.hl7.fhir.r5.model.Enumerations.ListMode.SNAPSHOT;
case CHANGES: return org.hl7.fhir.r5.model.Enumerations.ListMode.CHANGES;
default: return org.hl7.fhir.r5.model.Enumerations.ListMode.NULL;
}
}
public static org.hl7.fhir.r4.model.ListResource.ListMode convertListMode(org.hl7.fhir.r5.model.ListResource.ListMode src) throws FHIRException {
public static org.hl7.fhir.r4.model.ListResource.ListMode convertListMode(org.hl7.fhir.r5.model.Enumerations.ListMode src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -172,10 +172,10 @@ public class ListResource extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ListResource.ListEntryComponent convertListEntryComponent(org.hl7.fhir.r4.model.ListResource.ListEntryComponent src) throws FHIRException {
public static org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent convertListEntryComponent(org.hl7.fhir.r4.model.ListResource.ListEntryComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r5.model.ListResource.ListEntryComponent();
org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent tgt = new org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent();
copyElement(src, tgt);
if (src.hasFlag())
tgt.setFlag(convertCodeableConcept(src.getFlag()));
@ -188,7 +188,7 @@ public class ListResource extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r4.model.ListResource.ListEntryComponent convertListEntryComponent(org.hl7.fhir.r5.model.ListResource.ListEntryComponent src) throws FHIRException {
public static org.hl7.fhir.r4.model.ListResource.ListEntryComponent convertListEntryComponent(org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r4.model.ListResource.ListEntryComponent();

View File

@ -235,7 +235,7 @@ public class Location extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.Location.LocationHoursOfOperationComponent tgt = new org.hl7.fhir.r4.model.Location.LocationHoursOfOperationComponent();
copyElement(src, tgt);
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Location.DaysOfWeek> t : src.getDaysOfWeek())
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.DaysOfWeek> t : src.getDaysOfWeek())
copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
if (src.hasAllDay())
tgt.setAllDayElement(convertBoolean(src.getAllDayElement()));
@ -246,22 +246,22 @@ public class Location extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Location.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r4.model.Location.DaysOfWeek src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r4.model.Location.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case MON: return org.hl7.fhir.r5.model.Location.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.Location.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.Location.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.Location.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.Location.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.Location.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.Location.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.Location.DaysOfWeek.NULL;
case MON: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL;
}
}
public static org.hl7.fhir.r4.model.Location.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.Location.DaysOfWeek src) throws FHIRException {
public static org.hl7.fhir.r4.model.Location.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -108,18 +108,18 @@ public class Medication extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Medication.MedicationStatus convertMedicationStatus(org.hl7.fhir.r4.model.Medication.MedicationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Medication.MedicationStatusCodes convertMedicationStatus(org.hl7.fhir.r4.model.Medication.MedicationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.Medication.MedicationStatus.ACTIVE;
case INACTIVE: return org.hl7.fhir.r5.model.Medication.MedicationStatus.INACTIVE;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Medication.MedicationStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Medication.MedicationStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Medication.MedicationStatusCodes.ACTIVE;
case INACTIVE: return org.hl7.fhir.r5.model.Medication.MedicationStatusCodes.INACTIVE;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Medication.MedicationStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Medication.MedicationStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Medication.MedicationStatus convertMedicationStatus(org.hl7.fhir.r5.model.Medication.MedicationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Medication.MedicationStatus convertMedicationStatus(org.hl7.fhir.r5.model.Medication.MedicationStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -24,8 +24,8 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationStatus;
import org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus;
import org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationStatusCodes;
import org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -155,7 +155,7 @@ public class MedicationAdministration extends VersionConvertor_40_50 {
return tgt;
}
private static CodeType convertMedicationAdministrationStatus(Enumeration<MedicationAdministrationStatus> src) {
private static CodeType convertMedicationAdministrationStatus(Enumeration<MedicationAdministrationStatusCodes> src) {
if (src == null)
return null;
CodeType tgt = new CodeType();
@ -164,12 +164,12 @@ public class MedicationAdministration extends VersionConvertor_40_50 {
return tgt;
}
private static Enumeration<MedicationAdministrationStatus> convertMedicationAdministrationStatus(CodeType src) {
private static Enumeration<MedicationAdministrationStatusCodes> convertMedicationAdministrationStatus(CodeType src) {
if (src == null)
return null;
Enumeration<MedicationAdministrationStatus> tgt = new Enumeration<MedicationAdministrationStatus>();
Enumeration<MedicationAdministrationStatusCodes> tgt = new Enumeration<MedicationAdministrationStatusCodes>();
copyElement(src, tgt);
tgt.setValue(MedicationAdministrationStatus.fromCode(src.getCode()));
tgt.setValue(MedicationAdministrationStatusCodes.fromCode(src.getCode()));
return tgt;
}

View File

@ -24,7 +24,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus;
import org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -174,24 +174,24 @@ public class MedicationDispense extends VersionConvertor_40_50 {
return tgt;
}
private static CodeType convertStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus> src) {
private static CodeType convertStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes> src) {
if (src == null)
return null;
CodeType tgt = new CodeType();
copyElement(src, tgt);
if (src.getValue() == MedicationDispenseStatus.DECLINED)
if (src.getValue() == MedicationDispenseStatusCodes.DECLINED)
tgt.setValue("stopped");
else
tgt.setValue(src.getValueAsString());
return tgt;
}
private static org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus> convertMedicationStatus(org.hl7.fhir.r4.model.CodeType src) {
private static org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes> convertMedicationStatus(org.hl7.fhir.r4.model.CodeType src) {
if (src == null)
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus>();
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes>();
copyElement(src, tgt);
tgt.setValue(MedicationDispenseStatus.fromCode(src.getCode()));
tgt.setValue(MedicationDispenseStatusCodes.fromCode(src.getCode()));
return tgt;
}
public static org.hl7.fhir.r5.model.MedicationDispense.MedicationDispensePerformerComponent convertMedicationDispensePerformerComponent(org.hl7.fhir.r4.model.MedicationDispense.MedicationDispensePerformerComponent src) throws FHIRException {

View File

@ -24,8 +24,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatus;
import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatus;
import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatusCodes;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -167,7 +166,7 @@ public class MedicationKnowledge extends VersionConvertor_40_50 {
return tgt;
}
private static CodeType convertMedicationKnowledgeStatus(Enumeration<MedicationKnowledgeStatus> src) {
private static CodeType convertMedicationKnowledgeStatus(Enumeration<MedicationKnowledgeStatusCodes> src) {
if (src == null)
return null;
CodeType tgt = new CodeType();
@ -176,12 +175,12 @@ public class MedicationKnowledge extends VersionConvertor_40_50 {
return tgt;
}
private static Enumeration<MedicationKnowledgeStatus> convertMedicationKnowledgeStatus(CodeType src) {
private static Enumeration<MedicationKnowledgeStatusCodes> convertMedicationKnowledgeStatus(CodeType src) {
if (src == null)
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatus>();
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatusCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatusCodes>();
copyElement(src, tgt);
tgt.setValue(MedicationKnowledgeStatus.fromCode(src.getCode()));
tgt.setValue(MedicationKnowledgeStatusCodes.fromCode(src.getCode()));
return tgt;
}

View File

@ -102,9 +102,9 @@ public class MedicationRequest extends VersionConvertor_40_50 {
if (src.hasRecorder())
tgt.setRecorder(convertReference(src.getRecorder()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
tgt.addReasonCode(convertCodeableConcept(t));
tgt.addReason().setConcept(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
tgt.addReasonReference(convertReference(t));
tgt.addReason().setReference(convertReference(t));
for (org.hl7.fhir.r4.model.CanonicalType t : src.getInstantiatesCanonical())
tgt.getInstantiatesCanonical().add(convertCanonical(t));
for (org.hl7.fhir.r4.model.UriType t : src.getInstantiatesUri())
@ -175,10 +175,12 @@ public class MedicationRequest extends VersionConvertor_40_50 {
tgt.setPerformerType(convertCodeableConcept(src.getPerformerType()));
if (src.hasRecorder())
tgt.setRecorder(convertReference(src.getRecorder()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
tgt.addReasonCode(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
tgt.addReasonReference(convertReference(t));
for (org.hl7.fhir.r5.model.CodeableReference t : src.getReason()) {
if (t.hasConcept())
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
if (t.hasReference())
tgt.addReasonReference(convertReference(t.getReference()));
}
for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical())
tgt.getInstantiatesCanonical().add(convertCanonical(t));
for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri())
@ -208,23 +210,23 @@ public class MedicationRequest extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus convertMedicationRequestStatus(org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus convertMedicationRequestStatus(org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.ONHOLD;
case CANCELLED: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.CANCELLED;
case COMPLETED: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.ENTEREDINERROR;
case STOPPED: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.STOPPED;
case DRAFT: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.DRAFT;
case UNKNOWN: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.ONHOLD;
case CANCELLED: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.CANCELLED;
case COMPLETED: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.ENTEREDINERROR;
case STOPPED: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.STOPPED;
case DRAFT: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.DRAFT;
case UNKNOWN: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatus convertMedicationRequestStatus(org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatus convertMedicationRequestStatus(org.hl7.fhir.r5.model.MedicationRequest.MedicationrequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -272,19 +274,19 @@ public class MedicationRequest extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestPriority convertMedicationRequestPriority(org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertMedicationRequestPriority(org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestPriority.STAT;
default: return org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriority convertMedicationRequestPriority(org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriority convertMedicationRequestPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -144,23 +144,23 @@ public class MedicationStatement extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus convertMedicationStatementStatus(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes convertMedicationStatementStatus(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.ENTEREDINERROR;
case INTENDED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.INTENDED;
case STOPPED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.STOPPED;
case ONHOLD: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.ONHOLD;
case UNKNOWN: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.UNKNOWN;
case NOTTAKEN: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.NOTTAKEN;
default: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE;
case COMPLETED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR;
case INTENDED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED;
case STOPPED: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.STOPPED;
case ONHOLD: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ONHOLD;
case UNKNOWN: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN;
case NOTTAKEN: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NOTTAKEN;
default: return org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus convertMedicationStatementStatus(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus convertMedicationStatementStatus(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -224,7 +224,7 @@ public class MessageDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent();
copyElement(src, tgt);
if (src.hasCode())
tgt.setCodeElement(convertCode(src.getCodeElement()));
tgt.setCodeElement(convertResourceEnum(src.getCodeElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
if (src.hasMin())
@ -240,7 +240,7 @@ public class MessageDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent();
copyElement(src, tgt);
if (src.hasCode())
tgt.setCodeElement(convertCode(src.getCodeElement()));
tgt.setCodeElement(convertResourceEnum(src.getCodeElement()));
if (src.hasProfile())
tgt.setProfileElement(convertCanonical(src.getProfileElement()));
if (src.hasMin())

View File

@ -144,22 +144,22 @@ public class NutritionOrder extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus convertNutritionOrderStatus(org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestStatus convertNutritionOrderStatus(org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus.NULL;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderStatus convertNutritionOrderStatus(org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderStatus convertNutritionOrderStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -174,24 +174,24 @@ public class NutritionOrder extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent convertNutritiionOrderIntent(org.hl7.fhir.r4.model.NutritionOrder.NutritiionOrderIntent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestIntent convertNutritiionOrderIntent(org.hl7.fhir.r4.model.NutritionOrder.NutritiionOrderIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PROPOSAL: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.OPTION;
default: return org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent.NULL;
case PROPOSAL: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.NULL;
}
}
public static org.hl7.fhir.r4.model.NutritionOrder.NutritiionOrderIntent convertNutritiionOrderIntent(org.hl7.fhir.r5.model.NutritionOrder.NutritiionOrderIntent src) throws FHIRException {
public static org.hl7.fhir.r4.model.NutritionOrder.NutritiionOrderIntent convertNutritiionOrderIntent(org.hl7.fhir.r5.model.Enumerations.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -172,23 +172,23 @@ public class Observation extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Observation.ObservationStatus convertObservationStatus(org.hl7.fhir.r4.model.Observation.ObservationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ObservationStatus convertObservationStatus(org.hl7.fhir.r4.model.Observation.ObservationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case REGISTERED: return org.hl7.fhir.r5.model.Observation.ObservationStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.Observation.ObservationStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Observation.ObservationStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Observation.ObservationStatus.AMENDED;
case CORRECTED: return org.hl7.fhir.r5.model.Observation.ObservationStatus.CORRECTED;
case CANCELLED: return org.hl7.fhir.r5.model.Observation.ObservationStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Observation.ObservationStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Observation.ObservationStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Observation.ObservationStatus.NULL;
case REGISTERED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.AMENDED;
case CORRECTED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.CORRECTED;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.Observation.ObservationStatus convertObservationStatus(org.hl7.fhir.r5.model.Observation.ObservationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Observation.ObservationStatus convertObservationStatus(org.hl7.fhir.r5.model.Enumerations.ObservationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -22,6 +22,14 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -102,7 +110,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
if (src.hasBase())
tgt.setBaseElement(convertCanonical(src.getBaseElement()));
for (org.hl7.fhir.r4.model.CodeType t : src.getResource())
tgt.getResource().add(convertCode(t));
tgt.getResource().add(convertResourceEnum(t));
if (src.hasSystem())
tgt.setSystemElement(convertBoolean(src.getSystemElement()));
if (src.hasType())
@ -161,8 +169,8 @@ public class OperationDefinition extends VersionConvertor_40_50 {
tgt.setCommentElement(convertMarkdown(src.getCommentElement()));
if (src.hasBase())
tgt.setBaseElement(convertCanonical(src.getBaseElement()));
for (org.hl7.fhir.r5.model.CodeType t : src.getResource())
tgt.getResource().add(convertCode(t));
for (CodeType t : src.getResource())
tgt.getResource().add(convertResourceEnum(t));
if (src.hasSystem())
tgt.setSystemElement(convertBoolean(src.getSystemElement()));
if (src.hasType())
@ -216,7 +224,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
if (src.hasDocumentation())
tgt.setDocumentationElement(convertString(src.getDocumentationElement()));
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.getTypeElement().setValue(org.hl7.fhir.r5.model.Enumerations.FHIRAllTypes.fromCode(src.getType()));
for (org.hl7.fhir.r4.model.CanonicalType t : src.getTargetProfile())
tgt.getTargetProfile().add(convertCanonical(t));
if (src.hasSearchType())
@ -246,7 +254,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
if (src.hasDocumentation())
tgt.setDocumentationElement(convertString(src.getDocumentationElement()));
if (src.hasType())
tgt.setTypeElement(convertCode(src.getTypeElement()));
tgt.setTypeElement(new org.hl7.fhir.r4.model.CodeType(src.getType().toCode()));
for (org.hl7.fhir.r5.model.CanonicalType t : src.getTargetProfile())
tgt.getTargetProfile().add(convertCanonical(t));
if (src.hasSearchType())
@ -260,17 +268,17 @@ public class OperationDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r4.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r4.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case IN: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.OUT;
default: return org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse.NULL;
case IN: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.IN;
case OUT: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.OUT;
default: return org.hl7.fhir.r5.model.Enumerations.OperationParameterUse.NULL;
}
}
public static org.hl7.fhir.r4.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r5.model.OperationDefinition.OperationParameterUse src) throws FHIRException {
public static org.hl7.fhir.r4.model.OperationDefinition.OperationParameterUse convertOperationParameterUse(org.hl7.fhir.r5.model.Enumerations.OperationParameterUse src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -124,19 +124,19 @@ public class PaymentNotice extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.PaymentNotice.PaymentNoticeStatus convertPaymentNoticeStatus(org.hl7.fhir.r4.model.PaymentNotice.PaymentNoticeStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertPaymentNoticeStatus(org.hl7.fhir.r4.model.PaymentNotice.PaymentNoticeStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.PaymentNotice.PaymentNoticeStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.PaymentNotice.PaymentNoticeStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.PaymentNotice.PaymentNoticeStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.PaymentNotice.PaymentNoticeStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.PaymentNotice.PaymentNoticeStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.PaymentNotice.PaymentNoticeStatus convertPaymentNoticeStatus(org.hl7.fhir.r5.model.PaymentNotice.PaymentNoticeStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.PaymentNotice.PaymentNoticeStatus convertPaymentNoticeStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -136,19 +136,19 @@ public class PaymentReconciliation extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.PaymentReconciliation.PaymentReconciliationStatus convertPaymentReconciliationStatus(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertPaymentReconciliationStatus(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.PaymentReconciliation.PaymentReconciliationStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.PaymentReconciliation.PaymentReconciliationStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.PaymentReconciliation.PaymentReconciliationStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.PaymentReconciliation.PaymentReconciliationStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.PaymentReconciliation.PaymentReconciliationStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus convertPaymentReconciliationStatus(org.hl7.fhir.r5.model.PaymentReconciliation.PaymentReconciliationStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus convertPaymentReconciliationStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -160,19 +160,19 @@ public class PaymentReconciliation extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome.NULL;
case QUEUED: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED;
case COMPLETE: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE;
case ERROR: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR;
case PARTIAL: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL;
default: return org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.RemittanceOutcome src) throws FHIRException {
public static org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -396,19 +396,19 @@ public class PlanDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.PlanDefinition.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.PlanDefinition.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.PlanDefinition.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.PlanDefinition.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.PlanDefinition.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.PlanDefinition.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.PlanDefinition.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.PlanDefinition.RequestPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.PlanDefinition.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -420,18 +420,18 @@ public class PlanDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionGroupingBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionGroupingBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case VISUALGROUP: return org.hl7.fhir.r5.model.PlanDefinition.ActionGroupingBehavior.VISUALGROUP;
case LOGICALGROUP: return org.hl7.fhir.r5.model.PlanDefinition.ActionGroupingBehavior.LOGICALGROUP;
case SENTENCEGROUP: return org.hl7.fhir.r5.model.PlanDefinition.ActionGroupingBehavior.SENTENCEGROUP;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionGroupingBehavior.NULL;
case VISUALGROUP: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.VISUALGROUP;
case LOGICALGROUP: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.LOGICALGROUP;
case SENTENCEGROUP: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.SENTENCEGROUP;
default: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r5.model.PlanDefinition.ActionGroupingBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -442,21 +442,21 @@ public class PlanDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionSelectionBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionSelectionBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ANY: return org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior.ANY;
case ALL: return org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior.ALL;
case ALLORNONE: return org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior.ALLORNONE;
case EXACTLYONE: return org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior.EXACTLYONE;
case ATMOSTONE: return org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior.ATMOSTONE;
case ONEORMORE: return org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior.ONEORMORE;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior.NULL;
case ANY: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ANY;
case ALL: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALL;
case ALLORNONE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALLORNONE;
case EXACTLYONE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.EXACTLYONE;
case ATMOSTONE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ATMOSTONE;
case ONEORMORE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ONEORMORE;
default: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r5.model.PlanDefinition.ActionSelectionBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -470,18 +470,18 @@ public class PlanDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionRequiredBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionRequiredBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case MUST: return org.hl7.fhir.r5.model.PlanDefinition.ActionRequiredBehavior.MUST;
case COULD: return org.hl7.fhir.r5.model.PlanDefinition.ActionRequiredBehavior.COULD;
case MUSTUNLESSDOCUMENTED: return org.hl7.fhir.r5.model.PlanDefinition.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionRequiredBehavior.NULL;
case MUST: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUST;
case COULD: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.COULD;
case MUSTUNLESSDOCUMENTED: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED;
default: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r5.model.PlanDefinition.ActionRequiredBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -492,17 +492,17 @@ public class PlanDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionPrecheckBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionPrecheckBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case YES: return org.hl7.fhir.r5.model.PlanDefinition.ActionPrecheckBehavior.YES;
case NO: return org.hl7.fhir.r5.model.PlanDefinition.ActionPrecheckBehavior.NO;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionPrecheckBehavior.NULL;
case YES: return org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.YES;
case NO: return org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NO;
default: return org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r5.model.PlanDefinition.ActionPrecheckBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -512,17 +512,17 @@ public class PlanDefinition extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionCardinalityBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r4.model.PlanDefinition.ActionCardinalityBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case SINGLE: return org.hl7.fhir.r5.model.PlanDefinition.ActionCardinalityBehavior.SINGLE;
case MULTIPLE: return org.hl7.fhir.r5.model.PlanDefinition.ActionCardinalityBehavior.MULTIPLE;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionCardinalityBehavior.NULL;
case SINGLE: return org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.SINGLE;
case MULTIPLE: return org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.MULTIPLE;
default: return org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r5.model.PlanDefinition.ActionCardinalityBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -556,18 +556,18 @@ public class PlanDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r4.model.PlanDefinition.ActionConditionKind src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r4.model.PlanDefinition.ActionConditionKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case APPLICABILITY: return org.hl7.fhir.r5.model.PlanDefinition.ActionConditionKind.APPLICABILITY;
case START: return org.hl7.fhir.r5.model.PlanDefinition.ActionConditionKind.START;
case STOP: return org.hl7.fhir.r5.model.PlanDefinition.ActionConditionKind.STOP;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionConditionKind.NULL;
case APPLICABILITY: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.APPLICABILITY;
case START: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.START;
case STOP: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.STOP;
default: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r5.model.PlanDefinition.ActionConditionKind src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -606,24 +606,24 @@ public class PlanDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r4.model.PlanDefinition.ActionRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r4.model.PlanDefinition.ActionRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case BEFORESTART: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.BEFORESTART;
case BEFORE: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.BEFORE;
case BEFOREEND: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.BEFOREEND;
case CONCURRENTWITHSTART: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.CONCURRENTWITHSTART;
case CONCURRENT: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.CONCURRENT;
case CONCURRENTWITHEND: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.CONCURRENTWITHEND;
case AFTERSTART: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.AFTERSTART;
case AFTER: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.AFTER;
case AFTEREND: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.AFTEREND;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType.NULL;
case BEFORESTART: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORESTART;
case BEFORE: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORE;
case BEFOREEND: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFOREEND;
case CONCURRENTWITHSTART: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHSTART;
case CONCURRENT: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENT;
case CONCURRENTWITHEND: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHEND;
case AFTERSTART: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTERSTART;
case AFTER: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTER;
case AFTEREND: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTEREND;
default: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r5.model.PlanDefinition.ActionRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -664,19 +664,19 @@ public class PlanDefinition extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.PlanDefinition.ActionParticipantType convertActionParticipantType(org.hl7.fhir.r4.model.PlanDefinition.ActionParticipantType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionParticipantType convertActionParticipantType(org.hl7.fhir.r4.model.PlanDefinition.ActionParticipantType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PATIENT: return org.hl7.fhir.r5.model.PlanDefinition.ActionParticipantType.PATIENT;
case PRACTITIONER: return org.hl7.fhir.r5.model.PlanDefinition.ActionParticipantType.PRACTITIONER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.PlanDefinition.ActionParticipantType.RELATEDPERSON;
case DEVICE: return org.hl7.fhir.r5.model.PlanDefinition.ActionParticipantType.DEVICE;
default: return org.hl7.fhir.r5.model.PlanDefinition.ActionParticipantType.NULL;
case PATIENT: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.PATIENT;
case PRACTITIONER: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.PRACTITIONER;
case RELATEDPERSON: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.RELATEDPERSON;
case DEVICE: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.DEVICE;
default: return org.hl7.fhir.r5.model.Enumerations.ActionParticipantType.NULL;
}
}
public static org.hl7.fhir.r4.model.PlanDefinition.ActionParticipantType convertActionParticipantType(org.hl7.fhir.r5.model.PlanDefinition.ActionParticipantType src) throws FHIRException {
public static org.hl7.fhir.r4.model.PlanDefinition.ActionParticipantType convertActionParticipantType(org.hl7.fhir.r5.model.Enumerations.ActionParticipantType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -153,7 +153,7 @@ public class PractitionerRole extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent();
copyElement(src, tgt);
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek> t : src.getDaysOfWeek())
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.DaysOfWeek> t : src.getDaysOfWeek())
copyElement(t, tgt.addDaysOfWeekElement().setValue(convertDaysOfWeek(t.getValue())));
if (src.hasAllDay())
tgt.setAllDayElement(convertBoolean(src.getAllDayElement()));
@ -164,22 +164,22 @@ public class PractitionerRole extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case MON: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek.NULL;
case MON: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON;
case TUE: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE;
case WED: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED;
case THU: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU;
case FRI: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI;
case SAT: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT;
case SUN: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN;
default: return org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL;
}
}
public static org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.PractitionerRole.DaysOfWeek src) throws FHIRException {
public static org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek convertDaysOfWeek(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -188,23 +188,23 @@ public class Procedure extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Procedure.ProcedureStatus convertProcedureStatus(org.hl7.fhir.r4.model.Procedure.ProcedureStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.EventStatus convertProcedureStatus(org.hl7.fhir.r4.model.Procedure.ProcedureStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PREPARATION: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.PREPARATION;
case INPROGRESS: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.INPROGRESS;
case NOTDONE: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.NOTDONE;
case ONHOLD: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.ONHOLD;
case STOPPED: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.STOPPED;
case COMPLETED: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Procedure.ProcedureStatus.NULL;
case PREPARATION: return org.hl7.fhir.r5.model.Enumerations.EventStatus.PREPARATION;
case INPROGRESS: return org.hl7.fhir.r5.model.Enumerations.EventStatus.INPROGRESS;
case NOTDONE: return org.hl7.fhir.r5.model.Enumerations.EventStatus.NOTDONE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.EventStatus.ONHOLD;
case STOPPED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.STOPPED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.EventStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.EventStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.EventStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.EventStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.Procedure.ProcedureStatus convertProcedureStatus(org.hl7.fhir.r5.model.Procedure.ProcedureStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.Procedure.ProcedureStatus convertProcedureStatus(org.hl7.fhir.r5.model.Enumerations.EventStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -22,7 +22,9 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -82,7 +84,7 @@ public class Questionnaire extends VersionConvertor_40_50 {
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
for (org.hl7.fhir.r4.model.CodeType t : src.getSubjectType())
tgt.getSubjectType().add(convertCode(t));
tgt.getSubjectType().add(convertResourceEnum(t));
if (src.hasDate())
tgt.setDateElement(convertDateTime(src.getDateElement()));
if (src.hasPublisher())
@ -133,8 +135,8 @@ public class Questionnaire extends VersionConvertor_40_50 {
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
for (org.hl7.fhir.r5.model.CodeType t : src.getSubjectType())
tgt.getSubjectType().add(convertCode(t));
for (CodeType t : src.getSubjectType())
tgt.getSubjectType().add(convertResourceEnum(t));
if (src.hasDate())
tgt.setDateElement(convertDateTime(src.getDateElement()));
if (src.hasPublisher())
@ -250,7 +252,7 @@ public class Questionnaire extends VersionConvertor_40_50 {
switch (src) {
case GROUP: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.GROUP;
case DISPLAY: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.DISPLAY;
case QUESTION: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.QUESTION;
case QUESTION: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.GROUP;
case BOOLEAN: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.BOOLEAN;
case DECIMAL: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.DECIMAL;
case INTEGER: return org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.INTEGER;
@ -275,7 +277,7 @@ public class Questionnaire extends VersionConvertor_40_50 {
switch (src) {
case GROUP: return org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.GROUP;
case DISPLAY: return org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.DISPLAY;
case QUESTION: return org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.QUESTION;
// case QUESTION: return org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.QUESTION;
case BOOLEAN: return org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.BOOLEAN;
case DECIMAL: return org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.DECIMAL;
case INTEGER: return org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.INTEGER;

View File

@ -148,22 +148,22 @@ public class RequestGroup extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.RequestGroup.RequestStatus convertRequestStatus(org.hl7.fhir.r4.model.RequestGroup.RequestStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestStatus convertRequestStatus(org.hl7.fhir.r4.model.RequestGroup.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.RequestGroup.RequestStatus.NULL;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.RequestStatus convertRequestStatus(org.hl7.fhir.r5.model.RequestGroup.RequestStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.RequestStatus convertRequestStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -178,24 +178,24 @@ public class RequestGroup extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.RequestGroup.RequestIntent convertRequestIntent(org.hl7.fhir.r4.model.RequestGroup.RequestIntent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestIntent convertRequestIntent(org.hl7.fhir.r4.model.RequestGroup.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PROPOSAL: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.RequestGroup.RequestIntent.NULL;
case PROPOSAL: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.RequestIntent convertRequestIntent(org.hl7.fhir.r5.model.RequestGroup.RequestIntent src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.RequestIntent convertRequestIntent(org.hl7.fhir.r5.model.Enumerations.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -212,19 +212,19 @@ public class RequestGroup extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.RequestGroup.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.RequestGroup.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.RequestGroup.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.RequestGroup.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.RequestGroup.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.RequestGroup.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.RequestGroup.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.RequestGroup.RequestPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.RequestGroup.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -328,18 +328,18 @@ public class RequestGroup extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.RequestGroup.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case VISUALGROUP: return org.hl7.fhir.r5.model.RequestGroup.ActionGroupingBehavior.VISUALGROUP;
case LOGICALGROUP: return org.hl7.fhir.r5.model.RequestGroup.ActionGroupingBehavior.LOGICALGROUP;
case SENTENCEGROUP: return org.hl7.fhir.r5.model.RequestGroup.ActionGroupingBehavior.SENTENCEGROUP;
default: return org.hl7.fhir.r5.model.RequestGroup.ActionGroupingBehavior.NULL;
case VISUALGROUP: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.VISUALGROUP;
case LOGICALGROUP: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.LOGICALGROUP;
case SENTENCEGROUP: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.SENTENCEGROUP;
default: return org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r5.model.RequestGroup.ActionGroupingBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior convertActionGroupingBehavior(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -350,21 +350,21 @@ public class RequestGroup extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ANY: return org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior.ANY;
case ALL: return org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior.ALL;
case ALLORNONE: return org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior.ALLORNONE;
case EXACTLYONE: return org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior.EXACTLYONE;
case ATMOSTONE: return org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior.ATMOSTONE;
case ONEORMORE: return org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior.ONEORMORE;
default: return org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior.NULL;
case ANY: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ANY;
case ALL: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALL;
case ALLORNONE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALLORNONE;
case EXACTLYONE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.EXACTLYONE;
case ATMOSTONE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ATMOSTONE;
case ONEORMORE: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ONEORMORE;
default: return org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r5.model.RequestGroup.ActionSelectionBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior convertActionSelectionBehavior(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -378,18 +378,18 @@ public class RequestGroup extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.RequestGroup.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case MUST: return org.hl7.fhir.r5.model.RequestGroup.ActionRequiredBehavior.MUST;
case COULD: return org.hl7.fhir.r5.model.RequestGroup.ActionRequiredBehavior.COULD;
case MUSTUNLESSDOCUMENTED: return org.hl7.fhir.r5.model.RequestGroup.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED;
default: return org.hl7.fhir.r5.model.RequestGroup.ActionRequiredBehavior.NULL;
case MUST: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUST;
case COULD: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.COULD;
case MUSTUNLESSDOCUMENTED: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED;
default: return org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r5.model.RequestGroup.ActionRequiredBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior convertActionRequiredBehavior(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -400,17 +400,17 @@ public class RequestGroup extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.RequestGroup.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case YES: return org.hl7.fhir.r5.model.RequestGroup.ActionPrecheckBehavior.YES;
case NO: return org.hl7.fhir.r5.model.RequestGroup.ActionPrecheckBehavior.NO;
default: return org.hl7.fhir.r5.model.RequestGroup.ActionPrecheckBehavior.NULL;
case YES: return org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.YES;
case NO: return org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NO;
default: return org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r5.model.RequestGroup.ActionPrecheckBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior convertActionPrecheckBehavior(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -420,17 +420,17 @@ public class RequestGroup extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.RequestGroup.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case SINGLE: return org.hl7.fhir.r5.model.RequestGroup.ActionCardinalityBehavior.SINGLE;
case MULTIPLE: return org.hl7.fhir.r5.model.RequestGroup.ActionCardinalityBehavior.MULTIPLE;
default: return org.hl7.fhir.r5.model.RequestGroup.ActionCardinalityBehavior.NULL;
case SINGLE: return org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.SINGLE;
case MULTIPLE: return org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.MULTIPLE;
default: return org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r5.model.RequestGroup.ActionCardinalityBehavior src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior convertActionCardinalityBehavior(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -464,18 +464,18 @@ public class RequestGroup extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.RequestGroup.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case APPLICABILITY: return org.hl7.fhir.r5.model.RequestGroup.ActionConditionKind.APPLICABILITY;
case START: return org.hl7.fhir.r5.model.RequestGroup.ActionConditionKind.START;
case STOP: return org.hl7.fhir.r5.model.RequestGroup.ActionConditionKind.STOP;
default: return org.hl7.fhir.r5.model.RequestGroup.ActionConditionKind.NULL;
case APPLICABILITY: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.APPLICABILITY;
case START: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.START;
case STOP: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.STOP;
default: return org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r5.model.RequestGroup.ActionConditionKind src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind convertActionConditionKind(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -514,24 +514,24 @@ public class RequestGroup extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case BEFORESTART: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.BEFORESTART;
case BEFORE: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.BEFORE;
case BEFOREEND: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.BEFOREEND;
case CONCURRENTWITHSTART: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.CONCURRENTWITHSTART;
case CONCURRENT: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.CONCURRENT;
case CONCURRENTWITHEND: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.CONCURRENTWITHEND;
case AFTERSTART: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.AFTERSTART;
case AFTER: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.AFTER;
case AFTEREND: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.AFTEREND;
default: return org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType.NULL;
case BEFORESTART: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORESTART;
case BEFORE: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORE;
case BEFOREEND: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFOREEND;
case CONCURRENTWITHSTART: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHSTART;
case CONCURRENT: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENT;
case CONCURRENTWITHEND: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHEND;
case AFTERSTART: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTERSTART;
case AFTER: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTER;
case AFTEREND: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTEREND;
default: return org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.NULL;
}
}
public static org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r5.model.RequestGroup.ActionRelationshipType src) throws FHIRException {
public static org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType convertActionRelationshipType(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -144,23 +144,23 @@ public class RiskAssessment extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus convertRiskAssessmentStatus(org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.ObservationStatus convertRiskAssessmentStatus(org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case REGISTERED: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.AMENDED;
case CORRECTED: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.CORRECTED;
case CANCELLED: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus.NULL;
case REGISTERED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.REGISTERED;
case PRELIMINARY: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.PRELIMINARY;
case FINAL: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.FINAL;
case AMENDED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.AMENDED;
case CORRECTED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.CORRECTED;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.CANCELLED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.ObservationStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentStatus convertRiskAssessmentStatus(org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentStatus convertRiskAssessmentStatus(org.hl7.fhir.r5.model.Enumerations.ObservationStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -22,6 +22,9 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.r5.model.SearchParameter.SearchModifierCodeEnumFactory;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
@ -94,7 +97,7 @@ public class SearchParameter extends VersionConvertor_40_50 {
if (src.hasCode())
tgt.setCodeElement(convertCode(src.getCodeElement()));
for (org.hl7.fhir.r4.model.CodeType t : src.getBase())
tgt.getBase().add(convertCode(t));
tgt.getBase().add(convertResourceEnum(t));
if (src.hasType())
tgt.setType(Enumerations.convertSearchParamType(src.getType()));
if (src.hasExpression())
@ -104,7 +107,7 @@ public class SearchParameter extends VersionConvertor_40_50 {
if (src.hasXpathUsage())
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
for (org.hl7.fhir.r4.model.CodeType t : src.getTarget())
tgt.getTarget().add(convertCode(t));
tgt.getTarget().add(convertResourceEnum(t));
if (src.hasMultipleOr())
tgt.setMultipleOrElement(convertBoolean(src.getMultipleOrElement()));
if (src.hasMultipleAnd())
@ -153,8 +156,8 @@ public class SearchParameter extends VersionConvertor_40_50 {
tgt.setPurposeElement(convertMarkdown(src.getPurposeElement()));
if (src.hasCode())
tgt.setCodeElement(convertCode(src.getCodeElement()));
for (org.hl7.fhir.r5.model.CodeType t : src.getBase())
tgt.getBase().add(convertCode(t));
for (CodeType t : src.getBase())
tgt.getBase().add(convertResourceEnum(t));
if (src.hasType())
tgt.setType(Enumerations.convertSearchParamType(src.getType()));
if (src.hasExpression())
@ -163,8 +166,8 @@ public class SearchParameter extends VersionConvertor_40_50 {
tgt.setXpathElement(convertString(src.getXpathElement()));
if (src.hasXpathUsage())
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
for (org.hl7.fhir.r5.model.CodeType t : src.getTarget())
tgt.getTarget().add(convertCode(t));
for (CodeType t : src.getTarget())
tgt.getTarget().add(convertResourceEnum(t));
if (src.hasMultipleOr())
tgt.setMultipleOrElement(convertBoolean(src.getMultipleOrElement()));
if (src.hasMultipleAnd())

View File

@ -208,22 +208,22 @@ public class ServiceRequest extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus convertServiceRequestStatus(org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestStatus convertServiceRequestStatus(org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case DRAFT: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus.NULL;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE;
case ONHOLD: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD;
case REVOKED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED;
case COMPLETED: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR;
case UNKNOWN: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN;
default: return org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL;
}
}
public static org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestStatus convertServiceRequestStatus(org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestStatus convertServiceRequestStatus(org.hl7.fhir.r5.model.Enumerations.RequestStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -238,24 +238,24 @@ public class ServiceRequest extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent convertServiceRequestIntent(org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestIntent src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestIntent convertServiceRequestIntent(org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case PROPOSAL: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent.NULL;
case PROPOSAL: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PROPOSAL;
case PLAN: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.PLAN;
case DIRECTIVE: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.DIRECTIVE;
case ORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORDER;
case ORIGINALORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORIGINALORDER;
case REFLEXORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.REFLEXORDER;
case FILLERORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.FILLERORDER;
case INSTANCEORDER: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.INSTANCEORDER;
case OPTION: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.OPTION;
default: return org.hl7.fhir.r5.model.Enumerations.RequestIntent.NULL;
}
}
public static org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestIntent convertServiceRequestIntent(org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestIntent src) throws FHIRException {
public static org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestIntent convertServiceRequestIntent(org.hl7.fhir.r5.model.Enumerations.RequestIntent src) throws FHIRException {
if (src == null)
return null;
switch (src) {
@ -272,19 +272,19 @@ public class ServiceRequest extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestPriority convertServiceRequestPriority(org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertServiceRequestPriority(org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestPriority.STAT;
default: return org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestPriority convertServiceRequestPriority(org.hl7.fhir.r5.model.ServiceRequest.ServiceRequestPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.ServiceRequest.ServiceRequestPriority convertServiceRequestPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -166,19 +166,19 @@ public class SupplyRequest extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.SupplyRequest.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.SupplyRequest.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertRequestPriority(org.hl7.fhir.r4.model.SupplyRequest.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.SupplyRequest.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.SupplyRequest.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.SupplyRequest.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.SupplyRequest.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.SupplyRequest.RequestPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.SupplyRequest.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.SupplyRequest.RequestPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.SupplyRequest.RequestPriority convertRequestPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -274,19 +274,19 @@ public class Task extends VersionConvertor_40_50 {
}
}
public static org.hl7.fhir.r5.model.Task.TaskPriority convertTaskPriority(org.hl7.fhir.r4.model.Task.TaskPriority src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.RequestPriority convertTaskPriority(org.hl7.fhir.r4.model.Task.TaskPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ROUTINE: return org.hl7.fhir.r5.model.Task.TaskPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Task.TaskPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Task.TaskPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Task.TaskPriority.STAT;
default: return org.hl7.fhir.r5.model.Task.TaskPriority.NULL;
case ROUTINE: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE;
case URGENT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT;
case ASAP: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP;
case STAT: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT;
default: return org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL;
}
}
public static org.hl7.fhir.r4.model.Task.TaskPriority convertTaskPriority(org.hl7.fhir.r5.model.Task.TaskPriority src) throws FHIRException {
public static org.hl7.fhir.r4.model.Task.TaskPriority convertTaskPriority(org.hl7.fhir.r5.model.Enumerations.RequestPriority src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -172,18 +172,18 @@ public class TerminologyCapabilities extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.TerminologyCapabilities.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r4.model.TerminologyCapabilities.CapabilityStatementKind src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r4.model.TerminologyCapabilities.CapabilityStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case INSTANCE: return org.hl7.fhir.r5.model.TerminologyCapabilities.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.TerminologyCapabilities.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.TerminologyCapabilities.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.TerminologyCapabilities.CapabilityStatementKind.NULL;
case INSTANCE: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.INSTANCE;
case CAPABILITY: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.CAPABILITY;
case REQUIREMENTS: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.REQUIREMENTS;
default: return org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind.NULL;
}
}
public static org.hl7.fhir.r4.model.TerminologyCapabilities.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r5.model.TerminologyCapabilities.CapabilityStatementKind src) throws FHIRException {
public static org.hl7.fhir.r4.model.TerminologyCapabilities.CapabilityStatementKind convertCapabilityStatementKind(org.hl7.fhir.r5.model.Enumerations.CapabilityStatementKind src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -68,7 +68,7 @@ public class TestScript extends VersionConvertor_40_50 {
if (src.hasUrl())
tgt.setUrlElement(convertUri(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
tgt.addIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersionElement(convertString(src.getVersionElement()));
if (src.hasName())
@ -124,7 +124,7 @@ public class TestScript extends VersionConvertor_40_50 {
if (src.hasUrl())
tgt.setUrlElement(convertUri(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
tgt.setIdentifier(convertIdentifier(src.getIdentifierFirstRep()));
if (src.hasVersion())
tgt.setVersionElement(convertString(src.getVersionElement()));
if (src.hasName())
@ -440,7 +440,7 @@ public class TestScript extends VersionConvertor_40_50 {
if (src.hasType())
tgt.setType(convertCoding(src.getType()));
if (src.hasResource())
tgt.setResourceElement(convertCode(src.getResourceElement()));
tgt.setResource(org.hl7.fhir.r5.model.TestScript.FHIRDefinedType.fromCode(src.getResource()));
if (src.hasLabel())
tgt.setLabelElement(convertString(src.getLabelElement()));
if (src.hasDescription())
@ -482,7 +482,7 @@ public class TestScript extends VersionConvertor_40_50 {
if (src.hasType())
tgt.setType(convertCoding(src.getType()));
if (src.hasResource())
tgt.setResourceElement(convertCode(src.getResourceElement()));
tgt.setResource(src.getResource().toCode());
if (src.hasLabel())
tgt.setLabelElement(convertString(src.getLabelElement()));
if (src.hasDescription())
@ -606,7 +606,7 @@ public class TestScript extends VersionConvertor_40_50 {
if (src.hasRequestURL())
tgt.setRequestURLElement(convertString(src.getRequestURLElement()));
if (src.hasResource())
tgt.setResourceElement(convertCode(src.getResourceElement()));
tgt.setResource(org.hl7.fhir.r5.model.TestScript.FHIRDefinedType.fromCode(src.getResource()));
if (src.hasResponse())
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
if (src.hasResponseCode())
@ -658,7 +658,7 @@ public class TestScript extends VersionConvertor_40_50 {
if (src.hasRequestURL())
tgt.setRequestURLElement(convertString(src.getRequestURLElement()));
if (src.hasResource())
tgt.setResourceElement(convertCode(src.getResourceElement()));
tgt.setResource(src.getResource().toCode());
if (src.hasResponse())
tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
if (src.hasResponseCode())

View File

@ -300,24 +300,24 @@ public class ValueSet extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.r4.model.ValueSet.FilterOperator src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FilterOperator convertFilterOperator(org.hl7.fhir.r4.model.ValueSet.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case EQUAL: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.ISA;
case DESCENDENTOF: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.DESCENDENTOF;
case ISNOTA: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.NOTIN;
case GENERALIZES: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.GENERALIZES;
case EXISTS: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.EXISTS;
default: return org.hl7.fhir.r5.model.ValueSet.FilterOperator.NULL;
case EQUAL: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.EQUAL;
case ISA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISA;
case DESCENDENTOF: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.DESCENDENTOF;
case ISNOTA: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.ISNOTA;
case REGEX: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.REGEX;
case IN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.IN;
case NOTIN: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NOTIN;
case GENERALIZES: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.GENERALIZES;
case EXISTS: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.EXISTS;
default: return org.hl7.fhir.r5.model.Enumerations.FilterOperator.NULL;
}
}
public static org.hl7.fhir.r4.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.ValueSet.FilterOperator src) throws FHIRException {
public static org.hl7.fhir.r4.model.ValueSet.FilterOperator convertFilterOperator(org.hl7.fhir.r5.model.Enumerations.FilterOperator src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -108,19 +108,19 @@ public class VisionPrescription extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.VisionPrescription.VisionStatus convertVisionStatus(org.hl7.fhir.r4.model.VisionPrescription.VisionStatus src) throws FHIRException {
public static org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes convertVisionStatus(org.hl7.fhir.r4.model.VisionPrescription.VisionStatus src) throws FHIRException {
if (src == null)
return null;
switch (src) {
case ACTIVE: return org.hl7.fhir.r5.model.VisionPrescription.VisionStatus.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.VisionPrescription.VisionStatus.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.VisionPrescription.VisionStatus.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.VisionPrescription.VisionStatus.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.VisionPrescription.VisionStatus.NULL;
case ACTIVE: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE;
case CANCELLED: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED;
case DRAFT: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT;
case ENTEREDINERROR: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR;
default: return org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL;
}
}
public static org.hl7.fhir.r4.model.VisionPrescription.VisionStatus convertVisionStatus(org.hl7.fhir.r5.model.VisionPrescription.VisionStatus src) throws FHIRException {
public static org.hl7.fhir.r4.model.VisionPrescription.VisionStatus convertVisionStatus(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes src) throws FHIRException {
if (src == null)
return null;
switch (src) {

View File

@ -5,3 +5,21 @@
}
return null;
}
public ConceptDefinitionComponent getDefinitionByCode(String code) {
return getDefinitionByCode(getConcept(), code);
}
private ConceptDefinitionComponent getDefinitionByCode(List<ConceptDefinitionComponent> list, String code) {
for (ConceptDefinitionComponent t : list) {
if (code.equals(t.getCode())) {
return t;
}
ConceptDefinitionComponent cc = getDefinitionByCode(t.getConcept(), code);
if (cc != null) {
return cc;
}
}
return null;
}

View File

@ -21,18 +21,18 @@
self.setMin(getMin());
self.setMax(getMax());
}
public String typeSummary() {
CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder();
for (TypeRefComponent tr : type) {
for (TypeRefComponent tr : getType()) {
if (tr.hasCode())
b.append(tr.getCode());
b.append(tr.getWorkingCode());
}
return b.toString();
}
}
public TypeRefComponent getType(String code) {
for (TypeRefComponent tr : getType())
if (tr.getCode().equals(code))
@ -87,4 +87,21 @@
return getPath().endsWith("[x]");
}
public String getName() {
return hasPath() ? getPath().contains(".") ? getPath().substring(getPath().lastIndexOf(".")+1) : getPath() : null;
}
public boolean unbounded() {
return getMax().equals("*") || Integer.parseInt(getMax()) > 1;
}
public boolean isMandatory() {
return getMin() > 0;
}
public boolean isInlineType() {
return getType().size() == 1 && Utilities.existsInList(getType().get(0).getCode(), "Element", "BackboneElement");
}

View File

@ -72,3 +72,11 @@
}
return res;
}
public String getName() {
return getWorkingCode();
}
public boolean isResourceReference() {
return "Reference".equals(getCode()) && hasTargetProfile();
}

View File

@ -47,4 +47,7 @@ http://hl7.org/fhir/ValueSet/system-restful-interaction = false
[typenames]
ValueSet.compose.include.filter = ConceptSetFilter
ValueSet.compose.include.concept.designation = ConceptReferenceDesignation
CodeSystem.concept.designation = ConceptDefinitionDesignation
CodeSystem.concept.designation = ConceptDefinitionDesignation
[no-enum]
http://hl7.org/fhir/ValueSet/resource-types=true

View File

@ -13,7 +13,9 @@ import org.hl7.fhir.r5.model.StructureDefinition;
import org.hl7.fhir.r5.model.ValueSet;
import org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent;
import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.BindingStrength;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind;
import org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent;
import org.hl7.fhir.utilities.Utilities;
@ -186,6 +188,9 @@ public class Analyser {
if (inc.hasSystem() && !inc.hasFilter() && !inc.hasConcept() && !(inc.getSystem().startsWith("http://hl7.org/fhir") || inc.getSystem().startsWith("http://terminology.hl7.org")))
ok = false;
}
if (config.getIni().getBooleanProperty("no-enum", vs.getUrl())) {
ok = false;
}
}
}
return ok;

View File

@ -45,8 +45,6 @@ import org.hl7.fhir.r5.model.StructureDefinition;
import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind;
import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule;
import jdk.nashorn.internal.runtime.Specialization;
public class JavaFactoryGenerator extends JavaBaseGenerator {

View File

@ -53,6 +53,8 @@ import org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResource
import org.hl7.fhir.r5.model.ElementDefinition;
import org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent;
import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.r5.model.Enumerations.SearchParamType;
import org.hl7.fhir.r5.model.SearchParameter;
import org.hl7.fhir.r5.model.StringType;
@ -439,7 +441,7 @@ public class JavaResourceGenerator extends JavaBaseGenerator {
Set<String> targets = new TreeSet<>();
for (CodeType c : sp.getTarget()) {
targets.add(c.toString());
targets.add(c.asStringValue());
}
if (targets != null && !targets.isEmpty() && !targets.contains("Any")) {
write(", target={");
@ -995,7 +997,7 @@ private void generatePropertyMaker(Analysis analysis, TypeInfo ti, String indent
if (types.size() == 1 && types.get(0).getName().equals("*")) {
List<TypeRefComponent> t = new ArrayList<TypeRefComponent>();
for (String s : TypesUtilities.wildcardTypes()) {
t.add(new TypeRefComponent(new UriType(s)));
t.add(new TypeRefComponent(s));
}
return t;
}

View File

@ -37,9 +37,9 @@ import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResource
import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent;
import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent;
import org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent;
import org.hl7.fhir.r5.model.CapabilityStatement.RestfulCapabilityMode;
import org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent;
import org.hl7.fhir.r5.model.Enumerations.PublicationStatus;
import org.hl7.fhir.r5.model.Enumerations.RestfulCapabilityMode;
import org.hl7.fhir.r5.model.Extension;
import org.hl7.fhir.r5.utils.KeyGenerator;
import org.hl7.fhir.r5.utils.OperationOutcomeUtilities;

View File

@ -4224,7 +4224,7 @@ public class ProfileUtilities extends TranslatingUtilities {
int i = 0;
if (diffList.get(0).getPath().contains(".")) {
String newPath = diffList.get(0).getPath().split("\\.")[0];
ElementDefinition e = new ElementDefinition(new StringType(newPath));
ElementDefinition e = new ElementDefinition(newPath);
edh = new ElementDefinitionHolder(e, true);
} else {
edh = new ElementDefinitionHolder(diffList.get(0));
@ -4266,7 +4266,7 @@ public class ProfileUtilities extends TranslatingUtilities {
while (i < list.size() && list.get(i).getPath().startsWith(prefix)) {
if (list.get(i).getPath().substring(prefix.length()+1).contains(".")) {
String newPath = prefix + list.get(i).getPath().substring(prefix.length()).split("\\.")[0];
ElementDefinition e = new ElementDefinition(new StringType(newPath));
ElementDefinition e = new ElementDefinition(newPath);
ElementDefinitionHolder child = new ElementDefinitionHolder(e, true);
edh.getChildren().add(child);
i = processElementsIntoTree(child, i, list);

View File

@ -10,6 +10,7 @@ import java.util.Set;
import java.util.UUID;
import org.hl7.fhir.r5.context.BaseWorkerContext.MetadataResourceVersionComparator;
import org.hl7.fhir.r5.context.CanonicalResourceManager.CanonicalListSorter;
import org.hl7.fhir.r5.model.CodeSystem;
import org.hl7.fhir.r5.model.CanonicalResource;
import org.hl7.fhir.utilities.VersionUtilities;
@ -24,6 +25,16 @@ import org.hl7.fhir.utilities.VersionUtilities;
public class CanonicalResourceManager<T extends CanonicalResource> {
public class CanonicalListSorter implements Comparator<CanonicalResource> {
@Override
public int compare(CanonicalResource arg0, CanonicalResource arg1) {
String u0 = arg0.getUrl();
String u1 = arg1.getUrl();
return u0.compareTo(u1);
}
}
public class MetadataResourceVersionComparator<T extends CanonicalResource> implements Comparator<T> {
@Override
public int compare(T arg1, T arg2) {
@ -196,6 +207,17 @@ public class CanonicalResourceManager<T extends CanonicalResource> {
return res;
}
public List<T> getSortedList() {
List<T> res = new ArrayList<>();
for (T t : list) {
if (!res.contains(t)) {
res.add(t);
}
}
Collections.sort(res, new CanonicalListSorter());
return res;
}
public Set<String> keys() {
return map.keySet();
}

View File

@ -26,12 +26,14 @@ import java.io.InputStream;
import java.io.OutputStream;
import org.hl7.fhir.exceptions.FHIRFormatError;
import org.hl7.fhir.r5.model.Base;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.CodeableConcept;
import org.hl7.fhir.r5.model.Coding;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Resource;
import org.hl7.fhir.r5.model.DataType;
import org.hl7.fhir.r5.model.Element;
import org.hl7.fhir.r5.utils.formats.Turtle;
import org.hl7.fhir.r5.utils.formats.Turtle.Complex;
import org.hl7.fhir.r5.utils.formats.Turtle.Section;
@ -85,6 +87,9 @@ public abstract class RdfParserBase extends ParserBase implements IParser {
}
}
protected void composeBase(Complex t, String parentType, String name, Base element, int index) {
}
@Override
public void compose(OutputStream stream, DataType type, String rootName) throws IOException {
throw new Error("Not supported in RDF");
@ -94,7 +99,7 @@ public abstract class RdfParserBase extends ParserBase implements IParser {
return "\"" +Turtle.escape(value, true) + "\"";
}
protected void composeXhtml(Complex t, String string, String string2, XhtmlNode div, int i) {
protected void composeXhtmlNode(Complex t, String string, String string2, XhtmlNode div, int i) {
}
protected void decorateCode(Complex t, Enumeration<? extends Enum> value) {

View File

@ -290,6 +290,9 @@ public abstract class XmlParserBase extends ParserBase implements IParser {
parseElementAttributes(xpp, e);
}
protected void parseResourceAttributes(XmlPullParser xpp, Resource r) {
}
private String pathForLocation(XmlPullParser xpp) {
return xpp.getPositionDescription();
}
@ -388,6 +391,12 @@ public abstract class XmlParserBase extends ParserBase implements IParser {
for (String comment : base.getFormatCommentsPost())
xml.comment(comment, getOutputStyle() == OutputStyle.PRETTY);
}
protected void composeResourceAttributes(Resource element) throws IOException {
if (style != OutputStyle.CANONICAL)
for (String comment : element.getFormatCommentsPre())
xml.comment(comment, getOutputStyle() == OutputStyle.PRETTY);
}
protected void composeTypeAttributes(DataType type) throws IOException {
composeElementAttributes(type);
}
@ -410,6 +419,9 @@ public abstract class XmlParserBase extends ParserBase implements IParser {
}
}
protected void composeBaseElements(Base element) throws IOException {
// nothing
}
abstract protected void composeString(String name, StringType value) throws IOException ;

View File

@ -1,19 +1,20 @@
package org.hl7.fhir.r5.model;
/*-
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
@ -24,40 +25,40 @@ package org.hl7.fhir.r5.model;
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.utilities.Utilities;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
@ -65,6 +66,7 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A pharmaceutical product described in terms of its composition and dose form.
*/
@ -74,20 +76,27 @@ public class AdministrableProductDefinition extends DomainResource {
@Block()
public static class AdministrableProductDefinitionCharacteristicComponent extends BackboneElement implements IBaseBackboneElement {
/**
* A coded characteristic.
* A code expressing the type of characteristic.
*/
@Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="A coded characteristic", formalDefinition="A coded characteristic." )
@Description(shortDefinition="A code expressing the type of characteristic", formalDefinition="A code expressing the type of characteristic." )
protected CodeableConcept code;
/**
* A value for the characteristic.
*/
@Child(name = "value", type = {Coding.class, Quantity.class, StringType.class, DateType.class, BooleanType.class, Attachment.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="A value for the characteristic", formalDefinition="A value for the characteristic." )
protected DataType value;
/**
* The status of characteristic e.g. assigned or pending.
*/
@Child(name = "status", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Child(name = "status", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The status of characteristic e.g. assigned or pending", formalDefinition="The status of characteristic e.g. assigned or pending." )
protected CodeableConcept status;
private static final long serialVersionUID = 1414556635L;
private static final long serialVersionUID = -343249058L;
/**
* Constructor
@ -101,11 +110,11 @@ public class AdministrableProductDefinition extends DomainResource {
*/
public AdministrableProductDefinitionCharacteristicComponent(CodeableConcept code) {
super();
this.code = code;
this.setCode(code);
}
/**
* @return {@link #code} (A coded characteristic.)
* @return {@link #code} (A code expressing the type of characteristic.)
*/
public CodeableConcept getCode() {
if (this.code == null)
@ -121,13 +130,124 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #code} (A coded characteristic.)
* @param value {@link #code} (A code expressing the type of characteristic.)
*/
public AdministrableProductDefinitionCharacteristicComponent setCode(CodeableConcept value) {
this.code = value;
return this;
}
/**
* @return {@link #value} (A value for the characteristic.)
*/
public DataType getValue() {
return this.value;
}
/**
* @return {@link #value} (A value for the characteristic.)
*/
public Coding getValueCoding() throws FHIRException {
if (this.value == null)
this.value = new Coding();
if (!(this.value instanceof Coding))
throw new FHIRException("Type mismatch: the type Coding was expected, but "+this.value.getClass().getName()+" was encountered");
return (Coding) this.value;
}
public boolean hasValueCoding() {
return this != null && this.value instanceof Coding;
}
/**
* @return {@link #value} (A value for the characteristic.)
*/
public Quantity getValueQuantity() throws FHIRException {
if (this.value == null)
this.value = new Quantity();
if (!(this.value instanceof Quantity))
throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered");
return (Quantity) this.value;
}
public boolean hasValueQuantity() {
return this != null && this.value instanceof Quantity;
}
/**
* @return {@link #value} (A value for the characteristic.)
*/
public StringType getValueStringType() throws FHIRException {
if (this.value == null)
this.value = new StringType();
if (!(this.value instanceof StringType))
throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.value.getClass().getName()+" was encountered");
return (StringType) this.value;
}
public boolean hasValueStringType() {
return this != null && this.value instanceof StringType;
}
/**
* @return {@link #value} (A value for the characteristic.)
*/
public DateType getValueDateType() throws FHIRException {
if (this.value == null)
this.value = new DateType();
if (!(this.value instanceof DateType))
throw new FHIRException("Type mismatch: the type DateType was expected, but "+this.value.getClass().getName()+" was encountered");
return (DateType) this.value;
}
public boolean hasValueDateType() {
return this != null && this.value instanceof DateType;
}
/**
* @return {@link #value} (A value for the characteristic.)
*/
public BooleanType getValueBooleanType() throws FHIRException {
if (this.value == null)
this.value = new BooleanType();
if (!(this.value instanceof BooleanType))
throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered");
return (BooleanType) this.value;
}
public boolean hasValueBooleanType() {
return this != null && this.value instanceof BooleanType;
}
/**
* @return {@link #value} (A value for the characteristic.)
*/
public Attachment getValueAttachment() throws FHIRException {
if (this.value == null)
this.value = new Attachment();
if (!(this.value instanceof Attachment))
throw new FHIRException("Type mismatch: the type Attachment was expected, but "+this.value.getClass().getName()+" was encountered");
return (Attachment) this.value;
}
public boolean hasValueAttachment() {
return this != null && this.value instanceof Attachment;
}
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
/**
* @param value {@link #value} (A value for the characteristic.)
*/
public AdministrableProductDefinitionCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof Coding || value instanceof Quantity || value instanceof StringType || value instanceof DateType || value instanceof BooleanType || value instanceof Attachment))
throw new Error("Not the right type for AdministrableProductDefinition.characteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}
/**
* @return {@link #status} (The status of characteristic e.g. assigned or pending.)
*/
@ -154,14 +274,23 @@ public class AdministrableProductDefinition extends DomainResource {
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("code", "CodeableConcept", "A coded characteristic.", 0, 1, code));
children.add(new Property("code", "CodeableConcept", "A code expressing the type of characteristic.", 0, 1, code));
children.add(new Property("value[x]", "Coding|Quantity|string|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value));
children.add(new Property("status", "CodeableConcept", "The status of characteristic e.g. assigned or pending.", 0, 1, status));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A coded characteristic.", 0, 1, code);
case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code expressing the type of characteristic.", 0, 1, code);
case -1410166417: /*value[x]*/ return new Property("value[x]", "Coding|Quantity|string|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value);
case 111972721: /*value*/ return new Property("value[x]", "Coding|Quantity|string|date|boolean|Attachment", "A value for the characteristic.", 0, 1, value);
case -1887705029: /*valueCoding*/ return new Property("value[x]", "Coding", "A value for the characteristic.", 0, 1, value);
case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "A value for the characteristic.", 0, 1, value);
case -1424603934: /*valueString*/ return new Property("value[x]", "string", "A value for the characteristic.", 0, 1, value);
case -766192449: /*valueDate*/ return new Property("value[x]", "date", "A value for the characteristic.", 0, 1, value);
case 733421943: /*valueBoolean*/ return new Property("value[x]", "boolean", "A value for the characteristic.", 0, 1, value);
case -475566732: /*valueAttachment*/ return new Property("value[x]", "Attachment", "A value for the characteristic.", 0, 1, value);
case -892481550: /*status*/ return new Property("status", "CodeableConcept", "The status of characteristic e.g. assigned or pending.", 0, 1, status);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
@ -172,6 +301,7 @@ public class AdministrableProductDefinition extends DomainResource {
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType
case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // CodeableConcept
default: return super.getProperty(hash, name, checkValid);
}
@ -184,6 +314,9 @@ public class AdministrableProductDefinition extends DomainResource {
case 3059181: // code
this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 111972721: // value
this.value = TypeConvertor.castToType(value); // DataType
return value;
case -892481550: // status
this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
@ -196,6 +329,8 @@ public class AdministrableProductDefinition extends DomainResource {
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("value[x]")) {
this.value = TypeConvertor.castToType(value); // DataType
} else if (name.equals("status")) {
this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else
@ -207,6 +342,8 @@ public class AdministrableProductDefinition extends DomainResource {
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3059181: return getCode();
case -1410166417: return getValue();
case 111972721: return getValue();
case -892481550: return getStatus();
default: return super.makeProperty(hash, name);
}
@ -217,6 +354,7 @@ public class AdministrableProductDefinition extends DomainResource {
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3059181: /*code*/ return new String[] {"CodeableConcept"};
case 111972721: /*value*/ return new String[] {"Coding", "Quantity", "string", "date", "boolean", "Attachment"};
case -892481550: /*status*/ return new String[] {"CodeableConcept"};
default: return super.getTypesForProperty(hash, name);
}
@ -229,6 +367,30 @@ public class AdministrableProductDefinition extends DomainResource {
this.code = new CodeableConcept();
return this.code;
}
else if (name.equals("valueCoding")) {
this.value = new Coding();
return this.value;
}
else if (name.equals("valueQuantity")) {
this.value = new Quantity();
return this.value;
}
else if (name.equals("valueString")) {
this.value = new StringType();
return this.value;
}
else if (name.equals("valueDate")) {
this.value = new DateType();
return this.value;
}
else if (name.equals("valueBoolean")) {
this.value = new BooleanType();
return this.value;
}
else if (name.equals("valueAttachment")) {
this.value = new Attachment();
return this.value;
}
else if (name.equals("status")) {
this.status = new CodeableConcept();
return this.status;
@ -246,6 +408,7 @@ public class AdministrableProductDefinition extends DomainResource {
public void copyValues(AdministrableProductDefinitionCharacteristicComponent dst) {
super.copyValues(dst);
dst.code = code == null ? null : code.copy();
dst.value = value == null ? null : value.copy();
dst.status = status == null ? null : status.copy();
}
@ -256,7 +419,8 @@ public class AdministrableProductDefinition extends DomainResource {
if (!(other_ instanceof AdministrableProductDefinitionCharacteristicComponent))
return false;
AdministrableProductDefinitionCharacteristicComponent o = (AdministrableProductDefinitionCharacteristicComponent) other_;
return compareDeep(code, o.code, true) && compareDeep(status, o.status, true);
return compareDeep(code, o.code, true) && compareDeep(value, o.value, true) && compareDeep(status, o.status, true)
;
}
@Override
@ -270,7 +434,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, status);
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value, status);
}
public String fhirType() {
@ -345,7 +509,7 @@ public class AdministrableProductDefinition extends DomainResource {
*/
public AdministrableProductDefinitionRouteOfAdministrationComponent(CodeableConcept code) {
super();
this.code = code;
this.setCode(code);
}
/**
@ -536,7 +700,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #targetSpecies}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #targetSpecies}, creating it if it does not already exist {3}
*/
public AdministrableProductDefinitionRouteOfAdministrationTargetSpeciesComponent getTargetSpeciesFirstRep() {
if (getTargetSpecies().isEmpty()) {
@ -785,7 +949,7 @@ public class AdministrableProductDefinition extends DomainResource {
*/
public AdministrableProductDefinitionRouteOfAdministrationTargetSpeciesComponent(CodeableConcept code) {
super();
this.code = code;
this.setCode(code);
}
/**
@ -856,7 +1020,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #withdrawalPeriod}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #withdrawalPeriod}, creating it if it does not already exist {3}
*/
public AdministrableProductDefinitionRouteOfAdministrationTargetSpeciesWithdrawalPeriodComponent getWithdrawalPeriodFirstRep() {
if (getWithdrawalPeriod().isEmpty()) {
@ -1034,8 +1198,8 @@ public class AdministrableProductDefinition extends DomainResource {
*/
public AdministrableProductDefinitionRouteOfAdministrationTargetSpeciesWithdrawalPeriodComponent(CodeableConcept tissue, Quantity value) {
super();
this.tissue = tissue;
this.value = value;
this.setTissue(tissue);
this.setValue(value);
}
/**
@ -1227,7 +1391,7 @@ public class AdministrableProductDefinition extends DomainResource {
return this.value;
}
else if (name.equals("supportingInformation")) {
throw new FHIRException("Cannot call addChild on a primitive type AdministrableProductDefinition.supportingInformation");
throw new FHIRException("Cannot call addChild on a primitive type AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation");
}
else
return super.addChild(name);
@ -1307,35 +1471,42 @@ public class AdministrableProductDefinition extends DomainResource {
@Description(shortDefinition="Todo", formalDefinition="Todo." )
protected CodeableConcept unitOfPresentation;
/**
* The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.
*/
@Child(name = "producedFrom", type = {ManufacturedItemDefinition.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients", formalDefinition="The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients." )
protected List<Reference> producedFrom;
/**
* The ingredients of this administrable pharmaceutical product.
*/
@Child(name = "ingredient", type = {Ingredient.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "ingredient", type = {Ingredient.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The ingredients of this administrable pharmaceutical product", formalDefinition="The ingredients of this administrable pharmaceutical product." )
protected List<Reference> ingredient;
/**
* Accompanying device.
*/
@Child(name = "device", type = {DeviceDefinition.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "device", type = {DeviceDefinition.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Accompanying device", formalDefinition="Accompanying device." )
protected List<Reference> device;
/**
* Characteristics e.g. a products onset of action.
*/
@Child(name = "characteristic", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "characteristic", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Characteristics e.g. a products onset of action", formalDefinition="Characteristics e.g. a products onset of action." )
protected List<AdministrableProductDefinitionCharacteristicComponent> characteristic;
/**
* The path by which the pharmaceutical product is taken into or makes contact with the body.
*/
@Child(name = "routeOfAdministration", type = {}, order=7, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "routeOfAdministration", type = {}, order=8, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The path by which the pharmaceutical product is taken into or makes contact with the body", formalDefinition="The path by which the pharmaceutical product is taken into or makes contact with the body." )
protected List<AdministrableProductDefinitionRouteOfAdministrationComponent> routeOfAdministration;
private static final long serialVersionUID = 696345043L;
private static final long serialVersionUID = 1618278928L;
/**
* Constructor
@ -1347,9 +1518,10 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* Constructor
*/
public AdministrableProductDefinition(CodeableConcept administrableDoseForm) {
public AdministrableProductDefinition(CodeableConcept administrableDoseForm, AdministrableProductDefinitionRouteOfAdministrationComponent routeOfAdministration) {
super();
this.administrableDoseForm = administrableDoseForm;
this.setAdministrableDoseForm(administrableDoseForm);
this.addRouteOfAdministration(routeOfAdministration);
}
/**
@ -1396,7 +1568,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
*/
public Identifier getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
@ -1449,7 +1621,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #subject}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #subject}, creating it if it does not already exist {3}
*/
public Reference getSubjectFirstRep() {
if (getSubject().isEmpty()) {
@ -1506,6 +1678,59 @@ public class AdministrableProductDefinition extends DomainResource {
return this;
}
/**
* @return {@link #producedFrom} (The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.)
*/
public List<Reference> getProducedFrom() {
if (this.producedFrom == null)
this.producedFrom = new ArrayList<Reference>();
return this.producedFrom;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public AdministrableProductDefinition setProducedFrom(List<Reference> theProducedFrom) {
this.producedFrom = theProducedFrom;
return this;
}
public boolean hasProducedFrom() {
if (this.producedFrom == null)
return false;
for (Reference item : this.producedFrom)
if (!item.isEmpty())
return true;
return false;
}
public Reference addProducedFrom() { //3
Reference t = new Reference();
if (this.producedFrom == null)
this.producedFrom = new ArrayList<Reference>();
this.producedFrom.add(t);
return t;
}
public AdministrableProductDefinition addProducedFrom(Reference t) { //3
if (t == null)
return this;
if (this.producedFrom == null)
this.producedFrom = new ArrayList<Reference>();
this.producedFrom.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #producedFrom}, creating it if it does not already exist {3}
*/
public Reference getProducedFromFirstRep() {
if (getProducedFrom().isEmpty()) {
addProducedFrom();
}
return getProducedFrom().get(0);
}
/**
* @return {@link #ingredient} (The ingredients of this administrable pharmaceutical product.)
*/
@ -1550,7 +1775,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #ingredient}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #ingredient}, creating it if it does not already exist {3}
*/
public Reference getIngredientFirstRep() {
if (getIngredient().isEmpty()) {
@ -1603,7 +1828,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #device}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #device}, creating it if it does not already exist {3}
*/
public Reference getDeviceFirstRep() {
if (getDevice().isEmpty()) {
@ -1656,7 +1881,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #characteristic}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #characteristic}, creating it if it does not already exist {3}
*/
public AdministrableProductDefinitionCharacteristicComponent getCharacteristicFirstRep() {
if (getCharacteristic().isEmpty()) {
@ -1709,7 +1934,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #routeOfAdministration}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #routeOfAdministration}, creating it if it does not already exist {3}
*/
public AdministrableProductDefinitionRouteOfAdministrationComponent getRouteOfAdministrationFirstRep() {
if (getRouteOfAdministration().isEmpty()) {
@ -1724,6 +1949,7 @@ public class AdministrableProductDefinition extends DomainResource {
children.add(new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pharmaceutical product of.", 0, java.lang.Integer.MAX_VALUE, subject));
children.add(new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, after necessary reconstitution.", 0, 1, administrableDoseForm));
children.add(new Property("unitOfPresentation", "CodeableConcept", "Todo.", 0, 1, unitOfPresentation));
children.add(new Property("producedFrom", "Reference(ManufacturedItemDefinition)", "The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.", 0, java.lang.Integer.MAX_VALUE, producedFrom));
children.add(new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, ingredient));
children.add(new Property("device", "Reference(DeviceDefinition)", "Accompanying device.", 0, java.lang.Integer.MAX_VALUE, device));
children.add(new Property("characteristic", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, characteristic));
@ -1737,6 +1963,7 @@ public class AdministrableProductDefinition extends DomainResource {
case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pharmaceutical product of.", 0, java.lang.Integer.MAX_VALUE, subject);
case 1446105202: /*administrableDoseForm*/ return new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, after necessary reconstitution.", 0, 1, administrableDoseForm);
case -1427765963: /*unitOfPresentation*/ return new Property("unitOfPresentation", "CodeableConcept", "Todo.", 0, 1, unitOfPresentation);
case 588380494: /*producedFrom*/ return new Property("producedFrom", "Reference(ManufacturedItemDefinition)", "The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.", 0, java.lang.Integer.MAX_VALUE, producedFrom);
case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, ingredient);
case -1335157162: /*device*/ return new Property("device", "Reference(DeviceDefinition)", "Accompanying device.", 0, java.lang.Integer.MAX_VALUE, device);
case 366313883: /*characteristic*/ return new Property("characteristic", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, characteristic);
@ -1753,6 +1980,7 @@ public class AdministrableProductDefinition extends DomainResource {
case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : this.subject.toArray(new Base[this.subject.size()]); // Reference
case 1446105202: /*administrableDoseForm*/ return this.administrableDoseForm == null ? new Base[0] : new Base[] {this.administrableDoseForm}; // CodeableConcept
case -1427765963: /*unitOfPresentation*/ return this.unitOfPresentation == null ? new Base[0] : new Base[] {this.unitOfPresentation}; // CodeableConcept
case 588380494: /*producedFrom*/ return this.producedFrom == null ? new Base[0] : this.producedFrom.toArray(new Base[this.producedFrom.size()]); // Reference
case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // Reference
case -1335157162: /*device*/ return this.device == null ? new Base[0] : this.device.toArray(new Base[this.device.size()]); // Reference
case 366313883: /*characteristic*/ return this.characteristic == null ? new Base[0] : this.characteristic.toArray(new Base[this.characteristic.size()]); // AdministrableProductDefinitionCharacteristicComponent
@ -1777,6 +2005,9 @@ public class AdministrableProductDefinition extends DomainResource {
case -1427765963: // unitOfPresentation
this.unitOfPresentation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 588380494: // producedFrom
this.getProducedFrom().add(TypeConvertor.castToReference(value)); // Reference
return value;
case -206409263: // ingredient
this.getIngredient().add(TypeConvertor.castToReference(value)); // Reference
return value;
@ -1804,6 +2035,8 @@ public class AdministrableProductDefinition extends DomainResource {
this.administrableDoseForm = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("unitOfPresentation")) {
this.unitOfPresentation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("producedFrom")) {
this.getProducedFrom().add(TypeConvertor.castToReference(value));
} else if (name.equals("ingredient")) {
this.getIngredient().add(TypeConvertor.castToReference(value));
} else if (name.equals("device")) {
@ -1824,6 +2057,7 @@ public class AdministrableProductDefinition extends DomainResource {
case -1867885268: return addSubject();
case 1446105202: return getAdministrableDoseForm();
case -1427765963: return getUnitOfPresentation();
case 588380494: return addProducedFrom();
case -206409263: return addIngredient();
case -1335157162: return addDevice();
case 366313883: return addCharacteristic();
@ -1840,6 +2074,7 @@ public class AdministrableProductDefinition extends DomainResource {
case -1867885268: /*subject*/ return new String[] {"Reference"};
case 1446105202: /*administrableDoseForm*/ return new String[] {"CodeableConcept"};
case -1427765963: /*unitOfPresentation*/ return new String[] {"CodeableConcept"};
case 588380494: /*producedFrom*/ return new String[] {"Reference"};
case -206409263: /*ingredient*/ return new String[] {"Reference"};
case -1335157162: /*device*/ return new String[] {"Reference"};
case 366313883: /*characteristic*/ return new String[] {};
@ -1865,6 +2100,9 @@ public class AdministrableProductDefinition extends DomainResource {
this.unitOfPresentation = new CodeableConcept();
return this.unitOfPresentation;
}
else if (name.equals("producedFrom")) {
return addProducedFrom();
}
else if (name.equals("ingredient")) {
return addIngredient();
}
@ -1906,6 +2144,11 @@ public class AdministrableProductDefinition extends DomainResource {
};
dst.administrableDoseForm = administrableDoseForm == null ? null : administrableDoseForm.copy();
dst.unitOfPresentation = unitOfPresentation == null ? null : unitOfPresentation.copy();
if (producedFrom != null) {
dst.producedFrom = new ArrayList<Reference>();
for (Reference i : producedFrom)
dst.producedFrom.add(i.copy());
};
if (ingredient != null) {
dst.ingredient = new ArrayList<Reference>();
for (Reference i : ingredient)
@ -1940,9 +2183,9 @@ public class AdministrableProductDefinition extends DomainResource {
return false;
AdministrableProductDefinition o = (AdministrableProductDefinition) other_;
return compareDeep(identifier, o.identifier, true) && compareDeep(subject, o.subject, true) && compareDeep(administrableDoseForm, o.administrableDoseForm, true)
&& compareDeep(unitOfPresentation, o.unitOfPresentation, true) && compareDeep(ingredient, o.ingredient, true)
&& compareDeep(device, o.device, true) && compareDeep(characteristic, o.characteristic, true) && compareDeep(routeOfAdministration, o.routeOfAdministration, true)
;
&& compareDeep(unitOfPresentation, o.unitOfPresentation, true) && compareDeep(producedFrom, o.producedFrom, true)
&& compareDeep(ingredient, o.ingredient, true) && compareDeep(device, o.device, true) && compareDeep(characteristic, o.characteristic, true)
&& compareDeep(routeOfAdministration, o.routeOfAdministration, true);
}
@Override
@ -1957,7 +2200,8 @@ public class AdministrableProductDefinition extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, subject, administrableDoseForm
, unitOfPresentation, ingredient, device, characteristic, routeOfAdministration);
, unitOfPresentation, producedFrom, ingredient, device, characteristic, routeOfAdministration
);
}
@Override
@ -1965,6 +2209,26 @@ public class AdministrableProductDefinition extends DomainResource {
return ResourceType.AdministrableProductDefinition;
}
/**
* Search parameter: <b>dose-form</b>
* <p>
* Description: <b>The administrable dose form, after necessary reconstitution</b><br>
* Type: <b>token</b><br>
* Path: <b>AdministrableProductDefinition.administrableDoseForm</b><br>
* </p>
*/
@SearchParamDefinition(name="dose-form", path="AdministrableProductDefinition.administrableDoseForm", description="The administrable dose form, after necessary reconstitution", type="token" )
public static final String SP_DOSE_FORM = "dose-form";
/**
* <b>Fluent Client</b> search parameter constant for <b>dose-form</b>
* <p>
* Description: <b>The administrable dose form, after necessary reconstitution</b><br>
* Type: <b>token</b><br>
* Path: <b>AdministrableProductDefinition.administrableDoseForm</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam DOSE_FORM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DOSE_FORM);
/**
* Search parameter: <b>identifier</b>
* <p>

View File

@ -1,19 +1,20 @@
package org.hl7.fhir.r5.model;
/*-
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
@ -24,46 +25,47 @@ package org.hl7.fhir.r5.model;
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A duration of time during which an organism (or a process) has existed.
* Base StructureDefinition for Age Type: A duration of time during which an organism (or a process) has existed.
*/
@DatatypeDef(name="Age")
public class Age extends Quantity implements ICompositeType {
@ -77,60 +79,6 @@ public class Age extends Quantity implements ICompositeType {
super();
}
protected void listChildren(List<Property> children) {
super.listChildren(children);
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
return super.setProperty(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
return super.addChild(name);
}
public String fhirType() {
return "Age";
@ -150,30 +98,6 @@ public class Age extends Quantity implements ICompositeType {
return copy();
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof Age))
return false;
Age o = (Age) other_;
return true;
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof Age))
return false;
Age o = (Age) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty();
}
}

View File

@ -1,19 +1,20 @@
package org.hl7.fhir.r5.model;
/*-
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
@ -24,46 +25,47 @@ package org.hl7.fhir.r5.model;
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A text note which also contains information about who made the statement and when.
* Base StructureDefinition for Annotation Type: A text note which also contains information about who made the statement and when.
*/
@DatatypeDef(name="Annotation")
public class Annotation extends DataType implements ICompositeType {
@ -101,9 +103,9 @@ public class Annotation extends DataType implements ICompositeType {
/**
* Constructor
*/
public Annotation(MarkdownType text) {
public Annotation(String text) {
super();
this.text = text;
this.setText(text);
}
/**
@ -263,8 +265,8 @@ public class Annotation extends DataType implements ICompositeType {
switch (_hash) {
case 1475597077: /*author[x]*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case -1406328437: /*author*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case 305515008: /*authorReference*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case 290249084: /*authorString*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case 305515008: /*authorReference*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)", "The individual responsible for making the annotation.", 0, 1, author);
case 290249084: /*authorString*/ return new Property("author[x]", "string", "The individual responsible for making the annotation.", 0, 1, author);
case 3560141: /*time*/ return new Property("time", "dateTime", "Indicates when this particular annotation was made.", 0, 1, time);
case 3556653: /*text*/ return new Property("text", "markdown", "The text of the annotation in markdown format.", 0, 1, text);
default: return super.getNamedProperty(_hash, _name, _checkValid);

View File

@ -1,19 +1,20 @@
package org.hl7.fhir.r5.model;
/*-
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
@ -24,40 +25,40 @@ package org.hl7.fhir.r5.model;
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.utilities.Utilities;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
@ -65,6 +66,7 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).
*/
@ -109,8 +111,7 @@ public class Appointment extends DomainResource {
*/
CHECKEDIN,
/**
* The appointment has been placed on a waitlist, to be scheduled/confirmed in the future when a slot/service is available.
A specific time might or might not be pre-allocated.
* The appointment has been placed on a waitlist, to be scheduled/confirmed in the future when a slot/service is available.\nA specific time might or might not be pre-allocated.
*/
WAITLIST,
/**
@ -400,130 +401,6 @@ A specific time might or might not be pre-allocated.
}
}
public enum ParticipationStatus {
/**
* The participant has accepted the appointment.
*/
ACCEPTED,
/**
* The participant has declined the appointment and will not participate in the appointment.
*/
DECLINED,
/**
* The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.
*/
TENTATIVE,
/**
* The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.
*/
NEEDSACTION,
/**
* added to help the parsers with the generic types
*/
NULL;
public static ParticipationStatus fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return ACCEPTED;
if ("declined".equals(codeString))
return DECLINED;
if ("tentative".equals(codeString))
return TENTATIVE;
if ("needs-action".equals(codeString))
return NEEDSACTION;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown ParticipationStatus code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case ACCEPTED: return "accepted";
case DECLINED: return "declined";
case TENTATIVE: return "tentative";
case NEEDSACTION: return "needs-action";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case ACCEPTED: return "http://hl7.org/fhir/participationstatus";
case DECLINED: return "http://hl7.org/fhir/participationstatus";
case TENTATIVE: return "http://hl7.org/fhir/participationstatus";
case NEEDSACTION: return "http://hl7.org/fhir/participationstatus";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case ACCEPTED: return "The participant has accepted the appointment.";
case DECLINED: return "The participant has declined the appointment and will not participate in the appointment.";
case TENTATIVE: return "The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.";
case NEEDSACTION: return "The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case ACCEPTED: return "Accepted";
case DECLINED: return "Declined";
case TENTATIVE: return "Tentative";
case NEEDSACTION: return "Needs Action";
default: return "?";
}
}
}
public static class ParticipationStatusEnumFactory implements EnumFactory<ParticipationStatus> {
public ParticipationStatus fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return ParticipationStatus.ACCEPTED;
if ("declined".equals(codeString))
return ParticipationStatus.DECLINED;
if ("tentative".equals(codeString))
return ParticipationStatus.TENTATIVE;
if ("needs-action".equals(codeString))
return ParticipationStatus.NEEDSACTION;
throw new IllegalArgumentException("Unknown ParticipationStatus code '"+codeString+"'");
}
public Enumeration<ParticipationStatus> fromType(Base code) throws FHIRException {
if (code == null)
return null;
if (code.isEmpty())
return new Enumeration<ParticipationStatus>(this);
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return new Enumeration<ParticipationStatus>(this, ParticipationStatus.ACCEPTED);
if ("declined".equals(codeString))
return new Enumeration<ParticipationStatus>(this, ParticipationStatus.DECLINED);
if ("tentative".equals(codeString))
return new Enumeration<ParticipationStatus>(this, ParticipationStatus.TENTATIVE);
if ("needs-action".equals(codeString))
return new Enumeration<ParticipationStatus>(this, ParticipationStatus.NEEDSACTION);
throw new FHIRException("Unknown ParticipationStatus code '"+codeString+"'");
}
public String toCode(ParticipationStatus code) {
if (code == ParticipationStatus.ACCEPTED)
return "accepted";
if (code == ParticipationStatus.DECLINED)
return "declined";
if (code == ParticipationStatus.TENTATIVE)
return "tentative";
if (code == ParticipationStatus.NEEDSACTION)
return "needs-action";
return "?";
}
public String toSystem(ParticipationStatus code) {
return code.getSystem();
}
}
@Block()
public static class AppointmentParticipantComponent extends BackboneElement implements IBaseBackboneElement {
/**
@ -576,9 +453,9 @@ A specific time might or might not be pre-allocated.
/**
* Constructor
*/
public AppointmentParticipantComponent(Enumeration<ParticipationStatus> status) {
public AppointmentParticipantComponent(ParticipationStatus status) {
super();
this.status = status;
this.setStatus(status);
}
/**
@ -625,7 +502,7 @@ A specific time might or might not be pre-allocated.
}
/**
* @return The first repetition of repeating field {@link #type}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #type}, creating it if it does not already exist {3}
*/
public CodeableConcept getTypeFirstRep() {
if (getType().isEmpty()) {
@ -891,10 +768,10 @@ A specific time might or might not be pre-allocated.
return this.actor;
}
else if (name.equals("required")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.required");
throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.required");
}
else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.status");
throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.status");
}
else if (name.equals("period")) {
this.period = new Period();
@ -1131,9 +1008,10 @@ The duration (usually in minutes) could also be provided to indicate the length
/**
* Constructor
*/
public Appointment(Enumeration<AppointmentStatus> status) {
public Appointment(AppointmentStatus status, AppointmentParticipantComponent participant) {
super();
this.status = status;
this.setStatus(status);
this.addParticipant(participant);
}
/**
@ -1180,7 +1058,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
*/
public Identifier getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
@ -1302,7 +1180,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #serviceCategory}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #serviceCategory}, creating it if it does not already exist {3}
*/
public CodeableConcept getServiceCategoryFirstRep() {
if (getServiceCategory().isEmpty()) {
@ -1355,7 +1233,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #serviceType}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #serviceType}, creating it if it does not already exist {3}
*/
public CodeableConcept getServiceTypeFirstRep() {
if (getServiceType().isEmpty()) {
@ -1408,7 +1286,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #specialty}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #specialty}, creating it if it does not already exist {3}
*/
public CodeableConcept getSpecialtyFirstRep() {
if (getSpecialty().isEmpty()) {
@ -1485,7 +1363,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
*/
public CodeableConcept getReasonCodeFirstRep() {
if (getReasonCode().isEmpty()) {
@ -1538,7 +1416,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
*/
public Reference getReasonReferenceFirstRep() {
if (getReasonReference().isEmpty()) {
@ -1685,7 +1563,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #supportingInformation}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #supportingInformation}, creating it if it does not already exist {3}
*/
public Reference getSupportingInformationFirstRep() {
if (getSupportingInformation().isEmpty()) {
@ -1881,7 +1759,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #slot}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #slot}, creating it if it does not already exist {3}
*/
public Reference getSlotFirstRep() {
if (getSlot().isEmpty()) {
@ -2081,7 +1959,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3}
*/
public Reference getBasedOnFirstRep() {
if (getBasedOn().isEmpty()) {
@ -2134,7 +2012,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #participant}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #participant}, creating it if it does not already exist {3}
*/
public AppointmentParticipantComponent getParticipantFirstRep() {
if (getParticipant().isEmpty()) {
@ -2189,7 +2067,7 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return The first repetition of repeating field {@link #requestedPeriod}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #requestedPeriod}, creating it if it does not already exist {3}
*/
public Period getRequestedPeriodFirstRep() {
if (getRequestedPeriod().isEmpty()) {
@ -2674,6 +2552,78 @@ The duration (usually in minutes) could also be provided to indicate the length
return ResourceType.Appointment;
}
/**
* Search parameter: <b>actor</b>
* <p>
* Description: <b>Any one of the individuals participating in the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="actor", path="Appointment.participant.actor", description="Any one of the individuals participating in the appointment", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_ACTOR = "actor";
/**
* <b>Fluent Client</b> search parameter constant for <b>actor</b>
* <p>
* Description: <b>Any one of the individuals participating in the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ACTOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ACTOR);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:actor</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ACTOR = new ca.uhn.fhir.model.api.Include("Appointment:actor").toLocked();
/**
* Search parameter: <b>appointment-type</b>
* <p>
* Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.appointmentType</b><br>
* </p>
*/
@SearchParamDefinition(name="appointment-type", path="Appointment.appointmentType", description="The style of appointment or patient that has been booked in the slot (not service type)", type="token" )
public static final String SP_APPOINTMENT_TYPE = "appointment-type";
/**
* <b>Fluent Client</b> search parameter constant for <b>appointment-type</b>
* <p>
* Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.appointmentType</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam APPOINTMENT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_APPOINTMENT_TYPE);
/**
* Search parameter: <b>based-on</b>
* <p>
* Description: <b>The service request this appointment is allocated to assess</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.basedOn</b><br>
* </p>
*/
@SearchParamDefinition(name="based-on", path="Appointment.basedOn", description="The service request this appointment is allocated to assess", type="reference", target={ServiceRequest.class } )
public static final String SP_BASED_ON = "based-on";
/**
* <b>Fluent Client</b> search parameter constant for <b>based-on</b>
* <p>
* Description: <b>The service request this appointment is allocated to assess</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.basedOn</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:based-on</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("Appointment:based-on").toLocked();
/**
* Search parameter: <b>date</b>
* <p>
@ -2715,70 +2665,30 @@ The duration (usually in minutes) could also be provided to indicate the length
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>specialty</b>
* Search parameter: <b>location</b>
* <p>
* Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.specialty</b><br>
* </p>
*/
@SearchParamDefinition(name="specialty", path="Appointment.specialty", description="The specialty of a practitioner that would be required to perform the service requested in this appointment", type="token" )
public static final String SP_SPECIALTY = "specialty";
/**
* <b>Fluent Client</b> search parameter constant for <b>specialty</b>
* <p>
* Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.specialty</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIALTY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIALTY);
/**
* Search parameter: <b>service-category</b>
* <p>
* Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.serviceCategory</b><br>
* </p>
*/
@SearchParamDefinition(name="service-category", path="Appointment.serviceCategory", description="A broad categorization of the service that is to be performed during this appointment", type="token" )
public static final String SP_SERVICE_CATEGORY = "service-category";
/**
* <b>Fluent Client</b> search parameter constant for <b>service-category</b>
* <p>
* Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.serviceCategory</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICE_CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICE_CATEGORY);
/**
* Search parameter: <b>practitioner</b>
* <p>
* Description: <b>One of the individuals of the appointment is this practitioner</b><br>
* Description: <b>This location is listed in the participants of the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* Path: <b>Appointment.participant.actor.where(resolve() is Location)</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="Appointment.participant.actor.where(resolve() is Practitioner)", description="One of the individuals of the appointment is this practitioner", type="reference", target={Practitioner.class } )
public static final String SP_PRACTITIONER = "practitioner";
@SearchParamDefinition(name="location", path="Appointment.participant.actor.where(resolve() is Location)", description="This location is listed in the participants of the appointment", type="reference", target={Location.class } )
public static final String SP_LOCATION = "location";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>
* <b>Fluent Client</b> search parameter constant for <b>location</b>
* <p>
* Description: <b>One of the individuals of the appointment is this practitioner</b><br>
* Description: <b>This location is listed in the participants of the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* Path: <b>Appointment.participant.actor.where(resolve() is Location)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:practitioner</b>".
* the path value of "<b>Appointment:location</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Appointment:practitioner").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("Appointment:location").toLocked();
/**
* Search parameter: <b>part-status</b>
@ -2801,24 +2711,122 @@ The duration (usually in minutes) could also be provided to indicate the length
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PART_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PART_STATUS);
/**
* Search parameter: <b>appointment-type</b>
* Search parameter: <b>patient</b>
* <p>
* Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.appointmentType</b><br>
* Description: <b>One of the individuals of the appointment is this patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor.where(resolve() is Patient)</b><br>
* </p>
*/
@SearchParamDefinition(name="appointment-type", path="Appointment.appointmentType", description="The style of appointment or patient that has been booked in the slot (not service type)", type="token" )
public static final String SP_APPOINTMENT_TYPE = "appointment-type";
@SearchParamDefinition(name="patient", path="Appointment.participant.actor.where(resolve() is Patient)", description="One of the individuals of the appointment is this patient", type="reference", target={Patient.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>appointment-type</b>
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
* <p>
* Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.appointmentType</b><br>
* Description: <b>One of the individuals of the appointment is this patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor.where(resolve() is Patient)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam APPOINTMENT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_APPOINTMENT_TYPE);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:patient</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Appointment:patient").toLocked();
/**
* Search parameter: <b>practitioner</b>
* <p>
* Description: <b>One of the individuals of the appointment is this practitioner</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor.where(resolve() is Practitioner)</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="Appointment.participant.actor.where(resolve() is Practitioner)", description="One of the individuals of the appointment is this practitioner", type="reference", target={Practitioner.class } )
public static final String SP_PRACTITIONER = "practitioner";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>
* <p>
* Description: <b>One of the individuals of the appointment is this practitioner</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor.where(resolve() is Practitioner)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:practitioner</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Appointment:practitioner").toLocked();
/**
* Search parameter: <b>reason-code</b>
* <p>
* Description: <b>Coded reason this appointment is scheduled</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.reasonCode</b><br>
* </p>
*/
@SearchParamDefinition(name="reason-code", path="Appointment.reasonCode", description="Coded reason this appointment is scheduled", type="token" )
public static final String SP_REASON_CODE = "reason-code";
/**
* <b>Fluent Client</b> search parameter constant for <b>reason-code</b>
* <p>
* Description: <b>Coded reason this appointment is scheduled</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.reasonCode</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_CODE);
/**
* Search parameter: <b>reason-reference</b>
* <p>
* Description: <b>Reason the appointment is to take place (resource)</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.reasonReference</b><br>
* </p>
*/
@SearchParamDefinition(name="reason-reference", path="Appointment.reasonReference", description="Reason the appointment is to take place (resource)", type="reference", target={Condition.class, ImmunizationRecommendation.class, Observation.class, Procedure.class } )
public static final String SP_REASON_REFERENCE = "reason-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>reason-reference</b>
* <p>
* Description: <b>Reason the appointment is to take place (resource)</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.reasonReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REASON_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:reason-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_REFERENCE = new ca.uhn.fhir.model.api.Include("Appointment:reason-reference").toLocked();
/**
* Search parameter: <b>service-category</b>
* <p>
* Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.serviceCategory</b><br>
* </p>
*/
@SearchParamDefinition(name="service-category", path="Appointment.serviceCategory", description="A broad categorization of the service that is to be performed during this appointment", type="token" )
public static final String SP_SERVICE_CATEGORY = "service-category";
/**
* <b>Fluent Client</b> search parameter constant for <b>service-category</b>
* <p>
* Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.serviceCategory</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICE_CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICE_CATEGORY);
/**
* Search parameter: <b>service-type</b>
@ -2867,180 +2875,24 @@ The duration (usually in minutes) could also be provided to indicate the length
public static final ca.uhn.fhir.model.api.Include INCLUDE_SLOT = new ca.uhn.fhir.model.api.Include("Appointment:slot").toLocked();
/**
* Search parameter: <b>reason-code</b>
* Search parameter: <b>specialty</b>
* <p>
* Description: <b>Coded reason this appointment is scheduled</b><br>
* Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.reasonCode</b><br>
* Path: <b>Appointment.specialty</b><br>
* </p>
*/
@SearchParamDefinition(name="reason-code", path="Appointment.reasonCode", description="Coded reason this appointment is scheduled", type="token" )
public static final String SP_REASON_CODE = "reason-code";
@SearchParamDefinition(name="specialty", path="Appointment.specialty", description="The specialty of a practitioner that would be required to perform the service requested in this appointment", type="token" )
public static final String SP_SPECIALTY = "specialty";
/**
* <b>Fluent Client</b> search parameter constant for <b>reason-code</b>
* <b>Fluent Client</b> search parameter constant for <b>specialty</b>
* <p>
* Description: <b>Coded reason this appointment is scheduled</b><br>
* Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.reasonCode</b><br>
* Path: <b>Appointment.specialty</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_CODE);
/**
* Search parameter: <b>actor</b>
* <p>
* Description: <b>Any one of the individuals participating in the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="actor", path="Appointment.participant.actor", description="Any one of the individuals participating in the appointment", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") }, target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_ACTOR = "actor";
/**
* <b>Fluent Client</b> search parameter constant for <b>actor</b>
* <p>
* Description: <b>Any one of the individuals participating in the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ACTOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ACTOR);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:actor</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ACTOR = new ca.uhn.fhir.model.api.Include("Appointment:actor").toLocked();
/**
* Search parameter: <b>based-on</b>
* <p>
* Description: <b>The service request this appointment is allocated to assess</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.basedOn</b><br>
* </p>
*/
@SearchParamDefinition(name="based-on", path="Appointment.basedOn", description="The service request this appointment is allocated to assess", type="reference", target={ServiceRequest.class } )
public static final String SP_BASED_ON = "based-on";
/**
* <b>Fluent Client</b> search parameter constant for <b>based-on</b>
* <p>
* Description: <b>The service request this appointment is allocated to assess</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.basedOn</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:based-on</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("Appointment:based-on").toLocked();
/**
* Search parameter: <b>patient</b>
* <p>
* Description: <b>One of the individuals of the appointment is this patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Appointment.participant.actor.where(resolve() is Patient)", description="One of the individuals of the appointment is this patient", type="reference", target={Patient.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
* <p>
* Description: <b>One of the individuals of the appointment is this patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:patient</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Appointment:patient").toLocked();
/**
* Search parameter: <b>reason-reference</b>
* <p>
* Description: <b>Reason the appointment is to take place (resource)</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.reasonReference</b><br>
* </p>
*/
@SearchParamDefinition(name="reason-reference", path="Appointment.reasonReference", description="Reason the appointment is to take place (resource)", type="reference", target={Condition.class, ImmunizationRecommendation.class, Observation.class, Procedure.class } )
public static final String SP_REASON_REFERENCE = "reason-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>reason-reference</b>
* <p>
* Description: <b>Reason the appointment is to take place (resource)</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.reasonReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REASON_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:reason-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_REFERENCE = new ca.uhn.fhir.model.api.Include("Appointment:reason-reference").toLocked();
/**
* Search parameter: <b>supporting-info</b>
* <p>
* Description: <b>Additional information to support the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.supportingInformation</b><br>
* </p>
*/
@SearchParamDefinition(name="supporting-info", path="Appointment.supportingInformation", description="Additional information to support the appointment", type="reference" )
public static final String SP_SUPPORTING_INFO = "supporting-info";
/**
* <b>Fluent Client</b> search parameter constant for <b>supporting-info</b>
* <p>
* Description: <b>Additional information to support the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.supportingInformation</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPORTING_INFO = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPORTING_INFO);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:supporting-info</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTING_INFO = new ca.uhn.fhir.model.api.Include("Appointment:supporting-info").toLocked();
/**
* Search parameter: <b>location</b>
* <p>
* Description: <b>This location is listed in the participants of the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="location", path="Appointment.participant.actor.where(resolve() is Location)", description="This location is listed in the participants of the appointment", type="reference", target={Location.class } )
public static final String SP_LOCATION = "location";
/**
* <b>Fluent Client</b> search parameter constant for <b>location</b>
* <p>
* Description: <b>This location is listed in the participants of the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:location</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("Appointment:location").toLocked();
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIALTY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIALTY);
/**
* Search parameter: <b>status</b>
@ -3062,6 +2914,32 @@ The duration (usually in minutes) could also be provided to indicate the length
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
/**
* Search parameter: <b>supporting-info</b>
* <p>
* Description: <b>Additional information to support the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.supportingInformation</b><br>
* </p>
*/
@SearchParamDefinition(name="supporting-info", path="Appointment.supportingInformation", description="Additional information to support the appointment", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_SUPPORTING_INFO = "supporting-info";
/**
* <b>Fluent Client</b> search parameter constant for <b>supporting-info</b>
* <p>
* Description: <b>Additional information to support the appointment</b><br>
* Type: <b>reference</b><br>
* Path: <b>Appointment.supportingInformation</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPORTING_INFO = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPORTING_INFO);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Appointment:supporting-info</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTING_INFO = new ca.uhn.fhir.model.api.Include("Appointment:supporting-info").toLocked();
}

View File

@ -1,19 +1,20 @@
package org.hl7.fhir.r5.model;
/*-
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
@ -24,40 +25,40 @@ package org.hl7.fhir.r5.model;
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.utilities.Utilities;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
@ -65,136 +66,13 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.
*/
@ResourceDef(name="AppointmentResponse", profile="http://hl7.org/fhir/StructureDefinition/AppointmentResponse")
public class AppointmentResponse extends DomainResource {
public enum ParticipantStatus {
/**
* The participant has accepted the appointment.
*/
ACCEPTED,
/**
* The participant has declined the appointment and will not participate in the appointment.
*/
DECLINED,
/**
* The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.
*/
TENTATIVE,
/**
* The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.
*/
NEEDSACTION,
/**
* added to help the parsers with the generic types
*/
NULL;
public static ParticipantStatus fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return ACCEPTED;
if ("declined".equals(codeString))
return DECLINED;
if ("tentative".equals(codeString))
return TENTATIVE;
if ("needs-action".equals(codeString))
return NEEDSACTION;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown ParticipantStatus code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case ACCEPTED: return "accepted";
case DECLINED: return "declined";
case TENTATIVE: return "tentative";
case NEEDSACTION: return "needs-action";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case ACCEPTED: return "http://hl7.org/fhir/participationstatus";
case DECLINED: return "http://hl7.org/fhir/participationstatus";
case TENTATIVE: return "http://hl7.org/fhir/participationstatus";
case NEEDSACTION: return "http://hl7.org/fhir/participationstatus";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case ACCEPTED: return "The participant has accepted the appointment.";
case DECLINED: return "The participant has declined the appointment and will not participate in the appointment.";
case TENTATIVE: return "The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.";
case NEEDSACTION: return "The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case ACCEPTED: return "Accepted";
case DECLINED: return "Declined";
case TENTATIVE: return "Tentative";
case NEEDSACTION: return "Needs Action";
default: return "?";
}
}
}
public static class ParticipantStatusEnumFactory implements EnumFactory<ParticipantStatus> {
public ParticipantStatus fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return ParticipantStatus.ACCEPTED;
if ("declined".equals(codeString))
return ParticipantStatus.DECLINED;
if ("tentative".equals(codeString))
return ParticipantStatus.TENTATIVE;
if ("needs-action".equals(codeString))
return ParticipantStatus.NEEDSACTION;
throw new IllegalArgumentException("Unknown ParticipantStatus code '"+codeString+"'");
}
public Enumeration<ParticipantStatus> fromType(Base code) throws FHIRException {
if (code == null)
return null;
if (code.isEmpty())
return new Enumeration<ParticipantStatus>(this);
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.ACCEPTED);
if ("declined".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.DECLINED);
if ("tentative".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.TENTATIVE);
if ("needs-action".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.NEEDSACTION);
throw new FHIRException("Unknown ParticipantStatus code '"+codeString+"'");
}
public String toCode(ParticipantStatus code) {
if (code == ParticipantStatus.ACCEPTED)
return "accepted";
if (code == ParticipantStatus.DECLINED)
return "declined";
if (code == ParticipantStatus.TENTATIVE)
return "tentative";
if (code == ParticipantStatus.NEEDSACTION)
return "needs-action";
return "?";
}
public String toSystem(ParticipantStatus code) {
return code.getSystem();
}
}
/**
* This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate.
*/
@ -244,7 +122,7 @@ public class AppointmentResponse extends DomainResource {
@Child(name = "participantStatus", type = {CodeType.class}, order=6, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="accepted | declined | tentative | needs-action", formalDefinition="Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/participationstatus")
protected Enumeration<ParticipantStatus> participantStatus;
protected Enumeration<ParticipationStatus> participantStatus;
/**
* Additional comments about the appointment.
@ -253,7 +131,7 @@ public class AppointmentResponse extends DomainResource {
@Description(shortDefinition="Additional comments", formalDefinition="Additional comments about the appointment." )
protected StringType comment;
private static final long serialVersionUID = -206747026L;
private static final long serialVersionUID = -1779591264L;
/**
* Constructor
@ -265,10 +143,10 @@ public class AppointmentResponse extends DomainResource {
/**
* Constructor
*/
public AppointmentResponse(Reference appointment, Enumeration<ParticipantStatus> participantStatus) {
public AppointmentResponse(Reference appointment, ParticipationStatus participantStatus) {
super();
this.appointment = appointment;
this.participantStatus = participantStatus;
this.setAppointment(appointment);
this.setParticipantStatus(participantStatus);
}
/**
@ -315,7 +193,7 @@ public class AppointmentResponse extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
*/
public Identifier getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
@ -490,7 +368,7 @@ public class AppointmentResponse extends DomainResource {
}
/**
* @return The first repetition of repeating field {@link #participantType}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #participantType}, creating it if it does not already exist {3}
*/
public CodeableConcept getParticipantTypeFirstRep() {
if (getParticipantType().isEmpty()) {
@ -526,12 +404,12 @@ public class AppointmentResponse extends DomainResource {
/**
* @return {@link #participantStatus} (Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
*/
public Enumeration<ParticipantStatus> getParticipantStatusElement() {
public Enumeration<ParticipationStatus> getParticipantStatusElement() {
if (this.participantStatus == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AppointmentResponse.participantStatus");
else if (Configuration.doAutoCreate())
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory()); // bb
this.participantStatus = new Enumeration<ParticipationStatus>(new ParticipationStatusEnumFactory()); // bb
return this.participantStatus;
}
@ -546,7 +424,7 @@ public class AppointmentResponse extends DomainResource {
/**
* @param value {@link #participantStatus} (Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
*/
public AppointmentResponse setParticipantStatusElement(Enumeration<ParticipantStatus> value) {
public AppointmentResponse setParticipantStatusElement(Enumeration<ParticipationStatus> value) {
this.participantStatus = value;
return this;
}
@ -554,16 +432,16 @@ public class AppointmentResponse extends DomainResource {
/**
* @return Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
*/
public ParticipantStatus getParticipantStatus() {
public ParticipationStatus getParticipantStatus() {
return this.participantStatus == null ? null : this.participantStatus.getValue();
}
/**
* @param value Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
*/
public AppointmentResponse setParticipantStatus(ParticipantStatus value) {
public AppointmentResponse setParticipantStatus(ParticipationStatus value) {
if (this.participantStatus == null)
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory());
this.participantStatus = new Enumeration<ParticipationStatus>(new ParticipationStatusEnumFactory());
this.participantStatus.setValue(value);
return this;
}
@ -654,7 +532,7 @@ public class AppointmentResponse extends DomainResource {
case 100571: /*end*/ return this.end == null ? new Base[0] : new Base[] {this.end}; // InstantType
case 841294093: /*participantType*/ return this.participantType == null ? new Base[0] : this.participantType.toArray(new Base[this.participantType.size()]); // CodeableConcept
case 92645877: /*actor*/ return this.actor == null ? new Base[0] : new Base[] {this.actor}; // Reference
case 996096261: /*participantStatus*/ return this.participantStatus == null ? new Base[0] : new Base[] {this.participantStatus}; // Enumeration<ParticipantStatus>
case 996096261: /*participantStatus*/ return this.participantStatus == null ? new Base[0] : new Base[] {this.participantStatus}; // Enumeration<ParticipationStatus>
case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType
default: return super.getProperty(hash, name, checkValid);
}
@ -683,8 +561,8 @@ public class AppointmentResponse extends DomainResource {
this.actor = TypeConvertor.castToReference(value); // Reference
return value;
case 996096261: // participantStatus
value = new ParticipantStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
this.participantStatus = (Enumeration) value; // Enumeration<ParticipantStatus>
value = new ParticipationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
this.participantStatus = (Enumeration) value; // Enumeration<ParticipationStatus>
return value;
case 950398559: // comment
this.comment = TypeConvertor.castToString(value); // StringType
@ -709,8 +587,8 @@ public class AppointmentResponse extends DomainResource {
} else if (name.equals("actor")) {
this.actor = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("participantStatus")) {
value = new ParticipantStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
this.participantStatus = (Enumeration) value; // Enumeration<ParticipantStatus>
value = new ParticipationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
this.participantStatus = (Enumeration) value; // Enumeration<ParticipationStatus>
} else if (name.equals("comment")) {
this.comment = TypeConvertor.castToString(value); // StringType
} else
@ -859,7 +737,7 @@ public class AppointmentResponse extends DomainResource {
* Path: <b>AppointmentResponse.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="actor", path="AppointmentResponse.actor", description="The Person, Location/HealthcareService or Device that this appointment response replies for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") }, target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
@SearchParamDefinition(name="actor", path="AppointmentResponse.actor", description="The Person, Location/HealthcareService or Device that this appointment response replies for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_ACTOR = "actor";
/**
* <b>Fluent Client</b> search parameter constant for <b>actor</b>
@ -877,98 +755,6 @@ public class AppointmentResponse extends DomainResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ACTOR = new ca.uhn.fhir.model.api.Include("AppointmentResponse:actor").toLocked();
/**
* Search parameter: <b>identifier</b>
* <p>
* Description: <b>An Identifier in this appointment response</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="identifier", path="AppointmentResponse.identifier", description="An Identifier in this appointment response", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
* <p>
* Description: <b>An Identifier in this appointment response</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.identifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>practitioner</b>
* <p>
* Description: <b>This Response is for this Practitioner</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="AppointmentResponse.actor.where(resolve() is Practitioner)", description="This Response is for this Practitioner", type="reference", target={Practitioner.class } )
public static final String SP_PRACTITIONER = "practitioner";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>
* <p>
* Description: <b>This Response is for this Practitioner</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AppointmentResponse:practitioner</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("AppointmentResponse:practitioner").toLocked();
/**
* Search parameter: <b>part-status</b>
* <p>
* Description: <b>The participants acceptance status for this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.participantStatus</b><br>
* </p>
*/
@SearchParamDefinition(name="part-status", path="AppointmentResponse.participantStatus", description="The participants acceptance status for this appointment", type="token" )
public static final String SP_PART_STATUS = "part-status";
/**
* <b>Fluent Client</b> search parameter constant for <b>part-status</b>
* <p>
* Description: <b>The participants acceptance status for this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.participantStatus</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PART_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PART_STATUS);
/**
* Search parameter: <b>patient</b>
* <p>
* Description: <b>This Response is for this Patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="AppointmentResponse.actor.where(resolve() is Patient)", description="This Response is for this Patient", type="reference", target={Patient.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
* <p>
* Description: <b>This Response is for this Patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AppointmentResponse:patient</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("AppointmentResponse:patient").toLocked();
/**
* Search parameter: <b>appointment</b>
* <p>
@ -995,12 +781,32 @@ public class AppointmentResponse extends DomainResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_APPOINTMENT = new ca.uhn.fhir.model.api.Include("AppointmentResponse:appointment").toLocked();
/**
* Search parameter: <b>identifier</b>
* <p>
* Description: <b>An Identifier in this appointment response</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="identifier", path="AppointmentResponse.identifier", description="An Identifier in this appointment response", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
* <p>
* Description: <b>An Identifier in this appointment response</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.identifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>location</b>
* <p>
* Description: <b>This Response is for this Location</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor</b><br>
* Path: <b>AppointmentResponse.actor.where(resolve() is Location)</b><br>
* </p>
*/
@SearchParamDefinition(name="location", path="AppointmentResponse.actor.where(resolve() is Location)", description="This Response is for this Location", type="reference", target={Location.class } )
@ -1010,7 +816,7 @@ public class AppointmentResponse extends DomainResource {
* <p>
* Description: <b>This Response is for this Location</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor</b><br>
* Path: <b>AppointmentResponse.actor.where(resolve() is Location)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION);
@ -1021,6 +827,78 @@ public class AppointmentResponse extends DomainResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("AppointmentResponse:location").toLocked();
/**
* Search parameter: <b>part-status</b>
* <p>
* Description: <b>The participants acceptance status for this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.participantStatus</b><br>
* </p>
*/
@SearchParamDefinition(name="part-status", path="AppointmentResponse.participantStatus", description="The participants acceptance status for this appointment", type="token" )
public static final String SP_PART_STATUS = "part-status";
/**
* <b>Fluent Client</b> search parameter constant for <b>part-status</b>
* <p>
* Description: <b>The participants acceptance status for this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>AppointmentResponse.participantStatus</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PART_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PART_STATUS);
/**
* Search parameter: <b>patient</b>
* <p>
* Description: <b>This Response is for this Patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor.where(resolve() is Patient)</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="AppointmentResponse.actor.where(resolve() is Patient)", description="This Response is for this Patient", type="reference", target={Patient.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
* <p>
* Description: <b>This Response is for this Patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor.where(resolve() is Patient)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AppointmentResponse:patient</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("AppointmentResponse:patient").toLocked();
/**
* Search parameter: <b>practitioner</b>
* <p>
* Description: <b>This Response is for this Practitioner</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor.where(resolve() is Practitioner)</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="AppointmentResponse.actor.where(resolve() is Practitioner)", description="This Response is for this Practitioner", type="reference", target={Practitioner.class } )
public static final String SP_PRACTITIONER = "practitioner";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>
* <p>
* Description: <b>This Response is for this Practitioner</b><br>
* Type: <b>reference</b><br>
* Path: <b>AppointmentResponse.actor.where(resolve() is Practitioner)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AppointmentResponse:practitioner</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("AppointmentResponse:practitioner").toLocked();
}

View File

@ -1,267 +1,269 @@
package org.hl7.fhir.r5.model;
/*-
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* Base definition for all elements that are defined inside a resource - but not those in a data type.
*/
@DatatypeDef(name="BackboneElement")
public abstract class BackboneElement extends Element implements IBaseBackboneElement {
/**
package org.hl7.fhir.r5.model;
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* Base StructureDefinition for BackboneElement Type: Base definition for all elements that are defined inside a resource - but not those in a data type.
*/
@DatatypeDef(name="BackboneElement")
public abstract class BackboneElement extends Element implements IBaseBackboneElement {
/**
* May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
*/
@Child(name = "modifierExtension", type = {Extension.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=true, summary=true)
@Description(shortDefinition="Extensions that cannot be ignored even if unrecognized", formalDefinition="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." )
protected List<Extension> modifierExtension;
private static final long serialVersionUID = -1431673179L;
/**
* Constructor
*/
public BackboneElement() {
super();
}
/**
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
*/
@Child(name = "modifierExtension", type = {Extension.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=true, summary=true)
@Description(shortDefinition="Extensions that cannot be ignored even if unrecognized", formalDefinition="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." )
protected List<Extension> modifierExtension;
private static final long serialVersionUID = -1431673179L;
/**
* Constructor
*/
public BackboneElement() {
super();
}
/**
* @return {@link #modifierExtension} (May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).)
*/
public List<Extension> getModifierExtension() {
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
return this.modifierExtension;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public BackboneElement setModifierExtension(List<Extension> theModifierExtension) {
this.modifierExtension = theModifierExtension;
return this;
}
public boolean hasModifierExtension() {
if (this.modifierExtension == null)
return false;
for (Extension item : this.modifierExtension)
if (!item.isEmpty())
return true;
return false;
}
public Extension addModifierExtension() { //3
Extension t = new Extension();
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return t;
}
public BackboneElement addModifierExtension(Extension t) { //3
if (t == null)
return this;
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #modifierExtension}, creating it if it does not already exist
*/
public Extension getModifierExtensionFirstRep() {
if (getModifierExtension().isEmpty()) {
addModifierExtension();
}
return getModifierExtension().get(0);
}
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -298878168: /*modifierExtension*/ return new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return this.modifierExtension == null ? new Base[0] : this.modifierExtension.toArray(new Base[this.modifierExtension.size()]); // Extension
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case -298878168: // modifierExtension
this.getModifierExtension().add(TypeConvertor.castToExtension(value)); // Extension
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("modifierExtension")) {
this.getModifierExtension().add(TypeConvertor.castToExtension(value));
} else
return super.setProperty(name, value);
return value;
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: return addModifierExtension();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return new String[] {"Extension"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("modifierExtension")) {
return addModifierExtension();
}
else
return super.addChild(name);
}
public String fhirType() {
return "BackboneElement";
}
public abstract BackboneElement copy();
public void copyValues(BackboneElement dst) {
super.copyValues(dst);
if (modifierExtension != null) {
dst.modifierExtension = new ArrayList<Extension>();
for (Extension i : modifierExtension)
dst.modifierExtension.add(i.copy());
};
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof BackboneElement))
return false;
BackboneElement o = (BackboneElement) other_;
return compareDeep(modifierExtension, o.modifierExtension, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof BackboneElement))
return false;
BackboneElement o = (BackboneElement) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension);
}
// added from java-adornments.txt:
public void checkNoModifiers(String noun, String verb) throws FHIRException {
if (hasModifierExtension()) {
throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb);
}
}
// end addition
}
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).)
*/
public List<Extension> getModifierExtension() {
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
return this.modifierExtension;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public BackboneElement setModifierExtension(List<Extension> theModifierExtension) {
this.modifierExtension = theModifierExtension;
return this;
}
public boolean hasModifierExtension() {
if (this.modifierExtension == null)
return false;
for (Extension item : this.modifierExtension)
if (!item.isEmpty())
return true;
return false;
}
public Extension addModifierExtension() { //3
Extension t = new Extension();
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return t;
}
public BackboneElement addModifierExtension(Extension t) { //3
if (t == null)
return this;
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #modifierExtension}, creating it if it does not already exist {3}
*/
public Extension getModifierExtensionFirstRep() {
if (getModifierExtension().isEmpty()) {
addModifierExtension();
}
return getModifierExtension().get(0);
}
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -298878168: /*modifierExtension*/ return new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return this.modifierExtension == null ? new Base[0] : this.modifierExtension.toArray(new Base[this.modifierExtension.size()]); // Extension
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case -298878168: // modifierExtension
this.getModifierExtension().add(TypeConvertor.castToExtension(value)); // Extension
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("modifierExtension")) {
this.getModifierExtension().add(TypeConvertor.castToExtension(value));
} else
return super.setProperty(name, value);
return value;
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: return addModifierExtension();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return new String[] {"Extension"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("modifierExtension")) {
return addModifierExtension();
}
else
return super.addChild(name);
}
public String fhirType() {
return "BackboneElement";
}
public abstract BackboneElement copy();
public void copyValues(BackboneElement dst) {
super.copyValues(dst);
if (modifierExtension != null) {
dst.modifierExtension = new ArrayList<Extension>();
for (Extension i : modifierExtension)
dst.modifierExtension.add(i.copy());
};
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof BackboneElement))
return false;
BackboneElement o = (BackboneElement) other_;
return compareDeep(modifierExtension, o.modifierExtension, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof BackboneElement))
return false;
BackboneElement o = (BackboneElement) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension);
}
// Manual code (from Configuration.txt)t:
public void checkNoModifiers(String noun, String verb) throws FHIRException {
if (hasModifierExtension()) {
throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb);
}
}
// end addition
}

View File

@ -1,269 +1,269 @@
package org.hl7.fhir.r5.model;
/*-
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* Base definition for the few data types that are allowed to carry modifier extensions.
*/
@DatatypeDef(name="BackboneType")
public abstract class BackboneType extends DataType implements IBaseBackboneElement {
/**
package org.hl7.fhir.r5.model;
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* Base StructureDefinition for BackboneType Type: Base definition for the few data types that are allowed to carry modifier extensions.
*/
@DatatypeDef(name="BackboneType")
public abstract class BackboneType extends DataType implements IBaseBackboneElement {
/**
* May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
*/
@Child(name = "modifierExtension", type = {Extension.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=true, summary=true)
@Description(shortDefinition="Extensions that cannot be ignored even if unrecognized", formalDefinition="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." )
protected List<Extension> modifierExtension;
private static final long serialVersionUID = -1431673179L;
/**
* Constructor
*/
public BackboneType() {
super();
}
/**
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
*/
@Child(name = "modifierExtension", type = {Extension.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=true, summary=true)
@Description(shortDefinition="Extensions that cannot be ignored even if unrecognized", formalDefinition="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." )
protected List<Extension> modifierExtension;
private static final long serialVersionUID = -1431673179L;
/**
* Constructor
*/
public BackboneType() {
super();
}
/**
* @return {@link #modifierExtension} (May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).)
*/
public List<Extension> getModifierExtension() {
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
return this.modifierExtension;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public BackboneType setModifierExtension(List<Extension> theModifierExtension) {
this.modifierExtension = theModifierExtension;
return this;
}
public boolean hasModifierExtension() {
if (this.modifierExtension == null)
return false;
for (Extension item : this.modifierExtension)
if (!item.isEmpty())
return true;
return false;
}
public Extension addModifierExtension() { //3
Extension t = new Extension();
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return t;
}
public BackboneType addModifierExtension(Extension t) { //3
if (t == null)
return this;
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #modifierExtension}, creating it if it does not already exist
*/
public Extension getModifierExtensionFirstRep() {
if (getModifierExtension().isEmpty()) {
addModifierExtension();
}
return getModifierExtension().get(0);
}
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -298878168: /*modifierExtension*/ return new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return this.modifierExtension == null ? new Base[0] : this.modifierExtension.toArray(new Base[this.modifierExtension.size()]); // Extension
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case -298878168: // modifierExtension
this.getModifierExtension().add(TypeConvertor.castToExtension(value)); // Extension
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("modifierExtension")) {
this.getModifierExtension().add(TypeConvertor.castToExtension(value));
} else
return super.setProperty(name, value);
return value;
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: return addModifierExtension();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return new String[] {"Extension"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("modifierExtension")) {
return addModifierExtension();
}
else
return super.addChild(name);
}
public String fhirType() {
return "BackboneType";
}
public abstract BackboneType copy();
public void copyValues(BackboneType dst) {
super.copyValues(dst);
if (modifierExtension != null) {
dst.modifierExtension = new ArrayList<Extension>();
for (Extension i : modifierExtension)
dst.modifierExtension.add(i.copy());
};
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof BackboneType))
return false;
BackboneType o = (BackboneType) other_;
return compareDeep(modifierExtension, o.modifierExtension, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof BackboneType))
return false;
BackboneType o = (BackboneType) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension);
}
// added from java-adornments.txt:
public void checkNoModifiers(String noun, String verb) throws FHIRException {
if (hasModifierExtension()) {
throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb);
}
}
// end addition
}
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).)
*/
public List<Extension> getModifierExtension() {
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
return this.modifierExtension;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public BackboneType setModifierExtension(List<Extension> theModifierExtension) {
this.modifierExtension = theModifierExtension;
return this;
}
public boolean hasModifierExtension() {
if (this.modifierExtension == null)
return false;
for (Extension item : this.modifierExtension)
if (!item.isEmpty())
return true;
return false;
}
public Extension addModifierExtension() { //3
Extension t = new Extension();
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return t;
}
public BackboneType addModifierExtension(Extension t) { //3
if (t == null)
return this;
if (this.modifierExtension == null)
this.modifierExtension = new ArrayList<Extension>();
this.modifierExtension.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #modifierExtension}, creating it if it does not already exist {3}
*/
public Extension getModifierExtensionFirstRep() {
if (getModifierExtension().isEmpty()) {
addModifierExtension();
}
return getModifierExtension().get(0);
}
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -298878168: /*modifierExtension*/ return new Property("modifierExtension", "Extension", "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", 0, java.lang.Integer.MAX_VALUE, modifierExtension);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return this.modifierExtension == null ? new Base[0] : this.modifierExtension.toArray(new Base[this.modifierExtension.size()]); // Extension
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case -298878168: // modifierExtension
this.getModifierExtension().add(TypeConvertor.castToExtension(value)); // Extension
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("modifierExtension")) {
this.getModifierExtension().add(TypeConvertor.castToExtension(value));
} else
return super.setProperty(name, value);
return value;
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: return addModifierExtension();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -298878168: /*modifierExtension*/ return new String[] {"Extension"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("modifierExtension")) {
return addModifierExtension();
}
else
return super.addChild(name);
}
public String fhirType() {
return "BackboneType";
}
public abstract BackboneType copy();
public void copyValues(BackboneType dst) {
super.copyValues(dst);
if (modifierExtension != null) {
dst.modifierExtension = new ArrayList<Extension>();
for (Extension i : modifierExtension)
dst.modifierExtension.add(i.copy());
};
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof BackboneType))
return false;
BackboneType o = (BackboneType) other_;
return compareDeep(modifierExtension, o.modifierExtension, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof BackboneType))
return false;
BackboneType o = (BackboneType) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension);
}
// Manual code (from Configuration.txt)t:
public void checkNoModifiers(String noun, String verb) throws FHIRException {
if (hasModifierExtension()) {
throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb);
}
}
// end addition
}

View File

@ -157,7 +157,9 @@ private Map<String, Object> userData;
return false;
}
protected abstract void listChildren(List<Property> result) ;
protected void listChildren(List<Property> result) {
// nothing
}
public Base setProperty(String name, Base value) throws FHIRException {
throw new FHIRException("Attempt to set unknown property "+name);
@ -354,4 +356,7 @@ private Map<String, Object> userData;
return null;
}
public void copyValues(Base dst) {
}
}

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