convo30_40 updated

This commit is contained in:
markiantorno 2020-02-07 15:51:24 -05:00
parent 10eb8b98e4
commit 69b615b915
83 changed files with 2324 additions and 2407 deletions

View File

@ -4,6 +4,10 @@ import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.ContactDetail;
import org.hl7.fhir.dstu3.model.Contributor.ContributorType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r4.model.StringType;
import java.util.Collections;
public class ActivityDefinition30_40 {
@ -12,35 +16,35 @@ public class ActivityDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.ActivityDefinition tgt = new org.hl7.fhir.dstu3.model.ActivityDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
if (src.hasUseContext()) {
@ -79,8 +83,8 @@ public class ActivityDefinition30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasRelatedArtifact()) {
for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(VersionConvertor_30_40.convertRelatedArtifact(t));
}
@ -121,35 +125,35 @@ public class ActivityDefinition30_40 {
return null;
org.hl7.fhir.r4.model.ActivityDefinition tgt = new org.hl7.fhir.r4.model.ActivityDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
if (src.hasUseContext()) {
@ -174,8 +178,8 @@ public class ActivityDefinition30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasRelatedArtifact()) {
for (org.hl7.fhir.dstu3.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(VersionConvertor_30_40.convertRelatedArtifact(t));
}
@ -216,14 +220,14 @@ public class ActivityDefinition30_40 {
return null;
org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.getExpression().setDescription(src.getDescription());
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.hasLanguage())
tgt.getExpression().setLanguage(src.getLanguage());
if (src.hasExpression())
tgt.getExpression().setExpression(src.getExpression());
if (src.hasDescriptionElement())
tgt.getExpression().setDescriptionElement((StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.hasLanguageElement())
tgt.getExpression().setLanguageElement((CodeType) VersionConvertor_30_40.convertType(src.getLanguageElement()));
if (src.hasExpressionElement())
tgt.getExpression().setExpressionElement((StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
return tgt;
}
@ -232,14 +236,14 @@ public class ActivityDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.getExpression().hasDescription())
tgt.setDescription(src.getExpression().getDescription());
if (src.getExpression().hasLanguage())
tgt.setLanguage(src.getExpression().getLanguage());
if (src.getExpression().hasExpression())
tgt.setExpression(src.getExpression().getExpression());
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.getExpression().hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getDescriptionElement()));
if (src.getExpression().hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getLanguageElement()));
if (src.getExpression().hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getExpressionElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class AllergyIntolerance30_40 {
@ -190,8 +191,8 @@ public class AllergyIntolerance30_40 {
if (src.hasManifestation()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasOnset())
tgt.setOnsetElement(VersionConvertor_30_40.convertDateTime(src.getOnsetElement()));
if (src.hasSeverity())
@ -214,8 +215,8 @@ public class AllergyIntolerance30_40 {
if (src.hasManifestation()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasOnset())
tgt.setOnsetElement(VersionConvertor_30_40.convertDateTime(src.getOnsetElement()));
if (src.hasSeverity())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Appointment30_40 {
@ -31,26 +32,26 @@ public class Appointment30_40 {
if (src.hasIndication()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getIndication()) tgt.addReasonReference(VersionConvertor_30_40.convertReference(t));
}
if (src.hasPriority())
tgt.setPriority(src.getPriority());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPriorityElement())
tgt.setPriorityElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getPriorityElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSupportingInformation()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(VersionConvertor_30_40.convertReference(t));
}
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertInstant(src.getStartElement()));
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasMinutesDuration())
tgt.setMinutesDuration(src.getMinutesDuration());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.r4.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasMinutesDurationElement())
tgt.setMinutesDurationElement((org.hl7.fhir.r4.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getMinutesDurationElement()));
if (src.hasSlot()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_30_40.convertReference(t));
}
if (src.hasCreated())
tgt.setCreatedElement(VersionConvertor_30_40.convertDateTime(src.getCreatedElement()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasIncomingReferral()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getIncomingReferral()) tgt.addBasedOn(VersionConvertor_30_40.convertReference(t));
}
@ -89,26 +90,26 @@ public class Appointment30_40 {
if (src.hasReasonReference()) {
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) tgt.addIndication(VersionConvertor_30_40.convertReference(t));
}
if (src.hasPriority())
tgt.setPriority(src.getPriority());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPriorityElement())
tgt.setPriorityElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getPriorityElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSupportingInformation()) {
for (org.hl7.fhir.r4.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(VersionConvertor_30_40.convertReference(t));
}
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertInstant(src.getStartElement()));
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasMinutesDuration())
tgt.setMinutesDuration(src.getMinutesDuration());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.dstu3.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasMinutesDurationElement())
tgt.setMinutesDurationElement((org.hl7.fhir.dstu3.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getMinutesDurationElement()));
if (src.hasSlot()) {
for (org.hl7.fhir.r4.model.Reference t : src.getSlot()) tgt.addSlot(VersionConvertor_30_40.convertReference(t));
}
if (src.hasCreated())
tgt.setCreatedElement(VersionConvertor_30_40.convertDateTime(src.getCreatedElement()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasBasedOn()) {
for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addIncomingReferral(VersionConvertor_30_40.convertReference(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class AppointmentResponse30_40 {
@ -17,8 +18,8 @@ public class AppointmentResponse30_40 {
tgt.setAppointment(VersionConvertor_30_40.convertReference(src.getAppointment()));
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertInstant(src.getStartElement()));
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.r4.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasParticipantType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -26,8 +27,8 @@ public class AppointmentResponse30_40 {
tgt.setActor(VersionConvertor_30_40.convertReference(src.getActor()));
if (src.hasParticipantStatus())
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
@ -43,8 +44,8 @@ public class AppointmentResponse30_40 {
tgt.setAppointment(VersionConvertor_30_40.convertReference(src.getAppointment()));
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertInstant(src.getStartElement()));
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.dstu3.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasParticipantType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getParticipantType()) tgt.addParticipantType(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -52,8 +53,8 @@ public class AppointmentResponse30_40 {
tgt.setActor(VersionConvertor_30_40.convertReference(src.getActor()));
if (src.hasParticipantStatus())
tgt.setParticipantStatus(convertParticipantStatus(src.getParticipantStatus()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class AuditEvent30_40 {
@ -21,8 +22,8 @@ public class AuditEvent30_40 {
tgt.setRecordedElement(VersionConvertor_30_40.convertInstant(src.getRecordedElement()));
if (src.hasOutcome())
tgt.setOutcome(convertAuditEventOutcome(src.getOutcome()));
if (src.hasOutcomeDesc())
tgt.setOutcomeDesc(src.getOutcomeDesc());
if (src.hasOutcomeDescElement())
tgt.setOutcomeDescElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getOutcomeDescElement()));
if (src.hasPurposeOfEvent()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfEvent()) tgt.addPurposeOfEvent(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -53,8 +54,8 @@ public class AuditEvent30_40 {
tgt.setRecordedElement(VersionConvertor_30_40.convertInstant(src.getRecordedElement()));
if (src.hasOutcome())
tgt.setOutcome(convertAuditEventOutcome(src.getOutcome()));
if (src.hasOutcomeDesc())
tgt.setOutcomeDesc(src.getOutcomeDesc());
if (src.hasOutcomeDescElement())
tgt.setOutcomeDescElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getOutcomeDescElement()));
if (src.hasPurposeOfEvent()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getPurposeOfEvent()) tgt.addPurposeOfEvent(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -121,12 +122,12 @@ public class AuditEvent30_40 {
if (src.getWho().hasReference() || src.getWho().hasDisplay() || src.getWho().hasExtension() || src.getWho().hasId())
tgt.setReference(VersionConvertor_30_40.convertReference(src.getWho()));
}
if (src.hasAltId())
tgt.setAltId(src.getAltId());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasRequestor())
tgt.setRequestor(src.getRequestor());
if (src.hasAltIdElement())
tgt.setAltIdElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getAltIdElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasRequestorElement())
tgt.setRequestorElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getRequestorElement()));
if (src.hasLocation())
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
if (src.hasPolicy()) {
@ -154,12 +155,12 @@ public class AuditEvent30_40 {
tgt.setWho(VersionConvertor_30_40.convertReference(src.getReference()));
if (src.hasUserId())
tgt.getWho().setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getUserId()));
if (src.hasAltId())
tgt.setAltId(src.getAltId());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasRequestor())
tgt.setRequestor(src.getRequestor());
if (src.hasAltIdElement())
tgt.setAltIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getAltIdElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasRequestorElement())
tgt.setRequestorElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getRequestorElement()));
if (src.hasLocation())
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
if (src.hasPolicy()) {
@ -180,8 +181,8 @@ public class AuditEvent30_40 {
return null;
org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAddress())
tgt.setAddress(src.getAddress());
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getAddressElement()));
if (src.hasType())
tgt.setType(convertAuditEventAgentNetworkType(src.getType()));
return tgt;
@ -192,8 +193,8 @@ public class AuditEvent30_40 {
return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAddress())
tgt.setAddress(src.getAddress());
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getAddressElement()));
if (src.hasType())
tgt.setType(convertAuditEventAgentNetworkType(src.getType()));
return tgt;
@ -255,10 +256,10 @@ public class AuditEvent30_40 {
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_30_40.convertCoding(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasQuery())
tgt.setQuery(src.getQuery());
if (src.hasDetail()) {
@ -287,10 +288,10 @@ public class AuditEvent30_40 {
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.r4.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_30_40.convertCoding(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasQuery())
tgt.setQuery(src.getQuery());
if (src.hasDetail()) {
@ -304,8 +305,8 @@ public class AuditEvent30_40 {
return null;
org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasValue())
tgt.setValue(new org.hl7.fhir.r4.model.Base64BinaryType(src.getValue()));
return tgt;
@ -316,8 +317,8 @@ public class AuditEvent30_40 {
return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasValueStringType())
tgt.setValue(src.getValueStringType().getValue().getBytes());
else if (src.hasValueBase64BinaryType())
@ -364,8 +365,8 @@ public class AuditEvent30_40 {
return null;
org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSite())
tgt.setSite(src.getSite());
if (src.hasSiteElement())
tgt.setSiteElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getSiteElement()));
if (src.hasObserver())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getObserver().getIdentifier()));
if (src.hasType()) {
@ -379,8 +380,8 @@ public class AuditEvent30_40 {
return null;
org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSite())
tgt.setSite(src.getSite());
if (src.hasSiteElement())
tgt.setSiteElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getSiteElement()));
if (src.hasIdentifier())
tgt.getObserver().setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasType()) {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Basic30_40 {

View File

@ -1,7 +1,9 @@
package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.Base64BinaryType;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Binary30_40 {
@ -10,12 +12,12 @@ public class Binary30_40 {
return null;
org.hl7.fhir.dstu3.model.Binary tgt = new org.hl7.fhir.dstu3.model.Binary();
VersionConvertor_30_40.copyResource(src, tgt);
if (src.hasContentType())
tgt.setContentType(src.getContentType());
if (src.hasContentTypeElement())
tgt.setContentTypeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getContentTypeElement()));
if (src.hasSecurityContext())
tgt.setSecurityContext(VersionConvertor_30_40.convertReference(src.getSecurityContext()));
if (src.hasData())
tgt.setContent(src.getData());
if (src.hasDataElement())
tgt.setContentElement((Base64BinaryType) VersionConvertor_30_40.convertType(src.getDataElement()));
return tgt;
}
@ -24,12 +26,12 @@ public class Binary30_40 {
return null;
org.hl7.fhir.r4.model.Binary tgt = new org.hl7.fhir.r4.model.Binary();
VersionConvertor_30_40.copyResource(src, tgt);
if (src.hasContentType())
tgt.setContentType(src.getContentType());
if (src.hasContentTypeElement())
tgt.setContentTypeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getContentTypeElement()));
if (src.hasSecurityContext())
tgt.setSecurityContext(VersionConvertor_30_40.convertReference(src.getSecurityContext()));
if (src.hasContent())
tgt.setData(src.getContent());
if (src.hasContentElement())
tgt.setDataElement((org.hl7.fhir.r4.model.Base64BinaryType) VersionConvertor_30_40.convertType(src.getContentElement()));
return tgt;
}
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class BodySite30_40 {
@ -13,10 +14,10 @@ public class BodySite30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasImage()) {
for (org.hl7.fhir.r4.model.Attachment t : src.getImage()) tgt.addImage(VersionConvertor_30_40.convertAttachment(t));
}
@ -33,10 +34,10 @@ public class BodySite30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasImage()) {
for (org.hl7.fhir.dstu3.model.Attachment t : src.getImage()) tgt.addImage(VersionConvertor_30_40.convertAttachment(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Bundle30_40 {
@ -14,8 +15,8 @@ public class Bundle30_40 {
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasType())
tgt.setType(convertBundleType(src.getType()));
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getTotalElement()));
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
@ -36,8 +37,8 @@ public class Bundle30_40 {
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasType())
tgt.setType(convertBundleType(src.getType()));
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getTotalElement()));
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
@ -57,8 +58,8 @@ public class Bundle30_40 {
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasFullUrl())
tgt.setFullUrl(src.getFullUrl());
if (src.hasFullUrlElement())
tgt.setFullUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getFullUrlElement()));
if (src.hasResource())
tgt.setResource(VersionConvertor_30_40.convertResource(src.getResource(), false));
if (src.hasSearch())
@ -78,8 +79,8 @@ public class Bundle30_40 {
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasFullUrl())
tgt.setFullUrl(src.getFullUrl());
if (src.hasFullUrlElement())
tgt.setFullUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getFullUrlElement()));
if (src.hasResource())
tgt.setResource(VersionConvertor_30_40.convertResource(src.getResource(), false));
if (src.hasSearch())
@ -98,16 +99,16 @@ public class Bundle30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMethod())
tgt.setMethod(convertHTTPVerb(src.getMethod()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasIfNoneMatch())
tgt.setIfNoneMatch(src.getIfNoneMatch());
if (src.hasIfModifiedSince())
tgt.setIfModifiedSince(src.getIfModifiedSince());
if (src.hasIfMatch())
tgt.setIfMatch(src.getIfMatch());
if (src.hasIfNoneExist())
tgt.setIfNoneExist(src.getIfNoneExist());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIfNoneMatchElement())
tgt.setIfNoneMatchElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getIfNoneMatchElement()));
if (src.hasIfModifiedSinceElement())
tgt.setIfModifiedSinceElement((org.hl7.fhir.r4.model.InstantType) VersionConvertor_30_40.convertType(src.getIfModifiedSinceElement()));
if (src.hasIfMatchElement())
tgt.setIfMatchElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getIfMatchElement()));
if (src.hasIfNoneExistElement())
tgt.setIfNoneExistElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getIfNoneExistElement()));
return tgt;
}
@ -118,16 +119,16 @@ public class Bundle30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMethod())
tgt.setMethod(convertHTTPVerb(src.getMethod()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasIfNoneMatch())
tgt.setIfNoneMatch(src.getIfNoneMatch());
if (src.hasIfModifiedSince())
tgt.setIfModifiedSince(src.getIfModifiedSince());
if (src.hasIfMatch())
tgt.setIfMatch(src.getIfMatch());
if (src.hasIfNoneExist())
tgt.setIfNoneExist(src.getIfNoneExist());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIfNoneMatchElement())
tgt.setIfNoneMatchElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getIfNoneMatchElement()));
if (src.hasIfModifiedSinceElement())
tgt.setIfModifiedSinceElement((org.hl7.fhir.dstu3.model.InstantType) VersionConvertor_30_40.convertType(src.getIfModifiedSinceElement()));
if (src.hasIfMatchElement())
tgt.setIfMatchElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getIfMatchElement()));
if (src.hasIfNoneExistElement())
tgt.setIfNoneExistElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getIfNoneExistElement()));
return tgt;
}
@ -136,12 +137,12 @@ public class Bundle30_40 {
return null;
org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasStatus())
tgt.setStatus(src.getStatus());
if (src.hasLocation())
tgt.setLocation(src.getLocation());
if (src.hasEtag())
tgt.setEtag(src.getEtag());
if (src.hasStatusElement())
tgt.setStatusElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getStatusElement()));
if (src.hasLocationElement())
tgt.setLocationElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getLocationElement()));
if (src.hasEtagElement())
tgt.setEtagElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getEtagElement()));
if (src.hasLastModified())
tgt.setLastModifiedElement(VersionConvertor_30_40.convertInstant(src.getLastModifiedElement()));
if (src.hasOutcome())
@ -154,12 +155,12 @@ public class Bundle30_40 {
return null;
org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasStatus())
tgt.setStatus(src.getStatus());
if (src.hasLocation())
tgt.setLocation(src.getLocation());
if (src.hasEtag())
tgt.setEtag(src.getEtag());
if (src.hasStatusElement())
tgt.setStatusElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getStatusElement()));
if (src.hasLocationElement())
tgt.setLocationElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getLocationElement()));
if (src.hasEtagElement())
tgt.setEtagElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getEtagElement()));
if (src.hasLastModified())
tgt.setLastModifiedElement(VersionConvertor_30_40.convertInstant(src.getLastModifiedElement()));
if (src.hasOutcome())
@ -174,8 +175,8 @@ public class Bundle30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertSearchEntryMode(src.getMode()));
if (src.hasScore())
tgt.setScore(src.getScore());
if (src.hasScoreElement())
tgt.setScoreElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_30_40.convertType(src.getScoreElement()));
return tgt;
}
@ -186,8 +187,8 @@ public class Bundle30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertSearchEntryMode(src.getMode()));
if (src.hasScore())
tgt.setScore(src.getScore());
if (src.hasScoreElement())
tgt.setScoreElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getScoreElement()));
return tgt;
}
@ -196,10 +197,10 @@ public class Bundle30_40 {
return null;
org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasRelation())
tgt.setRelation(src.getRelation());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasRelationElement())
tgt.setRelationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getRelationElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
return tgt;
}
@ -208,10 +209,10 @@ public class Bundle30_40 {
return null;
org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasRelation())
tgt.setRelation(src.getRelation());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasRelationElement())
tgt.setRelationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getRelationElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
return tgt;
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertorConstants;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class CapabilityStatement30_40 {
@ -11,37 +12,37 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement();
VersionConvertor_30_40.copyDomainResource(src, tgt, "http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown");
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasKind())
tgt.setKind(convertCapabilityStatementKind(src.getKind()));
if (src.hasInstantiates()) {
@ -89,37 +90,37 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement tgt = new org.hl7.fhir.r4.model.CapabilityStatement();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasKind())
tgt.setKind(convertCapabilityStatementKind(src.getKind()));
if (src.hasInstantiates()) {
@ -164,8 +165,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertDocumentMode(src.getMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCanonicalToReference(src.getProfileElement()));
return tgt;
@ -178,8 +179,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertDocumentMode(src.getMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasProfile())
tgt.setProfileElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getProfile()));
return tgt;
@ -190,10 +191,10 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
return tgt;
}
@ -202,10 +203,10 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UrlType) VersionConvertor_30_40.convertType(src.getUrlElement()));
return tgt;
}
@ -247,10 +248,10 @@ public class CapabilityStatement30_40 {
if (src.hasEndpoint()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t));
}
if (src.hasReliableCache())
tgt.setReliableCache(src.getReliableCache());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasReliableCacheElement())
tgt.setReliableCacheElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getReliableCacheElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasSupportedMessage()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent t : src.getSupportedMessage()) tgt.addSupportedMessage(convertCapabilityStatementMessagingSupportedMessageComponent(t));
}
@ -288,10 +289,10 @@ public class CapabilityStatement30_40 {
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t));
}
if (src.hasReliableCache())
tgt.setReliableCache(src.getReliableCache());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasReliableCacheElement())
tgt.setReliableCacheElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getReliableCacheElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasSupportedMessage()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent t : src.getSupportedMessage()) tgt.addSupportedMessage(convertCapabilityStatementMessagingSupportedMessageComponent(t));
}
@ -325,8 +326,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasProtocol())
tgt.setProtocol(VersionConvertor_30_40.convertCoding(src.getProtocol()));
if (src.hasAddress())
tgt.setAddress(src.getAddress());
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getAddressElement()));
return tgt;
}
@ -337,8 +338,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasProtocol())
tgt.setProtocol(VersionConvertor_30_40.convertCoding(src.getProtocol()));
if (src.hasAddress())
tgt.setAddress(src.getAddress());
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.r4.model.UrlType) VersionConvertor_30_40.convertType(src.getAddressElement()));
return tgt;
}
@ -373,8 +374,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertRestfulCapabilityMode(src.getMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasSecurity())
tgt.setSecurity(convertCapabilityStatementRestSecurityComponent(src.getSecurity()));
if (src.hasResource()) {
@ -402,8 +403,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertRestfulCapabilityMode(src.getMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasSecurity())
tgt.setSecurity(convertCapabilityStatementRestSecurityComponent(src.getSecurity()));
if (src.hasResource()) {
@ -429,8 +430,8 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDefinition())
tgt.setDefinition(VersionConvertor_30_40.convertCanonicalToReference(src.getDefinitionElement()));
return tgt;
@ -441,8 +442,8 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDefinition())
tgt.setDefinitionElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getDefinition()));
return tgt;
@ -453,27 +454,27 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfileElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getProfile()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasInteraction()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
}
if (src.hasVersioning())
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
if (src.hasReadHistory())
tgt.setReadHistory(src.getReadHistory());
if (src.hasUpdateCreate())
tgt.setUpdateCreate(src.getUpdateCreate());
if (src.hasConditionalCreate())
tgt.setConditionalCreate(src.getConditionalCreate());
if (src.hasReadHistoryElement())
tgt.setReadHistoryElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getReadHistoryElement()));
if (src.hasUpdateCreateElement())
tgt.setUpdateCreateElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getUpdateCreateElement()));
if (src.hasConditionalCreateElement())
tgt.setConditionalCreateElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getConditionalCreateElement()));
if (src.hasConditionalRead())
tgt.setConditionalRead(convertConditionalReadStatus(src.getConditionalRead()));
if (src.hasConditionalUpdate())
tgt.setConditionalUpdate(src.getConditionalUpdate());
if (src.hasConditionalUpdateElement())
tgt.setConditionalUpdateElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getConditionalUpdateElement()));
if (src.hasConditionalDelete())
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
if (src.hasReferencePolicy()) {
@ -496,27 +497,27 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCanonicalToReference(src.getProfileElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasInteraction()) {
for (org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent t : src.getInteraction()) tgt.addInteraction(convertResourceInteractionComponent(t));
}
if (src.hasVersioning())
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
if (src.hasReadHistory())
tgt.setReadHistory(src.getReadHistory());
if (src.hasUpdateCreate())
tgt.setUpdateCreate(src.getUpdateCreate());
if (src.hasConditionalCreate())
tgt.setConditionalCreate(src.getConditionalCreate());
if (src.hasReadHistoryElement())
tgt.setReadHistoryElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getReadHistoryElement()));
if (src.hasUpdateCreateElement())
tgt.setUpdateCreateElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getUpdateCreateElement()));
if (src.hasConditionalCreateElement())
tgt.setConditionalCreateElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getConditionalCreateElement()));
if (src.hasConditionalRead())
tgt.setConditionalRead(convertConditionalReadStatus(src.getConditionalRead()));
if (src.hasConditionalUpdate())
tgt.setConditionalUpdate(src.getConditionalUpdate());
if (src.hasConditionalUpdateElement())
tgt.setConditionalUpdateElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getConditionalUpdateElement()));
if (src.hasConditionalDelete())
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
if (src.hasReferencePolicy()) {
@ -539,14 +540,14 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertSearchParamType(src.getType()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -555,14 +556,14 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertSearchParamType(src.getType()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -571,13 +572,13 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCors())
tgt.setCors(src.getCors());
if (src.hasCorsElement())
tgt.setCorsElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getCorsElement()));
if (src.hasService()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -586,13 +587,13 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCors())
tgt.setCors(src.getCors());
if (src.hasCorsElement())
tgt.setCorsElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getCorsElement()));
if (src.hasService()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -601,10 +602,10 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasReleaseDate())
tgt.setReleaseDateElement(VersionConvertor_30_40.convertDateTime(src.getReleaseDateElement()));
return tgt;
@ -615,10 +616,10 @@ public class CapabilityStatement30_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasReleaseDate())
tgt.setReleaseDateElement(VersionConvertor_30_40.convertDateTime(src.getReleaseDateElement()));
return tgt;
@ -785,8 +786,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -797,8 +798,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -865,8 +866,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -877,8 +878,8 @@ public class CapabilityStatement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}

View File

@ -2,7 +2,10 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.BooleanType;
import java.util.List;
import java.util.Collections;
public class CarePlan30_40 {
@ -26,47 +29,29 @@ public class CarePlan30_40 {
tgt.addPartOf(VersionConvertor_30_40.convertReference(t));
}
if (src.hasStatus()) {
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
}
tgt.setStatus(convertCarePlanStatus(src.getStatus()));
}
if (src.hasIntent()) {
if (src.hasIntent()) {
tgt.setIntent(convertCarePlanIntent(src.getIntent()));
}
tgt.setIntent(convertCarePlanIntent(src.getIntent()));
}
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) {
tgt.addCategory(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasTitle()) {
if (src.hasTitle()) {
tgt.setTitle(src.getTitle());
}
}
if (src.hasDescription()) {
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
}
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSubject()) {
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
}
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
}
if (src.hasEncounter()) {
if (src.hasEncounter()) {
tgt.setContext(VersionConvertor_30_40.convertReference(src.getEncounter()));
}
tgt.setContext(VersionConvertor_30_40.convertReference(src.getEncounter()));
}
if (src.hasPeriod()) {
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
}
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
}
if (src.hasAuthor()) {
if (src.hasAuthor()) {
tgt.addAuthor(VersionConvertor_30_40.convertReference(src.getAuthor()));
}
tgt.addAuthor(VersionConvertor_30_40.convertReference(src.getAuthor()));
}
for (org.hl7.fhir.r4.model.Reference t : src.getCareTeam()) {
tgt.addCareTeam(VersionConvertor_30_40.convertReference(t));
@ -113,12 +98,10 @@ public class CarePlan30_40 {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) {
tgt.addCategory(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle());
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
}
@ -170,14 +153,10 @@ public class CarePlan30_40 {
tgt.addProgress(VersionConvertor_30_40.convertAnnotation(t));
}
if (src.hasReference()) {
if (src.hasReference()) {
tgt.setReference(VersionConvertor_30_40.convertReference(src.getReference()));
}
tgt.setReference(VersionConvertor_30_40.convertReference(src.getReference()));
}
if (src.hasDetail()) {
if (src.hasDetail()) {
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
return tgt;
}
@ -197,14 +176,10 @@ public class CarePlan30_40 {
tgt.addProgress(VersionConvertor_30_40.convertAnnotation(t));
}
if (src.hasReference()) {
if (src.hasReference()) {
tgt.setReference(VersionConvertor_30_40.convertReference(src.getReference()));
}
tgt.setReference(VersionConvertor_30_40.convertReference(src.getReference()));
}
if (src.hasDetail()) {
if (src.hasDetail()) {
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
return tgt;
}
@ -223,9 +198,7 @@ public class CarePlan30_40 {
tgt.addExtension(t);
}
if (src.hasCode()) {
if (src.hasCode()) {
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
}
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
}
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) {
tgt.addReasonCode(VersionConvertor_30_40.convertCodeableConcept(t));
@ -237,9 +210,7 @@ public class CarePlan30_40 {
tgt.addGoal(VersionConvertor_30_40.convertReference(t));
}
if (src.hasStatus()) {
if (src.hasStatus()) {
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
}
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
}
if (src.hasStatusReason()) {
org.hl7.fhir.r4.model.Coding code = new org.hl7.fhir.r4.model.Coding();
@ -249,44 +220,29 @@ public class CarePlan30_40 {
org.hl7.fhir.r4.model.CodeableConcept t = new org.hl7.fhir.r4.model.CodeableConcept(code);
tgt.setStatusReason(t);
}
if (src.hasProhibited()) {
if (src.hasProhibited()) {
tgt.setDoNotPerform(src.getProhibited());
}
if (src.hasProhibitedElement()) {
tgt.setDoNotPerformElement((BooleanType) VersionConvertor_30_40.convertType(src.getProhibitedElement()));
}
if (src.hasScheduled()) {
if (src.hasScheduled()) {
tgt.setScheduled(VersionConvertor_30_40.convertType(src.getScheduled()));
}
tgt.setScheduled(VersionConvertor_30_40.convertType(src.getScheduled()));
}
if (src.hasLocation()) {
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
}
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
}
for (org.hl7.fhir.dstu3.model.Reference t : src.getPerformer()) {
tgt.addPerformer(VersionConvertor_30_40.convertReference(t));
}
if (src.hasProduct()) {
if (src.hasProduct()) {
tgt.setProduct(VersionConvertor_30_40.convertType(src.getProduct()));
}
tgt.setProduct(VersionConvertor_30_40.convertType(src.getProduct()));
}
if (src.hasDailyAmount()) {
if (src.hasDailyAmount()) {
tgt.setDailyAmount(VersionConvertor_30_40.convertSimpleQuantity(src.getDailyAmount()));
}
tgt.setDailyAmount(VersionConvertor_30_40.convertSimpleQuantity(src.getDailyAmount()));
}
if (src.hasQuantity()) {
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_30_40.convertSimpleQuantity(src.getQuantity()));
}
}
if (src.hasDescription()) {
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
tgt.setQuantity(VersionConvertor_30_40.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -325,8 +281,8 @@ public class CarePlan30_40 {
tgt.setStatusReason(coding.get(0).getCode());
}
}
if (src.hasDoNotPerform()) {
tgt.setProhibited(src.getDoNotPerform());
if (src.hasDoNotPerformElement()) {
tgt.setProhibitedElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getDoNotPerformElement()));
}
if (src.hasScheduled()) {
tgt.setScheduled(VersionConvertor_30_40.convertType(src.getScheduled()));
@ -346,9 +302,8 @@ public class CarePlan30_40 {
if (src.hasQuantity()) {
tgt.setQuantity(VersionConvertor_30_40.convertSimpleQuantity(src.getQuantity()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class CareTeam30_40 {
@ -18,8 +19,8 @@ public class CareTeam30_40 {
if (src.hasCategory()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
if (src.hasEncounter())
@ -57,8 +58,8 @@ public class CareTeam30_40 {
if (src.hasCategory()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
if (src.hasContext())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class ClinicalImpression30_40 {
@ -17,8 +18,8 @@ public class ClinicalImpression30_40 {
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
if (src.hasEncounter())
@ -40,8 +41,8 @@ public class ClinicalImpression30_40 {
if (src.hasProtocol()) {
for (org.hl7.fhir.r4.model.UriType t : src.getProtocol()) tgt.addProtocol(t.getValue());
}
if (src.hasSummary())
tgt.setSummary(src.getSummary());
if (src.hasSummaryElement())
tgt.setSummaryElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getSummaryElement()));
if (src.hasFinding()) {
for (org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
}
@ -69,8 +70,8 @@ public class ClinicalImpression30_40 {
tgt.setStatus(convertClinicalImpressionStatus(src.getStatus()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSubject())
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
if (src.hasContext())
@ -92,8 +93,8 @@ public class ClinicalImpression30_40 {
if (src.hasProtocol()) {
for (org.hl7.fhir.dstu3.model.UriType t : src.getProtocol()) tgt.addProtocol(t.getValue());
}
if (src.hasSummary())
tgt.setSummary(src.getSummary());
if (src.hasSummaryElement())
tgt.setSummaryElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getSummaryElement()));
if (src.hasFinding()) {
for (org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t));
}
@ -118,8 +119,8 @@ public class ClinicalImpression30_40 {
tgt.setItemCodeableConcept(VersionConvertor_30_40.convertCodeableConcept(src.getItemCodeableConcept()));
if (src.hasItemReference())
tgt.setItemReference(VersionConvertor_30_40.convertReference(src.getItemReference()));
if (src.hasBasis())
tgt.setBasis(src.getBasis());
if (src.hasBasisElement())
tgt.setBasisElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getBasisElement()));
return tgt;
}
@ -132,8 +133,8 @@ public class ClinicalImpression30_40 {
tgt.setItem(VersionConvertor_30_40.convertType(src.getItemCodeableConcept()));
else if (src.hasItemReference())
tgt.setItem(VersionConvertor_30_40.convertType(src.getItemReference()));
if (src.hasBasis())
tgt.setBasis(src.getBasis());
if (src.hasBasisElement())
tgt.setBasisElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getBasisElement()));
return tgt;
}

View File

@ -1,7 +1,9 @@
package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class CodeSystem30_40 {
@ -10,53 +12,53 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem tgt = new org.hl7.fhir.r4.model.CodeSystem();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCaseSensitive())
tgt.setCaseSensitive(src.getCaseSensitive());
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getValueSetElement()));
if (src.hasHierarchyMeaning())
tgt.setHierarchyMeaning(convertCodeSystemHierarchyMeaning(src.getHierarchyMeaning()));
if (src.hasCompositional())
tgt.setCompositional(src.getCompositional());
if (src.hasVersionNeeded())
tgt.setVersionNeeded(src.getVersionNeeded());
if (src.hasCompositionalElement())
tgt.setCompositionalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getCompositionalElement()));
if (src.hasVersionNeededElement())
tgt.setVersionNeededElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getVersionNeededElement()));
if (src.hasContent())
tgt.setContent(convertCodeSystemContentMode(src.getContent()));
if (src.hasCount())
tgt.setCount(src.getCount());
if (src.hasCountElement())
tgt.setCountElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getCountElement()));
if (src.hasFilter()) {
for (org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter()) tgt.addFilter(convertCodeSystemFilterComponent(t));
}
@ -74,53 +76,53 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.dstu3.model.CodeSystem tgt = new org.hl7.fhir.dstu3.model.CodeSystem();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifierFirstRep()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCaseSensitive())
tgt.setCaseSensitive(src.getCaseSensitive());
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getValueSetElement()));
if (src.hasHierarchyMeaning())
tgt.setHierarchyMeaning(convertCodeSystemHierarchyMeaning(src.getHierarchyMeaning()));
if (src.hasCompositional())
tgt.setCompositional(src.getCompositional());
if (src.hasVersionNeeded())
tgt.setVersionNeeded(src.getVersionNeeded());
if (src.hasCompositionalElement())
tgt.setCompositionalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getCompositionalElement()));
if (src.hasVersionNeededElement())
tgt.setVersionNeededElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getVersionNeededElement()));
if (src.hasContent())
tgt.setContent(convertCodeSystemContentMode(src.getContent()));
if (src.hasCount())
tgt.setCount(src.getCount());
if (src.hasCountElement())
tgt.setCountElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getCountElement()));
if (src.hasFilter()) {
for (org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter()) tgt.addFilter(convertCodeSystemFilterComponent(t));
}
@ -172,15 +174,14 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasOperator()) {
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.CodeSystem.FilterOperator> t : src.getOperator()) VersionConvertor_30_40.copyElement(t, tgt.addOperatorElement().setValue(VersionConvertor_30_40.convertFilterOperator(t.getValue())));
}
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
if (src.hasValueElement())
tgt.setValueElement((StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -189,15 +190,14 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasOperator()) {
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.CodeSystem.FilterOperator> t : src.getOperator()) VersionConvertor_30_40.copyElement(t, tgt.addOperatorElement().setValue(VersionConvertor_30_40.convertFilterOperator(t.getValue())));
}
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -240,12 +240,12 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptDefinitionDesignationComponent(t));
}
@ -263,12 +263,12 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptDefinitionDesignationComponent(t));
}
@ -286,12 +286,12 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getLanguageElement()));
if (src.hasUse())
tgt.setUse(VersionConvertor_30_40.convertCoding(src.getUse()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -300,12 +300,12 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getLanguageElement()));
if (src.hasUse())
tgt.setUse(VersionConvertor_30_40.convertCoding(src.getUse()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -314,8 +314,8 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
return tgt;
@ -326,8 +326,8 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
return tgt;
@ -338,12 +338,12 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.PropertyComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasType())
tgt.setType(convertPropertyType(src.getType()));
return tgt;
@ -354,12 +354,12 @@ public class CodeSystem30_40 {
return null;
org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasType())
tgt.setType(convertPropertyType(src.getType()));
return tgt;

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Communication30_40 {

View File

@ -1,7 +1,9 @@
package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class CompartmentDefinition30_40 {
@ -10,27 +12,27 @@ public class CompartmentDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.CompartmentDefinition tgt = new org.hl7.fhir.dstu3.model.CompartmentDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
@ -39,8 +41,8 @@ public class CompartmentDefinition30_40 {
}
if (src.hasCode())
tgt.setCode(convertCompartmentType(src.getCode()));
if (src.hasSearch())
tgt.setSearch(src.getSearch());
if (src.hasSearchElement())
tgt.setSearchElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getSearchElement()));
if (src.hasResource()) {
for (org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent t : src.getResource()) tgt.addResource(convertCompartmentDefinitionResourceComponent(t));
}
@ -52,27 +54,27 @@ public class CompartmentDefinition30_40 {
return null;
org.hl7.fhir.r4.model.CompartmentDefinition tgt = new org.hl7.fhir.r4.model.CompartmentDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
@ -81,8 +83,8 @@ public class CompartmentDefinition30_40 {
}
if (src.hasCode())
tgt.setCode(convertCompartmentType(src.getCode()));
if (src.hasSearch())
tgt.setSearch(src.getSearch());
if (src.hasSearchElement())
tgt.setSearchElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getSearchElement()));
if (src.hasResource()) {
for (org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent t : src.getResource()) tgt.addResource(convertCompartmentDefinitionResourceComponent(t));
}
@ -94,13 +96,13 @@ public class CompartmentDefinition30_40 {
return null;
org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasParam()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getParam()) tgt.addParam(t.getValue());
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -109,13 +111,13 @@ public class CompartmentDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasParam()) {
for (org.hl7.fhir.r4.model.StringType t : src.getParam()) tgt.addParam(t.getValue());
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Composition30_40 {
@ -27,8 +28,8 @@ public class Composition30_40 {
if (src.hasAuthor()) {
for (org.hl7.fhir.r4.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_30_40.convertReference(t));
}
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasConfidentiality())
tgt.setConfidentiality(convertDocumentConfidentiality(src.getConfidentiality()));
if (src.hasAttester()) {
@ -70,8 +71,8 @@ public class Composition30_40 {
if (src.hasAuthor()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) tgt.addAuthor(VersionConvertor_30_40.convertReference(t));
}
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasConfidentiality())
tgt.setConfidentiality(convertDocumentConfidentiality(src.getConfidentiality()));
if (src.hasAttester()) {
@ -290,8 +291,8 @@ public class Composition30_40 {
return null;
org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasText())
@ -316,8 +317,8 @@ public class Composition30_40 {
return null;
org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasText())

View File

@ -1,7 +1,11 @@
package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.UriType;
import java.util.Collections;
public class ConceptMap30_40 {
@ -10,39 +14,39 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.dstu3.model.ConceptMap tgt = new org.hl7.fhir.dstu3.model.ConceptMap();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasSource())
tgt.setSource(VersionConvertor_30_40.convertType(src.getSource()));
if (src.hasTarget())
@ -58,33 +62,33 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap tgt = new org.hl7.fhir.r4.model.ConceptMap();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasSource()) {
org.hl7.fhir.r4.model.Type t = VersionConvertor_30_40.convertType(src.getSource());
tgt.setSource(t instanceof org.hl7.fhir.r4.model.Reference ? new org.hl7.fhir.r4.model.CanonicalType(((org.hl7.fhir.r4.model.Reference) t).getReference()) : t);
@ -160,12 +164,12 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSource())
tgt.setSource(src.getSource());
if (src.hasSourceVersion())
tgt.setSourceVersion(src.getSourceVersion());
if (src.hasTarget())
tgt.setTarget(src.getTarget());
if (src.hasSourceElement())
tgt.setSourceElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getSourceElement()));
if (src.hasSourceVersionElement())
tgt.setSourceVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getSourceVersionElement()));
if (src.hasTargetElement())
tgt.setTargetElement((UriType) VersionConvertor_30_40.convertType(src.getTargetElement()));
if (src.hasTargetVersion())
tgt.setTargetVersion(src.getTargetVersion());
if (src.hasElement()) {
@ -181,14 +185,14 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSource())
tgt.setSource(src.getSource());
if (src.hasSourceVersion())
tgt.setSourceVersion(src.getSourceVersion());
if (src.hasTarget())
tgt.setTarget(src.getTarget());
if (src.hasTargetVersion())
tgt.setTargetVersion(src.getTargetVersion());
if (src.hasSourceElement())
tgt.setSourceElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getSourceElement()));
if (src.hasSourceVersionElement())
tgt.setSourceVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getSourceVersionElement()));
if (src.hasTargetElement())
tgt.setTargetElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getTargetElement()));
if (src.hasTargetVersionElement())
tgt.setTargetVersionElement((StringType) VersionConvertor_30_40.convertType(src.getTargetVersionElement()));
if (src.hasElement()) {
for (org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t));
}
@ -204,12 +208,12 @@ public class ConceptMap30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertConceptMapGroupUnmappedMode(src.getMode()));
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getUrlElement()));
return tgt;
}
@ -220,12 +224,12 @@ public class ConceptMap30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertConceptMapGroupUnmappedMode(src.getMode()));
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
return tgt;
}
@ -264,14 +268,14 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasProperty())
tgt.setProperty(src.getProperty());
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasValue())
tgt.setCode(src.getValue());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getPropertyElement()));
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasValueElement())
tgt.setCodeElement((StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
return tgt;
}
@ -280,14 +284,14 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasProperty())
tgt.setProperty(src.getProperty());
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasCode())
tgt.setValue(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getPropertyElement()));
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasCodeElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
return tgt;
}
@ -296,10 +300,10 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasTarget()) {
for (org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t));
}
@ -311,10 +315,10 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasTarget()) {
for (org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t));
}
@ -326,14 +330,14 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasEquivalence())
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasDependsOn()) {
for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}
@ -348,14 +352,14 @@ public class ConceptMap30_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasEquivalence())
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasDependsOn()) {
for (org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Condition30_40 {

View File

@ -4,6 +4,7 @@ import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeableConcept;
import java.util.List;
import java.util.Collections;
public class Consent30_40 {
@ -21,7 +22,7 @@ public class Consent30_40 {
}
if (src.hasPatient())
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
if (src.hasDateTime())
if (src.hasDateTimeElement())
tgt.setDateTimeElement(VersionConvertor_30_40.convertDateTime(src.getDateTimeElement()));
if (src.hasConsentingParty()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getConsentingParty()) tgt.addPerformer(VersionConvertor_30_40.convertReference(t));
@ -87,7 +88,7 @@ public class Consent30_40 {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_30_40.convertCodeableConcept(t));
if (src.hasPatient())
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
if (src.hasDateTime())
if (src.hasDateTimeElement())
tgt.setDateTimeElement(VersionConvertor_30_40.convertDateTime(src.getDateTimeElement()));
for (org.hl7.fhir.r4.model.Reference t : src.getPerformer()) tgt.addConsentingParty(VersionConvertor_30_40.convertReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getOrganization()) tgt.addOrganization(VersionConvertor_30_40.convertReference(t));
@ -231,10 +232,10 @@ public class Consent30_40 {
return null;
org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAuthority())
tgt.setAuthority(src.getAuthority());
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasAuthorityElement())
tgt.setAuthorityElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getAuthorityElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
return tgt;
}
@ -243,10 +244,10 @@ public class Consent30_40 {
return null;
org.hl7.fhir.r4.model.Consent.ConsentPolicyComponent tgt = new org.hl7.fhir.r4.model.Consent.ConsentPolicyComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAuthority())
tgt.setAuthority(src.getAuthority());
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasAuthorityElement())
tgt.setAuthorityElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getAuthorityElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
return tgt;
}

View File

@ -2,6 +2,12 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.BooleanType;
import org.hl7.fhir.r4.model.MarkdownType;
import org.hl7.fhir.r4.model.StringType;
import org.hl7.fhir.r4.model.UriType;
import java.util.Collections;
public class DataElement30_40 {
@ -15,20 +21,20 @@ public class DataElement30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasVersionElement())
tgt.setVersionElement((StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasPublisherElement())
tgt.setPublisherElement((StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
@ -38,8 +44,8 @@ public class DataElement30_40 {
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasMapping()) {
for (org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));
}
@ -61,12 +67,12 @@ public class DataElement30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIdentity())
tgt.setIdentity(src.getIdentity());
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasUriElement())
tgt.setUriElement((UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasCommentElement())
tgt.setCommentElement((StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class DetectedIssue30_40 {
@ -27,10 +28,10 @@ public class DetectedIssue30_40 {
if (src.hasImplicated()) {
for (org.hl7.fhir.r4.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_30_40.convertReference(t));
}
if (src.hasDetail())
tgt.setDetail(src.getDetail());
if (src.hasReference())
tgt.setReference(src.getReference());
if (src.hasDetailElement())
tgt.setDetailElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDetailElement()));
if (src.hasReferenceElement())
tgt.setReferenceElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getReferenceElement()));
if (src.hasMitigation()) {
for (org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
}
@ -59,10 +60,10 @@ public class DetectedIssue30_40 {
if (src.hasImplicated()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getImplicated()) tgt.addImplicated(VersionConvertor_30_40.convertReference(t));
}
if (src.hasDetail())
tgt.setDetail(src.getDetail());
if (src.hasReference())
tgt.setReference(src.getReference());
if (src.hasDetailElement())
tgt.setDetailElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDetailElement()));
if (src.hasReferenceElement())
tgt.setReferenceElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getReferenceElement()));
if (src.hasMitigation()) {
for (org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent t : src.getMitigation()) tgt.addMitigation(convertDetectedIssueMitigationComponent(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class DeviceUseStatement30_40 {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class DiagnosticReport30_40 {
@ -42,8 +43,8 @@ public class DiagnosticReport30_40 {
if (src.hasImage()) {
for (org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent t : src.getImage()) tgt.addMedia(convertDiagnosticReportImageComponent(t));
}
if (src.hasConclusion())
tgt.setConclusion(src.getConclusion());
if (src.hasConclusionElement())
tgt.setConclusionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getConclusionElement()));
if (src.hasCodedDiagnosis()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCodedDiagnosis()) tgt.addConclusionCode(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -90,8 +91,8 @@ public class DiagnosticReport30_40 {
if (src.hasMedia()) {
for (org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent t : src.getMedia()) tgt.addImage(convertDiagnosticReportImageComponent(t));
}
if (src.hasConclusion())
tgt.setConclusion(src.getConclusion());
if (src.hasConclusionElement())
tgt.setConclusionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getConclusionElement()));
if (src.hasConclusionCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getConclusionCode()) tgt.addCodedDiagnosis(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -106,8 +107,8 @@ public class DiagnosticReport30_40 {
return null;
org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasLink())
tgt.setLink(VersionConvertor_30_40.convertReference(src.getLink()));
return tgt;
@ -118,8 +119,8 @@ public class DiagnosticReport30_40 {
return null;
org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasLink())
tgt.setLink(VersionConvertor_30_40.convertReference(src.getLink()));
return tgt;

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class DocumentReference30_40 {
@ -40,8 +41,8 @@ public class DocumentReference30_40 {
if (src.hasRelatesTo()) {
for (org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -82,8 +83,8 @@ public class DocumentReference30_40 {
if (src.hasRelatesTo()) {
for (org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent t : src.getRelatesTo()) tgt.addRelatesTo(convertDocumentReferenceRelatesToComponent(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSecurityLabel()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getSecurityLabel()) tgt.addSecurityLabel(VersionConvertor_30_40.convertCodeableConcept(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Encounter30_40 {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Endpoint30_40 {
@ -17,8 +18,8 @@ public class Endpoint30_40 {
tgt.setStatus(convertEndpointStatus(src.getStatus()));
if (src.hasConnectionType())
tgt.setConnectionType(VersionConvertor_30_40.convertCoding(src.getConnectionType()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasManagingOrganization())
tgt.setManagingOrganization(VersionConvertor_30_40.convertReference(src.getManagingOrganization()));
if (src.hasContact()) {
@ -32,8 +33,8 @@ public class Endpoint30_40 {
if (src.hasPayloadMimeType()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getPayloadMimeType()) tgt.addPayloadMimeType(t.getValue());
}
if (src.hasAddress())
tgt.setAddress(src.getAddress());
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.r4.model.UrlType) VersionConvertor_30_40.convertType(src.getAddressElement()));
if (src.hasHeader()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getHeader()) tgt.addHeader(t.getValue());
}
@ -52,8 +53,8 @@ public class Endpoint30_40 {
tgt.setStatus(convertEndpointStatus(src.getStatus()));
if (src.hasConnectionType())
tgt.setConnectionType(VersionConvertor_30_40.convertCoding(src.getConnectionType()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasManagingOrganization())
tgt.setManagingOrganization(VersionConvertor_30_40.convertReference(src.getManagingOrganization()));
if (src.hasContact()) {
@ -67,8 +68,8 @@ public class Endpoint30_40 {
if (src.hasPayloadMimeType()) {
for (org.hl7.fhir.r4.model.CodeType t : src.getPayloadMimeType()) tgt.addPayloadMimeType(t.getValue());
}
if (src.hasAddress())
tgt.setAddress(src.getAddress());
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getAddressElement()));
if (src.hasHeader()) {
for (org.hl7.fhir.r4.model.StringType t : src.getHeader()) tgt.addHeader(t.getValue());
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class EpisodeOfCare30_40 {

View File

@ -5,6 +5,7 @@ import org.hl7.fhir.dstu3.model.ExpansionProfile.DesignationIncludeDesignationCo
import org.hl7.fhir.dstu3.model.ExpansionProfile.SystemVersionProcessingMode;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Type;
import java.util.Collections;
public class ExpansionProfile30_40 {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class FamilyMemberHistory30_40 {
@ -58,16 +59,16 @@ public class FamilyMemberHistory30_40 {
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasRelationship())
tgt.setRelationship(VersionConvertor_30_40.convertCodeableConcept(src.getRelationship()));
if (src.hasBorn())
tgt.setBorn(VersionConvertor_30_40.convertType(src.getBorn()));
if (src.hasAge())
tgt.setAge(VersionConvertor_30_40.convertType(src.getAge()));
if (src.hasEstimatedAge())
tgt.setEstimatedAge(src.getEstimatedAge());
if (src.hasEstimatedAgeElement())
tgt.setEstimatedAgeElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getEstimatedAgeElement()));
if (src.hasDeceased())
tgt.setDeceased(VersionConvertor_30_40.convertType(src.getDeceased()));
if (src.hasReasonCode()) {
@ -104,16 +105,16 @@ public class FamilyMemberHistory30_40 {
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasRelationship())
tgt.setRelationship(VersionConvertor_30_40.convertCodeableConcept(src.getRelationship()));
if (src.hasBorn())
tgt.setBorn(VersionConvertor_30_40.convertType(src.getBorn()));
if (src.hasAge())
tgt.setAge(VersionConvertor_30_40.convertType(src.getAge()));
if (src.hasEstimatedAge())
tgt.setEstimatedAge(src.getEstimatedAge());
if (src.hasEstimatedAgeElement())
tgt.setEstimatedAgeElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getEstimatedAgeElement()));
if (src.hasDeceased())
tgt.setDeceased(VersionConvertor_30_40.convertType(src.getDeceased()));
if (src.hasReasonCode()) {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Flag30_40 {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Goal30_40 {
@ -29,9 +30,9 @@ public class Goal30_40 {
if (src.hasTarget())
tgt.setTarget(convertGoalTargetComponent(src.getTargetFirstRep()));
if (src.hasStatusDate())
tgt.setStatusDateElement(VersionConvertor_30_40.convertDate(src.getStatusDateElement()));
if (src.hasStatusReason())
tgt.setStatusReason(src.getStatusReason());
tgt.setStatusDateElement(VersionConvertor_30_40.convertDate(src.getStatusDateElement()));
if (src.hasStatusReasonElement())
tgt.setStatusReasonElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getStatusReasonElement()));
if (src.hasExpressedBy())
tgt.setExpressedBy(VersionConvertor_30_40.convertReference(src.getExpressedBy()));
if (src.hasAddresses()) {
@ -73,9 +74,9 @@ public class Goal30_40 {
if (src.hasTarget())
tgt.addTarget(convertGoalTargetComponent(src.getTarget()));
if (src.hasStatusDate())
tgt.setStatusDateElement(VersionConvertor_30_40.convertDate(src.getStatusDateElement()));
if (src.hasStatusReason())
tgt.setStatusReason(src.getStatusReason());
tgt.setStatusDateElement(VersionConvertor_30_40.convertDate(src.getStatusDateElement()));
if (src.hasStatusReasonElement())
tgt.setStatusReasonElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getStatusReasonElement()));
if (src.hasExpressedBy())
tgt.setExpressedBy(VersionConvertor_30_40.convertReference(src.getExpressedBy()));
if (src.hasAddresses()) {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class GraphDefinition30_40 {
@ -82,37 +83,37 @@ public class GraphDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.GraphDefinition tgt = new org.hl7.fhir.dstu3.model.GraphDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertCode(src.getStartElement()));
if (src.hasProfile())
tgt.setProfile(src.getProfile());
if (src.hasProfileElement())
tgt.setProfileElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getProfileElement()));
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent t : src.getLink()) tgt.addLink(convertGraphDefinitionLinkComponent(t));
}
@ -124,37 +125,37 @@ public class GraphDefinition30_40 {
return null;
org.hl7.fhir.r4.model.GraphDefinition tgt = new org.hl7.fhir.r4.model.GraphDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertCode(src.getStartElement()));
if (src.hasProfile())
tgt.setProfile(src.getProfile());
if (src.hasProfileElement())
tgt.setProfileElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getProfileElement()));
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkComponent t : src.getLink()) tgt.addLink(convertGraphDefinitionLinkComponent(t));
}
@ -166,16 +167,16 @@ public class GraphDefinition30_40 {
return null;
org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.hasSliceName())
tgt.setSliceName(src.getSliceName());
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.hasSliceNameElement())
tgt.setSliceNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getSliceNameElement()));
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasTarget()) {
for (org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetComponent t : src.getTarget()) tgt.addTarget(convertGraphDefinitionLinkTargetComponent(t));
}
@ -187,16 +188,16 @@ public class GraphDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.hasSliceName())
tgt.setSliceName(src.getSliceName());
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.hasSliceNameElement())
tgt.setSliceNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getSliceNameElement()));
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasTarget()) {
for (org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent t : src.getTarget()) tgt.addTarget(convertGraphDefinitionLinkTargetComponent(t));
}
@ -212,10 +213,10 @@ public class GraphDefinition30_40 {
tgt.setCode(convertCompartmentCode(src.getCode()));
if (src.hasRule())
tgt.setRule(convertGraphCompartmentRule(src.getRule()));
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -228,10 +229,10 @@ public class GraphDefinition30_40 {
tgt.setCode(convertCompartmentCode(src.getCode()));
if (src.hasRule())
tgt.setRule(convertGraphCompartmentRule(src.getRule()));
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -240,10 +241,10 @@ public class GraphDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasProfile())
tgt.setProfile(src.getProfile());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasProfileElement())
tgt.setProfileElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getProfileElement()));
if (src.hasCompartment()) {
for (org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent t : src.getCompartment()) tgt.addCompartment(convertGraphDefinitionLinkTargetCompartmentComponent(t));
}
@ -258,10 +259,10 @@ public class GraphDefinition30_40 {
return null;
org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasProfile())
tgt.setProfile(src.getProfile());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasProfileElement())
tgt.setProfileElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getProfileElement()));
if (src.hasCompartment()) {
for (org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent t : src.getCompartment()) tgt.addCompartment(convertGraphDefinitionLinkTargetCompartmentComponent(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Group30_40 {
@ -13,18 +14,18 @@ public class Group30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasType())
tgt.setType(convertGroupType(src.getType()));
if (src.hasActual())
tgt.setActual(src.getActual());
if (src.hasActualElement())
tgt.setActualElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActualElement()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasQuantity())
tgt.setQuantity(src.getQuantity());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasQuantityElement())
tgt.setQuantityElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getQuantityElement()));
if (src.hasCharacteristic()) {
for (org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
}
@ -42,18 +43,18 @@ public class Group30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasType())
tgt.setType(convertGroupType(src.getType()));
if (src.hasActual())
tgt.setActual(src.getActual());
if (src.hasActualElement())
tgt.setActualElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActualElement()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasQuantity())
tgt.setQuantity(src.getQuantity());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasQuantityElement())
tgt.setQuantityElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getQuantityElement()));
if (src.hasCharacteristic()) {
for (org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent t : src.getCharacteristic()) tgt.addCharacteristic(convertGroupCharacteristicComponent(t));
}
@ -72,8 +73,8 @@ public class Group30_40 {
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
if (src.hasExclude())
tgt.setExclude(src.getExclude());
if (src.hasExcludeElement())
tgt.setExcludeElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExcludeElement()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
return tgt;
@ -88,8 +89,8 @@ public class Group30_40 {
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
if (src.hasExclude())
tgt.setExclude(src.getExclude());
if (src.hasExcludeElement())
tgt.setExcludeElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExcludeElement()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
return tgt;
@ -104,8 +105,8 @@ public class Group30_40 {
tgt.setEntity(VersionConvertor_30_40.convertReference(src.getEntity()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
if (src.hasInactive())
tgt.setInactive(src.getInactive());
if (src.hasInactiveElement())
tgt.setInactiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getInactiveElement()));
return tgt;
}
@ -118,8 +119,8 @@ public class Group30_40 {
tgt.setEntity(VersionConvertor_30_40.convertReference(src.getEntity()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
if (src.hasInactive())
tgt.setInactive(src.getInactive());
if (src.hasInactiveElement())
tgt.setInactiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getInactiveElement()));
return tgt;
}

View File

@ -4,6 +4,7 @@ import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeableConcept;
import org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceEligibilityComponent;
import java.util.Collections;
public class HealthcareService30_40 {
@ -15,8 +16,8 @@ public class HealthcareService30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasProvidedBy())
tgt.setProvidedBy(VersionConvertor_30_40.convertReference(src.getProvidedBy()));
if (src.hasCategory())
@ -30,12 +31,12 @@ public class HealthcareService30_40 {
if (src.hasLocation()) {
for (org.hl7.fhir.r4.model.Reference t : src.getLocation()) tgt.addLocation(VersionConvertor_30_40.convertReference(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasExtraDetails())
tgt.setExtraDetails(src.getExtraDetails());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasExtraDetailsElement())
tgt.setExtraDetailsElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExtraDetailsElement()));
if (src.hasPhoto())
tgt.setPhoto(VersionConvertor_30_40.convertAttachment(src.getPhoto()));
if (src.hasTelecom()) {
@ -63,16 +64,16 @@ public class HealthcareService30_40 {
if (src.hasReferralMethod()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasAppointmentRequired())
tgt.setAppointmentRequired(src.getAppointmentRequired());
if (src.hasAppointmentRequiredElement())
tgt.setAppointmentRequiredElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getAppointmentRequiredElement()));
if (src.hasAvailableTime()) {
for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
}
if (src.hasNotAvailable()) {
for (org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions())
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
if (src.hasAvailabilityExceptionsElement())
tgt.setAvailabilityExceptionsElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getAvailabilityExceptionsElement()));
if (src.hasEndpoint()) {
for (org.hl7.fhir.r4.model.Reference t : src.getEndpoint()) tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
@ -87,8 +88,8 @@ public class HealthcareService30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasProvidedBy())
tgt.setProvidedBy(VersionConvertor_30_40.convertReference(src.getProvidedBy()));
if (src.hasCategory())
@ -102,12 +103,12 @@ public class HealthcareService30_40 {
if (src.hasLocation()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getLocation()) tgt.addLocation(VersionConvertor_30_40.convertReference(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasExtraDetails())
tgt.setExtraDetails(src.getExtraDetails());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasExtraDetailsElement())
tgt.setExtraDetailsElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getExtraDetailsElement()));
if (src.hasPhoto())
tgt.setPhoto(VersionConvertor_30_40.convertAttachment(src.getPhoto()));
if (src.hasTelecom()) {
@ -136,16 +137,16 @@ public class HealthcareService30_40 {
if (src.hasReferralMethod()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReferralMethod()) tgt.addReferralMethod(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasAppointmentRequired())
tgt.setAppointmentRequired(src.getAppointmentRequired());
if (src.hasAppointmentRequiredElement())
tgt.setAppointmentRequiredElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getAppointmentRequiredElement()));
if (src.hasAvailableTime()) {
for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent t : src.getAvailableTime()) tgt.addAvailableTime(convertHealthcareServiceAvailableTimeComponent(t));
}
if (src.hasNotAvailable()) {
for (org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertHealthcareServiceNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions())
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
if (src.hasAvailabilityExceptionsElement())
tgt.setAvailabilityExceptionsElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getAvailabilityExceptionsElement()));
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getEndpoint()) tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
@ -160,12 +161,12 @@ public class HealthcareService30_40 {
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_30_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(VersionConvertor_30_40.convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay())
tgt.setAllDay(src.getAllDay());
if (src.hasAvailableStartTime())
tgt.setAvailableStartTime(src.getAvailableStartTime());
if (src.hasAvailableEndTime())
tgt.setAvailableEndTime(src.getAvailableEndTime());
if (src.hasAllDayElement())
tgt.setAllDayElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getAllDayElement()));
if (src.hasAvailableStartTimeElement())
tgt.setAvailableStartTimeElement((org.hl7.fhir.dstu3.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableStartTimeElement()));
if (src.hasAvailableEndTimeElement())
tgt.setAvailableEndTimeElement((org.hl7.fhir.dstu3.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableEndTimeElement()));
return tgt;
}
@ -177,12 +178,12 @@ public class HealthcareService30_40 {
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_30_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(VersionConvertor_30_40.convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay())
tgt.setAllDay(src.getAllDay());
if (src.hasAvailableStartTime())
tgt.setAvailableStartTime(src.getAvailableStartTime());
if (src.hasAvailableEndTime())
tgt.setAvailableEndTime(src.getAvailableEndTime());
if (src.hasAllDayElement())
tgt.setAllDayElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getAllDayElement()));
if (src.hasAvailableStartTimeElement())
tgt.setAvailableStartTimeElement((org.hl7.fhir.r4.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableStartTimeElement()));
if (src.hasAvailableEndTimeElement())
tgt.setAvailableEndTimeElement((org.hl7.fhir.r4.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableEndTimeElement()));
return tgt;
}
@ -191,8 +192,8 @@ public class HealthcareService30_40 {
return null;
org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasDuring())
tgt.setDuring(VersionConvertor_30_40.convertPeriod(src.getDuring()));
return tgt;
@ -203,8 +204,8 @@ public class HealthcareService30_40 {
return null;
org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasDuring())
tgt.setDuring(VersionConvertor_30_40.convertPeriod(src.getDuring()));
return tgt;

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.List;
import java.util.Collections;
public class ImagingStudy30_40 {
@ -60,12 +61,10 @@ public class ImagingStudy30_40 {
for (org.hl7.fhir.r4.model.Reference t : src.getEndpoint()) {
tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
if (src.hasNumberOfSeries()) {
tgt.setNumberOfSeries(src.getNumberOfSeries());
}
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances());
}
if (src.hasNumberOfSeriesElement())
tgt.setNumberOfSeriesElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberOfSeriesElement()));
if (src.hasNumberOfInstancesElement())
tgt.setNumberOfInstancesElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberOfInstancesElement()));
if (src.hasProcedureReference()) {
tgt.addProcedureReference(VersionConvertor_30_40.convertReference(src.getProcedureReference()));
}
@ -78,9 +77,8 @@ public class ImagingStudy30_40 {
if (reasonCodes.size() > 1) {
}
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) {
tgt.addSeries(convertImagingStudySeriesComponent(t));
}
@ -145,12 +143,10 @@ public class ImagingStudy30_40 {
for (org.hl7.fhir.dstu3.model.Reference t : src.getEndpoint()) {
tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
if (src.hasNumberOfSeries()) {
tgt.setNumberOfSeries(src.getNumberOfSeries());
}
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances());
}
if (src.hasNumberOfSeriesElement())
tgt.setNumberOfSeriesElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberOfSeriesElement()));
if (src.hasNumberOfInstancesElement())
tgt.setNumberOfInstancesElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberOfInstancesElement()));
List<org.hl7.fhir.dstu3.model.Reference> procedureReferences = src.getProcedureReference();
if (procedureReferences.size() > 0) {
tgt.setProcedureReference(VersionConvertor_30_40.convertReference(procedureReferences.get(0)));
@ -163,9 +159,8 @@ public class ImagingStudy30_40 {
if (src.hasReason()) {
tgt.addReasonCode(VersionConvertor_30_40.convertCodeableConcept(src.getReason()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent t : src.getSeries()) {
tgt.addSeries(convertImagingStudySeriesComponent(t));
}
@ -177,48 +172,28 @@ public class ImagingStudy30_40 {
return null;
org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUid()) {
if (src.hasUid()) {
tgt.setUid(src.getUid());
}
}
if (src.hasNumber()) {
if (src.hasNumber()) {
tgt.setNumber(src.getNumber());
}
}
if (src.hasUidElement())
tgt.setUidElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getUidElement()));
if (src.hasNumberElement())
tgt.setNumberElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberElement()));
if (src.hasModality()) {
if (src.hasModality()) {
tgt.setModality(VersionConvertor_30_40.convertCoding(src.getModality()));
}
}
if (src.hasDescription()) {
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
}
if (src.hasNumberOfInstances()) {
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances());
}
tgt.setModality(VersionConvertor_30_40.convertCoding(src.getModality()));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasNumberOfInstancesElement())
tgt.setNumberOfInstancesElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberOfInstancesElement()));
for (org.hl7.fhir.dstu3.model.Reference t : src.getEndpoint()) {
tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
if (src.hasBodySite()) {
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_30_40.convertCoding(src.getBodySite()));
}
tgt.setBodySite(VersionConvertor_30_40.convertCoding(src.getBodySite()));
}
if (src.hasLaterality()) {
if (src.hasLaterality()) {
tgt.setLaterality(VersionConvertor_30_40.convertCoding(src.getLaterality()));
}
tgt.setLaterality(VersionConvertor_30_40.convertCoding(src.getLaterality()));
}
if (src.hasStarted()) {
if (src.hasStartedElement()) {
tgt.setStartedElement(VersionConvertor_30_40.convertDateTime(src.getStartedElement()));
}
if (src.hasStartedElement()) {
tgt.setStartedElement(VersionConvertor_30_40.convertDateTime(src.getStartedElement()));
}
for (org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) {
tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
@ -231,48 +206,28 @@ public class ImagingStudy30_40 {
return null;
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUid()) {
if (src.hasUid()) {
tgt.setUid(src.getUid());
}
}
if (src.hasNumber()) {
if (src.hasNumber()) {
tgt.setNumber(src.getNumber());
}
}
if (src.hasUidElement())
tgt.setUidElement((org.hl7.fhir.dstu3.model.OidType) VersionConvertor_30_40.convertType(src.getUidElement()));
if (src.hasNumberElement())
tgt.setNumberElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberElement()));
if (src.hasModality()) {
if (src.hasModality()) {
tgt.setModality(VersionConvertor_30_40.convertCoding(src.getModality()));
}
}
if (src.hasDescription()) {
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
}
if (src.hasNumberOfInstances()) {
if (src.hasNumberOfInstances()) {
tgt.setNumberOfInstances(src.getNumberOfInstances());
}
tgt.setModality(VersionConvertor_30_40.convertCoding(src.getModality()));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasNumberOfInstancesElement())
tgt.setNumberOfInstancesElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberOfInstancesElement()));
for (org.hl7.fhir.r4.model.Reference t : src.getEndpoint()) {
tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
if (src.hasBodySite()) {
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_30_40.convertCoding(src.getBodySite()));
}
tgt.setBodySite(VersionConvertor_30_40.convertCoding(src.getBodySite()));
}
if (src.hasLaterality()) {
if (src.hasLaterality()) {
tgt.setLaterality(VersionConvertor_30_40.convertCoding(src.getLaterality()));
}
tgt.setLaterality(VersionConvertor_30_40.convertCoding(src.getLaterality()));
}
if (src.hasStarted()) {
if (src.hasStartedElement()) {
tgt.setStartedElement(VersionConvertor_30_40.convertDateTime(src.getStartedElement()));
}
if (src.hasStartedElement()) {
tgt.setStartedElement(VersionConvertor_30_40.convertDateTime(src.getStartedElement()));
}
for (org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesInstanceComponent t : src.getInstance()) {
tgt.addInstance(convertImagingStudySeriesInstanceComponent(t));
@ -285,11 +240,8 @@ public class ImagingStudy30_40 {
return null;
org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUid()) {
if (src.hasUid()) {
tgt.setUid(src.getUid());
}
}
if (src.hasUidElement())
tgt.setUidElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getUidElement()));
if (src.hasSopClass()) {
org.hl7.fhir.r4.model.Coding c = new org.hl7.fhir.r4.model.Coding();
c.setSystem(VersionConvertor_30_40.URN_IETF_RFC_3986);
@ -298,16 +250,10 @@ public class ImagingStudy30_40 {
}
tgt.setSopClass(c);
}
if (src.hasNumber()) {
if (src.hasNumber()) {
tgt.setNumber(src.getNumber());
}
}
if (src.hasTitle()) {
if (src.hasTitle()) {
tgt.setTitle(src.getTitle());
}
}
if (src.hasNumberElement())
tgt.setNumberElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
return tgt;
}
@ -316,19 +262,16 @@ public class ImagingStudy30_40 {
return null;
org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUid()) {
tgt.setUid(src.getUid());
}
if (src.hasUidElement())
tgt.setUidElement((org.hl7.fhir.dstu3.model.OidType) VersionConvertor_30_40.convertType(src.getUidElement()));
org.hl7.fhir.r4.model.Coding sop = src.getSopClass();
if (VersionConvertor_30_40.URN_IETF_RFC_3986.equals(sop.getSystem())) {
tgt.setSopClass(sop.getCode());
}
if (src.hasNumber()) {
tgt.setNumber(src.getNumber());
}
if (src.hasTitle()) {
tgt.setTitle(src.getTitle());
}
if (src.hasNumberElement())
tgt.setNumberElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
return tgt;
}
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Immunization30_40 {
@ -23,18 +24,18 @@ public class Immunization30_40 {
tgt.setEncounter(VersionConvertor_30_40.convertReference(src.getEncounter()));
if (src.hasDateElement())
tgt.setOccurrence(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPrimarySource())
tgt.setPrimarySource(src.getPrimarySource());
if (src.hasPrimarySourceElement())
tgt.setPrimarySourceElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getPrimarySourceElement()));
if (src.hasReportOrigin())
tgt.setReportOrigin(VersionConvertor_30_40.convertCodeableConcept(src.getReportOrigin()));
if (src.hasLocation())
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
if (src.hasManufacturer())
tgt.setManufacturer(VersionConvertor_30_40.convertReference(src.getManufacturer()));
if (src.hasLotNumber())
tgt.setLotNumber(src.getLotNumber());
if (src.hasLotNumberElement())
tgt.setLotNumberElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getLotNumberElement()));
if (src.hasExpirationDate())
tgt.setExpirationDateElement(VersionConvertor_30_40.convertDate(src.getExpirationDateElement()));
tgt.setExpirationDateElement(VersionConvertor_30_40.convertDate(src.getExpirationDateElement()));
if (src.hasSite())
tgt.setSite(VersionConvertor_30_40.convertCodeableConcept(src.getSite()));
if (src.hasRoute())
@ -71,18 +72,18 @@ public class Immunization30_40 {
tgt.setEncounter(VersionConvertor_30_40.convertReference(src.getEncounter()));
if (src.hasOccurrenceDateTimeType())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getOccurrenceDateTimeType()));
if (src.hasPrimarySource())
tgt.setPrimarySource(src.getPrimarySource());
if (src.hasPrimarySourceElement())
tgt.setPrimarySourceElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getPrimarySourceElement()));
if (src.hasReportOrigin())
tgt.setReportOrigin(VersionConvertor_30_40.convertCodeableConcept(src.getReportOrigin()));
if (src.hasLocation())
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
if (src.hasManufacturer())
tgt.setManufacturer(VersionConvertor_30_40.convertReference(src.getManufacturer()));
if (src.hasLotNumber())
tgt.setLotNumber(src.getLotNumber());
if (src.hasLotNumberElement())
tgt.setLotNumberElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getLotNumberElement()));
if (src.hasExpirationDate())
tgt.setExpirationDateElement(VersionConvertor_30_40.convertDate(src.getExpirationDateElement()));
tgt.setExpirationDateElement(VersionConvertor_30_40.convertDate(src.getExpirationDateElement()));
if (src.hasSite())
tgt.setSite(VersionConvertor_30_40.convertCodeableConcept(src.getSite()));
if (src.hasRoute())

View File

@ -3,7 +3,10 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Enumeration;
import org.hl7.fhir.r4.model.StringType;
import java.util.List;
import java.util.Collections;
public class ImplementationGuide30_40 {
@ -12,33 +15,33 @@ public class ImplementationGuide30_40 {
return null;
org.hl7.fhir.dstu3.model.ImplementationGuide tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasFhirVersion())
for (Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> v : src.getFhirVersion()) {
tgt.setFhirVersion(v.asStringValue());
@ -66,35 +69,35 @@ public class ImplementationGuide30_40 {
return null;
org.hl7.fhir.r4.model.ImplementationGuide tgt = new org.hl7.fhir.r4.model.ImplementationGuide();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasFhirVersion())
tgt.addFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
tgt.addFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
if (src.hasDependency()) {
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependsOn(convertImplementationGuideDependencyComponent(t));
}
@ -115,8 +118,8 @@ public class ImplementationGuide30_40 {
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent();
VersionConvertor_30_40.copyElement(src, tgt);
tgt.setType(org.hl7.fhir.dstu3.model.ImplementationGuide.GuideDependencyType.REFERENCE);
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
return tgt;
}
@ -125,8 +128,8 @@ public class ImplementationGuide30_40 {
return null;
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getUriElement()));
return tgt;
}
@ -135,8 +138,8 @@ public class ImplementationGuide30_40 {
return null;
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCanonicalToReference(src.getProfileElement()));
return tgt;
@ -147,8 +150,8 @@ public class ImplementationGuide30_40 {
return null;
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(src.getType());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasProfile())
tgt.setProfileElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getProfile()));
return tgt;
@ -162,10 +165,10 @@ public class ImplementationGuide30_40 {
if (src.hasId()) {
tgt.setId(src.getId());
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -175,10 +178,10 @@ public class ImplementationGuide30_40 {
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent();
tgt.setId("p" + (context.getGrouping().size() + 1));
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) {
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tn = convertImplementationGuidePackageResourceComponent(t);
tn.setGroupingId(tgt.getId());
@ -196,11 +199,11 @@ public class ImplementationGuide30_40 {
org.hl7.fhir.r4.model.Type t = VersionConvertor_30_40.convertType(src.getExampleFor());
tgt.setExample(t instanceof org.hl7.fhir.r4.model.Reference ? new org.hl7.fhir.r4.model.CanonicalType(((org.hl7.fhir.r4.model.Reference) t).getReference()) : t);
} else if (src.hasExample())
tgt.setExample(new org.hl7.fhir.r4.model.BooleanType(src.getExample()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
tgt.setExample(new org.hl7.fhir.r4.model.BooleanType(src.getExample()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasSourceReference())
tgt.setReference(VersionConvertor_30_40.convertReference(src.getSourceReference()));
else if (src.hasSourceUriType())
@ -222,10 +225,10 @@ public class ImplementationGuide30_40 {
tgt.setExample(src.getExampleBooleanType().getValue());
else
tgt.setExample(false);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasReference())
tgt.setSource(VersionConvertor_30_40.convertReference(src.getReference()));
return tgt;
@ -238,8 +241,8 @@ public class ImplementationGuide30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasNameUrlType())
tgt.setSource(src.getNameUrlType().getValue());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasGeneration())
tgt.setKind(convertPageGeneration(src.getGeneration()));
if (src.hasPage()) {
@ -255,8 +258,8 @@ public class ImplementationGuide30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSource())
tgt.setName(convertUriToUrl(src.getSourceElement()));
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasKind())
tgt.setGeneration(convertPageGeneration(src.getKind()));
if (src.hasPage()) {

View File

@ -4,6 +4,7 @@ import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.ContactDetail;
import org.hl7.fhir.dstu3.model.Contributor.ContributorType;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Library30_40 {
@ -12,48 +13,48 @@ public class Library30_40 {
return null;
org.hl7.fhir.dstu3.model.Library tgt = new org.hl7.fhir.dstu3.model.Library();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
if (src.hasTopic()) {
@ -103,48 +104,48 @@ public class Library30_40 {
return null;
org.hl7.fhir.r4.model.Library tgt = new org.hl7.fhir.r4.model.Library();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
for (org.hl7.fhir.dstu3.model.Contributor t : src.getContributor()) {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Linkage30_40 {
@ -10,8 +11,8 @@ public class Linkage30_40 {
return null;
org.hl7.fhir.r4.model.Linkage tgt = new org.hl7.fhir.r4.model.Linkage();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasAuthor())
tgt.setAuthor(VersionConvertor_30_40.convertReference(src.getAuthor()));
if (src.hasItem()) {
@ -25,8 +26,8 @@ public class Linkage30_40 {
return null;
org.hl7.fhir.dstu3.model.Linkage tgt = new org.hl7.fhir.dstu3.model.Linkage();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasAuthor())
tgt.setAuthor(VersionConvertor_30_40.convertReference(src.getAuthor()));
if (src.hasItem()) {

View File

@ -1,7 +1,11 @@
package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.BooleanType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.StringType;
import java.util.Collections;
public class List30_40 {
@ -17,8 +21,8 @@ public class List30_40 {
tgt.setStatus(convertListStatus(src.getStatus()));
if (src.hasMode())
tgt.setMode(convertListMode(src.getMode()));
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasSubject())
@ -54,8 +58,8 @@ public class List30_40 {
tgt.setStatus(convertListStatus(src.getStatus()));
if (src.hasMode())
tgt.setMode(convertListMode(src.getMode()));
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasSubject())
@ -86,8 +90,8 @@ public class List30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasFlag())
tgt.setFlag(VersionConvertor_30_40.convertCodeableConcept(src.getFlag()));
if (src.hasDeleted())
tgt.setDeleted(src.getDeleted());
if (src.hasDeletedElement())
tgt.setDeletedElement((BooleanType) VersionConvertor_30_40.convertType(src.getDeletedElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasItem())
@ -102,8 +106,8 @@ public class List30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasFlag())
tgt.setFlag(VersionConvertor_30_40.convertCodeableConcept(src.getFlag()));
if (src.hasDeleted())
tgt.setDeleted(src.getDeleted());
if (src.hasDeletedElement())
tgt.setDeletedElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getDeletedElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasItem())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Location30_40 {
@ -17,13 +18,13 @@ public class Location30_40 {
tgt.setStatus(convertLocationStatus(src.getStatus()));
if (src.hasOperationalStatus())
tgt.setOperationalStatus(VersionConvertor_30_40.convertCoding(src.getOperationalStatus()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasAlias()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getAlias()) tgt.addAlias(t.getValue());
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasMode())
tgt.setMode(convertLocationMode(src.getMode()));
if (src.hasType())
@ -59,13 +60,13 @@ public class Location30_40 {
tgt.setStatus(convertLocationStatus(src.getStatus()));
if (src.hasOperationalStatus())
tgt.setOperationalStatus(VersionConvertor_30_40.convertCoding(src.getOperationalStatus()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasAlias()) {
for (org.hl7.fhir.r4.model.StringType t : src.getAlias()) tgt.addAlias(t.getValue());
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasMode())
tgt.setMode(convertLocationMode(src.getMode()));
if (src.hasType())
@ -120,12 +121,12 @@ public class Location30_40 {
return null;
org.hl7.fhir.r4.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r4.model.Location.LocationPositionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLongitude())
tgt.setLongitude(src.getLongitude());
if (src.hasLatitude())
tgt.setLatitude(src.getLatitude());
if (src.hasAltitude())
tgt.setAltitude(src.getAltitude());
if (src.hasLongitudeElement())
tgt.setLongitudeElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_30_40.convertType(src.getLongitudeElement()));
if (src.hasLatitudeElement())
tgt.setLatitudeElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_30_40.convertType(src.getLatitudeElement()));
if (src.hasAltitudeElement())
tgt.setAltitudeElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_30_40.convertType(src.getAltitudeElement()));
return tgt;
}
@ -134,12 +135,12 @@ public class Location30_40 {
return null;
org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLongitude())
tgt.setLongitude(src.getLongitude());
if (src.hasLatitude())
tgt.setLatitude(src.getLatitude());
if (src.hasAltitude())
tgt.setAltitude(src.getAltitude());
if (src.hasLongitudeElement())
tgt.setLongitudeElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getLongitudeElement()));
if (src.hasLatitudeElement())
tgt.setLatitudeElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getLatitudeElement()));
if (src.hasAltitudeElement())
tgt.setAltitudeElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getAltitudeElement()));
return tgt;
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeableConcept;
import java.util.Collections;
public class Media30_40 {
@ -55,18 +56,14 @@ public class Media30_40 {
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_30_40.convertReference(src.getDevice()));
}
if (src.hasHeight()) {
tgt.setHeight(src.getHeight());
}
if (src.hasWidth()) {
tgt.setWidth(src.getWidth());
}
if (src.hasFrames()) {
tgt.setFrames(src.getFrames());
}
if (src.hasDuration()) {
tgt.setDuration(src.getDuration().intValue());
}
if (src.hasHeightElement())
tgt.setHeightElement((org.hl7.fhir.dstu3.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getHeightElement()));
if (src.hasWidthElement())
tgt.setWidthElement((org.hl7.fhir.dstu3.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getWidthElement()));
if (src.hasFramesElement())
tgt.setFramesElement((org.hl7.fhir.dstu3.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getFramesElement()));
if (src.hasDurationElement())
tgt.setDurationElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getDurationElement()));
if (src.hasContent()) {
tgt.setContent(VersionConvertor_30_40.convertAttachment(src.getContent()));
}
@ -97,72 +94,42 @@ public class Media30_40 {
tgt.setType(codeableConcept);
}
if (src.hasSubtype()) {
if (src.hasSubtype()) {
tgt.setModality(VersionConvertor_30_40.convertCodeableConcept(src.getSubtype()));
}
tgt.setModality(VersionConvertor_30_40.convertCodeableConcept(src.getSubtype()));
}
if (src.hasView()) {
if (src.hasView()) {
tgt.setView(VersionConvertor_30_40.convertCodeableConcept(src.getView()));
}
tgt.setView(VersionConvertor_30_40.convertCodeableConcept(src.getView()));
}
if (src.hasSubject()) {
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
}
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
}
if (src.hasContext()) {
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_30_40.convertReference(src.getContext()));
}
tgt.setEncounter(VersionConvertor_30_40.convertReference(src.getContext()));
}
if (src.hasOccurrence()) {
if (src.hasOccurrence()) {
tgt.setCreated(VersionConvertor_30_40.convertType(src.getOccurrence()));
}
tgt.setCreated(VersionConvertor_30_40.convertType(src.getOccurrence()));
}
if (src.hasOperator()) {
if (src.hasOperator()) {
tgt.setOperator(VersionConvertor_30_40.convertReference(src.getOperator()));
}
tgt.setOperator(VersionConvertor_30_40.convertReference(src.getOperator()));
}
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) {
tgt.addReasonCode(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasBodySite()) {
if (src.hasBodySite()) {
tgt.setBodySite(VersionConvertor_30_40.convertCodeableConcept(src.getBodySite()));
}
tgt.setBodySite(VersionConvertor_30_40.convertCodeableConcept(src.getBodySite()));
}
if (src.hasDevice()) {
if (src.hasDevice()) {
tgt.setDevice(VersionConvertor_30_40.convertReference(src.getDevice()));
}
}
if (src.hasHeight()) {
if (src.hasHeight()) {
tgt.setHeight(src.getHeight());
}
}
if (src.hasWidth()) {
if (src.hasWidth()) {
tgt.setWidth(src.getWidth());
}
}
if (src.hasFrames()) {
if (src.hasFrames()) {
tgt.setFrames(src.getFrames());
}
}
if (src.hasDuration()) {
if (src.hasDuration()) {
tgt.setDuration(src.getDuration());
}
tgt.setDevice(VersionConvertor_30_40.convertReference(src.getDevice()));
}
if (src.hasHeightElement())
tgt.setHeightElement((org.hl7.fhir.r4.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getHeightElement()));
if (src.hasWidthElement())
tgt.setWidthElement((org.hl7.fhir.r4.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getWidthElement()));
if (src.hasFramesElement())
tgt.setFramesElement((org.hl7.fhir.r4.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getFramesElement()));
if (src.hasDurationElement())
tgt.setDurationElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_30_40.convertType(src.getDurationElement()));
if (src.hasContent()) {
if (src.hasContent()) {
tgt.setContent(VersionConvertor_30_40.convertAttachment(src.getContent()));
}
tgt.setContent(VersionConvertor_30_40.convertAttachment(src.getContent()));
}
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) {
tgt.addNote(VersionConvertor_30_40.convertAnnotation(t));

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Medication30_40 {
@ -54,8 +55,8 @@ public class Medication30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasItem())
tgt.setItem(VersionConvertor_30_40.convertType(src.getItem()));
if (src.hasIsActive())
tgt.setIsActive(src.getIsActive());
if (src.hasIsActiveElement())
tgt.setIsActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getIsActiveElement()));
if (src.hasStrength())
tgt.setAmount(VersionConvertor_30_40.convertRatio(src.getStrength()));
return tgt;
@ -68,8 +69,8 @@ public class Medication30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasItem())
tgt.setItem(VersionConvertor_30_40.convertType(src.getItem()));
if (src.hasIsActive())
tgt.setIsActive(src.getIsActive());
if (src.hasIsActiveElement())
tgt.setIsActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getIsActiveElement()));
if (src.hasAmount())
tgt.setStrength(VersionConvertor_30_40.convertRatio(src.getAmount()));
return tgt;
@ -80,8 +81,8 @@ public class Medication30_40 {
return null;
org.hl7.fhir.dstu3.model.Medication.MedicationPackageBatchComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageBatchComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLotNumber())
tgt.setLotNumber(src.getLotNumber());
if (src.hasLotNumberElement())
tgt.setLotNumberElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getLotNumberElement()));
if (src.hasExpirationDate())
tgt.setExpirationDateElement(VersionConvertor_30_40.convertDateTime(src.getExpirationDateElement()));
return tgt;
@ -92,8 +93,8 @@ public class Medication30_40 {
return null;
org.hl7.fhir.r4.model.Medication.MedicationBatchComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationBatchComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLotNumber())
tgt.setLotNumber(src.getLotNumber());
if (src.hasLotNumberElement())
tgt.setLotNumberElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getLotNumberElement()));
if (src.hasExpirationDate())
tgt.setExpirationDateElement(VersionConvertor_30_40.convertDateTime(src.getExpirationDateElement()));
return tgt;

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class MedicationAdministration30_40 {
@ -118,8 +119,8 @@ public class MedicationAdministration30_40 {
return null;
org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationDosageComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasText())
tgt.setText(src.getText());
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
if (src.hasSite())
tgt.setSite(VersionConvertor_30_40.convertCodeableConcept(src.getSite()));
if (src.hasRoute())
@ -138,8 +139,8 @@ public class MedicationAdministration30_40 {
return null;
org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationDosageComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasText())
tgt.setText(src.getText());
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
if (src.hasSite())
tgt.setSite(VersionConvertor_30_40.convertCodeableConcept(src.getSite()));
if (src.hasRoute())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class MedicationDispense30_40 {
@ -166,8 +167,8 @@ public class MedicationDispense30_40 {
return null;
org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasWasSubstituted())
tgt.setWasSubstituted(src.getWasSubstituted());
if (src.hasWasSubstitutedElement())
tgt.setWasSubstitutedElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getWasSubstitutedElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasReason()) {
@ -184,8 +185,8 @@ public class MedicationDispense30_40 {
return null;
org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasWasSubstituted())
tgt.setWasSubstituted(src.getWasSubstituted());
if (src.hasWasSubstitutedElement())
tgt.setWasSubstitutedElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getWasSubstitutedElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasReason()) {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class MedicationRequest30_40 {
@ -130,8 +131,8 @@ public class MedicationRequest30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasValidityPeriod())
tgt.setValidityPeriod(VersionConvertor_30_40.convertPeriod(src.getValidityPeriod()));
if (src.hasNumberOfRepeatsAllowed())
tgt.setNumberOfRepeatsAllowed(src.getNumberOfRepeatsAllowed());
if (src.hasNumberOfRepeatsAllowedElement())
tgt.setNumberOfRepeatsAllowedElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getNumberOfRepeatsAllowedElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_30_40.convertSimpleQuantity(src.getQuantity()));
if (src.hasExpectedSupplyDuration())
@ -148,8 +149,8 @@ public class MedicationRequest30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasValidityPeriod())
tgt.setValidityPeriod(VersionConvertor_30_40.convertPeriod(src.getValidityPeriod()));
if (src.hasNumberOfRepeatsAllowed())
tgt.setNumberOfRepeatsAllowed(src.getNumberOfRepeatsAllowed());
if (src.hasNumberOfRepeatsAllowedElement())
tgt.setNumberOfRepeatsAllowedElement((org.hl7.fhir.dstu3.model.PositiveIntType) VersionConvertor_30_40.convertType(src.getNumberOfRepeatsAllowedElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_30_40.convertSimpleQuantity(src.getQuantity()));
if (src.hasExpectedSupplyDuration())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class MedicationStatement30_40 {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class MessageDefinition30_40 {
@ -10,39 +11,39 @@ public class MessageDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.MessageDefinition tgt = new org.hl7.fhir.dstu3.model.MessageDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifierFirstRep()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasBase())
tgt.setBase(VersionConvertor_30_40.convertCanonicalToReference(src.getBaseElement()));
if (src.hasParent()) {
@ -71,39 +72,39 @@ public class MessageDefinition30_40 {
return null;
org.hl7.fhir.r4.model.MessageDefinition tgt = new org.hl7.fhir.r4.model.MessageDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasBase())
tgt.setBaseElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getBase()));
if (src.hasParent()) {
@ -134,8 +135,8 @@ public class MessageDefinition30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMessage())
tgt.setMessage(VersionConvertor_30_40.convertCanonicalToReference(src.getMessageElement()));
if (src.hasSituation())
tgt.setSituation(src.getSituation());
if (src.hasSituationElement())
tgt.setSituationElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getSituationElement()));
return tgt;
}
@ -146,8 +147,8 @@ public class MessageDefinition30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasMessage())
tgt.setMessageElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getMessage()));
if (src.hasSituation())
tgt.setSituation(src.getSituation());
if (src.hasSituationElement())
tgt.setSituationElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getSituationElement()));
return tgt;
}
@ -156,14 +157,14 @@ public class MessageDefinition30_40 {
return null;
org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasProfile())
tgt.setProfileElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getProfile()));
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
return tgt;
}
@ -172,14 +173,14 @@ public class MessageDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionFocusComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCanonicalToReference(src.getProfileElement()));
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class MessageHeader30_40 {
@ -10,12 +11,12 @@ public class MessageHeader30_40 {
return null;
org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTarget())
tgt.setTarget(VersionConvertor_30_40.convertReference(src.getTarget()));
if (src.hasEndpoint())
tgt.setEndpoint(src.getEndpoint());
if (src.hasEndpointElement())
tgt.setEndpointElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getEndpointElement()));
return tgt;
}
@ -24,12 +25,12 @@ public class MessageHeader30_40 {
return null;
org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTarget())
tgt.setTarget(VersionConvertor_30_40.convertReference(src.getTarget()));
if (src.hasEndpoint())
tgt.setEndpoint(src.getEndpoint());
if (src.hasEndpointElement())
tgt.setEndpointElement((org.hl7.fhir.r4.model.UrlType) VersionConvertor_30_40.convertType(src.getEndpointElement()));
return tgt;
}
@ -98,8 +99,8 @@ public class MessageHeader30_40 {
return null;
org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(src.getIdentifier());
if (src.hasIdentifierElement())
tgt.setIdentifierElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getIdentifierElement()));
if (src.hasCode())
tgt.setCode(convertResponseType(src.getCode()));
if (src.hasDetails())
@ -112,8 +113,8 @@ public class MessageHeader30_40 {
return null;
org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(src.getIdentifier());
if (src.hasIdentifierElement())
tgt.setIdentifierElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getIdentifierElement()));
if (src.hasCode())
tgt.setCode(convertResponseType(src.getCode()));
if (src.hasDetails())
@ -126,16 +127,16 @@ public class MessageHeader30_40 {
return null;
org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasSoftware())
tgt.setSoftware(src.getSoftware());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasSoftwareElement())
tgt.setSoftwareElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getSoftwareElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasContact())
tgt.setContact(VersionConvertor_30_40.convertContactPoint(src.getContact()));
if (src.hasEndpoint())
tgt.setEndpoint(src.getEndpoint());
if (src.hasEndpointElement())
tgt.setEndpointElement((org.hl7.fhir.r4.model.UrlType) VersionConvertor_30_40.convertType(src.getEndpointElement()));
return tgt;
}
@ -144,16 +145,16 @@ public class MessageHeader30_40 {
return null;
org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasSoftware())
tgt.setSoftware(src.getSoftware());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasSoftwareElement())
tgt.setSoftwareElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getSoftwareElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasContact())
tgt.setContact(VersionConvertor_30_40.convertContactPoint(src.getContact()));
if (src.hasEndpoint())
tgt.setEndpoint(src.getEndpoint());
if (src.hasEndpointElement())
tgt.setEndpointElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getEndpointElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class NamingSystem30_40 {
@ -10,33 +11,33 @@ public class NamingSystem30_40 {
return null;
org.hl7.fhir.dstu3.model.NamingSystem tgt = new org.hl7.fhir.dstu3.model.NamingSystem();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertNamingSystemType(src.getKind()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasResponsible())
tgt.setResponsible(src.getResponsible());
if (src.hasResponsibleElement())
tgt.setResponsibleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getResponsibleElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasUniqueId()) {
for (org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
}
@ -48,33 +49,33 @@ public class NamingSystem30_40 {
return null;
org.hl7.fhir.r4.model.NamingSystem tgt = new org.hl7.fhir.r4.model.NamingSystem();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertNamingSystemType(src.getKind()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasResponsible())
tgt.setResponsible(src.getResponsible());
if (src.hasResponsibleElement())
tgt.setResponsibleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getResponsibleElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasUniqueId()) {
for (org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
}
@ -152,12 +153,12 @@ public class NamingSystem30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasPreferred())
tgt.setPreferred(src.getPreferred());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
if (src.hasPreferredElement())
tgt.setPreferredElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getPreferredElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
return tgt;
@ -170,12 +171,12 @@ public class NamingSystem30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasPreferred())
tgt.setPreferred(src.getPreferred());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
if (src.hasPreferredElement())
tgt.setPreferredElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getPreferredElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
return tgt;

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Observation30_40 {
@ -177,8 +178,8 @@ public class Observation30_40 {
}
if (src.hasAge())
tgt.setAge(VersionConvertor_30_40.convertRange(src.getAge()));
if (src.hasText())
tgt.setText(src.getText());
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
return tgt;
}
@ -198,8 +199,8 @@ public class Observation30_40 {
}
if (src.hasAge())
tgt.setAge(VersionConvertor_30_40.convertRange(src.getAge()));
if (src.hasText())
tgt.setText(src.getText());
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
return tgt;
}

View File

@ -4,6 +4,7 @@ import org.hl7.fhir.convertors.VersionConvertorConstants;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Type;
import java.util.Collections;
public class OperationDefinition30_40 {
@ -12,52 +13,52 @@ public class OperationDefinition30_40 {
return null;
org.hl7.fhir.r4.model.OperationDefinition tgt = new org.hl7.fhir.r4.model.OperationDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertOperationKind(src.getKind()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasIdempotent())
tgt.setAffectsState(!src.getIdempotent());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasBase())
tgt.setBaseElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getBase()));
if (src.hasResource()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getResource()) tgt.addResource(t.getValue());
}
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasInstance())
tgt.setInstance(src.getInstance());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasInstanceElement())
tgt.setInstanceElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getInstanceElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
}
@ -72,52 +73,52 @@ public class OperationDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.OperationDefinition tgt = new org.hl7.fhir.dstu3.model.OperationDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertOperationKind(src.getKind()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasAffectsState())
tgt.setIdempotent(!src.getAffectsState());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
if (src.hasBase())
tgt.setBase(VersionConvertor_30_40.convertCanonicalToReference(src.getBaseElement()));
if (src.hasResource()) {
for (org.hl7.fhir.r4.model.CodeType t : src.getResource()) tgt.addResource(t.getValue());
}
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasInstance())
tgt.setInstance(src.getInstance());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasInstanceElement())
tgt.setInstanceElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getInstanceElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
}
@ -135,8 +136,8 @@ public class OperationDefinition30_40 {
if (src.hasParameterName()) {
for (org.hl7.fhir.r4.model.StringType t : src.getParameterName()) tgt.addParameterName(t.getValue());
}
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
@ -148,8 +149,8 @@ public class OperationDefinition30_40 {
if (src.hasParameterName()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getParameterName()) tgt.addParameterName(t.getValue());
}
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
@ -193,18 +194,18 @@ public class OperationDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasUse())
tgt.setUse(convertOperationParameterUse(src.getUse()));
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasSearchType())
tgt.setSearchType(VersionConvertor_30_40.convertSearchParamType(src.getSearchType()));
if (src.hasTargetProfile()) {
@ -223,18 +224,18 @@ public class OperationDefinition30_40 {
return null;
org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasUse())
tgt.setUse(convertOperationParameterUse(src.getUse()));
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasSearchType())
tgt.setSearchType(VersionConvertor_30_40.convertSearchParamType(src.getSearchType()));
if (src.hasProfile())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class OperationOutcome30_40 {
@ -206,8 +207,8 @@ public class OperationOutcome30_40 {
tgt.setCode(convertIssueType(src.getCode()));
if (src.hasDetails())
tgt.setDetails(VersionConvertor_30_40.convertCodeableConcept(src.getDetails()));
if (src.hasDiagnostics())
tgt.setDiagnostics(src.getDiagnostics());
if (src.hasDiagnosticsElement())
tgt.setDiagnosticsElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDiagnosticsElement()));
if (src.hasLocation()) {
for (org.hl7.fhir.r4.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
}
@ -228,8 +229,8 @@ public class OperationOutcome30_40 {
tgt.setCode(convertIssueType(src.getCode()));
if (src.hasDetails())
tgt.setDetails(VersionConvertor_30_40.convertCodeableConcept(src.getDetails()));
if (src.hasDiagnostics())
tgt.setDiagnostics(src.getDiagnostics());
if (src.hasDiagnosticsElement())
tgt.setDiagnosticsElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDiagnosticsElement()));
if (src.hasLocation()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Organization30_40 {
@ -13,13 +14,13 @@ public class Organization30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasAlias()) {
for (org.hl7.fhir.r4.model.StringType t : src.getAlias()) tgt.addAlias(t.getValue());
}
@ -48,13 +49,13 @@ public class Organization30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasType()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasAlias()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getAlias()) tgt.addAlias(t.getValue());
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Parameters30_40 {
@ -32,8 +33,8 @@ public class Parameters30_40 {
return null;
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
if (src.hasResource())
@ -49,8 +50,8 @@ public class Parameters30_40 {
return null;
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
if (src.hasResource())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Patient30_40 {
@ -124,8 +125,8 @@ public class Patient30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasName()) {
for (org.hl7.fhir.r4.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_30_40.convertHumanName(t));
}
@ -175,8 +176,8 @@ public class Patient30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasName()) {
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_30_40.convertHumanName(t));
}
@ -225,8 +226,8 @@ public class Patient30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(VersionConvertor_30_40.convertCodeableConcept(src.getLanguage()));
if (src.hasPreferred())
tgt.setPreferred(src.getPreferred());
if (src.hasPreferredElement())
tgt.setPreferredElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getPreferredElement()));
return tgt;
}
@ -237,8 +238,8 @@ public class Patient30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(VersionConvertor_30_40.convertCodeableConcept(src.getLanguage()));
if (src.hasPreferred())
tgt.setPreferred(src.getPreferred());
if (src.hasPreferredElement())
tgt.setPreferredElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getPreferredElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class PaymentNotice30_40 {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Person30_40 {
@ -64,8 +65,8 @@ public class Person30_40 {
tgt.setPhoto(VersionConvertor_30_40.convertAttachment(src.getPhoto()));
if (src.hasManagingOrganization())
tgt.setManagingOrganization(VersionConvertor_30_40.convertReference(src.getManagingOrganization()));
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
}
@ -97,8 +98,8 @@ public class Person30_40 {
tgt.setPhoto(VersionConvertor_30_40.convertAttachment(src.getPhoto()));
if (src.hasManagingOrganization())
tgt.setManagingOrganization(VersionConvertor_30_40.convertReference(src.getManagingOrganization()));
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.Person.PersonLinkComponent t : src.getLink()) tgt.addLink(convertPersonLinkComponent(t));
}

View File

@ -4,6 +4,10 @@ import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.ContactDetail;
import org.hl7.fhir.dstu3.model.Contributor.ContributorType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r4.model.StringType;
import java.util.Collections;
public class PlanDefinition30_40 {
@ -280,37 +284,37 @@ public class PlanDefinition30_40 {
return null;
org.hl7.fhir.r4.model.PlanDefinition tgt = new org.hl7.fhir.r4.model.PlanDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
if (src.hasUseContext()) {
@ -335,8 +339,8 @@ public class PlanDefinition30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasRelatedArtifact()) {
for (org.hl7.fhir.dstu3.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(VersionConvertor_30_40.convertRelatedArtifact(t));
}
@ -357,37 +361,37 @@ public class PlanDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.PlanDefinition tgt = new org.hl7.fhir.dstu3.model.PlanDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getUsageElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
if (src.hasUseContext()) {
@ -426,8 +430,8 @@ public class PlanDefinition30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasRelatedArtifact()) {
for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(VersionConvertor_30_40.convertRelatedArtifact(t));
}
@ -450,12 +454,12 @@ public class PlanDefinition30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLabel())
tgt.setPrefix(src.getLabel());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasTextEquivalent())
tgt.setTextEquivalent(src.getTextEquivalent());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasTextEquivalentElement())
tgt.setTextEquivalentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTextEquivalentElement()));
if (src.hasCode()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -520,12 +524,12 @@ public class PlanDefinition30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasPrefix())
tgt.setLabel(src.getPrefix());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasTextEquivalent())
tgt.setTextEquivalent(src.getTextEquivalent());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasTextEquivalentElement())
tgt.setTextEquivalentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTextEquivalentElement()));
if (src.hasCode()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_30_40.convertCodeableConcept(t));
}
@ -590,12 +594,12 @@ public class PlanDefinition30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasKind())
tgt.setKind(convertActionConditionKind(src.getKind()));
if (src.hasDescription())
tgt.getExpression().setDescription(src.getDescription());
if (src.hasLanguage())
tgt.getExpression().setLanguage(src.getLanguage());
if (src.hasExpression())
tgt.getExpression().setExpression(src.getExpression());
if (src.hasDescriptionElement())
tgt.getExpression().setDescriptionElement((StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasLanguageElement())
tgt.getExpression().setLanguageElement((CodeType) VersionConvertor_30_40.convertType(src.getLanguageElement()));
if (src.hasExpressionElement())
tgt.getExpression().setExpressionElement((StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
return tgt;
}
@ -606,12 +610,12 @@ public class PlanDefinition30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasKind())
tgt.setKind(convertActionConditionKind(src.getKind()));
if (src.getExpression().hasDescription())
tgt.setDescription(src.getExpression().getDescription());
if (src.getExpression().hasLanguage())
tgt.setLanguage(src.getExpression().getLanguage());
if (src.getExpression().hasExpression())
tgt.setExpression(src.getExpression().getExpression());
if (src.getExpression().hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getDescriptionElement()));
if (src.getExpression().hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getLanguageElement()));
if (src.getExpression().hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getExpressionElement()));
return tgt;
}
@ -620,14 +624,14 @@ public class PlanDefinition30_40 {
return null;
org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.getExpression().setDescription(src.getDescription());
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.hasLanguage())
tgt.getExpression().setLanguage(src.getLanguage());
if (src.hasExpression())
tgt.getExpression().setExpression(src.getExpression());
if (src.hasDescriptionElement())
tgt.getExpression().setDescriptionElement((StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.hasLanguageElement())
tgt.getExpression().setLanguageElement((CodeType) VersionConvertor_30_40.convertType(src.getLanguageElement()));
if (src.hasExpressionElement())
tgt.getExpression().setExpressionElement((StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
return tgt;
}
@ -636,14 +640,14 @@ public class PlanDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.getExpression().hasDescription())
tgt.setDescription(src.getExpression().getDescription());
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.getExpression().hasLanguage())
tgt.setLanguage(src.getExpression().getLanguage());
if (src.getExpression().hasExpression())
tgt.setExpression(src.getExpression().getExpression());
if (src.getExpression().hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getDescriptionElement()));
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.getExpression().hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getLanguageElement()));
if (src.getExpression().hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpression().getExpressionElement()));
return tgt;
}
@ -676,8 +680,8 @@ public class PlanDefinition30_40 {
return null;
org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionId(src.getActionId());
if (src.hasActionIdElement())
tgt.setActionIdElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getActionIdElement()));
if (src.hasRelationship())
tgt.setRelationship(convertActionRelationshipType(src.getRelationship()));
if (src.hasOffset())
@ -690,8 +694,8 @@ public class PlanDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionId(src.getActionId());
if (src.hasActionIdElement())
tgt.setActionIdElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getActionIdElement()));
if (src.hasRelationship())
tgt.setRelationship(convertActionRelationshipType(src.getRelationship()));
if (src.hasOffset())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Practitioner30_40 {
@ -13,8 +14,8 @@ public class Practitioner30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasName()) {
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_30_40.convertHumanName(t));
}
@ -48,8 +49,8 @@ public class Practitioner30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasName()) {
for (org.hl7.fhir.r4.model.HumanName t : src.getName()) tgt.addName(VersionConvertor_30_40.convertHumanName(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class PractitionerRole30_40 {
@ -13,8 +14,8 @@ public class PractitionerRole30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
if (src.hasPractitioner())
@ -42,8 +43,8 @@ public class PractitionerRole30_40 {
if (src.hasNotAvailable()) {
for (org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions())
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
if (src.hasAvailabilityExceptionsElement())
tgt.setAvailabilityExceptionsElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getAvailabilityExceptionsElement()));
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu3.model.Reference t : src.getEndpoint()) tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
@ -58,8 +59,8 @@ public class PractitionerRole30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasPeriod())
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
if (src.hasPractitioner())
@ -87,8 +88,8 @@ public class PractitionerRole30_40 {
if (src.hasNotAvailable()) {
for (org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t));
}
if (src.hasAvailabilityExceptions())
tgt.setAvailabilityExceptions(src.getAvailabilityExceptions());
if (src.hasAvailabilityExceptionsElement())
tgt.setAvailabilityExceptionsElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getAvailabilityExceptionsElement()));
if (src.hasEndpoint()) {
for (org.hl7.fhir.r4.model.Reference t : src.getEndpoint()) tgt.addEndpoint(VersionConvertor_30_40.convertReference(t));
}
@ -103,12 +104,12 @@ public class PractitionerRole30_40 {
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_30_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(VersionConvertor_30_40.convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay())
tgt.setAllDay(src.getAllDay());
if (src.hasAvailableStartTime())
tgt.setAvailableStartTime(src.getAvailableStartTime());
if (src.hasAvailableEndTime())
tgt.setAvailableEndTime(src.getAvailableEndTime());
if (src.hasAllDayElement())
tgt.setAllDayElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getAllDayElement()));
if (src.hasAvailableStartTimeElement())
tgt.setAvailableStartTimeElement((org.hl7.fhir.dstu3.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableStartTimeElement()));
if (src.hasAvailableEndTimeElement())
tgt.setAvailableEndTimeElement((org.hl7.fhir.dstu3.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableEndTimeElement()));
return tgt;
}
@ -120,12 +121,12 @@ public class PractitionerRole30_40 {
if (src.hasDaysOfWeek()) {
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek> t : src.getDaysOfWeek()) VersionConvertor_30_40.copyElement(t, tgt.addDaysOfWeekElement().setValue(VersionConvertor_30_40.convertDaysOfWeek(t.getValue())));
}
if (src.hasAllDay())
tgt.setAllDay(src.getAllDay());
if (src.hasAvailableStartTime())
tgt.setAvailableStartTime(src.getAvailableStartTime());
if (src.hasAvailableEndTime())
tgt.setAvailableEndTime(src.getAvailableEndTime());
if (src.hasAllDayElement())
tgt.setAllDayElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getAllDayElement()));
if (src.hasAvailableStartTimeElement())
tgt.setAvailableStartTimeElement((org.hl7.fhir.r4.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableStartTimeElement()));
if (src.hasAvailableEndTimeElement())
tgt.setAvailableEndTimeElement((org.hl7.fhir.r4.model.TimeType) VersionConvertor_30_40.convertType(src.getAvailableEndTimeElement()));
return tgt;
}
@ -134,8 +135,8 @@ public class PractitionerRole30_40 {
return null;
org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasDuring())
tgt.setDuring(VersionConvertor_30_40.convertPeriod(src.getDuring()));
return tgt;
@ -146,8 +147,8 @@ public class PractitionerRole30_40 {
return null;
org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasDuring())
tgt.setDuring(VersionConvertor_30_40.convertPeriod(src.getDuring()));
return tgt;

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Procedure30_40 {
@ -27,42 +28,28 @@ public class Procedure30_40 {
}
}
if (src.hasNotDoneReason()) {
if (src.hasNotDoneReason()) {
tgt.setStatusReason(VersionConvertor_30_40.convertCodeableConcept(src.getNotDoneReason()));
}
tgt.setStatusReason(VersionConvertor_30_40.convertCodeableConcept(src.getNotDoneReason()));
}
if (src.hasCategory()) {
if (src.hasCategory()) {
tgt.setCategory(VersionConvertor_30_40.convertCodeableConcept(src.getCategory()));
}
tgt.setCategory(VersionConvertor_30_40.convertCodeableConcept(src.getCategory()));
}
if (src.hasCode()) {
if (src.hasCode()) {
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
}
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
}
if (src.hasSubject()) {
if (src.hasSubject()) {
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
}
tgt.setSubject(VersionConvertor_30_40.convertReference(src.getSubject()));
}
if (src.hasContext()) {
if (src.hasContext()) {
tgt.setEncounter(VersionConvertor_30_40.convertReference(src.getContext()));
}
tgt.setEncounter(VersionConvertor_30_40.convertReference(src.getContext()));
}
if (src.hasPerformed()) {
if (src.hasPerformed()) {
tgt.setPerformed(VersionConvertor_30_40.convertType(src.getPerformed()));
}
tgt.setPerformed(VersionConvertor_30_40.convertType(src.getPerformed()));
}
for (org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent t : src.getPerformer()) {
tgt.addPerformer(convertProcedurePerformerComponent(t));
}
if (src.hasLocation()) {
if (src.hasLocation()) {
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
}
tgt.setLocation(VersionConvertor_30_40.convertReference(src.getLocation()));
}
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) {
tgt.addReasonCode(VersionConvertor_30_40.convertCodeableConcept(t));
@ -74,9 +61,7 @@ public class Procedure30_40 {
tgt.addBodySite(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasOutcome()) {
if (src.hasOutcome()) {
tgt.setOutcome(VersionConvertor_30_40.convertCodeableConcept(src.getOutcome()));
}
tgt.setOutcome(VersionConvertor_30_40.convertCodeableConcept(src.getOutcome()));
}
for (org.hl7.fhir.dstu3.model.Reference t : src.getReport()) {
tgt.addReport(VersionConvertor_30_40.convertReference(t));
@ -196,14 +181,10 @@ public class Procedure30_40 {
org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAction()) {
if (src.hasAction()) {
tgt.setAction(VersionConvertor_30_40.convertCodeableConcept(src.getAction()));
}
tgt.setAction(VersionConvertor_30_40.convertCodeableConcept(src.getAction()));
}
if (src.hasManipulated()) {
if (src.hasManipulated()) {
tgt.setManipulated(VersionConvertor_30_40.convertReference(src.getManipulated()));
}
tgt.setManipulated(VersionConvertor_30_40.convertReference(src.getManipulated()));
}
return tgt;
}
@ -214,14 +195,10 @@ public class Procedure30_40 {
org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAction()) {
if (src.hasAction()) {
tgt.setAction(VersionConvertor_30_40.convertCodeableConcept(src.getAction()));
}
tgt.setAction(VersionConvertor_30_40.convertCodeableConcept(src.getAction()));
}
if (src.hasManipulated()) {
if (src.hasManipulated()) {
tgt.setManipulated(VersionConvertor_30_40.convertReference(src.getManipulated()));
}
tgt.setManipulated(VersionConvertor_30_40.convertReference(src.getManipulated()));
}
return tgt;
}
@ -232,19 +209,13 @@ public class Procedure30_40 {
org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasRole()) {
if (src.hasRole()) {
tgt.setFunction(VersionConvertor_30_40.convertCodeableConcept(src.getRole()));
}
tgt.setFunction(VersionConvertor_30_40.convertCodeableConcept(src.getRole()));
}
if (src.hasActor()) {
if (src.hasActor()) {
tgt.setActor(VersionConvertor_30_40.convertReference(src.getActor()));
}
tgt.setActor(VersionConvertor_30_40.convertReference(src.getActor()));
}
if (src.hasOnBehalfOf()) {
if (src.hasOnBehalfOf()) {
tgt.setOnBehalfOf(VersionConvertor_30_40.convertReference(src.getOnBehalfOf()));
}
tgt.setOnBehalfOf(VersionConvertor_30_40.convertReference(src.getOnBehalfOf()));
}
return tgt;
}
@ -255,19 +226,13 @@ public class Procedure30_40 {
org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasFunction()) {
if (src.hasFunction()) {
tgt.setRole(VersionConvertor_30_40.convertCodeableConcept(src.getFunction()));
}
tgt.setRole(VersionConvertor_30_40.convertCodeableConcept(src.getFunction()));
}
if (src.hasActor()) {
if (src.hasActor()) {
tgt.setActor(VersionConvertor_30_40.convertReference(src.getActor()));
}
tgt.setActor(VersionConvertor_30_40.convertReference(src.getActor()));
}
if (src.hasOnBehalfOf()) {
if (src.hasOnBehalfOf()) {
tgt.setOnBehalfOf(VersionConvertor_30_40.convertReference(src.getOnBehalfOf()));
}
tgt.setOnBehalfOf(VersionConvertor_30_40.convertReference(src.getOnBehalfOf()));
}
return tgt;
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.List;
import java.util.Collections;
public class ProcedureRequest30_40 {
@ -118,9 +119,8 @@ public class ProcedureRequest30_40 {
if (src.hasPriority()) {
tgt.setPriority(convertProcedureRequestPriority(src.getPriority()));
}
if (src.hasDoNotPerform()) {
tgt.setDoNotPerform(src.getDoNotPerform());
}
if (src.hasDoNotPerformElement())
tgt.setDoNotPerformElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getDoNotPerformElement()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) {
tgt.addCategory(VersionConvertor_30_40.convertCodeableConcept(t));
}

View File

@ -2,10 +2,9 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Identifier;
import org.hl7.fhir.r4.model.Reference;
import org.hl7.fhir.r4.model.Type;
import org.hl7.fhir.r4.model.UriType;
import org.hl7.fhir.r4.model.*;
import java.util.Collections;
public class Provenance30_40 {
@ -14,16 +13,16 @@ public class Provenance30_40 {
return null;
org.hl7.fhir.r4.model.CodeableConcept tgt = new org.hl7.fhir.r4.model.CodeableConcept();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSystem())
tgt.getCodingFirstRep().setSystem(src.getSystem());
if (src.hasVersion())
tgt.getCodingFirstRep().setVersion(src.getVersion());
if (src.hasCode())
tgt.getCodingFirstRep().setCode(src.getCode());
if (src.hasDisplay())
tgt.getCodingFirstRep().setDisplay(src.getDisplay());
if (src.hasUserSelected())
tgt.getCodingFirstRep().setUserSelected(src.getUserSelected());
if (src.hasSystemElement())
tgt.getCodingFirstRep().setSystemElement((UriType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasVersionElement())
tgt.getCodingFirstRep().setVersionElement((StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasCodeElement())
tgt.getCodingFirstRep().setCodeElement((CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.getCodingFirstRep().setDisplayElement((StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasUserSelectedElement())
tgt.getCodingFirstRep().setUserSelectedElement((BooleanType) VersionConvertor_30_40.convertType(src.getUserSelectedElement()));
return tgt;
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Questionnaire;
import java.util.Collections;
public class Questionnaire30_40 {
@ -11,33 +12,33 @@ public class Questionnaire30_40 {
return null;
org.hl7.fhir.r4.model.Questionnaire tgt = new org.hl7.fhir.r4.model.Questionnaire();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
if (src.hasUseContext()) {
@ -49,8 +50,8 @@ public class Questionnaire30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasCode()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addCode(VersionConvertor_30_40.convertCoding(t));
}
@ -68,33 +69,33 @@ public class Questionnaire30_40 {
return null;
org.hl7.fhir.dstu3.model.Questionnaire tgt = new org.hl7.fhir.dstu3.model.Questionnaire();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasApprovalDate())
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
tgt.setApprovalDateElement(VersionConvertor_30_40.convertDate(src.getApprovalDateElement()));
if (src.hasLastReviewDate())
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
tgt.setLastReviewDateElement(VersionConvertor_30_40.convertDate(src.getLastReviewDateElement()));
if (src.hasEffectivePeriod())
tgt.setEffectivePeriod(VersionConvertor_30_40.convertPeriod(src.getEffectivePeriod()));
if (src.hasUseContext()) {
@ -106,8 +107,8 @@ public class Questionnaire30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasCode()) {
for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addCode(VersionConvertor_30_40.convertCoding(t));
}
@ -125,30 +126,30 @@ public class Questionnaire30_40 {
return null;
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getLinkIdElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasCode()) {
for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addCode(VersionConvertor_30_40.convertCoding(t));
}
if (src.hasPrefix())
tgt.setPrefix(src.getPrefix());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasPrefixElement())
tgt.setPrefixElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPrefixElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
if (src.hasType())
tgt.setType(convertQuestionnaireItemType(src.getType()));
if (src.hasEnableWhen()) {
for (org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
}
if (src.hasRequired())
tgt.setRequired(src.getRequired());
if (src.hasRepeats())
tgt.setRepeats(src.getRepeats());
if (src.hasReadOnly())
tgt.setReadOnly(src.getReadOnly());
if (src.hasMaxLength())
tgt.setMaxLength(src.getMaxLength());
if (src.hasRequiredElement())
tgt.setRequiredElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getRequiredElement()));
if (src.hasRepeatsElement())
tgt.setRepeatsElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getRepeatsElement()));
if (src.hasReadOnlyElement())
tgt.setReadOnlyElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getReadOnlyElement()));
if (src.hasMaxLengthElement())
tgt.setMaxLengthElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getMaxLengthElement()));
if (src.hasAnswerValueSet())
tgt.setOptions(VersionConvertor_30_40.convertCanonicalToReference(src.getAnswerValueSetElement()));
if (src.hasAnswerOption()) {
@ -167,31 +168,31 @@ public class Questionnaire30_40 {
return null;
org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getLinkIdElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasCode()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addCode(VersionConvertor_30_40.convertCoding(t));
}
if (src.hasPrefix())
tgt.setPrefix(src.getPrefix());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasPrefixElement())
tgt.setPrefixElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPrefixElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
if (src.hasType())
tgt.setType(convertQuestionnaireItemType(src.getType()));
if (src.hasEnableWhen()) {
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
}
tgt.setEnableBehavior(Questionnaire.EnableWhenBehavior.ANY);
if (src.hasRequired())
tgt.setRequired(src.getRequired());
if (src.hasRepeats())
tgt.setRepeats(src.getRepeats());
if (src.hasReadOnly())
tgt.setReadOnly(src.getReadOnly());
if (src.hasMaxLength())
tgt.setMaxLength(src.getMaxLength());
if (src.hasRequiredElement())
tgt.setRequiredElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getRequiredElement()));
if (src.hasRepeatsElement())
tgt.setRepeatsElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getRepeatsElement()));
if (src.hasReadOnlyElement())
tgt.setReadOnlyElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getReadOnlyElement()));
if (src.hasMaxLengthElement())
tgt.setMaxLengthElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getMaxLengthElement()));
if (src.hasOptions())
tgt.setAnswerValueSetElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getOptions()));
if (src.hasOption()) {
@ -213,8 +214,8 @@ public class Questionnaire30_40 {
return null;
org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasQuestion())
tgt.setQuestion(src.getQuestion());
if (src.hasQuestionElement())
tgt.setQuestionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getQuestionElement()));
if (src.hasOperator() && src.getOperator() == org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemOperator.EXISTS)
tgt.setHasAnswer(src.getAnswerBooleanType().getValue());
else if (src.hasAnswer())
@ -227,8 +228,8 @@ public class Questionnaire30_40 {
return null;
org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasQuestion())
tgt.setQuestion(src.getQuestion());
if (src.hasQuestionElement())
tgt.setQuestionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getQuestionElement()));
if (src.hasHasAnswer()) {
tgt.setOperator(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemOperator.EXISTS);
if (src.hasHasAnswerElement()) {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class QuestionnaireResponse30_40 {
@ -102,12 +103,12 @@ public class QuestionnaireResponse30_40 {
return null;
org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getLinkIdElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
if (src.hasAnswer()) {
for (org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
}
@ -122,12 +123,12 @@ public class QuestionnaireResponse30_40 {
return null;
org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getLinkIdElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getDefinitionElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTextElement()));
if (src.hasAnswer()) {
for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.List;
import java.util.Collections;
public class RelatedPerson30_40 {
@ -14,9 +15,8 @@ public class RelatedPerson30_40 {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) {
tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive()) {
tgt.setActive(src.getActive());
}
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
}
@ -35,9 +35,8 @@ public class RelatedPerson30_40 {
if (src.hasGender()) {
tgt.setGender(VersionConvertor_30_40.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDate()) {
tgt.setBirthDate(tgt.getBirthDate());
}
if (src.hasBirthDateElement())
tgt.setBirthDateElement((org.hl7.fhir.dstu3.model.DateType) VersionConvertor_30_40.convertType(src.getBirthDateElement()));
for (org.hl7.fhir.r4.model.Address t : src.getAddress()) {
tgt.addAddress(VersionConvertor_30_40.convertAddress(t));
}
@ -58,20 +57,13 @@ public class RelatedPerson30_40 {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) {
tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive()) {
if (src.hasActive()) {
tgt.setActive(src.getActive());
}
}
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasPatient()) {
if (src.hasPatient()) {
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
}
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
}
if (src.hasRelationship()) {
if (src.hasRelationship()) {
tgt.addRelationship(VersionConvertor_30_40.convertCodeableConcept(src.getRelationship()));
}
tgt.addRelationship(VersionConvertor_30_40.convertCodeableConcept(src.getRelationship()));
}
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) {
tgt.addName(VersionConvertor_30_40.convertHumanName(t));
@ -80,13 +72,10 @@ public class RelatedPerson30_40 {
tgt.addTelecom(VersionConvertor_30_40.convertContactPoint(t));
}
if (src.hasGender()) {
if (src.hasGender()) {
tgt.setGender(VersionConvertor_30_40.convertAdministrativeGender(src.getGender()));
}
}
if (src.hasBirthDate()) {
tgt.setBirthDate(tgt.getBirthDate());
tgt.setGender(VersionConvertor_30_40.convertAdministrativeGender(src.getGender()));
}
if (src.hasBirthDateElement())
tgt.setBirthDateElement((org.hl7.fhir.r4.model.DateType) VersionConvertor_30_40.convertType(src.getBirthDateElement()));
for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) {
tgt.addAddress(VersionConvertor_30_40.convertAddress(t));
}
@ -94,9 +83,7 @@ public class RelatedPerson30_40 {
tgt.addPhoto(VersionConvertor_30_40.convertAttachment(t));
}
if (src.hasPeriod()) {
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
}
tgt.setPeriod(VersionConvertor_30_40.convertPeriod(src.getPeriod()));
}
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class RiskAssessment30_40 {
@ -42,8 +43,8 @@ public class RiskAssessment30_40 {
if (src.hasPrediction()) {
for (org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
}
if (src.hasMitigation())
tgt.setMitigation(src.getMitigation());
if (src.hasMitigationElement())
tgt.setMitigationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getMitigationElement()));
if (src.hasNote())
tgt.setComment(src.getNoteFirstRep().getText());
return tgt;
@ -85,8 +86,8 @@ public class RiskAssessment30_40 {
}
for (org.hl7.fhir.dstu3.model.Reference t : src.getBasis()) tgt.addBasis(VersionConvertor_30_40.convertReference(t));
for (org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction()) tgt.addPrediction(convertRiskAssessmentPredictionComponent(t));
if (src.hasMitigation())
tgt.setMitigation(src.getMitigation());
if (src.hasMitigationElement())
tgt.setMitigationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getMitigationElement()));
if (src.hasComment())
tgt.addNote().setText(src.getComment());
return tgt;
@ -103,12 +104,12 @@ public class RiskAssessment30_40 {
tgt.setProbability(VersionConvertor_30_40.convertType(src.getProbability()));
if (src.hasQualitativeRisk())
tgt.setQualitativeRisk(VersionConvertor_30_40.convertCodeableConcept(src.getQualitativeRisk()));
if (src.hasRelativeRisk())
tgt.setRelativeRisk(src.getRelativeRisk());
if (src.hasRelativeRiskElement())
tgt.setRelativeRiskElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_30_40.convertType(src.getRelativeRiskElement()));
if (src.hasWhen())
tgt.setWhen(VersionConvertor_30_40.convertType(src.getWhen()));
if (src.hasRationale())
tgt.setRationale(src.getRationale());
if (src.hasRationaleElement())
tgt.setRationaleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getRationaleElement()));
return tgt;
}
@ -123,12 +124,12 @@ public class RiskAssessment30_40 {
tgt.setProbability(VersionConvertor_30_40.convertType(src.getProbability()));
if (src.hasQualitativeRisk())
tgt.setQualitativeRisk(VersionConvertor_30_40.convertCodeableConcept(src.getQualitativeRisk()));
if (src.hasRelativeRisk())
tgt.setRelativeRisk(src.getRelativeRisk());
if (src.hasRelativeRiskElement())
tgt.setRelativeRiskElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getRelativeRiskElement()));
if (src.hasWhen())
tgt.setWhen(VersionConvertor_30_40.convertType(src.getWhen()));
if (src.hasRationale())
tgt.setRationale(src.getRationale());
if (src.hasRationaleElement())
tgt.setRationaleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getRationaleElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Schedule30_40 {
@ -13,8 +14,8 @@ public class Schedule30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasServiceCategory())
tgt.setServiceCategory(VersionConvertor_30_40.convertCodeableConcept(src.getServiceCategoryFirstRep()));
if (src.hasServiceType()) {
@ -28,8 +29,8 @@ public class Schedule30_40 {
}
if (src.hasPlanningHorizon())
tgt.setPlanningHorizon(VersionConvertor_30_40.convertPeriod(src.getPlanningHorizon()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
@ -41,8 +42,8 @@ public class Schedule30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasActive())
tgt.setActive(src.getActive());
if (src.hasActiveElement())
tgt.setActiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getActiveElement()));
if (src.hasServiceCategory())
tgt.addServiceCategory(VersionConvertor_30_40.convertCodeableConcept(src.getServiceCategory()));
if (src.hasServiceType()) {
@ -56,8 +57,8 @@ public class Schedule30_40 {
}
if (src.hasPlanningHorizon())
tgt.setPlanningHorizon(VersionConvertor_30_40.convertPeriod(src.getPlanningHorizon()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class SearchParameter30_40 {
@ -122,20 +123,20 @@ public class SearchParameter30_40 {
return null;
org.hl7.fhir.dstu3.model.SearchParameter tgt = new org.hl7.fhir.dstu3.model.SearchParameter();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
@ -145,23 +146,23 @@ public class SearchParameter30_40 {
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasBase()) {
for (org.hl7.fhir.r4.model.CodeType t : src.getBase()) tgt.addBase(t.getValue());
}
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertSearchParamType(src.getType()));
if (src.hasDerivedFrom())
tgt.setDerivedFrom(src.getDerivedFrom());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasXpath())
tgt.setXpath(src.getXpath());
if (src.hasDerivedFromElement())
tgt.setDerivedFromElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getDerivedFromElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
if (src.hasXpathElement())
tgt.setXpathElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getXpathElement()));
if (src.hasXpathUsage())
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
if (src.hasTarget()) {
@ -187,20 +188,20 @@ public class SearchParameter30_40 {
return null;
org.hl7.fhir.r4.model.SearchParameter tgt = new org.hl7.fhir.r4.model.SearchParameter();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
@ -210,23 +211,23 @@ public class SearchParameter30_40 {
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasBase()) {
for (org.hl7.fhir.dstu3.model.CodeType t : src.getBase()) tgt.addBase(t.getValue());
}
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertSearchParamType(src.getType()));
if (src.hasDerivedFrom())
tgt.setDerivedFrom(src.getDerivedFrom());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasXpath())
tgt.setXpath(src.getXpath());
if (src.hasDerivedFromElement())
tgt.setDerivedFromElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getDerivedFromElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
if (src.hasXpathElement())
tgt.setXpathElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getXpathElement()));
if (src.hasXpathUsage())
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
if (src.hasTarget()) {
@ -254,8 +255,8 @@ public class SearchParameter30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDefinition())
tgt.setDefinition(VersionConvertor_30_40.convertCanonicalToReference(src.getDefinitionElement()));
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
return tgt;
}
@ -266,8 +267,8 @@ public class SearchParameter30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDefinition())
tgt.setDefinitionElement(VersionConvertor_30_40.convertReferenceToCanonical(src.getDefinition()));
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
return tgt;
}

View File

@ -1,7 +1,13 @@
package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.DecimalType;
import org.hl7.fhir.r4.model.IntegerType;
import org.hl7.fhir.r4.model.UriType;
import java.util.Collections;
public class Sequence30_40 {
@ -83,8 +89,8 @@ public class Sequence30_40 {
}
if (src.hasType())
tgt.setType(convertSequenceType(src.getType()));
if (src.hasCoordinateSystem())
tgt.setCoordinateSystem(src.getCoordinateSystem());
if (src.hasCoordinateSystemElement())
tgt.setCoordinateSystemElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getCoordinateSystemElement()));
if (src.hasPatient())
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
if (src.hasSpecimen())
@ -100,13 +106,13 @@ public class Sequence30_40 {
if (src.hasVariant()) {
for (org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceVariantComponent t : src.getVariant()) tgt.addVariant(convertSequenceVariantComponent(t));
}
if (src.hasObservedSeq())
tgt.setObservedSeq(src.getObservedSeq());
if (src.hasObservedSeqElement())
tgt.setObservedSeqElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getObservedSeqElement()));
if (src.hasQuality()) {
for (org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceQualityComponent t : src.getQuality()) tgt.addQuality(convertSequenceQualityComponent(t));
}
if (src.hasReadCoverage())
tgt.setReadCoverage(src.getReadCoverage());
if (src.hasReadCoverageElement())
tgt.setReadCoverageElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getReadCoverageElement()));
if (src.hasRepository()) {
for (org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceRepositoryComponent t : src.getRepository()) tgt.addRepository(convertSequenceRepositoryComponent(t));
}
@ -126,8 +132,8 @@ public class Sequence30_40 {
}
if (src.hasType())
tgt.setType(convertSequenceType(src.getType()));
if (src.hasCoordinateSystem())
tgt.setCoordinateSystem(src.getCoordinateSystem());
if (src.hasCoordinateSystemElement())
tgt.setCoordinateSystemElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getCoordinateSystemElement()));
if (src.hasPatient())
tgt.setPatient(VersionConvertor_30_40.convertReference(src.getPatient()));
if (src.hasSpecimen())
@ -143,13 +149,13 @@ public class Sequence30_40 {
if (src.hasVariant()) {
for (org.hl7.fhir.dstu3.model.Sequence.SequenceVariantComponent t : src.getVariant()) tgt.addVariant(convertSequenceVariantComponent(t));
}
if (src.hasObservedSeq())
tgt.setObservedSeq(src.getObservedSeq());
if (src.hasObservedSeqElement())
tgt.setObservedSeqElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getObservedSeqElement()));
if (src.hasQuality()) {
for (org.hl7.fhir.dstu3.model.Sequence.SequenceQualityComponent t : src.getQuality()) tgt.addQuality(convertSequenceQualityComponent(t));
}
if (src.hasReadCoverage())
tgt.setReadCoverage(src.getReadCoverage());
if (src.hasReadCoverageElement())
tgt.setReadCoverageElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getReadCoverageElement()));
if (src.hasRepository()) {
for (org.hl7.fhir.dstu3.model.Sequence.SequenceRepositoryComponent t : src.getRepository()) tgt.addRepository(convertSequenceRepositoryComponent(t));
}
@ -168,30 +174,30 @@ public class Sequence30_40 {
tgt.setType(convertQualityType(src.getType()));
if (src.hasStandardSequence())
tgt.setStandardSequence(VersionConvertor_30_40.convertCodeableConcept(src.getStandardSequence()));
if (src.hasStart())
tgt.setStart(src.getStart());
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasStartElement())
tgt.setStartElement((IntegerType) VersionConvertor_30_40.convertType(src.getStartElement()));
if (src.hasEndElement())
tgt.setEndElement((IntegerType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasScore())
tgt.setScore(VersionConvertor_30_40.convertQuantity(src.getScore()));
if (src.hasMethod())
tgt.setMethod(VersionConvertor_30_40.convertCodeableConcept(src.getMethod()));
if (src.hasTruthTP())
tgt.setTruthTP(src.getTruthTP());
if (src.hasQueryTP())
tgt.setQueryTP(src.getQueryTP());
if (src.hasTruthFN())
tgt.setTruthFN(src.getTruthFN());
if (src.hasQueryFP())
tgt.setQueryFP(src.getQueryFP());
if (src.hasGtFP())
tgt.setGtFP(src.getGtFP());
if (src.hasPrecision())
tgt.setPrecision(src.getPrecision());
if (src.hasRecall())
tgt.setRecall(src.getRecall());
if (src.hasFScore())
tgt.setFScore(src.getFScore());
if (src.hasTruthTPElement())
tgt.setTruthTPElement((DecimalType) VersionConvertor_30_40.convertType(src.getTruthTPElement()));
if (src.hasQueryTPElement())
tgt.setQueryTPElement((DecimalType) VersionConvertor_30_40.convertType(src.getQueryTPElement()));
if (src.hasTruthFNElement())
tgt.setTruthFNElement((DecimalType) VersionConvertor_30_40.convertType(src.getTruthFNElement()));
if (src.hasQueryFPElement())
tgt.setQueryFPElement((DecimalType) VersionConvertor_30_40.convertType(src.getQueryFPElement()));
if (src.hasGtFPElement())
tgt.setGtFPElement((DecimalType) VersionConvertor_30_40.convertType(src.getGtFPElement()));
if (src.hasPrecisionElement())
tgt.setPrecisionElement((DecimalType) VersionConvertor_30_40.convertType(src.getPrecisionElement()));
if (src.hasRecallElement())
tgt.setRecallElement((DecimalType) VersionConvertor_30_40.convertType(src.getRecallElement()));
if (src.hasFScoreElement())
tgt.setFScoreElement((DecimalType) VersionConvertor_30_40.convertType(src.getFScoreElement()));
return tgt;
}
@ -212,22 +218,22 @@ public class Sequence30_40 {
tgt.setScore(VersionConvertor_30_40.convertQuantity(src.getScore()));
if (src.hasMethod())
tgt.setMethod(VersionConvertor_30_40.convertCodeableConcept(src.getMethod()));
if (src.hasTruthTP())
tgt.setTruthTP(src.getTruthTP());
if (src.hasQueryTP())
tgt.setQueryTP(src.getQueryTP());
if (src.hasTruthFN())
tgt.setTruthFN(src.getTruthFN());
if (src.hasQueryFP())
tgt.setQueryFP(src.getQueryFP());
if (src.hasGtFP())
tgt.setGtFP(src.getGtFP());
if (src.hasPrecision())
tgt.setPrecision(src.getPrecision());
if (src.hasRecall())
tgt.setRecall(src.getRecall());
if (src.hasFScore())
tgt.setFScore(src.getFScore());
if (src.hasTruthTPElement())
tgt.setTruthTPElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getTruthTPElement()));
if (src.hasQueryTPElement())
tgt.setQueryTPElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getQueryTPElement()));
if (src.hasTruthFNElement())
tgt.setTruthFNElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getTruthFNElement()));
if (src.hasQueryFPElement())
tgt.setQueryFPElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getQueryFPElement()));
if (src.hasGtFPElement())
tgt.setGtFPElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getGtFPElement()));
if (src.hasPrecisionElement())
tgt.setPrecisionElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getPrecisionElement()));
if (src.hasRecallElement())
tgt.setRecallElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getRecallElement()));
if (src.hasFScoreElement())
tgt.setFScoreElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getFScoreElement()));
return tgt;
}
@ -238,18 +244,18 @@ public class Sequence30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasChromosome())
tgt.setChromosome(VersionConvertor_30_40.convertCodeableConcept(src.getChromosome()));
if (src.hasGenomeBuild())
tgt.setGenomeBuild(src.getGenomeBuild());
if (src.hasGenomeBuildElement())
tgt.setGenomeBuildElement((StringType) VersionConvertor_30_40.convertType(src.getGenomeBuildElement()));
if (src.hasReferenceSeqId())
tgt.setReferenceSeqId(VersionConvertor_30_40.convertCodeableConcept(src.getReferenceSeqId()));
if (src.hasReferenceSeqPointer())
tgt.setReferenceSeqPointer(VersionConvertor_30_40.convertReference(src.getReferenceSeqPointer()));
if (src.hasReferenceSeqString())
tgt.setReferenceSeqString(src.getReferenceSeqString());
if (src.hasWindowStart())
tgt.setWindowStart(src.getWindowStart());
if (src.hasWindowEnd())
tgt.setWindowEnd(src.getWindowEnd());
if (src.hasReferenceSeqStringElement())
tgt.setReferenceSeqStringElement((StringType) VersionConvertor_30_40.convertType(src.getReferenceSeqStringElement()));
if (src.hasWindowStartElement())
tgt.setWindowStartElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getWindowStartElement()));
if (src.hasWindowEndElement())
tgt.setWindowEndElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getWindowEndElement()));
return tgt;
}
@ -260,18 +266,18 @@ public class Sequence30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasChromosome())
tgt.setChromosome(VersionConvertor_30_40.convertCodeableConcept(src.getChromosome()));
if (src.hasGenomeBuild())
tgt.setGenomeBuild(src.getGenomeBuild());
if (src.hasGenomeBuildElement())
tgt.setGenomeBuildElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getGenomeBuildElement()));
if (src.hasReferenceSeqId())
tgt.setReferenceSeqId(VersionConvertor_30_40.convertCodeableConcept(src.getReferenceSeqId()));
if (src.hasReferenceSeqPointer())
tgt.setReferenceSeqPointer(VersionConvertor_30_40.convertReference(src.getReferenceSeqPointer()));
if (src.hasReferenceSeqString())
tgt.setReferenceSeqString(src.getReferenceSeqString());
if (src.hasWindowStart())
tgt.setWindowStart(src.getWindowStart());
if (src.hasWindowEnd())
tgt.setWindowEnd(src.getWindowEnd());
if (src.hasReferenceSeqStringElement())
tgt.setReferenceSeqStringElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getReferenceSeqStringElement()));
if (src.hasWindowStartElement())
tgt.setWindowStartElement((IntegerType) VersionConvertor_30_40.convertType(src.getWindowStartElement()));
if (src.hasWindowEndElement())
tgt.setWindowEndElement((IntegerType) VersionConvertor_30_40.convertType(src.getWindowEndElement()));
return tgt;
}
@ -282,16 +288,16 @@ public class Sequence30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertRepositoryType(src.getType()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDatasetId())
tgt.setDatasetId(src.getDatasetId());
if (src.hasVariantsetId())
tgt.setVariantsetId(src.getVariantsetId());
if (src.hasReadsetId())
tgt.setReadsetId(src.getReadsetId());
if (src.hasUrlElement())
tgt.setUrlElement((UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDatasetIdElement())
tgt.setDatasetIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDatasetIdElement()));
if (src.hasVariantsetIdElement())
tgt.setVariantsetIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVariantsetIdElement()));
if (src.hasReadsetIdElement())
tgt.setReadsetIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getReadsetIdElement()));
return tgt;
}
@ -302,16 +308,16 @@ public class Sequence30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertRepositoryType(src.getType()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDatasetId())
tgt.setDatasetId(src.getDatasetId());
if (src.hasVariantsetId())
tgt.setVariantsetId(src.getVariantsetId());
if (src.hasReadsetId())
tgt.setReadsetId(src.getReadsetId());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDatasetIdElement())
tgt.setDatasetIdElement((StringType) VersionConvertor_30_40.convertType(src.getDatasetIdElement()));
if (src.hasVariantsetIdElement())
tgt.setVariantsetIdElement((StringType) VersionConvertor_30_40.convertType(src.getVariantsetIdElement()));
if (src.hasReadsetIdElement())
tgt.setReadsetIdElement((StringType) VersionConvertor_30_40.convertType(src.getReadsetIdElement()));
return tgt;
}
@ -350,16 +356,16 @@ public class Sequence30_40 {
return null;
org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceVariantComponent tgt = new org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceVariantComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasStart())
tgt.setStart(src.getStart());
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasObservedAllele())
tgt.setObservedAllele(src.getObservedAllele());
if (src.hasReferenceAllele())
tgt.setReferenceAllele(src.getReferenceAllele());
if (src.hasCigar())
tgt.setCigar(src.getCigar());
if (src.hasStartElement())
tgt.setStartElement((IntegerType) VersionConvertor_30_40.convertType(src.getStartElement()));
if (src.hasEndElement())
tgt.setEndElement((IntegerType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasObservedAlleleElement())
tgt.setObservedAlleleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getObservedAlleleElement()));
if (src.hasReferenceAlleleElement())
tgt.setReferenceAlleleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getReferenceAlleleElement()));
if (src.hasCigarElement())
tgt.setCigarElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCigarElement()));
if (src.hasVariantPointer())
tgt.setVariantPointer(VersionConvertor_30_40.convertReference(src.getVariantPointer()));
return tgt;
@ -370,16 +376,16 @@ public class Sequence30_40 {
return null;
org.hl7.fhir.dstu3.model.Sequence.SequenceVariantComponent tgt = new org.hl7.fhir.dstu3.model.Sequence.SequenceVariantComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasStart())
tgt.setStart(src.getStart());
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasObservedAllele())
tgt.setObservedAllele(src.getObservedAllele());
if (src.hasReferenceAllele())
tgt.setReferenceAllele(src.getReferenceAllele());
if (src.hasCigar())
tgt.setCigar(src.getCigar());
if (src.hasStartElement())
tgt.setStartElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getStartElement()));
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasObservedAlleleElement())
tgt.setObservedAlleleElement((StringType) VersionConvertor_30_40.convertType(src.getObservedAlleleElement()));
if (src.hasReferenceAlleleElement())
tgt.setReferenceAlleleElement((StringType) VersionConvertor_30_40.convertType(src.getReferenceAlleleElement()));
if (src.hasCigarElement())
tgt.setCigarElement((StringType) VersionConvertor_30_40.convertType(src.getCigarElement()));
if (src.hasVariantPointer())
tgt.setVariantPointer(VersionConvertor_30_40.convertReference(src.getVariantPointer()));
return tgt;

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Slot30_40 {
@ -29,12 +30,12 @@ public class Slot30_40 {
tgt.setStatus(convertSlotStatus(src.getStatus()));
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertInstant(src.getStartElement()));
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasOverbooked())
tgt.setOverbooked(src.getOverbooked());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.r4.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasOverbookedElement())
tgt.setOverbookedElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getOverbookedElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
@ -62,12 +63,12 @@ public class Slot30_40 {
tgt.setStatus(convertSlotStatus(src.getStatus()));
if (src.hasStart())
tgt.setStartElement(VersionConvertor_30_40.convertInstant(src.getStartElement()));
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasOverbooked())
tgt.setOverbooked(src.getOverbooked());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.dstu3.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasOverbookedElement())
tgt.setOverbookedElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getOverbookedElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Specimen30_40 {
@ -125,8 +126,8 @@ public class Specimen30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasCapacity())
@ -146,8 +147,8 @@ public class Specimen30_40 {
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasType())
tgt.setType(VersionConvertor_30_40.convertCodeableConcept(src.getType()));
if (src.hasCapacity())
@ -164,8 +165,8 @@ public class Specimen30_40 {
return null;
org.hl7.fhir.r4.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.r4.model.Specimen.SpecimenProcessingComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasProcedure())
tgt.setProcedure(VersionConvertor_30_40.convertCodeableConcept(src.getProcedure()));
if (src.hasAdditive()) {
@ -181,8 +182,8 @@ public class Specimen30_40 {
return null;
org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasProcedure())
tgt.setProcedure(VersionConvertor_30_40.convertCodeableConcept(src.getProcedure()));
if (src.hasAdditive()) {

View File

@ -1,8 +1,10 @@
package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.dstu3.model.CodeType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.utilities.Utilities;
import java.util.Collections;
public class StructureDefinition30_40 {
@ -46,40 +48,40 @@ public class StructureDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureDefinition tgt = new org.hl7.fhir.dstu3.model.StructureDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasKeyword()) {
for (org.hl7.fhir.r4.model.Coding t : src.getKeyword()) tgt.addKeyword(VersionConvertor_30_40.convertCoding(t));
}
@ -90,20 +92,20 @@ public class StructureDefinition30_40 {
}
if (src.hasKind())
tgt.setKind(convertStructureDefinitionKind(src.getKind()));
if (src.hasAbstract())
tgt.setAbstract(src.getAbstract());
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getAbstractElement()));
for (org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionContextComponent t : src.getContext()) {
if (!tgt.hasContextType())
tgt.setContextType(convertExtensionContext(t.getType(), t.getExpression()));
tgt.setTypeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
tgt.addContext("Element".equals(t.getExpression()) ? "*" : t.getExpression());
}
if (src.hasContextInvariant()) {
for (org.hl7.fhir.r4.model.StringType t : src.getContextInvariant()) tgt.addContextInvariant(t.getValue());
}
if (src.hasType())
tgt.setType(src.getType());
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasTypeElement())
tgt.setTypeElement((CodeType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getBaseDefinitionElement()));
if (src.hasDerivation())
tgt.setDerivation(convertTypeDerivationRule(src.getDerivation()));
if (src.hasSnapshot())
@ -118,40 +120,40 @@ public class StructureDefinition30_40 {
return null;
org.hl7.fhir.r4.model.StructureDefinition tgt = new org.hl7.fhir.r4.model.StructureDefinition();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasKeyword()) {
for (org.hl7.fhir.dstu3.model.Coding t : src.getKeyword()) tgt.addKeyword(VersionConvertor_30_40.convertCoding(t));
}
@ -162,8 +164,8 @@ public class StructureDefinition30_40 {
}
if (src.hasKind())
tgt.setKind(convertStructureDefinitionKind(src.getKind()));
if (src.hasAbstract())
tgt.setAbstract(src.getAbstract());
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getAbstractElement()));
for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) {
org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionContextComponent ec = tgt.addContext();
if (src.hasContextType()) {
@ -174,10 +176,10 @@ public class StructureDefinition30_40 {
if (src.hasContextInvariant()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getContextInvariant()) tgt.addContextInvariant(t.getValue());
}
if (src.hasType())
tgt.setType(src.getType());
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getBaseDefinitionElement()));
if (src.hasDerivation())
tgt.setDerivation(convertTypeDerivationRule(src.getDerivation()));
if (src.hasSnapshot())
@ -255,14 +257,14 @@ public class StructureDefinition30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIdentity())
tgt.setIdentity(src.getIdentity());
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasIdentityElement())
tgt.setIdentityElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getIdentityElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}
@ -271,14 +273,14 @@ public class StructureDefinition30_40 {
return null;
org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIdentity())
tgt.setIdentity(src.getIdentity());
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasIdentityElement())
tgt.setIdentityElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getIdentityElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCommentElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class StructureMap30_40 {
@ -10,40 +11,40 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap tgt = new org.hl7.fhir.dstu3.model.StructureMap();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasStructure()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent t : src.getStructure()) tgt.addStructure(convertStructureMapStructureComponent(t));
}
@ -61,40 +62,40 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap tgt = new org.hl7.fhir.r4.model.StructureMap();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasStructure()) {
for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent t : src.getStructure()) tgt.addStructure(convertStructureMapStructureComponent(t));
}
@ -138,14 +139,14 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasExtends())
tgt.setExtends(src.getExtends());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasExtendsElement())
tgt.setExtendsElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getExtendsElement()));
if (src.hasTypeMode())
tgt.setTypeMode(convertStructureMapGroupTypeMode(src.getTypeMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasInput()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent t : src.getInput()) tgt.addInput(convertStructureMapGroupInputComponent(t));
}
@ -160,14 +161,14 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasExtends())
tgt.setExtends(src.getExtends());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasExtendsElement())
tgt.setExtendsElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getExtendsElement()));
if (src.hasTypeMode())
tgt.setTypeMode(convertStructureMapGroupTypeMode(src.getTypeMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
if (src.hasInput()) {
for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent t : src.getInput()) tgt.addInput(convertStructureMapGroupInputComponent(t));
}
@ -182,14 +183,14 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasMode())
tgt.setMode(convertStructureMapInputMode(src.getMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -198,14 +199,14 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasMode())
tgt.setMode(convertStructureMapInputMode(src.getMode()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -214,8 +215,8 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasSource()) {
for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) tgt.addSource(convertStructureMapGroupRuleSourceComponent(t));
}
@ -228,8 +229,8 @@ public class StructureMap30_40 {
if (src.hasDependent()) {
for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -238,8 +239,8 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasSource()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) tgt.addSource(convertStructureMapGroupRuleSourceComponent(t));
}
@ -252,8 +253,8 @@ public class StructureMap30_40 {
if (src.hasDependent()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -262,8 +263,8 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasVariable()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getVariable()) tgt.addVariable(t.getValue());
}
@ -275,8 +276,8 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasVariable()) {
for (org.hl7.fhir.r4.model.StringType t : src.getVariable()) tgt.addVariable(t.getValue());
}
@ -288,26 +289,26 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasContext())
tgt.setContext(src.getContext());
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasContextElement())
tgt.setContextElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getContextElement()));
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasDefaultValue())
tgt.setDefaultValue(VersionConvertor_30_40.convertType(src.getDefaultValue()));
if (src.hasElement())
tgt.setElement(src.getElement());
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getElementElement()));
if (src.hasListMode())
tgt.setListMode(convertStructureMapSourceListMode(src.getListMode()));
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasCondition())
tgt.setCondition(src.getCondition());
if (src.hasCheck())
tgt.setCheck(src.getCheck());
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getVariableElement()));
if (src.hasConditionElement())
tgt.setConditionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getConditionElement()));
if (src.hasCheckElement())
tgt.setCheckElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCheckElement()));
return tgt;
}
@ -316,26 +317,26 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasContext())
tgt.setContext(src.getContext());
if (src.hasMin())
tgt.setMin(src.getMin());
if (src.hasMax())
tgt.setMax(src.getMax());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasContextElement())
tgt.setContextElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getContextElement()));
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getMaxElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTypeElement()));
if (src.hasDefaultValue())
tgt.setDefaultValue(VersionConvertor_30_40.convertType(src.getDefaultValue()));
if (src.hasElement())
tgt.setElement(src.getElement());
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getElementElement()));
if (src.hasListMode())
tgt.setListMode(convertStructureMapSourceListMode(src.getListMode()));
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasCondition())
tgt.setCondition(src.getCondition());
if (src.hasCheck())
tgt.setCheck(src.getCheck());
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getVariableElement()));
if (src.hasConditionElement())
tgt.setConditionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getConditionElement()));
if (src.hasCheckElement())
tgt.setCheckElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCheckElement()));
return tgt;
}
@ -344,19 +345,19 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasContext())
tgt.setContext(src.getContext());
if (src.hasContextElement())
tgt.setContextElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getContextElement()));
if (src.hasContextType())
tgt.setContextType(convertStructureMapContextType(src.getContextType()));
if (src.hasElement())
tgt.setElement(src.getElement());
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getElementElement()));
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getVariableElement()));
if (src.hasListMode()) {
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode> t : src.getListMode()) VersionConvertor_30_40.copyElement(t, tgt.addListModeElement().setValue(convertStructureMapTargetListMode(t.getValue())));
}
if (src.hasListRuleId())
tgt.setListRuleId(src.getListRuleId());
if (src.hasListRuleIdElement())
tgt.setListRuleIdElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getListRuleIdElement()));
if (src.hasTransform())
tgt.setTransform(convertStructureMapTransform(src.getTransform()));
if (src.hasParameter()) {
@ -370,19 +371,19 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasContext())
tgt.setContext(src.getContext());
if (src.hasContextElement())
tgt.setContextElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getContextElement()));
if (src.hasContextType())
tgt.setContextType(convertStructureMapContextType(src.getContextType()));
if (src.hasElement())
tgt.setElement(src.getElement());
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getElementElement()));
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getVariableElement()));
if (src.hasListMode()) {
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapTargetListMode> t : src.getListMode()) VersionConvertor_30_40.copyElement(t, tgt.addListModeElement().setValue(convertStructureMapTargetListMode(t.getValue())));
}
if (src.hasListRuleId())
tgt.setListRuleId(src.getListRuleId());
if (src.hasListRuleIdElement())
tgt.setListRuleIdElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getListRuleIdElement()));
if (src.hasTransform())
tgt.setTransform(convertStructureMapTransform(src.getTransform()));
if (src.hasParameter()) {
@ -544,14 +545,14 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasMode())
tgt.setMode(convertStructureMapModelMode(src.getMode()));
if (src.hasAlias())
tgt.setAlias(src.getAlias());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasAliasElement())
tgt.setAliasElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getAliasElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -560,14 +561,14 @@ public class StructureMap30_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasMode())
tgt.setMode(convertStructureMapModelMode(src.getMode()));
if (src.hasAlias())
tgt.setAlias(src.getAlias());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasAliasElement())
tgt.setAliasElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getAliasElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDocumentationElement()));
return tgt;
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Subscription30_40 {
@ -15,14 +16,14 @@ public class Subscription30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactPoint(t));
}
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasReason())
tgt.setReason(src.getReason());
if (src.hasCriteria())
tgt.setCriteria(src.getCriteria());
if (src.hasError())
tgt.setError(src.getError());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.r4.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasReasonElement())
tgt.setReasonElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getReasonElement()));
if (src.hasCriteriaElement())
tgt.setCriteriaElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getCriteriaElement()));
if (src.hasErrorElement())
tgt.setErrorElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getErrorElement()));
if (src.hasChannel())
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
return tgt;
@ -38,14 +39,14 @@ public class Subscription30_40 {
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactPoint(t));
}
if (src.hasEnd())
tgt.setEnd(src.getEnd());
if (src.hasReason())
tgt.setReason(src.getReason());
if (src.hasCriteria())
tgt.setCriteria(src.getCriteria());
if (src.hasError())
tgt.setError(src.getError());
if (src.hasEndElement())
tgt.setEndElement((org.hl7.fhir.dstu3.model.InstantType) VersionConvertor_30_40.convertType(src.getEndElement()));
if (src.hasReasonElement())
tgt.setReasonElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getReasonElement()));
if (src.hasCriteriaElement())
tgt.setCriteriaElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getCriteriaElement()));
if (src.hasErrorElement())
tgt.setErrorElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getErrorElement()));
if (src.hasChannel())
tgt.setChannel(convertSubscriptionChannelComponent(src.getChannel()));
return tgt;
@ -58,10 +59,10 @@ public class Subscription30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertSubscriptionChannelType(src.getType()));
if (src.hasEndpoint())
tgt.setEndpoint(src.getEndpoint());
if (src.hasPayload())
tgt.setPayload(src.getPayload());
if (src.hasEndpointElement())
tgt.setEndpointElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getEndpointElement()));
if (src.hasPayloadElement())
tgt.setPayloadElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPayloadElement()));
if (src.hasHeader()) {
for (org.hl7.fhir.r4.model.StringType t : src.getHeader()) tgt.addHeader(t.getValue());
}
@ -75,10 +76,10 @@ public class Subscription30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertSubscriptionChannelType(src.getType()));
if (src.hasEndpoint())
tgt.setEndpoint(src.getEndpoint());
if (src.hasPayload())
tgt.setPayload(src.getPayload());
if (src.hasEndpointElement())
tgt.setEndpointElement((org.hl7.fhir.r4.model.UrlType) VersionConvertor_30_40.convertType(src.getEndpointElement()));
if (src.hasPayloadElement())
tgt.setPayloadElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getPayloadElement()));
if (src.hasHeader()) {
for (org.hl7.fhir.dstu3.model.StringType t : src.getHeader()) tgt.addHeader(t.getValue());
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Substance30_40 {
@ -50,8 +51,8 @@ public class Substance30_40 {
}
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasInstance()) {
for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
}
@ -76,8 +77,8 @@ public class Substance30_40 {
}
if (src.hasCode())
tgt.setCode(VersionConvertor_30_40.convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasInstance()) {
for (org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class SupplyDelivery30_40 {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class TestReport30_40 {
@ -12,18 +13,18 @@ public class TestReport30_40 {
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(convertTestReportStatus(src.getStatus()));
if (src.hasTestScript())
tgt.setTestScript(VersionConvertor_30_40.convertReference(src.getTestScript()));
if (src.hasResult())
tgt.setResult(convertTestReportResult(src.getResult()));
if (src.hasScore())
tgt.setScore(src.getScore());
if (src.hasTester())
tgt.setTester(src.getTester());
if (src.hasScoreElement())
tgt.setScoreElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_30_40.convertType(src.getScoreElement()));
if (src.hasTesterElement())
tgt.setTesterElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTesterElement()));
if (src.hasIssued())
tgt.setIssuedElement(VersionConvertor_30_40.convertDateTime(src.getIssuedElement()));
if (src.hasParticipant()) {
@ -46,18 +47,18 @@ public class TestReport30_40 {
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(convertTestReportStatus(src.getStatus()));
if (src.hasTestScript())
tgt.setTestScript(VersionConvertor_30_40.convertReference(src.getTestScript()));
if (src.hasResult())
tgt.setResult(convertTestReportResult(src.getResult()));
if (src.hasScore())
tgt.setScore(src.getScore());
if (src.hasTester())
tgt.setTester(src.getTester());
if (src.hasScoreElement())
tgt.setScoreElement((org.hl7.fhir.dstu3.model.DecimalType) VersionConvertor_30_40.convertType(src.getScoreElement()));
if (src.hasTesterElement())
tgt.setTesterElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTesterElement()));
if (src.hasIssued())
tgt.setIssuedElement(VersionConvertor_30_40.convertDateTime(src.getIssuedElement()));
if (src.hasParticipant()) {
@ -80,10 +81,10 @@ public class TestReport30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertTestReportParticipantType(src.getType()));
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
return tgt;
}
@ -94,10 +95,10 @@ public class TestReport30_40 {
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertTestReportParticipantType(src.getType()));
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUriElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
return tgt;
}
@ -248,10 +249,10 @@ public class TestReport30_40 {
return null;
org.hl7.fhir.dstu3.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportTestComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasAction()) {
for (org.hl7.fhir.r4.model.TestReport.TestActionComponent t : src.getAction()) tgt.addAction(VersionConvertor_30_40.convertTestActionComponent(t));
}
@ -263,10 +264,10 @@ public class TestReport30_40 {
return null;
org.hl7.fhir.r4.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportTestComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.TestReport.TestActionComponent t : src.getAction()) tgt.addAction(VersionConvertor_30_40.convertTestActionComponent(t));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class TestScript30_40 {
@ -10,39 +11,39 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript tgt = new org.hl7.fhir.r4.model.TestScript();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasOrigin()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent t : src.getOrigin()) tgt.addOrigin(convertTestScriptOriginComponent(t));
}
@ -75,39 +76,39 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript tgt = new org.hl7.fhir.dstu3.model.TestScript();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasOrigin()) {
for (org.hl7.fhir.r4.model.TestScript.TestScriptOriginComponent t : src.getOrigin()) tgt.addOrigin(convertTestScriptOriginComponent(t));
}
@ -140,8 +141,8 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptDestinationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIndex())
tgt.setIndex(src.getIndex());
if (src.hasIndexElement())
tgt.setIndexElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getIndexElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCoding(src.getProfile()));
return tgt;
@ -152,8 +153,8 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIndex())
tgt.setIndex(src.getIndex());
if (src.hasIndexElement())
tgt.setIndexElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getIndexElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCoding(src.getProfile()));
return tgt;
@ -164,10 +165,10 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAutocreate())
tgt.setAutocreate(src.getAutocreate());
if (src.hasAutodelete())
tgt.setAutodelete(src.getAutodelete());
if (src.hasAutocreateElement())
tgt.setAutocreateElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getAutocreateElement()));
if (src.hasAutodeleteElement())
tgt.setAutodeleteElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getAutodeleteElement()));
if (src.hasResource())
tgt.setResource(VersionConvertor_30_40.convertReference(src.getResource()));
return tgt;
@ -178,10 +179,10 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasAutocreate())
tgt.setAutocreate(src.getAutocreate());
if (src.hasAutodelete())
tgt.setAutodelete(src.getAutodelete());
if (src.hasAutocreateElement())
tgt.setAutocreateElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getAutocreateElement()));
if (src.hasAutodeleteElement())
tgt.setAutodeleteElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getAutodeleteElement()));
if (src.hasResource())
tgt.setResource(VersionConvertor_30_40.convertReference(src.getResource()));
return tgt;
@ -192,17 +193,17 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasRequired())
tgt.setRequired(src.getRequired());
if (src.hasValidated())
tgt.setValidated(src.getValidated());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasRequiredElement())
tgt.setRequiredElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getRequiredElement()));
if (src.hasValidatedElement())
tgt.setValidatedElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getValidatedElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasOrigin()) {
for (org.hl7.fhir.dstu3.model.IntegerType t : src.getOrigin()) tgt.addOrigin(t.getValue());
}
if (src.hasDestination())
tgt.setDestination(src.getDestination());
if (src.hasDestinationElement())
tgt.setDestinationElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getDestinationElement()));
if (src.hasLink()) {
for (org.hl7.fhir.dstu3.model.UriType t : src.getLink()) tgt.addLink(t.getValue());
}
@ -216,17 +217,17 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasRequired())
tgt.setRequired(src.getRequired());
if (src.hasValidated())
tgt.setValidated(src.getValidated());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasRequiredElement())
tgt.setRequiredElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getRequiredElement()));
if (src.hasValidatedElement())
tgt.setValidatedElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getValidatedElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasOrigin()) {
for (org.hl7.fhir.r4.model.IntegerType t : src.getOrigin()) tgt.addOrigin(t.getValue());
}
if (src.hasDestination())
tgt.setDestination(src.getDestination());
if (src.hasDestinationElement())
tgt.setDestinationElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getDestinationElement()));
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.UriType t : src.getLink()) tgt.addLink(t.getValue());
}
@ -268,10 +269,10 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -280,10 +281,10 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -292,8 +293,8 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIndex())
tgt.setIndex(src.getIndex());
if (src.hasIndexElement())
tgt.setIndexElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getIndexElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCoding(src.getProfile()));
return tgt;
@ -304,8 +305,8 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptOriginComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIndex())
tgt.setIndex(src.getIndex());
if (src.hasIndexElement())
tgt.setIndexElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getIndexElement()));
if (src.hasProfile())
tgt.setProfile(VersionConvertor_30_40.convertCoding(src.getProfile()));
return tgt;
@ -360,10 +361,10 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasAction()) {
for (org.hl7.fhir.r4.model.TestScript.TestActionComponent t : src.getAction()) tgt.addAction(VersionConvertor_30_40.convertTestActionComponent(t));
}
@ -375,10 +376,10 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasAction()) {
for (org.hl7.fhir.dstu3.model.TestScript.TestActionComponent t : src.getAction()) tgt.addAction(VersionConvertor_30_40.convertTestActionComponent(t));
}
@ -390,22 +391,22 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDefaultValue())
tgt.setDefaultValue(src.getDefaultValue());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasHeaderField())
tgt.setHeaderField(src.getHeaderField());
if (src.hasHint())
tgt.setHint(src.getHint());
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.hasSourceId())
tgt.setSourceId(src.getSourceId());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDefaultValueElement())
tgt.setDefaultValueElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDefaultValueElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
if (src.hasHeaderFieldElement())
tgt.setHeaderFieldElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getHeaderFieldElement()));
if (src.hasHintElement())
tgt.setHintElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getHintElement()));
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.hasSourceIdElement())
tgt.setSourceIdElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_30_40.convertType(src.getSourceIdElement()));
return tgt;
}
@ -414,22 +415,22 @@ public class TestScript30_40 {
return null;
org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDefaultValue())
tgt.setDefaultValue(src.getDefaultValue());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasExpression())
tgt.setExpression(src.getExpression());
if (src.hasHeaderField())
tgt.setHeaderField(src.getHeaderField());
if (src.hasHint())
tgt.setHint(src.getHint());
if (src.hasPath())
tgt.setPath(src.getPath());
if (src.hasSourceId())
tgt.setSourceId(src.getSourceId());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasDefaultValueElement())
tgt.setDefaultValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDefaultValueElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getExpressionElement()));
if (src.hasHeaderFieldElement())
tgt.setHeaderFieldElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getHeaderFieldElement()));
if (src.hasHintElement())
tgt.setHintElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getHintElement()));
if (src.hasPathElement())
tgt.setPathElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPathElement()));
if (src.hasSourceIdElement())
tgt.setSourceIdElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_30_40.convertType(src.getSourceIdElement()));
return tgt;
}
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.BooleanType;
import java.util.Collections;
public class ValueSet30_40 {
@ -11,10 +12,10 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
@ -26,10 +27,10 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
@ -41,12 +42,12 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getLanguageElement()));
if (src.hasUse())
tgt.setUse(VersionConvertor_30_40.convertCoding(src.getUse()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -55,12 +56,12 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getLanguageElement()));
if (src.hasUse())
tgt.setUse(VersionConvertor_30_40.convertCoding(src.getUse()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -69,10 +70,10 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasConcept()) {
for (org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
}
@ -90,10 +91,10 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasConcept()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
}
@ -111,12 +112,12 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasProperty())
tgt.setProperty(src.getProperty());
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getPropertyElement()));
if (src.hasOp())
tgt.setOp(VersionConvertor_30_40.convertFilterOperator(src.getOp()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -125,12 +126,12 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasProperty())
tgt.setProperty(src.getProperty());
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getPropertyElement()));
if (src.hasOp())
tgt.setOp(VersionConvertor_30_40.convertFilterOperator(src.getOp()));
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getValueElement()));
return tgt;
}
@ -139,42 +140,42 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet tgt = new org.hl7.fhir.dstu3.model.ValueSet();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasImmutable())
tgt.setImmutable(src.getImmutable());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasImmutableElement())
tgt.setImmutableElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getImmutableElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasExtension("http://hl7.org/fhir/StructureDefinition/valueset-extensible"))
tgt.setExtensible(((BooleanType) src.getExtensionByUrl("http://hl7.org/fhir/StructureDefinition/valueset-extensible").getValue()).booleanValue());
if (src.hasCompose())
@ -189,42 +190,42 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet tgt = new org.hl7.fhir.r4.model.ValueSet();
VersionConvertor_30_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(VersionConvertor_30_40.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement(VersionConvertor_30_40.convertDateTime(src.getDateElement()));
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) tgt.addContact(VersionConvertor_30_40.convertContactDetail(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getDescriptionElement()));
if (src.hasUseContext()) {
for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) tgt.addUseContext(VersionConvertor_30_40.convertUsageContext(t));
}
if (src.hasJurisdiction()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) tgt.addJurisdiction(VersionConvertor_30_40.convertCodeableConcept(t));
}
if (src.hasImmutable())
tgt.setImmutable(src.getImmutable());
if (src.hasPurpose())
tgt.setPurpose(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasImmutableElement())
tgt.setImmutableElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getImmutableElement()));
if (src.hasPurposeElement())
tgt.setPurposeElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getPurposeElement()));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r4.model.MarkdownType) VersionConvertor_30_40.convertType(src.getCopyrightElement()));
if (src.hasExtensible())
tgt.addExtension("http://hl7.org/fhir/StructureDefinition/valueset-extensible", new BooleanType(src.getExtensible()));
if (src.hasCompose())
@ -240,9 +241,9 @@ public class ValueSet30_40 {
org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLockedDate())
tgt.setLockedDateElement(VersionConvertor_30_40.convertDate(src.getLockedDateElement()));
if (src.hasInactive())
tgt.setInactive(src.getInactive());
tgt.setLockedDateElement(VersionConvertor_30_40.convertDate(src.getLockedDateElement()));
if (src.hasInactiveElement())
tgt.setInactiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getInactiveElement()));
if (src.hasInclude()) {
for (org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t));
}
@ -258,9 +259,9 @@ public class ValueSet30_40 {
org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasLockedDate())
tgt.setLockedDateElement(VersionConvertor_30_40.convertDate(src.getLockedDateElement()));
if (src.hasInactive())
tgt.setInactive(src.getInactive());
tgt.setLockedDateElement(VersionConvertor_30_40.convertDate(src.getLockedDateElement()));
if (src.hasInactiveElement())
tgt.setInactiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getInactiveElement()));
if (src.hasInclude()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t));
}
@ -275,14 +276,14 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(src.getIdentifier());
if (src.hasIdentifierElement())
tgt.setIdentifierElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getIdentifierElement()));
if (src.hasTimestamp())
tgt.setTimestampElement(VersionConvertor_30_40.convertDateTime(src.getTimestampElement()));
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasOffset())
tgt.setOffset(src.getOffset());
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getTotalElement()));
if (src.hasOffsetElement())
tgt.setOffsetElement((org.hl7.fhir.dstu3.model.IntegerType) VersionConvertor_30_40.convertType(src.getOffsetElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
}
@ -297,14 +298,14 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(src.getIdentifier());
if (src.hasIdentifierElement())
tgt.setIdentifierElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getIdentifierElement()));
if (src.hasTimestamp())
tgt.setTimestampElement(VersionConvertor_30_40.convertDateTime(src.getTimestampElement()));
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasOffset())
tgt.setOffset(src.getOffset());
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getTotalElement()));
if (src.hasOffsetElement())
tgt.setOffsetElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_30_40.convertType(src.getOffsetElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
}
@ -319,18 +320,18 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasAbstract())
tgt.setAbstract(src.getAbstract());
if (src.hasInactive())
tgt.setInactive(src.getInactive());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getAbstractElement()));
if (src.hasInactiveElement())
tgt.setInactiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_40.convertType(src.getInactiveElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
@ -345,18 +346,18 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasAbstract())
tgt.setAbstract(src.getAbstract());
if (src.hasInactive())
tgt.setInactive(src.getInactive());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_30_40.convertType(src.getSystemElement()));
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getAbstractElement()));
if (src.hasInactiveElement())
tgt.setInactiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_30_40.convertType(src.getInactiveElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getVersionElement()));
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_30_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getDisplayElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
@ -371,8 +372,8 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
return tgt;
@ -383,8 +384,8 @@ public class ValueSet30_40 {
return null;
org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent();
VersionConvertor_30_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_40.convertType(src.getNameElement()));
if (src.hasValue())
tgt.setValue(VersionConvertor_30_40.convertType(src.getValue()));
return tgt;

View File

@ -92,7 +92,7 @@ public class Parser {
// VERSION_FILES.forEach(version -> {
String version = "14_50";
String version = "30_40";
List<String> filenames = listAllJavaFilesInDirectory(new File("").getAbsolutePath() + "/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv" + version + "/");
System.out.println("Checking the following files:");
Collections.sort(filenames);