Merge pull request #486 from hapifhir/gg-202105-r460

update R5 to 4.6.0
This commit is contained in:
Grahame Grieve 2021-05-04 13:12:55 +10:00 committed by GitHub
commit 5bdc7861ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
299 changed files with 61370 additions and 43465 deletions

1
.gitignore vendored
View File

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

View File

@ -0,0 +1 @@
* Update core R5 code to v4.6.0 (breaking changes to questionnaire, concept map, and other resources that are less important to core)

View File

@ -43,7 +43,7 @@ public class VersionConvertorResourceNameMapper {
case "DeviceComponent" : return null;
case "DeviceMetric" : return org.hl7.fhir.r5.model.DeviceMetric.class.getSimpleName();
case "DeviceRequest" : return org.hl7.fhir.r5.model.DeviceRequest.class.getSimpleName();
case "DeviceUseStatement" : return org.hl7.fhir.r5.model.DeviceUseStatement.class.getSimpleName();
case "DeviceUseStatement" : return org.hl7.fhir.r5.model.DeviceUsage.class.getSimpleName();
case "DiagnosticReport" : return org.hl7.fhir.r5.model.DiagnosticReport.class.getSimpleName();
case "DocumentManifest" : return org.hl7.fhir.r5.model.DocumentManifest.class.getSimpleName();
case "DocumentReference" : return org.hl7.fhir.r5.model.DocumentReference.class.getSimpleName();
@ -169,7 +169,7 @@ public class VersionConvertorResourceNameMapper {
case "DeviceDefinition" : return null;
case "DeviceMetric" : return org.hl7.fhir.dstu3.model.DeviceMetric.class.getSimpleName();
case "DeviceRequest" : return org.hl7.fhir.dstu3.model.DeviceRequest.class.getSimpleName();
case "DeviceUseStatement" : return org.hl7.fhir.dstu3.model.DeviceUseStatement.class.getSimpleName();
case "DeviceUsage" : return org.hl7.fhir.dstu3.model.DeviceUseStatement.class.getSimpleName();
case "DiagnosticReport" : return org.hl7.fhir.dstu3.model.DiagnosticReport.class.getSimpleName();
case "DocumentManifest" : return org.hl7.fhir.dstu3.model.DocumentManifest.class.getSimpleName();
case "DocumentReference" : return org.hl7.fhir.dstu3.model.DocumentReference.class.getSimpleName();

View File

@ -46,7 +46,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_10_30 {
public class VersionConvertor_10_30 extends VersionConvertor_Base {
public static void copyElement(org.hl7.fhir.dstu2.model.Element src, org.hl7.fhir.dstu3.model.Element tgt) throws FHIRException {
tgt.setId(src.getId());
for (org.hl7.fhir.dstu2.model.Extension e : src.getExtension()) {

View File

@ -55,7 +55,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_10_40 {
public class VersionConvertor_10_40 extends VersionConvertor_Base {
static public List<String> CANONICAL_URLS = new ArrayList<String>();
static {

View File

@ -54,7 +54,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_10_50 {
public class VersionConvertor_10_50 extends VersionConvertor_Base {
static public List<String> CANONICAL_URLS = new ArrayList<String>();
static {
@ -2979,8 +2979,8 @@ public class VersionConvertor_10_50 {
return DetectedIssue10_50.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceMetric)
return DeviceMetric10_50.convertDeviceMetric((org.hl7.fhir.r5.model.DeviceMetric) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceUseStatement)
return DeviceUseStatement10_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceUsage)
return DeviceUseStatement10_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUsage) src);
if (src instanceof org.hl7.fhir.r5.model.DiagnosticReport)
return DiagnosticReport10_50.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src);
if (src instanceof org.hl7.fhir.r5.model.DocumentReference)

View File

@ -39,7 +39,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_14_30 {
public class VersionConvertor_14_30 extends VersionConvertor_Base {
static public void copyElement(org.hl7.fhir.dstu2016may.model.Element src, org.hl7.fhir.dstu3.model.Element tgt, String... exemptExtensions) throws FHIRException {
if (src.hasId()) tgt.setId(src.getId());
for (org.hl7.fhir.dstu2016may.model.Extension e : src.getExtension()) {

View File

@ -43,7 +43,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_14_40 {
public class VersionConvertor_14_40 extends VersionConvertor_Base {
static public List<String> CANONICAL_URLS = new ArrayList<String>();
static {

View File

@ -43,7 +43,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_14_50 {
public class VersionConvertor_14_50 extends VersionConvertor_Base {
static public List<String> CANONICAL_URLS = new ArrayList<String>();
static {
@ -299,6 +299,13 @@ public class VersionConvertor_14_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.MarkdownType convertStringToMarkdown(org.hl7.fhir.dstu2016may.model.StringType src) throws FHIRException {
org.hl7.fhir.r5.model.MarkdownType tgt = src.hasValue() ? new org.hl7.fhir.r5.model.MarkdownType(src.getValue()) : new org.hl7.fhir.r5.model.MarkdownType();
copyElement(src, tgt);
return tgt;
}
public static org.hl7.fhir.r5.model.TimeType convertTime(org.hl7.fhir.dstu2016may.model.TimeType src) throws FHIRException {
org.hl7.fhir.r5.model.TimeType tgt = new org.hl7.fhir.r5.model.TimeType();
if (src.hasValue()) tgt.setValue(src.getValue());

View File

@ -42,7 +42,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_30_40 {
public class VersionConvertor_30_40 extends VersionConvertor_Base {
static final public String EXT_SRC_TYPE = "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type";
static public List<String> CANONICAL_URLS = new ArrayList<>();

View File

@ -39,7 +39,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_30_50 {
public class VersionConvertor_30_50 extends VersionConvertor_Base {
static final public String EXT_SRC_TYPE = "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type";
static public List<String> CANONICAL_URLS = new ArrayList<>();
@ -4805,8 +4805,8 @@ public class VersionConvertor_30_50 {
return Consent30_50.convertConsent((org.hl7.fhir.r5.model.Consent) src);
if (src instanceof org.hl7.fhir.r5.model.DetectedIssue)
return DetectedIssue30_50.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceUseStatement)
return DeviceUseStatement30_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceUsage)
return DeviceUseStatement30_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUsage) src);
if (src instanceof org.hl7.fhir.r5.model.DiagnosticReport)
return DiagnosticReport30_50.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src);
if (src instanceof org.hl7.fhir.r5.model.DocumentReference)

View File

@ -34,7 +34,7 @@ import java.util.stream.Collectors;
POSSIBILITY OF SUCH DAMAGE.
*/
public class VersionConvertor_40_50 {
public class VersionConvertor_40_50 extends VersionConvertor_Base {
static public boolean isExemptExtension(String url, String[] extensionsToIgnore) {
boolean ok = false;
for (String s : extensionsToIgnore) if (s.equals(url)) ok = true;
@ -3478,8 +3478,8 @@ public class VersionConvertor_40_50 {
return Coverage40_50.convertCoverage((org.hl7.fhir.r4.model.Coverage) src);
if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityRequest)
return CoverageEligibilityRequest40_50.convertCoverageEligibilityRequest((org.hl7.fhir.r4.model.CoverageEligibilityRequest) src);
if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityResponse)
return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r4.model.CoverageEligibilityResponse) src);
// if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityResponse)
// return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r4.model.CoverageEligibilityResponse) src);
if (src instanceof org.hl7.fhir.r4.model.DetectedIssue)
return DetectedIssue40_50.convertDetectedIssue((org.hl7.fhir.r4.model.DetectedIssue) src);
if (src instanceof org.hl7.fhir.r4.model.Device)
@ -3504,8 +3504,8 @@ public class VersionConvertor_40_50 {
return Endpoint40_50.convertEndpoint((org.hl7.fhir.r4.model.Endpoint) src);
if (src instanceof org.hl7.fhir.r4.model.EnrollmentRequest)
return EnrollmentRequest40_50.convertEnrollmentRequest((org.hl7.fhir.r4.model.EnrollmentRequest) src);
if (src instanceof org.hl7.fhir.r4.model.EnrollmentResponse)
return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r4.model.EnrollmentResponse) src);
// if (src instanceof org.hl7.fhir.r4.model.EnrollmentResponse)
// return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r4.model.EnrollmentResponse) src);
if (src instanceof org.hl7.fhir.r4.model.EpisodeOfCare)
return EpisodeOfCare40_50.convertEpisodeOfCare((org.hl7.fhir.r4.model.EpisodeOfCare) src);
if (src instanceof org.hl7.fhir.r4.model.EventDefinition)
@ -3564,8 +3564,8 @@ public class VersionConvertor_40_50 {
return MedicationRequest40_50.convertMedicationRequest((org.hl7.fhir.r4.model.MedicationRequest) src);
if (src instanceof org.hl7.fhir.r4.model.MedicationStatement)
return MedicationStatement40_50.convertMedicationStatement((org.hl7.fhir.r4.model.MedicationStatement) src);
if (src instanceof org.hl7.fhir.r4.model.MedicinalProduct)
return MedicinalProductDefinition40_50.convertMedicinalProduct((org.hl7.fhir.r4.model.MedicinalProduct) src);
// if (src instanceof org.hl7.fhir.r4.model.MedicinalProduct)
// return MedicinalProductDefinition40_50.convertMedicinalProduct((org.hl7.fhir.r4.model.MedicinalProduct) src);
if (src instanceof org.hl7.fhir.r4.model.MessageDefinition)
return MessageDefinition40_50.convertMessageDefinition((org.hl7.fhir.r4.model.MessageDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.MessageHeader)
@ -3592,8 +3592,8 @@ public class VersionConvertor_40_50 {
return Patient40_50.convertPatient((org.hl7.fhir.r4.model.Patient) src);
if (src instanceof org.hl7.fhir.r4.model.PaymentNotice)
return PaymentNotice40_50.convertPaymentNotice((org.hl7.fhir.r4.model.PaymentNotice) src);
if (src instanceof org.hl7.fhir.r4.model.PaymentReconciliation)
return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r4.model.PaymentReconciliation) src);
// if (src instanceof org.hl7.fhir.r4.model.PaymentReconciliation)
// return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r4.model.PaymentReconciliation) src);
if (src instanceof org.hl7.fhir.r4.model.Person)
return Person40_50.convertPerson((org.hl7.fhir.r4.model.Person) src);
if (src instanceof org.hl7.fhir.r4.model.PlanDefinition)
@ -3612,12 +3612,12 @@ public class VersionConvertor_40_50 {
return QuestionnaireResponse40_50.convertQuestionnaireResponse((org.hl7.fhir.r4.model.QuestionnaireResponse) src);
if (src instanceof org.hl7.fhir.r4.model.RelatedPerson)
return RelatedPerson40_50.convertRelatedPerson((org.hl7.fhir.r4.model.RelatedPerson) src);
if (src instanceof org.hl7.fhir.r4.model.RequestGroup)
return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r4.model.RequestGroup) src);
if (src instanceof org.hl7.fhir.r4.model.ResearchStudy)
return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r4.model.ResearchStudy) src);
if (src instanceof org.hl7.fhir.r4.model.ResearchSubject)
return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r4.model.ResearchSubject) src);
// if (src instanceof org.hl7.fhir.r4.model.RequestGroup)
// return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r4.model.RequestGroup) src);
// if (src instanceof org.hl7.fhir.r4.model.ResearchStudy)
// return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r4.model.ResearchStudy) src);
// if (src instanceof org.hl7.fhir.r4.model.ResearchSubject)
// return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r4.model.ResearchSubject) src);
if (src instanceof org.hl7.fhir.r4.model.RiskAssessment)
return RiskAssessment40_50.convertRiskAssessment((org.hl7.fhir.r4.model.RiskAssessment) src);
if (src instanceof org.hl7.fhir.r4.model.Schedule)
@ -3729,8 +3729,8 @@ public class VersionConvertor_40_50 {
return Coverage40_50.convertCoverage((org.hl7.fhir.r5.model.Coverage) src);
if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityRequest)
return CoverageEligibilityRequest40_50.convertCoverageEligibilityRequest((org.hl7.fhir.r5.model.CoverageEligibilityRequest) src);
if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityResponse)
return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r5.model.CoverageEligibilityResponse) src);
// if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityResponse)
// return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r5.model.CoverageEligibilityResponse) src);
if (src instanceof org.hl7.fhir.r5.model.DetectedIssue)
return DetectedIssue40_50.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src);
if (src instanceof org.hl7.fhir.r5.model.Device)
@ -3741,8 +3741,8 @@ public class VersionConvertor_40_50 {
return DeviceMetric40_50.convertDeviceMetric((org.hl7.fhir.r5.model.DeviceMetric) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceRequest)
return DeviceRequest40_50.convertDeviceRequest((org.hl7.fhir.r5.model.DeviceRequest) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceUseStatement)
return DeviceUseStatement40_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceUsage)
return DeviceUseStatement40_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUsage) src);
if (src instanceof org.hl7.fhir.r5.model.DiagnosticReport)
return DiagnosticReport40_50.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src);
if (src instanceof org.hl7.fhir.r5.model.DocumentManifest)
@ -3755,8 +3755,8 @@ public class VersionConvertor_40_50 {
return Endpoint40_50.convertEndpoint((org.hl7.fhir.r5.model.Endpoint) src);
if (src instanceof org.hl7.fhir.r5.model.EnrollmentRequest)
return EnrollmentRequest40_50.convertEnrollmentRequest((org.hl7.fhir.r5.model.EnrollmentRequest) src);
if (src instanceof org.hl7.fhir.r5.model.EnrollmentResponse)
return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r5.model.EnrollmentResponse) src);
// if (src instanceof org.hl7.fhir.r5.model.EnrollmentResponse)
// return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r5.model.EnrollmentResponse) src);
if (src instanceof org.hl7.fhir.r5.model.EpisodeOfCare)
return EpisodeOfCare40_50.convertEpisodeOfCare((org.hl7.fhir.r5.model.EpisodeOfCare) src);
if (src instanceof org.hl7.fhir.r5.model.EventDefinition)
@ -3816,8 +3816,8 @@ public class VersionConvertor_40_50 {
return MedicationRequest40_50.convertMedicationRequest((org.hl7.fhir.r5.model.MedicationRequest) src);
if (src instanceof org.hl7.fhir.r5.model.MedicationUsage)
return MedicationStatement40_50.convertMedicationStatement((org.hl7.fhir.r5.model.MedicationUsage) src);
if (src instanceof org.hl7.fhir.r5.model.MedicinalProductDefinition)
return MedicinalProductDefinition40_50.convertMedicinalProductDefinition((org.hl7.fhir.r5.model.MedicinalProductDefinition) src);
// if (src instanceof org.hl7.fhir.r5.model.MedicinalProductDefinition)
// return MedicinalProductDefinition40_50.convertMedicinalProductDefinition((org.hl7.fhir.r5.model.MedicinalProductDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.MessageDefinition)
return MessageDefinition40_50.convertMessageDefinition((org.hl7.fhir.r5.model.MessageDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.MessageHeader)
@ -3844,8 +3844,8 @@ public class VersionConvertor_40_50 {
return Patient40_50.convertPatient((org.hl7.fhir.r5.model.Patient) src);
if (src instanceof org.hl7.fhir.r5.model.PaymentNotice)
return PaymentNotice40_50.convertPaymentNotice((org.hl7.fhir.r5.model.PaymentNotice) src);
if (src instanceof org.hl7.fhir.r5.model.PaymentReconciliation)
return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r5.model.PaymentReconciliation) src);
// if (src instanceof org.hl7.fhir.r5.model.PaymentReconciliation)
// return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r5.model.PaymentReconciliation) src);
if (src instanceof org.hl7.fhir.r5.model.Person)
return Person40_50.convertPerson((org.hl7.fhir.r5.model.Person) src);
if (src instanceof org.hl7.fhir.r5.model.PlanDefinition)
@ -3864,12 +3864,12 @@ public class VersionConvertor_40_50 {
return QuestionnaireResponse40_50.convertQuestionnaireResponse((org.hl7.fhir.r5.model.QuestionnaireResponse) src);
if (src instanceof org.hl7.fhir.r5.model.RelatedPerson)
return RelatedPerson40_50.convertRelatedPerson((org.hl7.fhir.r5.model.RelatedPerson) src);
if (src instanceof org.hl7.fhir.r5.model.RequestGroup)
return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r5.model.RequestGroup) src);
if (src instanceof org.hl7.fhir.r5.model.ResearchStudy)
return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r5.model.ResearchStudy) src);
if (src instanceof org.hl7.fhir.r5.model.ResearchSubject)
return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r5.model.ResearchSubject) src);
// if (src instanceof org.hl7.fhir.r5.model.RequestGroup)
// return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r5.model.RequestGroup) src);
// if (src instanceof org.hl7.fhir.r5.model.ResearchStudy)
// return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r5.model.ResearchStudy) src);
// if (src instanceof org.hl7.fhir.r5.model.ResearchSubject)
// return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r5.model.ResearchSubject) src);
if (src instanceof org.hl7.fhir.r5.model.RiskAssessment)
return RiskAssessment40_50.convertRiskAssessment((org.hl7.fhir.r5.model.RiskAssessment) src);
if (src instanceof org.hl7.fhir.r5.model.Schedule)

View File

@ -0,0 +1,13 @@
package org.hl7.fhir.convertors;
public class VersionConvertor_Base {
public static org.hl7.fhir.r5.model.CodeableConcept convertAppointmentPriorityToR5(int priority) {
return null;
}
public static int convertAppointmentPriorityFromR5(org.hl7.fhir.r5.model.CodeableConcept priority) {
return 0;
}
}

View File

@ -1,9 +1,12 @@
package org.hl7.fhir.convertors.conv10_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
import org.hl7.fhir.convertors.VersionConvertor_Base;
import org.hl7.fhir.dstu2.model.UnsignedIntType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeableConcept;
public class Appointment10_50 {
public class Appointment10_50 extends VersionConvertor_Base {
public static org.hl7.fhir.dstu2.model.Appointment convertAppointment(org.hl7.fhir.r5.model.Appointment src) throws FHIRException {
if (src == null || src.isEmpty())
@ -14,8 +17,8 @@ public class Appointment10_50 {
if (src.hasStatus())
tgt.setStatusElement(convertAppointmentStatus(src.getStatusElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_50.convertCodeableConcept(t));
if (src.hasPriorityElement())
tgt.setPriorityElement(VersionConvertor_10_50.convertUnsignedInt(src.getPriorityElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertAppointmentPriority(src.getPriority()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement()));
if (src.hasStartElement())
@ -31,6 +34,18 @@ public class Appointment10_50 {
return tgt;
}
private static UnsignedIntType convertAppointmentPriority(CodeableConcept src) {
UnsignedIntType tgt = new UnsignedIntType(convertAppointmentPriorityFromR5(src));
VersionConvertor_10_50.copyElement(src, tgt);
return tgt;
}
private static CodeableConcept convertAppointmentPriority(UnsignedIntType src) {
CodeableConcept tgt = src.hasValue() ? convertAppointmentPriorityToR5(src.getValue()) : new CodeableConcept();
VersionConvertor_10_50.copyElement(src, tgt);
return tgt;
}
public static org.hl7.fhir.r5.model.Appointment convertAppointment(org.hl7.fhir.dstu2.model.Appointment src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
@ -42,7 +57,7 @@ public class Appointment10_50 {
if (src.hasType())
tgt.addServiceType(VersionConvertor_10_50.convertCodeableConcept(src.getType()));
if (src.hasPriorityElement())
tgt.setPriorityElement(VersionConvertor_10_50.convertUnsignedInt(src.getPriorityElement()));
tgt.setPriority(convertAppointmentPriority(src.getPriorityElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement()));
if (src.hasStartElement())
@ -58,6 +73,7 @@ public class Appointment10_50 {
return tgt;
}
public static org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent convertAppointmentParticipantComponent(org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;

View File

@ -70,10 +70,10 @@ public class CarePlan10_50 {
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent();
VersionConvertor_10_50.copyElement(src, tgt);
for (org.hl7.fhir.r5.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_50.convertAnnotation(t));
if (src.hasReference())
tgt.setReference(VersionConvertor_10_50.convertReference(src.getReference()));
if (src.hasDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
if (src.hasPlannedActivityReference())
tgt.setReference(VersionConvertor_10_50.convertReference(src.getPlannedActivityReference()));
if (src.hasPlannedActivityDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getPlannedActivityDetail()));
return tgt;
}
@ -84,16 +84,16 @@ public class CarePlan10_50 {
VersionConvertor_10_50.copyElement(src, tgt);
for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_50.convertAnnotation(t));
if (src.hasReference())
tgt.setReference(VersionConvertor_10_50.convertReference(src.getReference()));
tgt.setPlannedActivityReference(VersionConvertor_10_50.convertReference(src.getReference()));
if (src.hasDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
tgt.setPlannedActivityDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
return tgt;
}
public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent();
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent();
VersionConvertor_10_50.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode()));
@ -120,7 +120,7 @@ public class CarePlan10_50 {
return tgt;
}
public static org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
public static org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent();

View File

@ -7,10 +7,10 @@ import org.hl7.fhir.r5.model.CodeableReference;
public class DeviceUseStatement10_50 {
public static org.hl7.fhir.r5.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.dstu2.model.DeviceUseStatement src) throws FHIRException {
public static org.hl7.fhir.r5.model.DeviceUsage convertDeviceUseStatement(org.hl7.fhir.dstu2.model.DeviceUseStatement src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.DeviceUseStatement tgt = new org.hl7.fhir.r5.model.DeviceUseStatement();
org.hl7.fhir.r5.model.DeviceUsage tgt = new org.hl7.fhir.r5.model.DeviceUsage();
VersionConvertor_10_50.copyDomainResource(src, tgt);
if (src.hasBodySiteCodeableConcept())
tgt.getBodySite().setConcept(VersionConvertor_10_50.convertCodeableConcept(src.getBodySiteCodeableConcept()));
@ -28,7 +28,7 @@ public class DeviceUseStatement10_50 {
return tgt;
}
public static org.hl7.fhir.dstu2.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUseStatement src) throws FHIRException {
public static org.hl7.fhir.dstu2.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUsage src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();

View File

@ -122,7 +122,7 @@ public class MedicationStatement10_50 {
VersionConvertor_10_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
@ -131,7 +131,7 @@ public class MedicationStatement10_50 {
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL);
@ -146,16 +146,16 @@ public class MedicationStatement10_50 {
org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus> tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatusEnumFactory());
VersionConvertor_10_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.ACTIVE);
break;
// case ACTIVE:
// tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.ACTIVE);
// break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR);
break;
case INTENDED:
case UNKNOWN:
tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.INTENDED);
break;
default:

View File

@ -1,9 +1,11 @@
package org.hl7.fhir.convertors.conv10_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
import org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.ContactDetail;
import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint;
import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent;
public class Questionnaire10_50 {
@ -98,7 +100,7 @@ public class Questionnaire10_50 {
tgt.setLinkIdElement(VersionConvertor_10_50.convertString(src.getLinkIdElement()));
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_50.convertCoding(t));
if (src.hasTextElement())
tgt.setTextElement(VersionConvertor_10_50.convertString(src.getTextElement()));
tgt.setTextElement(VersionConvertor_10_50.convertStringToMarkdown(src.getTextElement()));
tgt.setType(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.GROUP);
if (src.hasRequiredElement())
tgt.setRequiredElement(VersionConvertor_10_50.convertBoolean(src.getRequiredElement()));
@ -109,7 +111,7 @@ public class Questionnaire10_50 {
return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src) throws FHIRException {
static public org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src, QuestionnaireAnswerConstraint constraint) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat> tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormatEnumFactory());
@ -142,11 +144,11 @@ public class Questionnaire10_50 {
case URL:
tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.CHOICE);
break;
case OPENCHOICE:
tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.OPENCHOICE);
case CODING:
if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING)
tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.OPENCHOICE);
else
tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.CHOICE);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.ATTACHMENT);
@ -175,7 +177,7 @@ public class Questionnaire10_50 {
if (src.hasTextElement())
tgt.setTextElement(VersionConvertor_10_50.convertString(src.getTextElement()));
if (src.hasType())
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement()));
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint()));
if (src.hasRequiredElement())
tgt.setRequiredElement(VersionConvertor_10_50.convertBoolean(src.getRequiredElement()));
if (src.hasRepeatsElement())
@ -201,9 +203,15 @@ public class Questionnaire10_50 {
tgt.setLinkIdElement(VersionConvertor_10_50.convertString(src.getLinkIdElement()));
for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_50.convertCoding(t));
if (src.hasTextElement())
tgt.setTextElement(VersionConvertor_10_50.convertString(src.getTextElement()));
if (src.hasType())
tgt.setTextElement(VersionConvertor_10_50.convertStringToMarkdown(src.getTextElement()));
if (src.hasType()) {
tgt.setTypeElement(convertQuestionnaireQuestionType(src.getTypeElement()));
if (src.getType() == AnswerFormat.CHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY);
} else if (src.getType() == AnswerFormat.OPENCHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING);
}
}
if (src.hasRequiredElement())
tgt.setRequiredElement(VersionConvertor_10_50.convertBoolean(src.getRequiredElement()));
if (src.hasRepeatsElement())
@ -252,10 +260,10 @@ public class Questionnaire10_50 {
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case OPENCHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT);

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv10_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.Identifier;
public class Substance10_50 {
@ -13,10 +14,10 @@ public class Substance10_50 {
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(t));
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_50.convertCodeableConcept(t));
if (src.hasCode())
tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode()));
tgt.getCode().setConcept(VersionConvertor_10_50.convertCodeableConcept(src.getCode()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement()));
for (org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
for (org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent t : src.getInstance()) convertSubstanceInstanceComponent(t, tgt);
for (org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
return tgt;
}
@ -29,10 +30,12 @@ public class Substance10_50 {
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(t));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_50.convertCodeableConcept(t));
if (src.hasCode())
tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode()));
tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode().getConcept()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
if (src.getInstance()) {
tgt.addInstance(convertSubstanceInstanceComponent(src));
}
for (org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
return tgt;
}
@ -59,31 +62,26 @@ public class Substance10_50 {
return tgt;
}
public static org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
public static org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance src) throws FHIRException {
org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent();
VersionConvertor_10_50.copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifier()));
if (src.hasExpiryElement())
tgt.setExpiryElement(VersionConvertor_10_50.convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_10_50.convertSimpleQuantity(src.getQuantity()));
return tgt;
}
for (Identifier t : src.getIdentifier()) {
tgt.setIdentifier(VersionConvertor_10_50.convertIdentifier(t));
}
if (src.hasExpiry())
tgt.setExpiryElement(VersionConvertor_10_50.convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_10_50.convertSimpleQuantity(src.getQuantity()));
return tgt;
}
public static org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent();
VersionConvertor_10_50.copyElement(src, tgt);
public static void convertSubstanceInstanceComponent(org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent src, org.hl7.fhir.r5.model.Substance tgt) throws FHIRException {
tgt.setInstance(true);
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifier()));
tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifier()));
if (src.hasExpiryElement())
tgt.setExpiryElement(VersionConvertor_10_50.convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_10_50.convertSimpleQuantity(src.getQuantity()));
return tgt;
}
}

View File

@ -1,9 +1,11 @@
package org.hl7.fhir.convertors.conv14_50;
import org.hl7.fhir.convertors.VersionConvertor_14_50;
import org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.ContactDetail;
import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint;
import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemOperator;
import org.hl7.fhir.r5.model.UsageContext;
@ -87,7 +89,7 @@ public class Questionnaire14_50 {
if (src.hasText())
tgt.setTextElement(VersionConvertor_14_50.convertString(src.getTextElement()));
if (src.hasType())
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement()));
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint()));
for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
if (src.hasRequired())
tgt.setRequiredElement(VersionConvertor_14_50.convertBoolean(src.getRequiredElement()));
@ -117,9 +119,15 @@ public class Questionnaire14_50 {
if (src.hasPrefix())
tgt.setPrefixElement(VersionConvertor_14_50.convertString(src.getPrefixElement()));
if (src.hasText())
tgt.setTextElement(VersionConvertor_14_50.convertString(src.getTextElement()));
if (src.hasType())
tgt.setTextElement(VersionConvertor_14_50.convertStringToMarkdown(src.getTextElement()));
if (src.hasType()) {
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement()));
if (src.getType() == QuestionnaireItemType.CHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY);
} else if (src.getType() == QuestionnaireItemType.OPENCHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING);
}
}
for (org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
if (src.hasRequired())
tgt.setRequiredElement(VersionConvertor_14_50.convertBoolean(src.getRequiredElement()));
@ -235,10 +243,10 @@ public class Questionnaire14_50 {
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case OPENCHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT);
@ -256,7 +264,7 @@ public class Questionnaire14_50 {
return tgt;
}
static public org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src) throws FHIRException {
static public org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src, QuestionnaireAnswerConstraint constraint) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType> tgt = new org.hl7.fhir.dstu2016may.model.Enumeration<>(new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemTypeEnumFactory());
@ -295,12 +303,12 @@ public class Questionnaire14_50 {
case URL:
tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.CHOICE);
break;
case OPENCHOICE:
case CODING:
if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING)
tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.OPENCHOICE);
break;
else
tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.CHOICE);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.ATTACHMENT);
break;

View File

@ -106,44 +106,6 @@ public class StructureMap14_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> convertStructureMapContextType(org.hl7.fhir.dstu2016may.model.Enumeration<StructureMapContextType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapContextTypeEnumFactory());
VersionConvertor_14_50.copyElement(src, tgt);
switch(src.getValue()) {
case TYPE:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.TYPE);
break;
case VARIABLE:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.VARIABLE);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType> convertStructureMapContextType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType> tgt = new org.hl7.fhir.dstu2016may.model.Enumeration<>(new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextTypeEnumFactory());
VersionConvertor_14_50.copyElement(src, tgt);
switch(src.getValue()) {
case TYPE:
tgt.setValue(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.TYPE);
break;
case VARIABLE:
tgt.setValue(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE);
break;
default:
tgt.setValue(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent convertStructureMapGroupComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
@ -313,8 +275,7 @@ public class StructureMap14_50 {
VersionConvertor_14_50.copyElement(src, tgt);
if (src.hasContext())
tgt.setContextElement(VersionConvertor_14_50.convertId(src.getContextElement()));
if (src.hasContextType())
tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement()));
tgt.setContextType(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE);
if (src.hasElement())
tgt.setElementElement(VersionConvertor_14_50.convertString(src.getElementElement()));
if (src.hasVariable())
@ -337,8 +298,8 @@ public class StructureMap14_50 {
VersionConvertor_14_50.copyElement(src, tgt);
if (src.hasContext())
tgt.setContextElement(VersionConvertor_14_50.convertId(src.getContextElement()));
if (src.hasContextType())
tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement()));
if (src.hasContextType() && src.getContextType() == org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE)
throw new Error("This conversion is not supported. Consult code maintainers"); // this should never happens - no one knows what the intent was here.
if (src.hasElement())
tgt.setElementElement(VersionConvertor_14_50.convertString(src.getElementElement()));
if (src.hasVariable())

View File

@ -4,6 +4,7 @@ import org.hl7.fhir.convertors.VersionConvertor_30_50;
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.r5.model.CodeableReference;
public class ActivityDefinition30_50 {
@ -66,7 +67,7 @@ public class ActivityDefinition30_50 {
if (src.hasTiming())
tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming()));
if (src.hasLocation())
tgt.setLocation(VersionConvertor_30_50.convertReference(src.getLocation()));
tgt.setLocation(new CodeableReference(VersionConvertor_30_50.convertReference(src.getLocation())));
for (org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t));
if (src.hasProduct())
tgt.setProduct(VersionConvertor_30_50.convertType(src.getProduct()));
@ -152,8 +153,8 @@ public class ActivityDefinition30_50 {
tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode()));
if (src.hasTiming())
tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming()));
if (src.hasLocation())
tgt.setLocation(VersionConvertor_30_50.convertReference(src.getLocation()));
if (src.getLocation().hasReference())
tgt.setLocation(VersionConvertor_30_50.convertReference(src.getLocation().getReference()));
for (org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t));
if (src.hasProduct())
tgt.setProduct(VersionConvertor_30_50.convertType(src.getProduct()));

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_50;
import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeableReference;
import java.util.stream.Collectors;
@ -207,7 +208,7 @@ public class AllergyIntolerance30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasSubstance())
tgt.setSubstance(VersionConvertor_30_50.convertCodeableConcept(src.getSubstance()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(VersionConvertor_30_50.convertCodeableConcept(t));
for (CodeableReference t : src.getManifestation()) if (t.hasConcept()) tgt.addManifestation(VersionConvertor_30_50.convertCodeableConcept(t.getConcept()));
if (src.hasDescription())
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
if (src.hasOnset())
@ -227,7 +228,7 @@ public class AllergyIntolerance30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasSubstance())
tgt.setSubstance(VersionConvertor_30_50.convertCodeableConcept(src.getSubstance()));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(VersionConvertor_30_50.convertCodeableConcept(t));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(new CodeableReference(VersionConvertor_30_50.convertCodeableConcept(t)));
if (src.hasDescription())
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
if (src.hasOnset())

View File

@ -1,10 +1,14 @@
package org.hl7.fhir.convertors.conv30_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.convertors.VersionConvertor_Base;
import org.hl7.fhir.dstu3.model.UnsignedIntType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeableConcept;
import org.hl7.fhir.r5.model.CodeableReference;
public class Appointment30_50 {
public class Appointment30_50 extends VersionConvertor_Base {
public static org.hl7.fhir.dstu3.model.Appointment convertAppointment(org.hl7.fhir.r5.model.Appointment src) throws FHIRException {
if (src == null)
@ -25,7 +29,7 @@ public class Appointment30_50 {
for (CodeableReference t : src.getReason()) if (t.hasReference())
tgt.addIndication(VersionConvertor_30_50.convertReference(t.getReference()));
if (src.hasPriority())
tgt.setPriorityElement(VersionConvertor_30_50.convertUnsignedInt(src.getPriorityElement()));
tgt.setPriorityElement(convertAppointmentPriority(src.getPriority()));
if (src.hasDescription())
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(VersionConvertor_30_50.convertReference(t));
@ -46,6 +50,19 @@ public class Appointment30_50 {
return tgt;
}
private static UnsignedIntType convertAppointmentPriority(CodeableConcept src) {
UnsignedIntType tgt = new UnsignedIntType(convertAppointmentPriorityFromR5(src));
VersionConvertor_30_50.copyElement(src, tgt);
return tgt;
}
private static CodeableConcept convertAppointmentPriority(UnsignedIntType src) {
CodeableConcept tgt = src.hasValue() ? convertAppointmentPriorityToR5(src.getValue()) : new CodeableConcept();
VersionConvertor_30_50.copyElement(src, tgt);
return tgt;
}
public static org.hl7.fhir.r5.model.Appointment convertAppointment(org.hl7.fhir.dstu3.model.Appointment src) throws FHIRException {
if (src == null)
return null;
@ -63,7 +80,7 @@ public class Appointment30_50 {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t));
for (org.hl7.fhir.dstu3.model.Reference t : src.getIndication()) tgt.addReason(VersionConvertor_30_50.convertReferenceToCodableReference(t));
if (src.hasPriority())
tgt.setPriorityElement(VersionConvertor_30_50.convertUnsignedInt(src.getPriorityElement()));
tgt.setPriority(convertAppointmentPriority(src.getPriorityElement()));
if (src.hasDescription())
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(VersionConvertor_30_50.convertReference(t));

View File

@ -161,24 +161,24 @@ public class CarePlan30_50 {
return null;
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent();
VersionConvertor_30_50.copyElement(src, tgt);
for (CodeableReference t : src.getOutcome()) {
for (CodeableReference t : src.getPerformedActivity()) {
if (t.hasConcept())
tgt.addOutcomeCodeableConcept(VersionConvertor_30_50.convertCodeableConcept(t.getConcept()));
}
for (CodeableReference t : src.getOutcome()) {
for (CodeableReference t : src.getPerformedActivity()) {
if (t.hasReference())
tgt.addOutcomeReference(VersionConvertor_30_50.convertReference(t.getReference()));
}
for (org.hl7.fhir.r5.model.Annotation t : src.getProgress()) {
tgt.addProgress(VersionConvertor_30_50.convertAnnotation(t));
}
if (src.hasReference()) {
if (src.hasReference())
tgt.setReference(VersionConvertor_30_50.convertReference(src.getReference()));
if (src.hasPlannedActivityReference()) {
if (src.hasPlannedActivityReference())
tgt.setReference(VersionConvertor_30_50.convertReference(src.getPlannedActivityReference()));
}
if (src.hasDetail()) {
if (src.hasDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
if (src.hasPlannedActivityDetail()) {
if (src.hasPlannedActivityDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getPlannedActivityDetail()));
}
return tgt;
}
@ -189,26 +189,26 @@ public class CarePlan30_50 {
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent();
VersionConvertor_30_50.copyElement(src, tgt);
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCodeableConcept()) {
tgt.addOutcome(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t));
tgt.addPerformedActivity(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t));
}
for (org.hl7.fhir.dstu3.model.Reference t : src.getOutcomeReference()) {
tgt.addOutcome(VersionConvertor_30_50.convertReferenceToCodableReference(t));
tgt.addPerformedActivity(VersionConvertor_30_50.convertReferenceToCodableReference(t));
}
for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress()) {
tgt.addProgress(VersionConvertor_30_50.convertAnnotation(t));
}
if (src.hasReference()) {
if (src.hasReference())
tgt.setReference(VersionConvertor_30_50.convertReference(src.getReference()));
tgt.setPlannedActivityReference(VersionConvertor_30_50.convertReference(src.getReference()));
}
if (src.hasDetail()) {
if (src.hasDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
tgt.setPlannedActivityDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
}
return tgt;
}
public static org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
public static org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent();
@ -281,10 +281,10 @@ public class CarePlan30_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent();
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasCategory()) {
org.hl7.fhir.r5.model.Extension t = new org.hl7.fhir.r5.model.Extension();

View File

@ -4,10 +4,12 @@ import org.hl7.fhir.convertors.VersionConvertorConstants;
import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CanonicalType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations;
import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship;
import org.hl7.fhir.r5.utils.ToolingExtensions;
import org.hl7.fhir.utilities.CanonicalPair;
public class ConceptMap30_50 {
@ -100,14 +102,11 @@ public class ConceptMap30_50 {
return null;
org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasSource())
tgt.setSourceElement(VersionConvertor_30_50.convertUri(src.getSourceElement()));
if (src.hasSourceVersion())
tgt.setSourceVersionElement(VersionConvertor_30_50.convertString(src.getSourceVersionElement()));
if (src.hasTarget())
tgt.setTarget(src.getTarget());
if (src.hasTargetVersion())
tgt.setTargetVersion(src.getTargetVersion());
if (src.hasSource() || src.hasSourceVersion())
tgt.setSourceElement(convertUriAndVersionToCanonical(src.getSourceElement(), src.getSourceVersionElement()));
if (src.hasTarget() || src.hasTargetVersion())
tgt.setSourceElement(convertUriAndVersionToCanonical(src.getTargetElement(), src.getTargetVersionElement()));
for (org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t));
if (src.hasUnmapped())
tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped()));
@ -119,20 +118,38 @@ public class ConceptMap30_50 {
return null;
org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasSource())
tgt.setSourceElement(VersionConvertor_30_50.convertUri(src.getSourceElement()));
if (src.hasSourceVersion())
tgt.setSourceVersionElement(VersionConvertor_30_50.convertString(src.getSourceVersionElement()));
if (src.hasTarget())
tgt.setTarget(src.getTarget());
if (src.hasTargetVersion())
tgt.setTargetVersion(src.getTargetVersion());
if (src.hasSource()) {
CanonicalPair cp = new CanonicalPair(src.getSource());
tgt.setSource(cp.getUrl());
tgt.setSourceVersion(cp.getVersion());
}
if (src.hasTarget()) {
CanonicalPair cp = new CanonicalPair(src.getTarget());
tgt.setTarget(cp.getUrl());
tgt.setTargetVersion(cp.getVersion());
}
for (org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t));
if (src.hasUnmapped())
tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped()));
return tgt;
}
private static CanonicalType convertUriAndVersionToCanonical(org.hl7.fhir.dstu3.model.UriType srcUri, org.hl7.fhir.dstu3.model.StringType srcVersion) {
if (srcUri == null && srcVersion == null)
return null;
org.hl7.fhir.r5.model.CanonicalType tgt = new org.hl7.fhir.r5.model.CanonicalType();
VersionConvertor_30_50.copyElement(srcUri == null ? srcVersion : srcUri, tgt);
if (srcUri.hasValue()) {
if (srcVersion.hasValue()) {
tgt.setValue(srcUri.getValue()+"|"+srcVersion.getValue());
} else {
tgt.setValue(srcUri.getValue());
}
}
return tgt;
}
public static org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupUnmappedComponent convertConceptMapGroupUnmappedComponent(org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupUnmappedComponent src) throws FHIRException {
if (src == null)
return null;

View File

@ -6,7 +6,7 @@ import org.hl7.fhir.r5.model.CodeableReference;
public class DeviceUseStatement30_50 {
public static org.hl7.fhir.dstu3.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUseStatement src) throws FHIRException {
public static org.hl7.fhir.dstu3.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUsage src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.dstu3.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu3.model.DeviceUseStatement();
@ -32,10 +32,10 @@ public class DeviceUseStatement30_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.dstu3.model.DeviceUseStatement src) throws FHIRException {
public static org.hl7.fhir.r5.model.DeviceUsage convertDeviceUseStatement(org.hl7.fhir.dstu3.model.DeviceUseStatement src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.DeviceUseStatement tgt = new org.hl7.fhir.r5.model.DeviceUseStatement();
org.hl7.fhir.r5.model.DeviceUsage tgt = new org.hl7.fhir.r5.model.DeviceUsage();
VersionConvertor_30_50.copyDomainResource(src, tgt);
for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_50.convertIdentifier(t));
if (src.hasStatus())
@ -57,7 +57,7 @@ public class DeviceUseStatement30_50 {
return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.DeviceUseStatement.DeviceUseStatementStatus> convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus> src) throws FHIRException {
static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.DeviceUseStatement.DeviceUseStatementStatus> convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.DeviceUseStatement.DeviceUseStatementStatus> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory());
@ -88,32 +88,32 @@ public class DeviceUseStatement30_50 {
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus> convertDeviceUseStatementStatus(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.DeviceUseStatement.DeviceUseStatementStatus> src) throws FHIRException {
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus> convertDeviceUseStatementStatus(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.DeviceUseStatement.DeviceUseStatementStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory());
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatusEnumFactory());
VersionConvertor_30_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ACTIVE);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ACTIVE);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.COMPLETED);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ENTEREDINERROR);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.INTENDED);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.INTENDED);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.STOPPED);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.STOPPED);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ONHOLD);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ONHOLD);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.NULL);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.NULL);
break;
}
return tgt;

View File

@ -29,8 +29,6 @@ public class Goal30_50 {
tgt.setStatusDateElement(VersionConvertor_30_50.convertDate(src.getStatusDateElement()));
if (src.hasStatusReason())
tgt.setStatusReasonElement(VersionConvertor_30_50.convertString(src.getStatusReasonElement()));
if (src.hasExpressedBy())
tgt.setExpressedBy(VersionConvertor_30_50.convertReference(src.getExpressedBy()));
for (org.hl7.fhir.r5.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_30_50.convertReference(t));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_30_50.convertAnnotation(t));
for (CodeableReference t : src.getOutcome()) if (t.hasConcept())
@ -63,8 +61,6 @@ public class Goal30_50 {
tgt.setStatusDateElement(VersionConvertor_30_50.convertDate(src.getStatusDateElement()));
if (src.hasStatusReason())
tgt.setStatusReasonElement(VersionConvertor_30_50.convertString(src.getStatusReasonElement()));
if (src.hasExpressedBy())
tgt.setExpressedBy(VersionConvertor_30_50.convertReference(src.getExpressedBy()));
for (org.hl7.fhir.dstu3.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_30_50.convertReference(t));
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_30_50.convertAnnotation(t));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCode()) tgt.addOutcome(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t));

View File

@ -15,7 +15,7 @@ public class Medication30_50 {
if (src.hasStatus())
tgt.setStatusElement(convertMedicationStatus(src.getStatusElement()));
if (src.hasManufacturer())
tgt.setManufacturer(VersionConvertor_30_50.convertReference(src.getManufacturer()));
tgt.setSponsor(VersionConvertor_30_50.convertReference(src.getManufacturer()));
if (src.hasForm())
tgt.setDoseForm(VersionConvertor_30_50.convertCodeableConcept(src.getForm()));
for (org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertMedicationIngredientComponent(t));
@ -33,8 +33,8 @@ public class Medication30_50 {
tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode()));
if (src.hasStatus())
tgt.setStatusElement(convertMedicationStatus(src.getStatusElement()));
if (src.hasManufacturer())
tgt.setManufacturer(VersionConvertor_30_50.convertReference(src.getManufacturer()));
if (src.hasSponsor())
tgt.setManufacturer(VersionConvertor_30_50.convertReference(src.getSponsor()));
if (src.hasDoseForm())
tgt.setForm(VersionConvertor_30_50.convertCodeableConcept(src.getDoseForm()));
for (org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertMedicationIngredientComponent(t));

View File

@ -86,24 +86,24 @@ public class MedicationStatement30_50 {
org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatusEnumFactory());
VersionConvertor_30_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ACTIVE);
break;
// case ACTIVE:
// tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ACTIVE);
// break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR);
break;
case INTENDED:
case UNKNOWN:
tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.INTENDED);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.STOPPED);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ONHOLD);
break;
// case STOPPED:
// tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.STOPPED);
// break;
// case ONHOLD:
// tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ONHOLD);
// break;
default:
tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.NULL);
break;
@ -118,7 +118,7 @@ public class MedicationStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
@ -127,13 +127,13 @@ public class MedicationStatement30_50 {
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.STOPPED);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ONHOLD);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL);

View File

@ -1,9 +1,17 @@
package org.hl7.fhir.convertors.conv30_50;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.hl7.fhir.convertors.VersionConvertor_30_50;
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.r5.model.DataRequirement;
import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionInputComponent;
import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionOutputComponent;
public class PlanDefinition30_50 {
@ -546,14 +554,14 @@ public class PlanDefinition30_50 {
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
if (src.hasTextEquivalent())
tgt.setTextEquivalentElement(VersionConvertor_30_50.convertString(src.getTextEquivalentElement()));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_30_50.convertCodeableConcept(t));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(t));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_30_50.convertCodeableConcept(t));
for (org.hl7.fhir.dstu3.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(VersionConvertor_30_50.convertRelatedArtifact(t));
for (org.hl7.fhir.dstu3.model.IdType t : src.getGoalId()) tgt.addGoalId(t.getValue());
for (org.hl7.fhir.dstu3.model.TriggerDefinition t : src.getTriggerDefinition()) tgt.addTrigger(VersionConvertor_30_50.convertTriggerDefinition(t));
for (org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t));
for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getInput()) tgt.addInput(VersionConvertor_30_50.convertDataRequirement(t));
for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getOutput()) tgt.addOutput(VersionConvertor_30_50.convertDataRequirement(t));
for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getInput()) tgt.addInput(wrapInput(VersionConvertor_30_50.convertDataRequirement(t)));
for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getOutput()) tgt.addOutput(wrapOutput(VersionConvertor_30_50.convertDataRequirement(t)));
for (org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t));
if (src.hasTiming())
tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming()));
@ -579,6 +587,14 @@ public class PlanDefinition30_50 {
return tgt;
}
private static PlanDefinitionActionOutputComponent wrapOutput(DataRequirement dr) {
return new PlanDefinitionActionOutputComponent().setRequirement(dr);
}
private static PlanDefinitionActionInputComponent wrapInput(DataRequirement dr) {
return new PlanDefinitionActionInputComponent().setRequirement(dr);
}
public static org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionComponent convertPlanDefinitionActionComponent(org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent src) throws FHIRException {
if (src == null)
return null;
@ -592,14 +608,14 @@ public class PlanDefinition30_50 {
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
if (src.hasTextEquivalent())
tgt.setTextEquivalentElement(VersionConvertor_30_50.convertString(src.getTextEquivalentElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_30_50.convertCodeableConcept(t));
if (src.hasCode()) tgt.addCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_30_50.convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(VersionConvertor_30_50.convertRelatedArtifact(t));
for (org.hl7.fhir.r5.model.IdType t : src.getGoalId()) tgt.addGoalId(t.getValue());
for (org.hl7.fhir.r5.model.TriggerDefinition t : src.getTrigger()) tgt.addTriggerDefinition(VersionConvertor_30_50.convertTriggerDefinition(t));
for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t));
for (org.hl7.fhir.r5.model.DataRequirement t : src.getInput()) tgt.addInput(VersionConvertor_30_50.convertDataRequirement(t));
for (org.hl7.fhir.r5.model.DataRequirement t : src.getOutput()) tgt.addOutput(VersionConvertor_30_50.convertDataRequirement(t));
for (PlanDefinitionActionInputComponent t : src.getInput()) tgt.addInput(VersionConvertor_30_50.convertDataRequirement(t.getRequirement()));
for (PlanDefinitionActionOutputComponent t : src.getOutput()) tgt.addOutput(VersionConvertor_30_50.convertDataRequirement(t.getRequirement()));
for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t));
if (src.hasTiming())
tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming()));
@ -718,8 +734,8 @@ public class PlanDefinition30_50 {
return null;
org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionIdElement(VersionConvertor_30_50.convertId(src.getActionIdElement()));
if (src.hasTargetId())
tgt.setActionIdElement(VersionConvertor_30_50.convertId(src.getTargetIdElement()));
if (src.hasRelationship())
tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement()));
if (src.hasOffset())
@ -733,7 +749,7 @@ public class PlanDefinition30_50 {
org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionIdElement(VersionConvertor_30_50.convertId(src.getActionIdElement()));
tgt.setTargetIdElement(VersionConvertor_30_50.convertId(src.getActionIdElement()));
if (src.hasRelationship())
tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement()));
if (src.hasOffset())

View File

@ -1,8 +1,10 @@
package org.hl7.fhir.convertors.conv30_50;
import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.Questionnaire;
import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint;
public class Questionnaire30_50 {
@ -106,8 +108,8 @@ public class Questionnaire30_50 {
tgt.setPrefixElement(VersionConvertor_30_50.convertString(src.getPrefixElement()));
if (src.hasText())
tgt.setTextElement(VersionConvertor_30_50.convertString(src.getTextElement()));
if (src.hasType())
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement()));
if (src.hasType())
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint()));
for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
if (src.hasRequired())
tgt.setRequiredElement(VersionConvertor_30_50.convertBoolean(src.getRequiredElement()));
@ -139,9 +141,15 @@ public class Questionnaire30_50 {
if (src.hasPrefix())
tgt.setPrefixElement(VersionConvertor_30_50.convertString(src.getPrefixElement()));
if (src.hasText())
tgt.setTextElement(VersionConvertor_30_50.convertString(src.getTextElement()));
if (src.hasType())
tgt.setTextElement(VersionConvertor_30_50.convertStringToMarkdown(src.getTextElement()));
if (src.hasType()) {
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement()));
if (src.getType() == QuestionnaireItemType.CHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY);
} else if (src.getType() == QuestionnaireItemType.OPENCHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING);
}
}
for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
tgt.setEnableBehavior(Questionnaire.EnableWhenBehavior.ANY);
if (src.hasRequired())
@ -217,7 +225,7 @@ public class Questionnaire30_50 {
return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src) throws FHIRException {
static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src, QuestionnaireAnswerConstraint constraint) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemTypeEnumFactory());
@ -256,12 +264,12 @@ public class Questionnaire30_50 {
case URL:
tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.CHOICE);
break;
case OPENCHOICE:
case CODING:
if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING)
tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.OPENCHOICE);
break;
else
tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.CHOICE);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.ATTACHMENT);
break;
@ -318,10 +326,10 @@ public class Questionnaire30_50 {
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case OPENCHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT);

View File

@ -81,43 +81,6 @@ public class StructureMap30_50 {
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> convertStructureMapContextType(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapContextTypeEnumFactory());
VersionConvertor_30_50.copyElement(src, tgt);
switch(src.getValue()) {
case TYPE:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.TYPE);
break;
case VARIABLE:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.VARIABLE);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType> convertStructureMapContextType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextTypeEnumFactory());
VersionConvertor_30_50.copyElement(src, tgt);
switch(src.getValue()) {
case TYPE:
tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.TYPE);
break;
case VARIABLE:
tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE);
break;
default:
tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent convertStructureMapGroupComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent src) throws FHIRException {
if (src == null)
@ -304,8 +267,8 @@ public class StructureMap30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasContext())
tgt.setContextElement(VersionConvertor_30_50.convertId(src.getContextElement()));
if (src.hasContextType())
tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement()));
if (src.hasContextType() && src.getContextType() == org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE)
throw new Error("This conversion is not supported. Consult code maintainers"); // this should never happens - no one knows what the intent was here.
if (src.hasElement())
tgt.setElementElement(VersionConvertor_30_50.convertString(src.getElementElement()));
if (src.hasVariable())
@ -328,8 +291,7 @@ public class StructureMap30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasContext())
tgt.setContextElement(VersionConvertor_30_50.convertId(src.getContextElement()));
if (src.hasContextType())
tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement()));
tgt.setContextType(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE);
if (src.hasElement())
tgt.setElementElement(VersionConvertor_30_50.convertString(src.getElementElement()));
if (src.hasVariable())

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_50;
import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.Identifier;
public class Substance30_50 {
@ -59,10 +60,10 @@ public class Substance30_50 {
tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement()));
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_30_50.convertCodeableConcept(t));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode()));
tgt.getCode().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) convertSubstanceInstanceComponent(t, tgt);
for (org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
return tgt;
}
@ -76,11 +77,13 @@ public class Substance30_50 {
if (src.hasStatus())
tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_30_50.convertCodeableConcept(t));
if (src.hasCode())
tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode()));
if (src.getCode().hasConcept())
tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode().getConcept()));
if (src.hasDescription())
tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
if (src.getInstance()) {
tgt.addInstance(convertSubstanceInstanceComponent(src));
}
for (org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
return tgt;
}
@ -109,31 +112,26 @@ public class Substance30_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent();
VersionConvertor_30_50.copyElement(src, tgt);
public static void convertSubstanceInstanceComponent(org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent src, org.hl7.fhir.r5.model.Substance tgt) throws FHIRException {
tgt.setInstance(true);
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_50.convertIdentifier(src.getIdentifier()));
tgt.addIdentifier(VersionConvertor_30_50.convertIdentifier(src.getIdentifier()));
if (src.hasExpiry())
tgt.setExpiryElement(VersionConvertor_30_50.convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_30_50.convertSimpleQuantity(src.getQuantity()));
return tgt;
}
public static org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent src) throws FHIRException {
if (src == null)
return null;
public static org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance src) throws FHIRException {
org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_30_50.convertIdentifier(src.getIdentifier()));
if (src.hasExpiry())
tgt.setExpiryElement(VersionConvertor_30_50.convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_30_50.convertSimpleQuantity(src.getQuantity()));
return tgt;
for (Identifier t : src.getIdentifier()) {
tgt.setIdentifier(VersionConvertor_30_50.convertIdentifier(t));
}
if (src.hasExpiry())
tgt.setExpiryElement(VersionConvertor_30_50.convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(VersionConvertor_30_50.convertSimpleQuantity(src.getQuantity()));
return tgt;
}
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeableReference;
/*
Copyright (c) 2011+, HL7, Inc.
@ -100,7 +101,7 @@ public class ActivityDefinition40_50 extends VersionConvertor_40_50 {
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
if (src.hasLocation())
tgt.setLocation(convertReference(src.getLocation()));
tgt.setLocation(new CodeableReference(convertReference(src.getLocation())));
for (org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t));
if (src.hasProduct())
tgt.setProduct(convertType(src.getProduct()));
@ -181,8 +182,8 @@ public class ActivityDefinition40_50 extends VersionConvertor_40_50 {
tgt.setDoNotPerformElement(convertBoolean(src.getDoNotPerformElement()));
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
if (src.hasLocation())
tgt.setLocation(convertReference(src.getLocation()));
if (src.getLocation().hasReference())
tgt.setLocation(convertReference(src.getLocation().getReference()));
for (org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t));
if (src.hasProduct())
tgt.setProduct(convertType(src.getProduct()));

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeableReference;
import java.util.stream.Collectors;
@ -252,7 +253,7 @@ public class AllergyIntolerance40_50 extends VersionConvertor_40_50 {
copyElement(src, tgt);
if (src.hasSubstance())
tgt.setSubstance(convertCodeableConcept(src.getSubstance()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(new CodeableReference(convertCodeableConcept(t)));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasOnset())
@ -272,7 +273,7 @@ public class AllergyIntolerance40_50 extends VersionConvertor_40_50 {
copyElement(src, tgt);
if (src.hasSubstance())
tgt.setSubstance(convertCodeableConcept(src.getSubstance()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(convertCodeableConcept(t));
for (CodeableReference t : src.getManifestation()) if (t.hasConcept()) tgt.addManifestation(convertCodeableConcept(t.getConcept()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasOnset())

View File

@ -1,8 +1,11 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.r4.model.UnsignedIntType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeableConcept;
import org.hl7.fhir.r5.model.CodeableReference;
/*
@ -54,7 +57,7 @@ public class Appointment40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(convertCodeableConceptToCodeableReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) tgt.addReason(convertReferenceToCodeableReference(t));
if (src.hasPriority())
tgt.setPriorityElement(convertUnsignedInt(src.getPriorityElement()));
tgt.setPriority(convertAppointmentPriority(src.getPriorityElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(convertReference(t));
@ -97,7 +100,7 @@ public class Appointment40_50 extends VersionConvertor_40_50 {
for (CodeableReference t : src.getReason()) if (t.hasReference())
tgt.addReasonReference(convertReference(t.getReference()));
if (src.hasPriority())
tgt.setPriorityElement(convertUnsignedInt(src.getPriorityElement()));
tgt.setPriorityElement(convertAppointmentPriority(src.getPriority()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(convertReference(t));
@ -120,6 +123,19 @@ public class Appointment40_50 extends VersionConvertor_40_50 {
return tgt;
}
private static UnsignedIntType convertAppointmentPriority(CodeableConcept src) {
UnsignedIntType tgt = new UnsignedIntType(convertAppointmentPriorityFromR5(src));
VersionConvertor_40_50.copyElement(src, tgt);
return tgt;
}
private static CodeableConcept convertAppointmentPriority(UnsignedIntType src) {
CodeableConcept tgt = src.hasValue() ? convertAppointmentPriorityToR5(src.getValue()) : new CodeableConcept();
VersionConvertor_40_50.copyElement(src, tgt);
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Appointment.AppointmentStatus> convertAppointmentStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Appointment.AppointmentStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;

View File

@ -240,13 +240,13 @@ public class CarePlan40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent();
copyElement(src, tgt);
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCodeableConcept()) tgt.addOutcome(convertCodeableConceptToCodeableReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getOutcomeReference()) tgt.addOutcome(convertReferenceToCodeableReference(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCodeableConcept()) tgt.addPerformedActivity(convertCodeableConceptToCodeableReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getOutcomeReference()) tgt.addPerformedActivity(convertReferenceToCodeableReference(t));
for (org.hl7.fhir.r4.model.Annotation t : src.getProgress()) tgt.addProgress(convertAnnotation(t));
if (src.hasReference())
tgt.setReference(convertReference(src.getReference()));
tgt.setPlannedActivityReference(convertReference(src.getReference()));
if (src.hasDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
tgt.setPlannedActivityDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
return tgt;
}
@ -255,22 +255,22 @@ public class CarePlan40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent();
copyElement(src, tgt);
for (CodeableReference t : src.getOutcome()) if (t.hasConcept())
for (CodeableReference t : src.getPerformedActivity()) if (t.hasConcept())
tgt.addOutcomeCodeableConcept(convertCodeableConcept(t.getConcept()));
for (CodeableReference t : src.getOutcome()) if (t.hasReference())
for (CodeableReference t : src.getPerformedActivity()) if (t.hasReference())
tgt.addOutcomeReference(convertReference(t.getReference()));
for (org.hl7.fhir.r5.model.Annotation t : src.getProgress()) tgt.addProgress(convertAnnotation(t));
if (src.hasReference())
tgt.setReference(convertReference(src.getReference()));
if (src.hasDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail()));
if (src.hasPlannedActivityReference())
tgt.setReference(convertReference(src.getPlannedActivityReference()));
if (src.hasPlannedActivityDetail())
tgt.setDetail(convertCarePlanActivityDetailComponent(src.getPlannedActivityDetail()));
return tgt;
}
public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent();
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent();
copyElement(src, tgt);
if (src.hasKind())
tgt.setKindElement(convertCarePlanActivityKind(src.getKindElement()));
@ -303,7 +303,7 @@ public class CarePlan40_50 extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException {
public static org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent();

View File

@ -5,10 +5,14 @@ import org.hl7.fhir.convertors.VersionConvertorConstants;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence;
import org.hl7.fhir.r4.model.StringType;
import org.hl7.fhir.r4.model.UriType;
import org.hl7.fhir.r5.model.CanonicalType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations;
import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship;
import org.hl7.fhir.r5.utils.ToolingExtensions;
import org.hl7.fhir.utilities.CanonicalPair;
/*
Copyright (c) 2011+, HL7, Inc.
@ -126,33 +130,46 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent();
copyElement(src, tgt);
if (src.hasSource())
tgt.setSourceElement(convertUri(src.getSourceElement()));
if (src.hasSourceVersion())
tgt.setSourceVersionElement(convertString(src.getSourceVersionElement()));
if (src.hasTarget())
tgt.setTargetElement(convertUri(src.getTargetElement()));
if (src.hasTargetVersion())
tgt.setTargetVersionElement(convertString(src.getTargetVersionElement()));
if (src.hasSource() || src.hasSourceVersion())
tgt.setSourceElement(convertUriAndVersionToCanonical(src.getSourceElement(), src.getSourceVersionElement()));
if (src.hasTarget() || src.hasTargetVersion())
tgt.setTargetElement(convertUriAndVersionToCanonical(src.getTargetElement(), src.getTargetVersionElement()));
for (org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t));
if (src.hasUnmapped())
tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped()));
return tgt;
}
private static CanonicalType convertUriAndVersionToCanonical(org.hl7.fhir.r4.model.UriType srcUri, org.hl7.fhir.r4.model.StringType srcVersion) {
if (srcUri == null && srcVersion == null)
return null;
org.hl7.fhir.r5.model.CanonicalType tgt = new org.hl7.fhir.r5.model.CanonicalType();
copyElement(srcUri == null ? srcVersion : srcUri, tgt);
if (srcUri.hasValue()) {
if (srcVersion.hasValue()) {
tgt.setValue(srcUri.getValue()+"|"+srcVersion.getValue());
} else {
tgt.setValue(srcUri.getValue());
}
}
return tgt;
}
public static org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent convertConceptMapGroupComponent(org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent();
copyElement(src, tgt);
if (src.hasSource())
tgt.setSourceElement(convertUri(src.getSourceElement()));
if (src.hasSourceVersion())
tgt.setSourceVersionElement(convertString(src.getSourceVersionElement()));
if (src.hasTarget())
tgt.setTargetElement(convertUri(src.getTargetElement()));
if (src.hasTargetVersion())
tgt.setTargetVersionElement(convertString(src.getTargetVersionElement()));
if (src.hasSource()) {
CanonicalPair cp = new CanonicalPair(src.getSource());
tgt.setSource(cp.getUrl());
tgt.setSourceVersion(cp.getVersion());
}
if (src.hasTarget()) {
CanonicalPair cp = new CanonicalPair(src.getTarget());
tgt.setTarget(cp.getUrl());
tgt.setTargetVersion(cp.getVersion());
}
for (org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t));
if (src.hasUnmapped())
tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped()));

View File

@ -1,405 +0,0 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.stream.Collectors;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CoverageEligibilityResponse40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CoverageEligibilityResponse convertCoverageEligibilityResponse(org.hl7.fhir.r4.model.CoverageEligibilityResponse src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.CoverageEligibilityResponse tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertEligibilityResponseStatus(src.getStatusElement()));
tgt.setPurpose(src.getPurpose().stream()
.map(CoverageEligibilityResponse40_50::convertEligibilityResponsePurpose)
.collect(Collectors.toList()));
if (src.hasPatient())
tgt.setPatient(convertReference(src.getPatient()));
if (src.hasServiced())
tgt.setServiced(convertType(src.getServiced()));
if (src.hasCreated())
tgt.setCreatedElement(convertDateTime(src.getCreatedElement()));
if (src.hasRequestor())
tgt.setRequestor(convertReference(src.getRequestor()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasOutcome())
tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement()));
if (src.hasDisposition())
tgt.setDispositionElement(convertString(src.getDispositionElement()));
if (src.hasInsurer())
tgt.setInsurer(convertReference(src.getInsurer()));
for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent t : src.getInsurance()) tgt.addInsurance(convertInsuranceComponent(t));
if (src.hasPreAuthRef())
tgt.setPreAuthRefElement(convertString(src.getPreAuthRefElement()));
if (src.hasForm())
tgt.setForm(convertCodeableConcept(src.getForm()));
for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent t : src.getError()) tgt.addError(convertErrorsComponent(t));
return tgt;
}
public static org.hl7.fhir.r4.model.CoverageEligibilityResponse convertCoverageEligibilityResponse(org.hl7.fhir.r5.model.CoverageEligibilityResponse src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.CoverageEligibilityResponse tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertEligibilityResponseStatus(src.getStatusElement()));
tgt.setPurpose(src.getPurpose().stream()
.map(CoverageEligibilityResponse40_50::convertEligibilityResponsePurpose)
.collect(Collectors.toList()));
if (src.hasPatient())
tgt.setPatient(convertReference(src.getPatient()));
if (src.hasServiced())
tgt.setServiced(convertType(src.getServiced()));
if (src.hasCreated())
tgt.setCreatedElement(convertDateTime(src.getCreatedElement()));
if (src.hasRequestor())
tgt.setRequestor(convertReference(src.getRequestor()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasOutcome())
tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement()));
if (src.hasDisposition())
tgt.setDispositionElement(convertString(src.getDispositionElement()));
if (src.hasInsurer())
tgt.setInsurer(convertReference(src.getInsurer()));
for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent t : src.getInsurance()) tgt.addInsurance(convertInsuranceComponent(t));
if (src.hasPreAuthRef())
tgt.setPreAuthRefElement(convertString(src.getPreAuthRefElement()));
if (src.hasForm())
tgt.setForm(convertCodeableConcept(src.getForm()));
for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent t : src.getError()) tgt.addError(convertErrorsComponent(t));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> convertEligibilityResponseStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodesEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE);
break;
case CANCELLED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED);
break;
case DRAFT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus> convertEligibilityResponseStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.ACTIVE);
break;
case CANCELLED:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.CANCELLED);
break;
case DRAFT:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.DRAFT);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.ENTEREDINERROR);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose> convertEligibilityResponsePurpose(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurposeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case AUTHREQUIREMENTS:
tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.AUTHREQUIREMENTS);
break;
case BENEFITS:
tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.BENEFITS);
break;
case DISCOVERY:
tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.DISCOVERY);
break;
case VALIDATION:
tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.VALIDATION);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose> convertEligibilityResponsePurpose(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurposeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case AUTHREQUIREMENTS:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.AUTHREQUIREMENTS);
break;
case BENEFITS:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.BENEFITS);
break;
case DISCOVERY:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.DISCOVERY);
break;
case VALIDATION:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.VALIDATION);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodesEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case QUEUED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED);
break;
case COMPLETE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE);
break;
case ERROR:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR);
break;
case PARTIAL:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Enumerations.RemittanceOutcomeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case QUEUED:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.QUEUED);
break;
case COMPLETE:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.COMPLETE);
break;
case ERROR:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.ERROR);
break;
case PARTIAL:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.PARTIAL);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent convertInsuranceComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent();
copyElement(src, tgt);
if (src.hasCoverage())
tgt.setCoverage(convertReference(src.getCoverage()));
if (src.hasInforce())
tgt.setInforceElement(convertBoolean(src.getInforceElement()));
if (src.hasBenefitPeriod())
tgt.setBenefitPeriod(convertPeriod(src.getBenefitPeriod()));
for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent t : src.getItem()) tgt.addItem(convertItemsComponent(t));
return tgt;
}
public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent convertInsuranceComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent();
copyElement(src, tgt);
if (src.hasCoverage())
tgt.setCoverage(convertReference(src.getCoverage()));
if (src.hasInforce())
tgt.setInforceElement(convertBoolean(src.getInforceElement()));
if (src.hasBenefitPeriod())
tgt.setBenefitPeriod(convertPeriod(src.getBenefitPeriod()));
for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent t : src.getItem()) tgt.addItem(convertItemsComponent(t));
return tgt;
}
public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent convertItemsComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent();
copyElement(src, tgt);
if (src.hasCategory())
tgt.setCategory(convertCodeableConcept(src.getCategory()));
if (src.hasProductOrService())
tgt.setProductOrService(convertCodeableConcept(src.getProductOrService()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getModifier()) tgt.addModifier(convertCodeableConcept(t));
if (src.hasProvider())
tgt.setProvider(convertReference(src.getProvider()));
if (src.hasExcluded())
tgt.setExcludedElement(convertBoolean(src.getExcludedElement()));
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasNetwork())
tgt.setNetwork(convertCodeableConcept(src.getNetwork()));
if (src.hasUnit())
tgt.setUnit(convertCodeableConcept(src.getUnit()));
if (src.hasTerm())
tgt.setTerm(convertCodeableConcept(src.getTerm()));
for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent t : src.getBenefit()) tgt.addBenefit(convertBenefitComponent(t));
if (src.hasAuthorizationRequired())
tgt.setAuthorizationRequiredElement(convertBoolean(src.getAuthorizationRequiredElement()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getAuthorizationSupporting()) tgt.addAuthorizationSupporting(convertCodeableConcept(t));
if (src.hasAuthorizationUrl())
tgt.setAuthorizationUrlElement(convertUri(src.getAuthorizationUrlElement()));
return tgt;
}
public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent convertItemsComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent();
copyElement(src, tgt);
if (src.hasCategory())
tgt.setCategory(convertCodeableConcept(src.getCategory()));
if (src.hasProductOrService())
tgt.setProductOrService(convertCodeableConcept(src.getProductOrService()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getModifier()) tgt.addModifier(convertCodeableConcept(t));
if (src.hasProvider())
tgt.setProvider(convertReference(src.getProvider()));
if (src.hasExcluded())
tgt.setExcludedElement(convertBoolean(src.getExcludedElement()));
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasNetwork())
tgt.setNetwork(convertCodeableConcept(src.getNetwork()));
if (src.hasUnit())
tgt.setUnit(convertCodeableConcept(src.getUnit()));
if (src.hasTerm())
tgt.setTerm(convertCodeableConcept(src.getTerm()));
for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent t : src.getBenefit()) tgt.addBenefit(convertBenefitComponent(t));
if (src.hasAuthorizationRequired())
tgt.setAuthorizationRequiredElement(convertBoolean(src.getAuthorizationRequiredElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAuthorizationSupporting()) tgt.addAuthorizationSupporting(convertCodeableConcept(t));
if (src.hasAuthorizationUrl())
tgt.setAuthorizationUrlElement(convertUri(src.getAuthorizationUrlElement()));
return tgt;
}
public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent convertBenefitComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasAllowed())
tgt.setAllowed(convertType(src.getAllowed()));
if (src.hasUsed())
tgt.setUsed(convertType(src.getUsed()));
return tgt;
}
public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent convertBenefitComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasAllowed())
tgt.setAllowed(convertType(src.getAllowed()));
if (src.hasUsed())
tgt.setUsed(convertType(src.getUsed()));
return tgt;
}
public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent convertErrorsComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent();
copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
return tgt;
}
public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent convertErrorsComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent();
copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
return tgt;
}
}

View File

@ -432,8 +432,8 @@ public class Device40_50 extends VersionConvertor_40_50 {
copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
for (org.hl7.fhir.r4.model.Quantity t : src.getValueQuantity()) tgt.addValueQuantity(convertQuantity(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getValueCode()) tgt.addValueCode(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.Quantity t : src.getValueQuantity()) tgt.setValue(convertQuantity(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getValueCode()) tgt.setValue(convertCodeableConcept(t));
return tgt;
}
@ -444,8 +444,8 @@ public class Device40_50 extends VersionConvertor_40_50 {
copyElement(src, tgt);
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
for (org.hl7.fhir.r5.model.Quantity t : src.getValueQuantity()) tgt.addValueQuantity(convertQuantity(t));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getValueCode()) tgt.addValueCode(convertCodeableConcept(t));
if (src.hasValueQuantity()) tgt.addValueQuantity(convertQuantity(src.getValueQuantity()));
if (src.hasValueCodeableConcept()) tgt.addValueCode(convertCodeableConcept(src.getValueCodeableConcept()));
return tgt;
}
}

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionVersionComponent;
/*
Copyright (c) 2011+, HL7, Inc.
@ -48,9 +49,9 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 {
if (src.hasModelNumber())
tgt.setModelNumberElement(convertString(src.getModelNumberElement()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
tgt.addType(convertCodeableConcept(src.getType()));
for (org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionSpecializationComponent t : src.getSpecialization()) tgt.addSpecialization(convertDeviceDefinitionSpecializationComponent(t));
for (org.hl7.fhir.r4.model.StringType t : src.getVersion()) tgt.getVersion().add(convertString(t));
for (org.hl7.fhir.r4.model.StringType t : src.getVersion()) tgt.getVersion().add(new DeviceDefinitionVersionComponent().setValueElement(convertString(t)));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSafety()) tgt.addSafety(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.ProductShelfLife t : src.getShelfLifeStorage()) tgt.addShelfLifeStorage(convertProductShelfLife(t));
if (src.hasPhysicalCharacteristics())
@ -64,8 +65,6 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 {
if (src.hasOnlineInformation())
tgt.setOnlineInformationElement(convertUri(src.getOnlineInformationElement()));
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
if (src.hasQuantity())
tgt.setQuantity(convertQuantity(src.getQuantity()));
if (src.hasParentDevice())
tgt.setParentDevice(convertReference(src.getParentDevice()));
for (org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionMaterialComponent t : src.getMaterial()) tgt.addMaterial(convertDeviceDefinitionMaterialComponent(t));
@ -84,10 +83,9 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionDeviceNameComponent t : src.getDeviceName()) tgt.addDeviceName(convertDeviceDefinitionDeviceNameComponent(t));
if (src.hasModelNumber())
tgt.setModelNumberElement(convertString(src.getModelNumberElement()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.setType(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionSpecializationComponent t : src.getSpecialization()) tgt.addSpecialization(convertDeviceDefinitionSpecializationComponent(t));
for (org.hl7.fhir.r5.model.StringType t : src.getVersion()) tgt.getVersion().add(convertString(t));
for (DeviceDefinitionVersionComponent t : src.getVersion()) tgt.getVersion().add(convertString(t.getValueElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSafety()) tgt.addSafety(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.ProductShelfLife t : src.getShelfLifeStorage()) tgt.addShelfLifeStorage(convertProductShelfLife(t));
if (src.hasPhysicalCharacteristics())
@ -101,8 +99,6 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 {
if (src.hasOnlineInformation())
tgt.setOnlineInformationElement(convertUri(src.getOnlineInformationElement()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
if (src.hasQuantity())
tgt.setQuantity(convertQuantity(src.getQuantity()));
if (src.hasParentDevice())
tgt.setParentDevice(convertReference(src.getParentDevice()));
for (org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionMaterialComponent t : src.getMaterial()) tgt.addMaterial(convertDeviceDefinitionMaterialComponent(t));

View File

@ -36,10 +36,10 @@ import org.hl7.fhir.r5.model.CodeableReference;
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DeviceUseStatement40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r4.model.DeviceUseStatement src) throws FHIRException {
public static org.hl7.fhir.r5.model.DeviceUsage convertDeviceUseStatement(org.hl7.fhir.r4.model.DeviceUseStatement src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.DeviceUseStatement tgt = new org.hl7.fhir.r5.model.DeviceUseStatement();
org.hl7.fhir.r5.model.DeviceUsage tgt = new org.hl7.fhir.r5.model.DeviceUsage();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addBasedOn(convertReference(t));
@ -64,7 +64,7 @@ public class DeviceUseStatement40_50 extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r4.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUseStatement src) throws FHIRException {
public static org.hl7.fhir.r4.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUsage src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.DeviceUseStatement tgt = new org.hl7.fhir.r4.model.DeviceUseStatement();
@ -94,38 +94,38 @@ public class DeviceUseStatement40_50 extends VersionConvertor_40_50 {
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus> convertDeviceUseStatementStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.DeviceUseStatement.DeviceUseStatementStatus> src) throws FHIRException {
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus> convertDeviceUseStatementStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.DeviceUseStatement.DeviceUseStatementStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory());
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ACTIVE);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ACTIVE);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.COMPLETED);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ENTEREDINERROR);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.INTENDED);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.INTENDED);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.STOPPED);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.STOPPED);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ONHOLD);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ONHOLD);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.NULL);
tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.DeviceUseStatement.DeviceUseStatementStatus> convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus> src) throws FHIRException {
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.DeviceUseStatement.DeviceUseStatementStatus> convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.DeviceUseStatement.DeviceUseStatementStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory());

View File

@ -1,183 +0,0 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class EnrollmentResponse40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.EnrollmentResponse convertEnrollmentResponse(org.hl7.fhir.r4.model.EnrollmentResponse src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.EnrollmentResponse tgt = new org.hl7.fhir.r5.model.EnrollmentResponse();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertEnrollmentResponseStatus(src.getStatusElement()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasOutcome())
tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement()));
if (src.hasDisposition())
tgt.setDispositionElement(convertString(src.getDispositionElement()));
if (src.hasCreated())
tgt.setCreatedElement(convertDateTime(src.getCreatedElement()));
if (src.hasOrganization())
tgt.setOrganization(convertReference(src.getOrganization()));
if (src.hasRequestProvider())
tgt.setRequestProvider(convertReference(src.getRequestProvider()));
return tgt;
}
public static org.hl7.fhir.r4.model.EnrollmentResponse convertEnrollmentResponse(org.hl7.fhir.r5.model.EnrollmentResponse src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.EnrollmentResponse tgt = new org.hl7.fhir.r4.model.EnrollmentResponse();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertEnrollmentResponseStatus(src.getStatusElement()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasOutcome())
tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement()));
if (src.hasDisposition())
tgt.setDispositionElement(convertString(src.getDispositionElement()));
if (src.hasCreated())
tgt.setCreatedElement(convertDateTime(src.getCreatedElement()));
if (src.hasOrganization())
tgt.setOrganization(convertReference(src.getOrganization()));
if (src.hasRequestProvider())
tgt.setRequestProvider(convertReference(src.getRequestProvider()));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> convertEnrollmentResponseStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodesEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE);
break;
case CANCELLED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED);
break;
case DRAFT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus> convertEnrollmentResponseStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.ACTIVE);
break;
case CANCELLED:
tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.CANCELLED);
break;
case DRAFT:
tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.DRAFT);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.ENTEREDINERROR);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodesEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case QUEUED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED);
break;
case COMPLETE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE);
break;
case ERROR:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR);
break;
case PARTIAL:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Enumerations.RemittanceOutcomeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case QUEUED:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.QUEUED);
break;
case COMPLETE:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.COMPLETE);
break;
case ERROR:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.ERROR);
break;
case PARTIAL:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.PARTIAL);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.NULL);
break;
}
return tgt;
}
}

View File

@ -60,8 +60,6 @@ public class Goal40_50 extends VersionConvertor_40_50 {
tgt.setStatusDateElement(convertDate(src.getStatusDateElement()));
if (src.hasStatusReason())
tgt.setStatusReasonElement(convertString(src.getStatusReasonElement()));
if (src.hasExpressedBy())
tgt.setExpressedBy(convertReference(src.getExpressedBy()));
for (org.hl7.fhir.r4.model.Reference t : src.getAddresses()) tgt.addAddresses(convertReference(t));
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCode()) tgt.addOutcome(convertCodeableConceptToCodeableReference(t));
@ -93,8 +91,6 @@ public class Goal40_50 extends VersionConvertor_40_50 {
tgt.setStatusDateElement(convertDate(src.getStatusDateElement()));
if (src.hasStatusReason())
tgt.setStatusReasonElement(convertString(src.getStatusReasonElement()));
if (src.hasExpressedBy())
tgt.setExpressedBy(convertReference(src.getExpressedBy()));
for (org.hl7.fhir.r5.model.Reference t : src.getAddresses()) tgt.addAddresses(convertReference(t));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
for (CodeableReference t : src.getOutcome()) if (t.hasConcept())

View File

@ -205,8 +205,8 @@ public class MeasureReport40_50 extends VersionConvertor_40_50 {
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent t : src.getPopulation()) tgt.addPopulation(convertMeasureReportGroupPopulationComponent(t));
if (src.hasMeasureScore())
tgt.setMeasureScore(convertQuantity(src.getMeasureScore()));
if (src.hasMeasureScoreQuantity())
tgt.setMeasureScore(convertQuantity(src.getMeasureScoreQuantity()));
for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent t : src.getStratifier()) tgt.addStratifier(convertMeasureReportGroupStratifierComponent(t));
return tgt;
}
@ -278,12 +278,12 @@ public class MeasureReport40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent();
copyElement(src, tgt);
if (src.hasValue())
tgt.setValue(convertCodeableConcept(src.getValue()));
if (src.hasValueCodeableConcept())
tgt.setValue(convertCodeableConcept(src.getValueCodeableConcept()));
for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent t : src.getComponent()) tgt.addComponent(convertStratifierGroupComponentComponent(t));
for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent t : src.getPopulation()) tgt.addPopulation(convertStratifierGroupPopulationComponent(t));
if (src.hasMeasureScore())
tgt.setMeasureScore(convertQuantity(src.getMeasureScore()));
if (src.hasMeasureScoreQuantity())
tgt.setMeasureScore(convertQuantity(src.getMeasureScoreQuantity()));
return tgt;
}
@ -306,8 +306,8 @@ public class MeasureReport40_50 extends VersionConvertor_40_50 {
copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.hasValue())
tgt.setValue(convertCodeableConcept(src.getValue()));
if (src.hasValueCodeableConcept())
tgt.setValue(convertCodeableConcept(src.getValueCodeableConcept()));
return tgt;
}

View File

@ -46,7 +46,7 @@ public class Medication40_50 extends VersionConvertor_40_50 {
if (src.hasStatus())
tgt.setStatusElement(convertMedicationStatus(src.getStatusElement()));
if (src.hasManufacturer())
tgt.setManufacturer(convertReference(src.getManufacturer()));
tgt.setSponsor(convertReference(src.getManufacturer()));
if (src.hasForm())
tgt.setDoseForm(convertCodeableConcept(src.getForm()));
if (src.hasAmount())
@ -67,8 +67,8 @@ public class Medication40_50 extends VersionConvertor_40_50 {
tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.hasStatus())
tgt.setStatusElement(convertMedicationStatus(src.getStatusElement()));
if (src.hasManufacturer())
tgt.setManufacturer(convertReference(src.getManufacturer()));
if (src.hasSponsor())
tgt.setManufacturer(convertReference(src.getSponsor()));
if (src.hasDoseForm())
tgt.setForm(convertCodeableConcept(src.getDoseForm()));
if (src.hasAmount())

View File

@ -4,6 +4,8 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.CodeableConcept;
import org.hl7.fhir.r5.model.Coding;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatusCodesEnumFactory;
import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgePackagingComponent;
@ -51,7 +53,7 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 {
if (src.hasStatus())
tgt.setStatusElement(convertMedicationKnowledgeStatus(src.getStatusElement()));
if (src.hasManufacturer())
tgt.setManufacturer(convertReference(src.getManufacturer()));
tgt.setSponsor(convertReference(src.getManufacturer()));
if (src.hasDoseForm())
tgt.setDoseForm(convertCodeableConcept(src.getDoseForm()));
if (src.hasAmount())
@ -90,8 +92,8 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 {
tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.hasStatus())
tgt.setStatusElement(convertMedicationKnowledgeStatus(src.getStatusElement()));
if (src.hasManufacturer())
tgt.setManufacturer(convertReference(src.getManufacturer()));
if (src.hasSponsor())
tgt.setManufacturer(convertReference(src.getSponsor()));
if (src.hasDoseForm())
tgt.setDoseForm(convertCodeableConcept(src.getDoseForm()));
if (src.hasAmount())
@ -221,8 +223,8 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 {
tgt.getItem().setConcept(convertCodeableConcept(src.getItemCodeableConcept()));
if (src.hasItemReference())
tgt.getItem().setReference(convertReference(src.getItemReference()));
if (src.hasIsActive())
tgt.setIsActiveElement(convertBoolean(src.getIsActiveElement()));
if (src.getIsActive())
tgt.setIsActive(new CodeableConcept(new Coding("ttp://terminology.hl7.org/CodeSystem/v3-RoleClass", "ACTI", "active ingredient ")));
if (src.hasStrength())
tgt.setStrength(convertRatio(src.getStrength()));
return tgt;
@ -238,7 +240,7 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 {
if (src.getItem().hasReference())
tgt.setItem(convertType(src.getItem().getReference()));
if (src.hasIsActive())
tgt.setIsActiveElement(convertBoolean(src.getIsActiveElement()));
tgt.setIsActive(src.getIsActive().hasCoding("http://terminology.hl7.org/CodeSystem/v3-RoleClass", "ACTI"));
if (src.hasStrengthRatio())
tgt.setStrength(convertRatio(src.getStrengthRatio()));
return tgt;

View File

@ -119,7 +119,7 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 {
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
@ -128,19 +128,19 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 {
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.STOPPED);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ONHOLD);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
case UNKNOWN:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
case NOTTAKEN:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NOTTAKEN);
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL);
@ -155,30 +155,30 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 {
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ACTIVE);
break;
// case ACTIVE:
// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ACTIVE);
// break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.INTENDED);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.STOPPED);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ONHOLD);
break;
// case UNKNOWN:
// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.INTENDED);
// break;
// case STOPPED:
// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.STOPPED);
// break;
// case ONHOLD:
// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ONHOLD);
// break;
case UNKNOWN:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.UNKNOWN);
break;
case NOTTAKEN:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NOTTAKEN);
break;
// case NOTTAKEN:
// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NOTTAKEN);
// break;
default:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NULL);
break;

View File

@ -1,344 +0,0 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.MarketingStatus;
import org.hl7.fhir.r5.model.CodeableReference;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MedicinalProductDefinition convertMedicinalProduct(org.hl7.fhir.r4.model.MedicinalProduct src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.MedicinalProductDefinition tgt = new org.hl7.fhir.r5.model.MedicinalProductDefinition();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasDomain())
tgt.getDomain().addCoding(convertCoding(src.getDomain()));
// version (new)
// status (new)
// description (new)
if (src.hasCombinedPharmaceuticalDoseForm())
tgt.setCombinedPharmaceuticalDoseForm(convertCodeableConcept(src.getCombinedPharmaceuticalDoseForm()));
// indication (new)
if (src.hasLegalStatusOfSupply())
tgt.setLegalStatusOfSupply(convertCodeableConcept(src.getLegalStatusOfSupply()));
if (src.hasAdditionalMonitoringIndicator())
tgt.setAdditionalMonitoringIndicator(convertCodeableConcept(src.getAdditionalMonitoringIndicator()));
for (org.hl7.fhir.r4.model.StringType t : src.getSpecialMeasures()) {
// specialMeasures string -> CodeableConcept
org.hl7.fhir.r5.model.CodeableConcept c = new org.hl7.fhir.r5.model.CodeableConcept();
tgt.addSpecialMeasures(c);
c.setTextElement(convertString(t));
}
if (src.hasPaediatricUseIndicator())
tgt.setPaediatricUseIndicator(convertCodeableConcept(src.getPaediatricUseIndicator()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProductClassification()) tgt.addClassification(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.MarketingStatus t : src.getMarketingStatus()) tgt.addMarketingStatus(convertMarketingStatus(t));
for (org.hl7.fhir.r4.model.Reference t : src.getPharmaceuticalProduct()) tgt.addPharmaceuticalProduct(convertReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getPackagedMedicinalProduct()) tgt.addPackagedMedicinalProduct(convertReference(t));
// ingredient (new)
for (org.hl7.fhir.r4.model.Reference t : src.getAttachedDocument()) tgt.addAttachedDocument(convertReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getMasterFile()) tgt.addMasterFile(convertReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getContact()) {
// contact (Reference -> complex
org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionContactComponent c = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionContactComponent();
tgt.addContact(c);
c.setContact(convertReference(t));
}
for (org.hl7.fhir.r4.model.Reference t : src.getClinicalTrial()) tgt.addClinicalTrial(convertReference(t));
for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameComponent srcName : src.getName()) {
org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameComponent tgtName = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameComponent();
copyElement(srcName, tgtName);
tgt.addName(tgtName);
tgtName.setProductNameElement(convertString(srcName.getProductNameElement()));
//type (new)
for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameNamePartComponent srcPart : srcName.getNamePart()) {
org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameNamePartComponent tgtPart = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameNamePartComponent();
copyElement(srcPart, tgtPart);
tgtName.addNamePart(tgtPart);
tgtPart.setPartElement(convertString(srcPart.getPartElement()));
tgtPart.getType().addCoding(convertCoding(srcPart.getType()));
}
for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameCountryLanguageComponent srcLang : srcName.getCountryLanguage()) {
org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameCountryLanguageComponent tgtLang = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameCountryLanguageComponent();
copyElement(srcLang, tgtLang);
tgtName.addCountryLanguage(tgtLang);
tgtLang.setCountry(convertCodeableConcept(srcLang.getCountry()));
tgtLang.setLanguage(convertCodeableConcept(srcLang.getLanguage()));
}
}
for (org.hl7.fhir.r4.model.Identifier t : src.getCrossReference()) {
// cross-reference Identifier -> complex - todo
// org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionCrossReferenceComponent c = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionCrossReferenceComponent();
// tgt.addCrossReference(c);
// c.setProduct(convertIdentifier(t));
}
for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductManufacturingBusinessOperationComponent srcMBO : src.getManufacturingBusinessOperation()) {
org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent tgtMBO = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent();
copyElement(srcMBO, tgtMBO);
tgt.addManufacturingBusinessOperation(tgtMBO);
if (srcMBO.hasOperationType()) {
tgtMBO.getType().setConcept(convertCodeableConcept(srcMBO.getOperationType()));
// operationType -> type[x]
}
if (srcMBO.hasAuthorisationReferenceNumber())
throw new FHIRException("Converting MedicinalProduct.ManufacturingBusinessOperation.authorizationReferenceNumber is not supported");
if (srcMBO.hasEffectiveDate()) {
// effectiveDate - dateTime -> Period
org.hl7.fhir.r5.model.Period p = new org.hl7.fhir.r5.model.Period();
tgtMBO.setEffectiveDate(p);
p.setStartElement(convertDateTime(srcMBO.getEffectiveDateElement()));
p.setEndElement(convertDateTime(srcMBO.getEffectiveDateElement()));
}
if (srcMBO.hasConfidentialityIndicator())
tgtMBO.setConfidentialityIndicator(convertCodeableConcept(srcMBO.getConfidentialityIndicator()));
for (org.hl7.fhir.r4.model.Reference t : srcMBO.getManufacturer()) tgtMBO.addManufacturer(convertReference(t));
if (srcMBO.hasRegulator())
throw new FHIRException("Converting MedicinalProduct.ManufacturingBusinessOperation.regulator is not supported");
// added authorization
}
if (src.hasSpecialDesignation())
throw new FHIRException("Converting MedicinalProduct.specialDesignation is not supported");
return tgt;
}
// Todo convert references
public static org.hl7.fhir.r4.model.MedicinalProduct convertMedicinalProductDefinition(org.hl7.fhir.r5.model.MedicinalProductDefinition src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.MedicinalProduct tgt = new org.hl7.fhir.r4.model.MedicinalProduct();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.getDomain().hasCoding())
tgt.setDomain(convertCoding(src.getDomain().getCodingFirstRep()));
if (src.hasVersion())
throw new FHIRException("Converting MedicinalProductDefinition.version is not supported");
if (src.hasStatus())
throw new FHIRException("Converting MedicinalProductDefinition.status is not supported");
if (src.hasDescription())
throw new FHIRException("Converting MedicinalProductDefinition.description is not supported");
if (src.hasCombinedPharmaceuticalDoseForm())
tgt.setCombinedPharmaceuticalDoseForm(convertCodeableConcept(src.getCombinedPharmaceuticalDoseForm()));
if (src.hasIndication())
throw new FHIRException("Converting MedicinalProductDefinition.indication is not supported");
if (src.hasLegalStatusOfSupply())
tgt.setLegalStatusOfSupply(convertCodeableConcept(src.getLegalStatusOfSupply()));
if (src.hasAdditionalMonitoringIndicator())
tgt.setAdditionalMonitoringIndicator(convertCodeableConcept(src.getAdditionalMonitoringIndicator()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSpecialMeasures()) {
// specialMeasures CodeableConcept -> string
if (t.hasText()) {
org.hl7.fhir.r4.model.StringType s = tgt.addSpecialMeasuresElement();
copyElement(t.getTextElement(), s);
s.setValue(t.getText());
}
checkBase(t, "MedicinalProductDefinition.specialMeasures");
if (t.hasCoding())
throw new FHIRException("Converting MedicinalProductDefinition.specialMeasures.coding is not supported");
}
if (src.hasPaediatricUseIndicator())
tgt.setPaediatricUseIndicator(convertCodeableConcept(src.getPaediatricUseIndicator()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getClassification()) tgt.addProductClassification(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.MarketingStatus t : src.getMarketingStatus()) tgt.addMarketingStatus(convertMarketingStatus(t));
for (org.hl7.fhir.r5.model.Reference t : src.getPharmaceuticalProduct()) tgt.addPharmaceuticalProduct(convertReference(t));
for (org.hl7.fhir.r5.model.Reference t : src.getPackagedMedicinalProduct()) tgt.addPackagedMedicinalProduct(convertReference(t));
// ingredient (new)
for (org.hl7.fhir.r5.model.Reference t : src.getAttachedDocument()) tgt.addAttachedDocument(convertReference(t));
for (org.hl7.fhir.r5.model.Reference t : src.getMasterFile()) tgt.addMasterFile(convertReference(t));
for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionContactComponent t : src.getContact()) {
// contact complex -> reference
if (t.hasContact()) {
tgt.addContact(convertReference(t.getContact()));
}
checkBase(t, "MedicinalProductDefinition.contact");
if (t.hasType())
throw new FHIRException("Converting MedicinalProductDefinition.contact.type is not supported");
}
for (org.hl7.fhir.r5.model.Reference t : src.getClinicalTrial()) tgt.addClinicalTrial(convertReference(t));
for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameComponent srcName : src.getName()) {
org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameComponent tgtName = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameComponent();
copyElement(srcName, tgtName);
tgt.addName(tgtName);
tgtName.setProductNameElement(convertString(srcName.getProductNameElement()));
//type (new)
for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameNamePartComponent srcPart : srcName.getNamePart()) {
org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameNamePartComponent tgtPart = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameNamePartComponent();
copyElement(srcPart, tgtPart);
tgtName.addNamePart(tgtPart);
tgtPart.setPartElement(convertString(srcPart.getPartElement()));
if (srcPart.getType().hasCoding()) {
tgtPart.setType(convertCoding(srcPart.getType().getCodingFirstRep()));
}
}
for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameCountryLanguageComponent srcLang : srcName.getCountryLanguage()) {
org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameCountryLanguageComponent tgtLang = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameCountryLanguageComponent();
copyElement(srcLang, tgtLang);
tgtName.addCountryLanguage(tgtLang);
tgtLang.setCountry(convertCodeableConcept(srcLang.getCountry()));
tgtLang.setLanguage(convertCodeableConcept(srcLang.getLanguage()));
}
}
for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionCrossReferenceComponent t : src.getCrossReference()) {
// cross-reference complex -> Identifier - todo
// if (t.hasProduct()) {
// if (t.getProduct() instanceof org.hl7.fhir.r5.model.Identifier)
// tgt.addCrossReference(convertIdentifier((org.hl7.fhir.r5.model.Identifier)t.getProduct()));
// else
// throw new FHIRException("Converting MedicinalProductDefinition.crossReference.productReference is not supported");
// }
checkBase(t, "MedicinalProductDefinition.crossReference");
if (t.hasType())
throw new FHIRException("Converting MedicinalProductDefinition.crossReference.type is not supported");
}
for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent srcMBO : src.getManufacturingBusinessOperation()) {
org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductManufacturingBusinessOperationComponent tgtMBO = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductManufacturingBusinessOperationComponent();
copyElement(srcMBO, tgtMBO);
tgt.addManufacturingBusinessOperation(tgtMBO);
if (srcMBO.hasType()) {
// type[x] -> operationType
if (srcMBO.getType().hasConcept())
tgtMBO.setOperationType(convertCodeableConcept(srcMBO.getType().getConcept()));
else
throw new FHIRException("Converting MedicinalProductDefinition.manufacturingBusinessOperation.typeReference is not supported");
}
// added authorisationReferenceNumber
if (srcMBO.hasEffectiveDate()) {
// effectiveDate - Period -> dateTime
org.hl7.fhir.r5.model.Period d = srcMBO.getEffectiveDate();
checkBase(srcMBO, "MedicinalProductDefinition.manufacturingBusinessOperation.effectiveDate");
if (d.hasStart() || d.hasEnd()) {
if (d.hasStart() != d.hasEnd() || !d.getStart().equals(d.getEnd()))
throw new FHIRException("Converting MedicinalProductDefinition.manufacturingBusinessOperation.effectiveDate is not supported when start is not identical to end");
else
tgtMBO.setEffectiveDateElement(convertDateTime(d.getStartElement()));
}
}
if (srcMBO.hasAuthorization())
throw new FHIRException("Converting MedicinalProductDefinition.manufacturingBusinessOperation.authorization is not supported");
if (srcMBO.hasConfidentialityIndicator())
tgtMBO.setConfidentialityIndicator(convertCodeableConcept(srcMBO.getConfidentialityIndicator()));
for (org.hl7.fhir.r5.model.Reference t : srcMBO.getManufacturer()) tgtMBO.addManufacturer(convertReference(t));
// Added regulator
// added authorization
}
// added specialDesignation
return tgt;
}
static public void checkBase(org.hl7.fhir.r5.model.Element e, String path) throws FHIRException {
if (e.hasId())
throw new FHIRException ("Converting " + path + ".id is not supported");
if (e.hasExtension())
throw new FHIRException ("Converting " + path + ".extension is not supported");
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes> convertMedicationStatementStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodesEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.STOPPED);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ONHOLD);
break;
case UNKNOWN:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN);
break;
case NOTTAKEN:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NOTTAKEN);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus> convertMedicationStatementStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ACTIVE);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR);
break;
case INTENDED:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.INTENDED);
break;
case STOPPED:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.STOPPED);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ONHOLD);
break;
case UNKNOWN:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.UNKNOWN);
break;
case NOTTAKEN:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NOTTAKEN);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NULL);
break;
}
return tgt;
}
}

View File

@ -57,15 +57,15 @@ public class ObservationDefinition40_50 extends VersionConvertor_40_50 {
tgt.setPreferredReportNameElement(convertString(src.getPreferredReportNameElement()));
if (src.hasQuantitativeDetails())
tgt.setQuantitativeDetails(convertObservationDefinitionQuantitativeDetailsComponent(src.getQuantitativeDetails()));
for (org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t));
if (src.hasValidCodedValueSet())
tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet()));
if (src.hasNormalCodedValueSet())
tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet()));
if (src.hasAbnormalCodedValueSet())
tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet()));
if (src.hasCriticalCodedValueSet())
tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet()));
// for (org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t));
// if (src.hasValidCodedValueSet())
// tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet()));
// if (src.hasNormalCodedValueSet())
// tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet()));
// if (src.hasAbnormalCodedValueSet())
// tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet()));
// if (src.hasCriticalCodedValueSet())
// tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet()));
return tgt;
}
@ -90,15 +90,15 @@ public class ObservationDefinition40_50 extends VersionConvertor_40_50 {
tgt.setPreferredReportNameElement(convertString(src.getPreferredReportNameElement()));
if (src.hasQuantitativeDetails())
tgt.setQuantitativeDetails(convertObservationDefinitionQuantitativeDetailsComponent(src.getQuantitativeDetails()));
for (org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t));
if (src.hasValidCodedValueSet())
tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet()));
if (src.hasNormalCodedValueSet())
tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet()));
if (src.hasAbnormalCodedValueSet())
tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet()));
if (src.hasCriticalCodedValueSet())
tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet()));
// for (org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t));
// if (src.hasValidCodedValueSet())
// tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet()));
// if (src.hasNormalCodedValueSet())
// tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet()));
// if (src.hasAbnormalCodedValueSet())
// tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet()));
// if (src.hasCriticalCodedValueSet())
// tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet()));
return tgt;
}
@ -226,51 +226,51 @@ public class ObservationDefinition40_50 extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent();
copyElement(src, tgt);
if (src.hasCategory())
tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement()));
if (src.hasRange())
tgt.setRange(convertRange(src.getRange()));
if (src.hasContext())
tgt.setContext(convertCodeableConcept(src.getContext()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t));
if (src.hasGender())
tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement()));
if (src.hasAge())
tgt.setAge(convertRange(src.getAge()));
if (src.hasGestationalAge())
tgt.setGestationalAge(convertRange(src.getGestationalAge()));
if (src.hasCondition())
tgt.setConditionElement(convertString(src.getConditionElement()));
return tgt;
}
public static org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent();
copyElement(src, tgt);
if (src.hasCategory())
tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement()));
if (src.hasRange())
tgt.setRange(convertRange(src.getRange()));
if (src.hasContext())
tgt.setContext(convertCodeableConcept(src.getContext()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t));
if (src.hasGender())
tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement()));
if (src.hasAge())
tgt.setAge(convertRange(src.getAge()));
if (src.hasGestationalAge())
tgt.setGestationalAge(convertRange(src.getGestationalAge()));
if (src.hasCondition())
tgt.setConditionElement(convertString(src.getConditionElement()));
return tgt;
}
// public static org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException {
// if (src == null)
// return null;
// org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent();
// copyElement(src, tgt);
// if (src.hasCategory())
// tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement()));
// if (src.hasRange())
// tgt.setRange(convertRange(src.getRange()));
// if (src.hasContext())
// tgt.setContext(convertCodeableConcept(src.getContext()));
// for (org.hl7.fhir.r4.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t));
// if (src.hasGender())
// tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement()));
// if (src.hasAge())
// tgt.setAge(convertRange(src.getAge()));
// if (src.hasGestationalAge())
// tgt.setGestationalAge(convertRange(src.getGestationalAge()));
// if (src.hasCondition())
// tgt.setConditionElement(convertString(src.getConditionElement()));
// return tgt;
// }
//
// public static org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException {
// if (src == null)
// return null;
// org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent();
// copyElement(src, tgt);
// if (src.hasCategory())
// tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement()));
// if (src.hasRange())
// tgt.setRange(convertRange(src.getRange()));
// if (src.hasContext())
// tgt.setContext(convertCodeableConcept(src.getContext()));
// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t));
// if (src.hasGender())
// tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement()));
// if (src.hasAge())
// tgt.setAge(convertRange(src.getAge()));
// if (src.hasGestationalAge())
// tgt.setGestationalAge(convertRange(src.getGestationalAge()));
// if (src.hasCondition())
// tgt.setConditionElement(convertString(src.getConditionElement()));
// return tgt;
// }
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.ObservationDefinition.ObservationRangeCategory> convertObservationRangeCategory(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ObservationDefinition.ObservationRangeCategory> src) throws FHIRException {
if (src == null || src.isEmpty())

View File

@ -1,287 +0,0 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class PaymentReconciliation40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.PaymentReconciliation convertPaymentReconciliation(org.hl7.fhir.r4.model.PaymentReconciliation src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.PaymentReconciliation tgt = new org.hl7.fhir.r5.model.PaymentReconciliation();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertPaymentReconciliationStatus(src.getStatusElement()));
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasCreated())
tgt.setCreatedElement(convertDateTime(src.getCreatedElement()));
if (src.hasPaymentIssuer())
tgt.setPaymentIssuer(convertReference(src.getPaymentIssuer()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasRequestor())
tgt.setRequestor(convertReference(src.getRequestor()));
if (src.hasOutcome())
tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement()));
if (src.hasDisposition())
tgt.setDispositionElement(convertString(src.getDispositionElement()));
if (src.hasPaymentDate())
tgt.setPaymentDateElement(convertDate(src.getPaymentDateElement()));
if (src.hasPaymentAmount())
tgt.setPaymentAmount(convertMoney(src.getPaymentAmount()));
if (src.hasPaymentIdentifier())
tgt.setPaymentIdentifier(convertIdentifier(src.getPaymentIdentifier()));
for (org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent t : src.getDetail()) tgt.addDetail(convertDetailsComponent(t));
if (src.hasFormCode())
tgt.setFormCode(convertCodeableConcept(src.getFormCode()));
for (org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent t : src.getProcessNote()) tgt.addProcessNote(convertNotesComponent(t));
return tgt;
}
public static org.hl7.fhir.r4.model.PaymentReconciliation convertPaymentReconciliation(org.hl7.fhir.r5.model.PaymentReconciliation src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.PaymentReconciliation tgt = new org.hl7.fhir.r4.model.PaymentReconciliation();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertPaymentReconciliationStatus(src.getStatusElement()));
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasCreated())
tgt.setCreatedElement(convertDateTime(src.getCreatedElement()));
if (src.hasPaymentIssuer())
tgt.setPaymentIssuer(convertReference(src.getPaymentIssuer()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasRequestor())
tgt.setRequestor(convertReference(src.getRequestor()));
if (src.hasOutcome())
tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement()));
if (src.hasDisposition())
tgt.setDispositionElement(convertString(src.getDispositionElement()));
if (src.hasPaymentDate())
tgt.setPaymentDateElement(convertDate(src.getPaymentDateElement()));
if (src.hasPaymentAmount())
tgt.setPaymentAmount(convertMoney(src.getPaymentAmount()));
if (src.hasPaymentIdentifier())
tgt.setPaymentIdentifier(convertIdentifier(src.getPaymentIdentifier()));
for (org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent t : src.getDetail()) tgt.addDetail(convertDetailsComponent(t));
if (src.hasFormCode())
tgt.setFormCode(convertCodeableConcept(src.getFormCode()));
for (org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent t : src.getProcessNote()) tgt.addProcessNote(convertNotesComponent(t));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> convertPaymentReconciliationStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodesEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE);
break;
case CANCELLED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED);
break;
case DRAFT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus> convertPaymentReconciliationStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.ACTIVE);
break;
case CANCELLED:
tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.CANCELLED);
break;
case DRAFT:
tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.DRAFT);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.ENTEREDINERROR);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodesEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case QUEUED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED);
break;
case COMPLETE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE);
break;
case ERROR:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR);
break;
case PARTIAL:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Enumerations.RemittanceOutcomeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case QUEUED:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.QUEUED);
break;
case COMPLETE:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.COMPLETE);
break;
case ERROR:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.ERROR);
break;
case PARTIAL:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.PARTIAL);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent convertDetailsComponent(org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent tgt = new org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent();
copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasPredecessor())
tgt.setPredecessor(convertIdentifier(src.getPredecessor()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasSubmitter())
tgt.setSubmitter(convertReference(src.getSubmitter()));
if (src.hasResponse())
tgt.setResponse(convertReference(src.getResponse()));
if (src.hasDate())
tgt.setDateElement(convertDate(src.getDateElement()));
if (src.hasResponsible())
tgt.setResponsible(convertReference(src.getResponsible()));
if (src.hasPayee())
tgt.setPayee(convertReference(src.getPayee()));
if (src.hasAmount())
tgt.setAmount(convertMoney(src.getAmount()));
return tgt;
}
public static org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent convertDetailsComponent(org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent tgt = new org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent();
copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasPredecessor())
tgt.setPredecessor(convertIdentifier(src.getPredecessor()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasRequest())
tgt.setRequest(convertReference(src.getRequest()));
if (src.hasSubmitter())
tgt.setSubmitter(convertReference(src.getSubmitter()));
if (src.hasResponse())
tgt.setResponse(convertReference(src.getResponse()));
if (src.hasDate())
tgt.setDateElement(convertDate(src.getDateElement()));
if (src.hasResponsible())
tgt.setResponsible(convertReference(src.getResponsible()));
if (src.hasPayee())
tgt.setPayee(convertReference(src.getPayee()));
if (src.hasAmount())
tgt.setAmount(convertMoney(src.getAmount()));
return tgt;
}
public static org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent convertNotesComponent(org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent tgt = new org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(Enumerations40_50.convertNoteType(src.getTypeElement()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
return tgt;
}
public static org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent convertNotesComponent(org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent tgt = new org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setTypeElement(Enumerations40_50.convertNoteType(src.getTypeElement()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
return tgt;
}
}

View File

@ -3,6 +3,9 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.DataRequirement;
import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionInputComponent;
import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionOutputComponent;
/*
Copyright (c) 2011+, HL7, Inc.
@ -230,7 +233,7 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 {
tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.setCode(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReason()) tgt.addReason(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t));
for (org.hl7.fhir.r4.model.IdType t : src.getGoalId()) tgt.getGoalId().add(convertId(t));
@ -238,8 +241,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 {
tgt.setSubject(convertType(src.getSubject()));
for (org.hl7.fhir.r4.model.TriggerDefinition t : src.getTrigger()) tgt.addTrigger(convertTriggerDefinition(t));
for (org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t));
for (org.hl7.fhir.r4.model.DataRequirement t : src.getInput()) tgt.addInput(convertDataRequirement(t));
for (org.hl7.fhir.r4.model.DataRequirement t : src.getOutput()) tgt.addOutput(convertDataRequirement(t));
for (org.hl7.fhir.r4.model.DataRequirement t : src.getInput()) tgt.addInput(wrapInput(convertDataRequirement(t)));
for (org.hl7.fhir.r4.model.DataRequirement t : src.getOutput()) tgt.addOutput(wrapOutput(convertDataRequirement(t)));
for (org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t));
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
@ -265,6 +268,14 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 {
return tgt;
}
private static PlanDefinitionActionOutputComponent wrapOutput(DataRequirement dr) {
return new PlanDefinitionActionOutputComponent().setRequirement(dr);
}
private static PlanDefinitionActionInputComponent wrapInput(DataRequirement dr) {
return new PlanDefinitionActionInputComponent().setRequirement(dr);
}
public static org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionComponent convertPlanDefinitionActionComponent(org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent src) throws FHIRException {
if (src == null)
return null;
@ -280,7 +291,7 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 {
tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t));
if (src.hasCode()) tgt.addCode(convertCodeableConcept(src.getCode()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReason()) tgt.addReason(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t));
for (org.hl7.fhir.r5.model.IdType t : src.getGoalId()) tgt.getGoalId().add(convertId(t));
@ -288,8 +299,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 {
tgt.setSubject(convertType(src.getSubject()));
for (org.hl7.fhir.r5.model.TriggerDefinition t : src.getTrigger()) tgt.addTrigger(convertTriggerDefinition(t));
for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t));
for (org.hl7.fhir.r5.model.DataRequirement t : src.getInput()) tgt.addInput(convertDataRequirement(t));
for (org.hl7.fhir.r5.model.DataRequirement t : src.getOutput()) tgt.addOutput(convertDataRequirement(t));
for (PlanDefinitionActionInputComponent t : src.getInput()) tgt.addInput(convertDataRequirement(t.getRequirement()));
for (PlanDefinitionActionOutputComponent t : src.getOutput()) tgt.addOutput(convertDataRequirement(t.getRequirement()));
for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t));
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
@ -665,7 +676,7 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent();
copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionIdElement(convertId(src.getActionIdElement()));
tgt.setTargetIdElement(convertId(src.getActionIdElement()));
if (src.hasRelationship())
tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement()));
if (src.hasOffset())
@ -678,8 +689,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 {
return null;
org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent();
copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionIdElement(convertId(src.getActionIdElement()));
if (src.hasTargetId())
tgt.setActionIdElement(convertId(src.getTargetIdElement()));
if (src.hasRelationship())
tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement()));
if (src.hasOffset())

View File

@ -3,7 +3,9 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint;
/*
Copyright (c) 2011+, HL7, Inc.
@ -137,9 +139,15 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 {
if (src.hasPrefix())
tgt.setPrefixElement(convertString(src.getPrefixElement()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
if (src.hasType())
tgt.setTextElement(convertStringToMarkdown(src.getTextElement()));
if (src.hasType()) {
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement()));
if (src.getType() == QuestionnaireItemType.CHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY);
} else if (src.getType() == QuestionnaireItemType.OPENCHOICE) {
tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING);
}
}
for (org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
if (src.hasEnableBehavior())
tgt.setEnableBehaviorElement(convertEnableWhenBehavior(src.getEnableBehaviorElement()));
@ -174,7 +182,7 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 {
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
if (src.hasType())
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement()));
tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint()));
for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
if (src.hasEnableBehavior())
tgt.setEnableBehaviorElement(convertEnableWhenBehavior(src.getEnableBehaviorElement()));
@ -237,10 +245,10 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 {
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case OPENCHOICE:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE);
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT);
@ -258,7 +266,7 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 {
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src) throws FHIRException {
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType> convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType> src, QuestionnaireAnswerConstraint constraint) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemTypeEnumFactory());
@ -298,12 +306,12 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 {
case URL:
tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.URL);
break;
case CHOICE:
tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.CHOICE);
break;
case OPENCHOICE:
case CODING:
if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING)
tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.OPENCHOICE);
break;
else
tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.CHOICE);
break;
case ATTACHMENT:
tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.ATTACHMENT);
break;

View File

@ -1,790 +0,0 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeableReference;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class RequestGroup40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.RequestGroup convertRequestGroup(org.hl7.fhir.r4.model.RequestGroup src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.RequestGroup tgt = new org.hl7.fhir.r5.model.RequestGroup();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
for (org.hl7.fhir.r4.model.CanonicalType t : src.getInstantiatesCanonical()) tgt.getInstantiatesCanonical().add(convertCanonical(t));
for (org.hl7.fhir.r4.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiatesUri().add(convertUri(t));
for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addBasedOn(convertReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getReplaces()) tgt.addReplaces(convertReference(t));
if (src.hasGroupIdentifier())
tgt.setGroupIdentifier(convertIdentifier(src.getGroupIdentifier()));
if (src.hasStatus())
tgt.setStatusElement(convertRequestStatus(src.getStatusElement()));
if (src.hasIntent())
tgt.setIntentElement(convertRequestIntent(src.getIntentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasEncounter())
tgt.setEncounter(convertReference(src.getEncounter()));
if (src.hasAuthoredOn())
tgt.setAuthoredOnElement(convertDateTime(src.getAuthoredOnElement()));
if (src.hasAuthor())
tgt.setAuthor(convertReference(src.getAuthor()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(convertCodeableConceptToCodeableReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) tgt.addReason(convertReferenceToCodeableReference(t));
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent t : src.getAction()) tgt.addAction(convertRequestGroupActionComponent(t));
return tgt;
}
public static org.hl7.fhir.r4.model.RequestGroup convertRequestGroup(org.hl7.fhir.r5.model.RequestGroup src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.RequestGroup tgt = new org.hl7.fhir.r4.model.RequestGroup();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical()) tgt.getInstantiatesCanonical().add(convertCanonical(t));
for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiatesUri().add(convertUri(t));
for (org.hl7.fhir.r5.model.Reference t : src.getBasedOn()) tgt.addBasedOn(convertReference(t));
for (org.hl7.fhir.r5.model.Reference t : src.getReplaces()) tgt.addReplaces(convertReference(t));
if (src.hasGroupIdentifier())
tgt.setGroupIdentifier(convertIdentifier(src.getGroupIdentifier()));
if (src.hasStatus())
tgt.setStatusElement(convertRequestStatus(src.getStatusElement()));
if (src.hasIntent())
tgt.setIntentElement(convertRequestIntent(src.getIntentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.hasSubject())
tgt.setSubject(convertReference(src.getSubject()));
if (src.hasEncounter())
tgt.setEncounter(convertReference(src.getEncounter()));
if (src.hasAuthoredOn())
tgt.setAuthoredOnElement(convertDateTime(src.getAuthoredOnElement()));
if (src.hasAuthor())
tgt.setAuthor(convertReference(src.getAuthor()));
for (CodeableReference t : src.getReason()) if (t.hasConcept())
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
for (CodeableReference t : src.getReason()) if (t.hasReference())
tgt.addReasonReference(convertReference(t.getReference()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent t : src.getAction()) tgt.addAction(convertRequestGroupActionComponent(t));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestStatus> convertRequestStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.RequestStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case DRAFT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT);
break;
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD);
break;
case REVOKED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR);
break;
case UNKNOWN:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestStatus> convertRequestStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.RequestStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case DRAFT:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.DRAFT);
break;
case ACTIVE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.ACTIVE);
break;
case ONHOLD:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.ONHOLD);
break;
case REVOKED:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.REVOKED);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.COMPLETED);
break;
case ENTEREDINERROR:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.ENTEREDINERROR);
break;
case UNKNOWN:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.UNKNOWN);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestIntent> convertRequestIntent(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestIntent> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestIntent> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.RequestIntentEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case PROPOSAL:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.PROPOSAL);
break;
case PLAN:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.PLAN);
break;
case DIRECTIVE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.DIRECTIVE);
break;
case ORDER:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORDER);
break;
case ORIGINALORDER:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORIGINALORDER);
break;
case REFLEXORDER:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.REFLEXORDER);
break;
case FILLERORDER:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.FILLERORDER);
break;
case INSTANCEORDER:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.INSTANCEORDER);
break;
case OPTION:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.OPTION);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestIntent> convertRequestIntent(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestIntent> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestIntent> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.RequestIntentEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case PROPOSAL:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.PROPOSAL);
break;
case PLAN:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.PLAN);
break;
case DIRECTIVE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.DIRECTIVE);
break;
case ORDER:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.ORDER);
break;
case ORIGINALORDER:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.ORIGINALORDER);
break;
case REFLEXORDER:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.REFLEXORDER);
break;
case FILLERORDER:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.FILLERORDER);
break;
case INSTANCEORDER:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.INSTANCEORDER);
break;
case OPTION:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.OPTION);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestPriority> convertRequestPriority(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestPriority> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestPriority> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.RequestPriorityEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ROUTINE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE);
break;
case URGENT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT);
break;
case ASAP:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP);
break;
case STAT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestPriority> convertRequestPriority(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.RequestPriority> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.RequestPriority> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.RequestPriorityEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ROUTINE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.ROUTINE);
break;
case URGENT:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.URGENT);
break;
case ASAP:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.ASAP);
break;
case STAT:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.STAT);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent convertRequestGroupActionComponent(org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent tgt = new org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent();
copyElement(src, tgt);
if (src.hasPrefix())
tgt.setPrefixElement(convertString(src.getPrefixElement()));
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasTextEquivalent())
tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t));
for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent t : src.getCondition()) tgt.addCondition(convertRequestGroupActionConditionComponent(t));
for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertRequestGroupActionRelatedActionComponent(t));
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
for (org.hl7.fhir.r4.model.Reference t : src.getParticipant()) tgt.addParticipant(convertReference(t));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasGroupingBehavior())
tgt.setGroupingBehaviorElement(convertActionGroupingBehavior(src.getGroupingBehaviorElement()));
if (src.hasSelectionBehavior())
tgt.setSelectionBehaviorElement(convertActionSelectionBehavior(src.getSelectionBehaviorElement()));
if (src.hasRequiredBehavior())
tgt.setRequiredBehaviorElement(convertActionRequiredBehavior(src.getRequiredBehaviorElement()));
if (src.hasPrecheckBehavior())
tgt.setPrecheckBehaviorElement(convertActionPrecheckBehavior(src.getPrecheckBehaviorElement()));
if (src.hasCardinalityBehavior())
tgt.setCardinalityBehaviorElement(convertActionCardinalityBehavior(src.getCardinalityBehaviorElement()));
if (src.hasResource())
tgt.setResource(convertReference(src.getResource()));
for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent t : src.getAction()) tgt.addAction(convertRequestGroupActionComponent(t));
return tgt;
}
public static org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent convertRequestGroupActionComponent(org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent tgt = new org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent();
copyElement(src, tgt);
if (src.hasPrefix())
tgt.setPrefixElement(convertString(src.getPrefixElement()));
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasTextEquivalent())
tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement()));
if (src.hasPriority())
tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t));
for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent t : src.getCondition()) tgt.addCondition(convertRequestGroupActionConditionComponent(t));
for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertRequestGroupActionRelatedActionComponent(t));
if (src.hasTiming())
tgt.setTiming(convertType(src.getTiming()));
for (org.hl7.fhir.r5.model.Reference t : src.getParticipant()) tgt.addParticipant(convertReference(t));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasGroupingBehavior())
tgt.setGroupingBehaviorElement(convertActionGroupingBehavior(src.getGroupingBehaviorElement()));
if (src.hasSelectionBehavior())
tgt.setSelectionBehaviorElement(convertActionSelectionBehavior(src.getSelectionBehaviorElement()));
if (src.hasRequiredBehavior())
tgt.setRequiredBehaviorElement(convertActionRequiredBehavior(src.getRequiredBehaviorElement()));
if (src.hasPrecheckBehavior())
tgt.setPrecheckBehaviorElement(convertActionPrecheckBehavior(src.getPrecheckBehaviorElement()));
if (src.hasCardinalityBehavior())
tgt.setCardinalityBehaviorElement(convertActionCardinalityBehavior(src.getCardinalityBehaviorElement()));
if (src.hasResource())
tgt.setResource(convertReference(src.getResource()));
for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent t : src.getAction()) tgt.addAction(convertRequestGroupActionComponent(t));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior> convertActionGroupingBehavior(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case VISUALGROUP:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.VISUALGROUP);
break;
case LOGICALGROUP:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.LOGICALGROUP);
break;
case SENTENCEGROUP:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.SENTENCEGROUP);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior> convertActionGroupingBehavior(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case VISUALGROUP:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.VISUALGROUP);
break;
case LOGICALGROUP:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.LOGICALGROUP);
break;
case SENTENCEGROUP:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.SENTENCEGROUP);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior> convertActionSelectionBehavior(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ANY:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ANY);
break;
case ALL:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALL);
break;
case ALLORNONE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALLORNONE);
break;
case EXACTLYONE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.EXACTLYONE);
break;
case ATMOSTONE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ATMOSTONE);
break;
case ONEORMORE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ONEORMORE);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior> convertActionSelectionBehavior(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ANY:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ANY);
break;
case ALL:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ALL);
break;
case ALLORNONE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ALLORNONE);
break;
case EXACTLYONE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.EXACTLYONE);
break;
case ATMOSTONE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ATMOSTONE);
break;
case ONEORMORE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ONEORMORE);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior> convertActionRequiredBehavior(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case MUST:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUST);
break;
case COULD:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.COULD);
break;
case MUSTUNLESSDOCUMENTED:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior> convertActionRequiredBehavior(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case MUST:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.MUST);
break;
case COULD:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.COULD);
break;
case MUSTUNLESSDOCUMENTED:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior> convertActionPrecheckBehavior(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case YES:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.YES);
break;
case NO:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NO);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior> convertActionPrecheckBehavior(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case YES:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior.YES);
break;
case NO:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior.NO);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior> convertActionCardinalityBehavior(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case SINGLE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.SINGLE);
break;
case MULTIPLE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.MULTIPLE);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior> convertActionCardinalityBehavior(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehaviorEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case SINGLE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior.SINGLE);
break;
case MULTIPLE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior.MULTIPLE);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent convertRequestGroupActionConditionComponent(org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent tgt = new org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent();
copyElement(src, tgt);
if (src.hasKind())
tgt.setKindElement(convertActionConditionKind(src.getKindElement()));
if (src.hasExpression())
tgt.setExpression(convertExpression(src.getExpression()));
return tgt;
}
public static org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent convertRequestGroupActionConditionComponent(org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent tgt = new org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent();
copyElement(src, tgt);
if (src.hasKind())
tgt.setKindElement(convertActionConditionKind(src.getKindElement()));
if (src.hasExpression())
tgt.setExpression(convertExpression(src.getExpression()));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionConditionKind> convertActionConditionKind(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionConditionKind> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionConditionKindEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case APPLICABILITY:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.APPLICABILITY);
break;
case START:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.START);
break;
case STOP:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.STOP);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind> convertActionConditionKind(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionConditionKind> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionConditionKindEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case APPLICABILITY:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.APPLICABILITY);
break;
case START:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.START);
break;
case STOP:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.STOP);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent convertRequestGroupActionRelatedActionComponent(org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent();
copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionIdElement(convertId(src.getActionIdElement()));
if (src.hasRelationship())
tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement()));
if (src.hasOffset())
tgt.setOffset(convertType(src.getOffset()));
return tgt;
}
public static org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent convertRequestGroupActionRelatedActionComponent(org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent tgt = new org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent();
copyElement(src, tgt);
if (src.hasActionId())
tgt.setActionIdElement(convertId(src.getActionIdElement()));
if (src.hasRelationship())
tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement()));
if (src.hasOffset())
tgt.setOffset(convertType(src.getOffset()));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType> convertActionRelationshipType(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionRelationshipTypeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case BEFORESTART:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORESTART);
break;
case BEFORE:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORE);
break;
case BEFOREEND:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFOREEND);
break;
case CONCURRENTWITHSTART:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHSTART);
break;
case CONCURRENT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENT);
break;
case CONCURRENTWITHEND:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHEND);
break;
case AFTERSTART:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTERSTART);
break;
case AFTER:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTER);
break;
case AFTEREND:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTEREND);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType> convertActionRelationshipType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipTypeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case BEFORESTART:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.BEFORESTART);
break;
case BEFORE:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.BEFORE);
break;
case BEFOREEND:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.BEFOREEND);
break;
case CONCURRENTWITHSTART:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.CONCURRENTWITHSTART);
break;
case CONCURRENT:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.CONCURRENT);
break;
case CONCURRENTWITHEND:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.CONCURRENTWITHEND);
break;
case AFTERSTART:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.AFTERSTART);
break;
case AFTER:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.AFTER);
break;
case AFTEREND:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.AFTEREND);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.NULL);
break;
}
return tgt;
}
}

View File

@ -1,263 +0,0 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ResearchStudy40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ResearchStudy convertResearchStudy(org.hl7.fhir.r4.model.ResearchStudy src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.ResearchStudy tgt = new org.hl7.fhir.r5.model.ResearchStudy();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
for (org.hl7.fhir.r4.model.Reference t : src.getProtocol()) tgt.addProtocol(convertReference(t));
for (org.hl7.fhir.r4.model.Reference t : src.getPartOf()) tgt.addPartOf(convertReference(t));
if (src.hasStatus())
tgt.setStatusElement(convertResearchStudyStatus(src.getStatusElement()));
if (src.hasPrimaryPurposeType())
tgt.setPrimaryPurposeType(convertCodeableConcept(src.getPrimaryPurposeType()));
if (src.hasPhase())
tgt.setPhase(convertCodeableConcept(src.getPhase()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getFocus()) tgt.addFocus(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCondition()) tgt.addCondition(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertContactDetail(t));
for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(convertRelatedArtifact(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getKeyword()) tgt.addKeyword(convertCodeableConcept(t));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getLocation()) tgt.addLocation(convertCodeableConcept(t));
if (src.hasDescription())
tgt.setDescriptionElement(convertMarkdown(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.Reference t : src.getEnrollment()) tgt.addEnrollment(convertReference(t));
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasSponsor())
tgt.setSponsor(convertReference(src.getSponsor()));
if (src.hasPrincipalInvestigator())
tgt.setPrincipalInvestigator(convertReference(src.getPrincipalInvestigator()));
for (org.hl7.fhir.r4.model.Reference t : src.getSite()) tgt.addSite(convertReference(t));
if (src.hasReasonStopped())
tgt.setReasonStopped(convertCodeableConcept(src.getReasonStopped()));
for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
for (org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent t : src.getArm()) tgt.addArm(convertResearchStudyArmComponent(t));
for (org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent t : src.getObjective()) tgt.addObjective(convertResearchStudyObjectiveComponent(t));
return tgt;
}
public static org.hl7.fhir.r4.model.ResearchStudy convertResearchStudy(org.hl7.fhir.r5.model.ResearchStudy src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.ResearchStudy tgt = new org.hl7.fhir.r4.model.ResearchStudy();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
for (org.hl7.fhir.r5.model.Reference t : src.getProtocol()) tgt.addProtocol(convertReference(t));
for (org.hl7.fhir.r5.model.Reference t : src.getPartOf()) tgt.addPartOf(convertReference(t));
if (src.hasStatus())
tgt.setStatusElement(convertResearchStudyStatus(src.getStatusElement()));
if (src.hasPrimaryPurposeType())
tgt.setPrimaryPurposeType(convertCodeableConcept(src.getPrimaryPurposeType()));
if (src.hasPhase())
tgt.setPhase(convertCodeableConcept(src.getPhase()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getFocus()) tgt.addFocus(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCondition()) tgt.addCondition(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.ContactDetail t : src.getContact()) tgt.addContact(convertContactDetail(t));
for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(convertRelatedArtifact(t));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getKeyword()) tgt.addKeyword(convertCodeableConcept(t));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getLocation()) tgt.addLocation(convertCodeableConcept(t));
if (src.hasDescription())
tgt.setDescriptionElement(convertMarkdown(src.getDescriptionElement()));
for (org.hl7.fhir.r5.model.Reference t : src.getEnrollment()) tgt.addEnrollment(convertReference(t));
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasSponsor())
tgt.setSponsor(convertReference(src.getSponsor()));
if (src.hasPrincipalInvestigator())
tgt.setPrincipalInvestigator(convertReference(src.getPrincipalInvestigator()));
for (org.hl7.fhir.r5.model.Reference t : src.getSite()) tgt.addSite(convertReference(t));
if (src.hasReasonStopped())
tgt.setReasonStopped(convertCodeableConcept(src.getReasonStopped()));
for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t));
for (org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent t : src.getArm()) tgt.addArm(convertResearchStudyArmComponent(t));
for (org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent t : src.getObjective()) tgt.addObjective(convertResearchStudyObjectiveComponent(t));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus> convertResearchStudyStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.ACTIVE);
break;
case ADMINISTRATIVELYCOMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.ADMINISTRATIVELYCOMPLETED);
break;
case APPROVED:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.APPROVED);
break;
case CLOSEDTOACCRUAL:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUAL);
break;
case CLOSEDTOACCRUALANDINTERVENTION:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUALANDINTERVENTION);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.COMPLETED);
break;
case DISAPPROVED:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.DISAPPROVED);
break;
case INREVIEW:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.INREVIEW);
break;
case TEMPORARILYCLOSEDTOACCRUAL:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUAL);
break;
case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION);
break;
case WITHDRAWN:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.WITHDRAWN);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus> convertResearchStudyStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case ACTIVE:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.ACTIVE);
break;
case ADMINISTRATIVELYCOMPLETED:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.ADMINISTRATIVELYCOMPLETED);
break;
case APPROVED:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.APPROVED);
break;
case CLOSEDTOACCRUAL:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUAL);
break;
case CLOSEDTOACCRUALANDINTERVENTION:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUALANDINTERVENTION);
break;
case COMPLETED:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.COMPLETED);
break;
case DISAPPROVED:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.DISAPPROVED);
break;
case INREVIEW:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.INREVIEW);
break;
case TEMPORARILYCLOSEDTOACCRUAL:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUAL);
break;
case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION);
break;
case WITHDRAWN:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.WITHDRAWN);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.NULL);
break;
}
return tgt;
}
public static org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent convertResearchStudyArmComponent(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent tgt = new org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent();
copyElement(src, tgt);
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
return tgt;
}
public static org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent convertResearchStudyArmComponent(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent tgt = new org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent();
copyElement(src, tgt);
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
return tgt;
}
public static org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent convertResearchStudyObjectiveComponent(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent tgt = new org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent();
copyElement(src, tgt);
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
return tgt;
}
public static org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent convertResearchStudyObjectiveComponent(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent tgt = new org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent();
copyElement(src, tgt);
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
return tgt;
}
}

View File

@ -1,187 +0,0 @@
package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ResearchSubject40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ResearchSubject convertResearchSubject(org.hl7.fhir.r4.model.ResearchSubject src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.ResearchSubject tgt = new org.hl7.fhir.r5.model.ResearchSubject();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertResearchSubjectStatus(src.getStatusElement()));
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasStudy())
tgt.setStudy(convertReference(src.getStudy()));
if (src.hasIndividual())
tgt.setIndividual(convertReference(src.getIndividual()));
if (src.hasAssignedArm())
tgt.setAssignedArmElement(convertString(src.getAssignedArmElement()));
if (src.hasActualArm())
tgt.setActualArmElement(convertString(src.getActualArmElement()));
if (src.hasConsent())
tgt.setConsent(convertReference(src.getConsent()));
return tgt;
}
public static org.hl7.fhir.r4.model.ResearchSubject convertResearchSubject(org.hl7.fhir.r5.model.ResearchSubject src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.ResearchSubject tgt = new org.hl7.fhir.r4.model.ResearchSubject();
copyDomainResource(src, tgt);
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
if (src.hasStatus())
tgt.setStatusElement(convertResearchSubjectStatus(src.getStatusElement()));
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasStudy())
tgt.setStudy(convertReference(src.getStudy()));
if (src.hasIndividual())
tgt.setIndividual(convertReference(src.getIndividual()));
if (src.hasAssignedArm())
tgt.setAssignedArmElement(convertString(src.getAssignedArmElement()));
if (src.hasActualArm())
tgt.setActualArmElement(convertString(src.getActualArmElement()));
if (src.hasConsent())
tgt.setConsent(convertReference(src.getConsent()));
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus> convertResearchSubjectStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case CANDIDATE:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.CANDIDATE);
break;
case ELIGIBLE:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ELIGIBLE);
break;
case FOLLOWUP:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.FOLLOWUP);
break;
case INELIGIBLE:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.INELIGIBLE);
break;
case NOTREGISTERED:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.NOTREGISTERED);
break;
case OFFSTUDY:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.OFFSTUDY);
break;
case ONSTUDY:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ONSTUDY);
break;
case ONSTUDYINTERVENTION:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYINTERVENTION);
break;
case ONSTUDYOBSERVATION:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYOBSERVATION);
break;
case PENDINGONSTUDY:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.PENDINGONSTUDY);
break;
case POTENTIALCANDIDATE:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.POTENTIALCANDIDATE);
break;
case SCREENING:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.SCREENING);
break;
case WITHDRAWN:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.WITHDRAWN);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus> convertResearchSubjectStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatusEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case CANDIDATE:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.CANDIDATE);
break;
case ELIGIBLE:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ELIGIBLE);
break;
case FOLLOWUP:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.FOLLOWUP);
break;
case INELIGIBLE:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.INELIGIBLE);
break;
case NOTREGISTERED:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.NOTREGISTERED);
break;
case OFFSTUDY:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.OFFSTUDY);
break;
case ONSTUDY:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ONSTUDY);
break;
case ONSTUDYINTERVENTION:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYINTERVENTION);
break;
case ONSTUDYOBSERVATION:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYOBSERVATION);
break;
case PENDINGONSTUDY:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.PENDINGONSTUDY);
break;
case POTENTIALCANDIDATE:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.POTENTIALCANDIDATE);
break;
case SCREENING:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.SCREENING);
break;
case WITHDRAWN:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.WITHDRAWN);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.NULL);
break;
}
return tgt;
}
}

View File

@ -500,8 +500,8 @@ public class StructureMap40_50 extends VersionConvertor_40_50 {
copyElement(src, tgt);
if (src.hasContext())
tgt.setContextElement(convertId(src.getContextElement()));
if (src.hasContextType())
tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement()));
if (src.hasContextType() && src.getContextType() != org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE)
throw new Error("This conversion is not supported. Consult code maintainers"); // this should never happens - no one knows what the intent was here.
if (src.hasElement())
tgt.setElementElement(convertString(src.getElementElement()));
if (src.hasVariable())
@ -524,8 +524,7 @@ public class StructureMap40_50 extends VersionConvertor_40_50 {
copyElement(src, tgt);
if (src.hasContext())
tgt.setContextElement(convertId(src.getContextElement()));
if (src.hasContextType())
tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement()));
tgt.setContextType(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE);
if (src.hasElement())
tgt.setElementElement(convertString(src.getElementElement()));
if (src.hasVariable())
@ -541,44 +540,6 @@ public class StructureMap40_50 extends VersionConvertor_40_50 {
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> convertStructureMapContextType(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapContextType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapContextTypeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case TYPE:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.TYPE);
break;
case VARIABLE:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.VARIABLE);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapContextType> convertStructureMapContextType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapContextType> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapContextType> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.StructureMap.StructureMapContextTypeEnumFactory());
VersionConvertor_40_50.copyElement(src, tgt);
switch(src.getValue()) {
case TYPE:
tgt.setValue(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.TYPE);
break;
case VARIABLE:
tgt.setValue(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.NULL);
break;
}
return tgt;
}
static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode> convertStructureMapTargetListMode(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapTargetListMode> src) throws FHIRException {
if (src == null || src.isEmpty())
return null;

View File

@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.Identifier;
/*
Copyright (c) 2011+, HL7, Inc.
@ -45,10 +46,10 @@ public class Substance40_50 extends VersionConvertor_40_50 {
tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement()));
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t));
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
tgt.getCode().setConcept(convertCodeableConcept(src.getCode()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
for (org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent t : src.getInstance()) convertSubstanceInstanceComponent(t, tgt);
for (org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
return tgt;
}
@ -62,11 +63,13 @@ public class Substance40_50 extends VersionConvertor_40_50 {
if (src.hasStatus())
tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t));
if (src.hasCode())
tgt.setCode(convertCodeableConcept(src.getCode()));
if (src.getCode().hasConcept())
tgt.setCode(convertCodeableConcept(src.getCode().getConcept()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
for (org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t));
if (src.getInstance()) {
tgt.addInstance(convertSubstanceInstanceComponent(src));
}
for (org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t));
return tgt;
}
@ -115,27 +118,21 @@ public class Substance40_50 extends VersionConvertor_40_50 {
return tgt;
}
public static org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent();
copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasExpiry())
tgt.setExpiryElement(convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(convertSimpleQuantity(src.getQuantity()));
return tgt;
public static void convertSubstanceInstanceComponent(org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent src, org.hl7.fhir.r5.model.Substance tgt) throws FHIRException {
tgt.setInstance(true);
if (src.hasIdentifier())
tgt.addIdentifier(convertIdentifier(src.getIdentifier()));
if (src.hasExpiry())
tgt.setExpiryElement(convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())
tgt.setQuantity(convertSimpleQuantity(src.getQuantity()));
}
public static org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent src) throws FHIRException {
if (src == null)
return null;
public static org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance src) throws FHIRException {
org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent();
copyElement(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
for (Identifier t : src.getIdentifier()) {
tgt.setIdentifier(convertIdentifier(t));
}
if (src.hasExpiry())
tgt.setExpiryElement(convertDateTime(src.getExpiryElement()));
if (src.hasQuantity())

View File

@ -87,4 +87,10 @@ public boolean hasCoding(String system, String code) {
res.setText(l.getText());
}
return res;
}
}
public void addCoding(String system, String code, String display) {
getCoding().add(new Coding(system, code, display));
}

View File

@ -0,0 +1,10 @@
public CodeableReference(CodeableConcept cc) {
super();
setConcept(cc);
}
public CodeableReference(Reference ref) {
super();
setReference(ref);
}

View File

@ -0,0 +1,4 @@
public boolean supportsCopyright() {
return false;
}

View File

@ -59,4 +59,10 @@ public String toCode(int len) {
@Override
public String toString() {
return toCode();
}
}
public boolean isR4B() {
return toCode().startsWith("4.1");
}

View File

@ -0,0 +1,4 @@
public boolean supportsCopyright() {
return false;
}

View File

@ -8,10 +8,11 @@ package org.hl7.fhir.r5.formats;
{{startMark}}
import org.hl7.fhir.r5.model.*;
import org.hl7.fhir.r5.model.StringType;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.exceptions.FHIRFormatError;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.utils.formats.Turtle.Complex;
import org.hl7.fhir.utilities.turtle.Turtle.*;
import java.io.IOException;
public class RdfParser extends RdfParserBase {

View File

@ -0,0 +1,4 @@
public boolean supportsCopyright() {
return false;
}

View File

@ -38,6 +38,7 @@ CapabilityStatement = org.hl7.fhir.instance.model.api.IBaseConformance
DataType = org.hl7.fhir.instance.model.api.IBaseDatatype, ca.uhn.fhir.model.api.IElement
ElementDefinition = org.hl7.fhir.instance.model.api.ICompositeType, org.hl7.fhir.r5.model.Enumerations.BindingStrength, org.hl7.fhir.r5.model.Enumerations.BindingStrengthEnumFactory, org.hl7.fhir.r5.utils.ToolingExtensions, org.hl7.fhir.instance.model.api.IBaseDatatypeElement, org.hl7.fhir.utilities.CommaSeparatedStringBuilder
Binary = org.hl7.fhir.instance.model.api.IBaseBinary
ContactDetail = org.hl7.fhir.r5.model.ContactPoint.ContactPointSystem
[shared]
http://hl7.org/fhir/ValueSet/concept-map-relationship = true

View File

@ -155,6 +155,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator {
cc = makeConst(cc);
write(" case "+cc+": return \""+c.getCode()+"\";\r\n");
}
write(" case NULL: return null;\r\n");
write(" default: return \"?\";\r\n");
write(" }\r\n");
write(" }\r\n");
@ -166,6 +167,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator {
cc = makeConst(cc);
write(" case "+cc+": return \""+c.getSystem()+"\";\r\n");
}
write(" case NULL: return null;\r\n");
write(" default: return \"?\";\r\n");
write(" }\r\n");
write(" }\r\n");
@ -177,6 +179,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator {
cc = makeConst(cc);
write(" case "+cc+": return \""+Utilities.escapeJava(definitions.getCodeDefinition(c.getSystem(), c.getCode()))+"\";\r\n");
}
write(" case NULL: return null;\r\n");
write(" default: return \"?\";\r\n");
write(" }\r\n");
write(" }\r\n");
@ -188,6 +191,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator {
cc = makeConst(cc);
write(" case "+cc+": return \""+Utilities.escapeJava(Utilities.noString(c.getDisplay()) ? c.getCode() : c.getDisplay())+"\";\r\n");
}
write(" case NULL: return null;\r\n");
write(" default: return \"?\";\r\n");
write(" }\r\n");
write(" }\r\n");

View File

@ -240,7 +240,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
if (ed.unbounded()) {
if (isPrimitive(ed.typeSummary()) || ed.typeSummary().startsWith("canonical(")) {
parser.append(" if (json.has(\""+name+"\")) {\r\n");
parser.append(" JsonArray array = json.getAsJsonArray(\""+name+"\");\r\n");
parser.append(" JsonArray array = getJArray(json, \""+name+"\");\r\n");
parser.append(" for (int i = 0; i < array.size(); i++) {\r\n");
parser.append(" if (array.get(i).isJsonNull()) {\r\n");
if (en == null) {
@ -255,7 +255,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
parser.append(" }\r\n");
parser.append(" };\r\n");
parser.append(" if (json.has(\"_"+name+"\")) {\r\n");
parser.append(" JsonArray array = json.getAsJsonArray(\"_"+name+"\");\r\n");
parser.append(" JsonArray array = getJArray(json, \"_"+name+"\");\r\n");
parser.append(" for (int i = 0; i < array.size(); i++) {\r\n");
parser.append(" if (i == res.get"+upFirst(name)+"().size())\r\n");
parser.append(" res.get"+upFirst(name)+"().add("+anprsr+");\r\n");
@ -265,7 +265,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator {
parser.append(" };\r\n");
} else {
parser.append(" if (json.has(\""+name+"\")) {\r\n");
parser.append(" JsonArray array = json.getAsJsonArray(\""+name+"\");\r\n");
parser.append(" JsonArray array = getJArray(json, \""+name+"\");\r\n");
parser.append(" for (int i = 0; i < array.size(); i++) {\r\n");
parser.append(" res.get"+upFirst(getElementName(name, false))+"().add("+aprsr+");\r\n");
parser.append(" }\r\n");

View File

@ -311,14 +311,10 @@ public class JavaResourceGenerator extends JavaBaseGenerator {
} else {
SearchParameter comp0 = definitions.getSearchParams().get(sp.getComponent().get(0).getDefinition());
SearchParameter comp1 = definitions.getSearchParams().get(sp.getComponent().get(1).getDefinition());
if (comp0 == null) {
throw new Error("Couldn't find composite component " + sp.getComponent().get(0).getDefinition() + " on "+analysis.getName());
if (comp0 != null && comp1 != null) {
String[] compositeOf = new String[] { comp0.getCode(), comp1.getCode() };
writeSearchParameterField(analysis.getName(), clss, analysis.isAbstract(), sp, sp.getCode(), compositeOf, analysis.getSearchParams(), analysis.getName());
}
if (comp1 == null) {
throw new Error("Couldn't find composite component " + sp.getComponent().get(1).getDefinition() + " on "+analysis.getName());
}
String[] compositeOf = new String[] { comp0.getCode(), comp1.getCode() };
writeSearchParameterField(analysis.getName(), clss, analysis.isAbstract(), sp, sp.getCode(), compositeOf, analysis.getSearchParams(), analysis.getName());
}
} else if (code.contains("[x]")) {
/*
@ -333,7 +329,7 @@ public class JavaResourceGenerator extends JavaBaseGenerator {
}
if (config.getAdornments().containsKey(analysis.getClassName())) {
write("// Manual code (from Configuration.txt)t:\r\n");
write("// Manual code (from Configuration.txt):\r\n");
write(config.getAdornments().get(analysis.getClassName())+"\r\n");
write("// end addition\r\n");
}

View File

@ -4,6 +4,8 @@ import java.io.IOException;
import org.hl7.fhir.exceptions.FHIRFormatError;
import org.hl7.fhir.r5.formats.JsonParser;
import org.hl7.fhir.r5.model.Bundle;
import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent;
import org.hl7.fhir.r5.model.CapabilityStatement;
import org.hl7.fhir.r5.model.CodeSystem;
import org.hl7.fhir.r5.model.CompartmentDefinition;
@ -13,6 +15,7 @@ import org.hl7.fhir.r5.model.Resource;
import org.hl7.fhir.r5.model.SearchParameter;
import org.hl7.fhir.r5.model.StructureDefinition;
import org.hl7.fhir.r5.model.ValueSet;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.utilities.npm.NpmPackage;
import org.hl7.fhir.utilities.npm.ToolsVersion;
@ -45,6 +48,29 @@ public class DefinitionsLoader {
for (String t : npm.listResources("CompartmentDefinition")) {
res.getCompartments().see((CompartmentDefinition) load(npm, t), null);
}
Bundle bnd = (Bundle) load(npm, "Bundle-searchParams.json");
if (bnd != null) {
for (BundleEntryComponent be : bnd.getEntry()) {
Resource r = be.getResource();
if (r instanceof CodeSystem) {
res.getCodeSystems().see((CodeSystem) r, null);
} else if (r instanceof ValueSet) {
res.getValuesets().see((ValueSet) r, null);
} else if (r instanceof ConceptMap) {
res.getConceptMaps().see((ConceptMap) r, null);
} else if (r instanceof CapabilityStatement) {
res.getStatements().see((CapabilityStatement) r, null);
} else if (r instanceof StructureDefinition) {
res.getStructures().see((StructureDefinition) r, null);
} else if (r instanceof OperationDefinition) {
res.getOperations().see((OperationDefinition) r, null);
} else if (r instanceof SearchParameter) {
res.getSearchParams().see((SearchParameter) r, null);
} else if (r instanceof CompartmentDefinition) {
res.getCompartments().see((CompartmentDefinition) r, null);
}
}
}
return res;
}
@ -52,7 +78,9 @@ public class DefinitionsLoader {
try {
return new JsonParser().parse(npm.loadResource(t));
} catch (Exception e) {
throw new Error("Error reading "+t+": "+e.getMessage(), e);
System.out.println("Error reading "+t+": "+e.getMessage());
e.printStackTrace();
return null;
}
}
}

View File

@ -53,7 +53,6 @@ public class JavaCoreGenerator {
new JavaCoreGenerator().generate(version, src, dest);
}
}
private void generate(String version, String src, String dest) throws Exception {
long start = System.currentTimeMillis();
@ -65,7 +64,6 @@ public class JavaCoreGenerator {
String pid = "r5";
String jid = "r5";
FilesystemPackageCacheManager pcm = new FilesystemPackageCacheManager(true, ToolsVersion.TOOLS_VERSION);
System.out.println("Cache: "+pcm.getFolder());
System.out.println("Load hl7.fhir."+pid+".core");

View File

@ -115,6 +115,12 @@ public class Money extends Quantity implements ICompositeType {
public Money copy() {
Money dst = new Money();
copyValues(dst);
dst.value = value == null ? null : value.copy();
dst.comparator = comparator == null ? null : comparator.copy();
dst.unit = unit == null ? null : unit.copy();
dst.system = system == null ? null : system.copy();
dst.code = code == null ? null : code.copy();
return dst;
}

View File

@ -54,11 +54,6 @@ public class MoneyQuantity extends Quantity {
public void copyValues(MoneyQuantity dst) {
super.copyValues(dst);
dst.value = value == null ? null : value.copy();
dst.comparator = comparator == null ? null : comparator.copy();
dst.unit = unit == null ? null : unit.copy();
dst.system = system == null ? null : system.copy();
dst.code = code == null ? null : code.copy();
}
protected MoneyQuantity typedCopy() {

View File

@ -53,12 +53,7 @@ public class SimpleQuantity extends Quantity {
}
public void copyValues(SimpleQuantity dst) {
super.copyValues(dst);
dst.value = value == null ? null : value.copy();
dst.comparator = comparator == null ? null : comparator.copy();
dst.unit = unit == null ? null : unit.copy();
dst.system = system == null ? null : system.copy();
dst.code = code == null ? null : code.copy();
super.copyValues(dst);
}
protected SimpleQuantity typedCopy() {

View File

@ -863,12 +863,14 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
if (options.isUseClient()) {
// ok, first we try to validate locally
try {
ValueSetCheckerSimple vsc = new ValueSetCheckerSimple(options, vs, this);
res = vsc.validateCode(code);
if (txCache != null) {
txCache.cacheValidation(cacheToken, res, TerminologyCache.TRANSIENT);
ValueSetCheckerSimple vsc = new ValueSetCheckerSimple(options, vs, this);
if (!vsc.isServerSide(code.getSystem())) {
res = vsc.validateCode(code);
if (txCache != null) {
txCache.cacheValidation(cacheToken, res, TerminologyCache.TRANSIENT);
}
return res;
}
return res;
} catch (Exception e) {
}
}

View File

@ -204,11 +204,13 @@ public class CanonicalResourceManager<T extends CanonicalResource> {
}
public void see(T r, PackageVersion packgeInfo) {
if (!r.hasId()) {
r.setId(UUID.randomUUID().toString());
if (r != null) {
if (!r.hasId()) {
r.setId(UUID.randomUUID().toString());
}
CanonicalResourceManager<T>.CachedCanonicalResource<T> cr = new CachedCanonicalResource<T>(r, packgeInfo);
see(cr);
}
CanonicalResourceManager<T>.CachedCanonicalResource<T> cr = new CachedCanonicalResource<T>(r, packgeInfo);
see(cr);
}
public void see(CachedCanonicalResource<T> cr) {

View File

@ -156,6 +156,18 @@ public abstract class JsonParserBase extends ParserBase implements IParser {
}
return (JsonObject) j;
}
protected JsonArray getJArray(JsonObject parent, String name) throws IOException {
JsonElement j = parent.get(name);
if (j == null) {
return null;
}
if (!(j instanceof JsonArray)) {
throw new IOException("property "+name+" is a "+j.getClass()+" looking for an Array");
}
return (JsonArray) j;
}
/**
* Compose a resource to a stream, possibly using pretty presentation for a human reader (used in the spec, for example, but not normally in production)
* @throws IOException

View File

@ -1,8 +1,6 @@
package org.hl7.fhir.r5.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
@ -31,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -105,7 +103,6 @@ public class Account extends DomainResource {
case ENTEREDINERROR: return "entered-in-error";
case ONHOLD: return "on-hold";
case UNKNOWN: return "unknown";
case NULL: return null;
default: return "?";
}
}
@ -116,7 +113,6 @@ public class Account extends DomainResource {
case ENTEREDINERROR: return "http://hl7.org/fhir/account-status";
case ONHOLD: return "http://hl7.org/fhir/account-status";
case UNKNOWN: return "http://hl7.org/fhir/account-status";
case NULL: return null;
default: return "?";
}
}
@ -127,7 +123,6 @@ public class Account extends DomainResource {
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
case ONHOLD: return "This account is on hold.";
case UNKNOWN: return "The account status is unknown.";
case NULL: return null;
default: return "?";
}
}
@ -138,7 +133,6 @@ public class Account extends DomainResource {
case ENTEREDINERROR: return "Entered in error";
case ONHOLD: return "On Hold";
case UNKNOWN: return "Unknown";
case NULL: return null;
default: return "?";
}
}
@ -1618,7 +1612,7 @@ A coverage may only be responsible for specific types of charges, and the sequen
* Path: <b>Account.subject.where(resolve() is Patient)</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Account.subject.where(resolve() is Patient)", description="The entity that caused the expenses", type="reference", target={Patient.class } )
@SearchParamDefinition(name="patient", path="Account.subject.where(resolve() is Patient)", description="The entity that caused the expenses", type="reference", target={Device.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -173,7 +173,6 @@ public class ActivityDefinition extends MetadataResource {
case SUPPLYREQUEST: return "SupplyRequest";
case TASK: return "Task";
case VISIONPRESCRIPTION: return "VisionPrescription";
case NULL: return null;
default: return "?";
}
}
@ -194,7 +193,6 @@ public class ActivityDefinition extends MetadataResource {
case SUPPLYREQUEST: return "http://hl7.org/fhir/request-resource-types";
case TASK: return "http://hl7.org/fhir/request-resource-types";
case VISIONPRESCRIPTION: return "http://hl7.org/fhir/request-resource-types";
case NULL: return null;
default: return "?";
}
}
@ -215,7 +213,6 @@ public class ActivityDefinition extends MetadataResource {
case SUPPLYREQUEST: return "Request for a medication, substance or device.";
case TASK: return "A task to be performed.";
case VISIONPRESCRIPTION: return "Prescription for vision correction products for a patient.";
case NULL: return null;
default: return "?";
}
}
@ -236,7 +233,6 @@ public class ActivityDefinition extends MetadataResource {
case SUPPLYREQUEST: return "SupplyRequest";
case TASK: return "Task";
case VISIONPRESCRIPTION: return "VisionPrescription";
case NULL: return null;
default: return "?";
}
}
@ -362,20 +358,35 @@ public class ActivityDefinition extends MetadataResource {
/**
* The type of participant in the action.
*/
@Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="patient | practitioner | related-person | device", formalDefinition="The type of participant in the action." )
@Child(name = "type", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson", formalDefinition="The type of participant in the action." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-type")
protected Enumeration<ActionParticipantType> type;
/**
* The type of participant in the action.
*/
@Child(name = "typeReference", type = {CareTeam.class, Device.class, Group.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Who or what can participate", formalDefinition="The type of participant in the action." )
protected Reference typeReference;
/**
* The role the participant should play in performing the described action.
*/
@Child(name = "role", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Child(name = "role", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="E.g. Nurse, Surgeon, Parent, etc.", formalDefinition="The role the participant should play in performing the described action." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/action-participant-role")
protected CodeableConcept role;
private static final long serialVersionUID = -1152013659L;
/**
* Indicates how the actor will be involved in the action - author, reviewer, witness, etc.
*/
@Child(name = "function", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="E.g. Author, Reviewer, Witness, etc.", formalDefinition="Indicates how the actor will be involved in the action - author, reviewer, witness, etc." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-function")
protected CodeableConcept function;
private static final long serialVersionUID = -136836616L;
/**
* Constructor
@ -384,14 +395,6 @@ public class ActivityDefinition extends MetadataResource {
super();
}
/**
* Constructor
*/
public ActivityDefinitionParticipantComponent(ActionParticipantType type) {
super();
this.setType(type);
}
/**
* @return {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
@ -431,9 +434,37 @@ public class ActivityDefinition extends MetadataResource {
* @param value The type of participant in the action.
*/
public ActivityDefinitionParticipantComponent setType(ActionParticipantType value) {
if (value == null)
this.type = null;
else {
if (this.type == null)
this.type = new Enumeration<ActionParticipantType>(new ActionParticipantTypeEnumFactory());
this.type.setValue(value);
}
return this;
}
/**
* @return {@link #typeReference} (The type of participant in the action.)
*/
public Reference getTypeReference() {
if (this.typeReference == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ActivityDefinitionParticipantComponent.typeReference");
else if (Configuration.doAutoCreate())
this.typeReference = new Reference(); // cc
return this.typeReference;
}
public boolean hasTypeReference() {
return this.typeReference != null && !this.typeReference.isEmpty();
}
/**
* @param value {@link #typeReference} (The type of participant in the action.)
*/
public ActivityDefinitionParticipantComponent setTypeReference(Reference value) {
this.typeReference = value;
return this;
}
@ -461,17 +492,45 @@ public class ActivityDefinition extends MetadataResource {
return this;
}
/**
* @return {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.)
*/
public CodeableConcept getFunction() {
if (this.function == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ActivityDefinitionParticipantComponent.function");
else if (Configuration.doAutoCreate())
this.function = new CodeableConcept(); // cc
return this.function;
}
public boolean hasFunction() {
return this.function != null && !this.function.isEmpty();
}
/**
* @param value {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.)
*/
public ActivityDefinitionParticipantComponent setFunction(CodeableConcept value) {
this.function = value;
return this;
}
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("type", "code", "The type of participant in the action.", 0, 1, type));
children.add(new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference));
children.add(new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role));
children.add(new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 3575610: /*type*/ return new Property("type", "code", "The type of participant in the action.", 0, 1, type);
case 2074825009: /*typeReference*/ return new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference);
case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role);
case 1380938712: /*function*/ return new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
@ -481,7 +540,9 @@ public class ActivityDefinition extends MetadataResource {
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<ActionParticipantType>
case 2074825009: /*typeReference*/ return this.typeReference == null ? new Base[0] : new Base[] {this.typeReference}; // Reference
case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept
case 1380938712: /*function*/ return this.function == null ? new Base[0] : new Base[] {this.function}; // CodeableConcept
default: return super.getProperty(hash, name, checkValid);
}
@ -494,9 +555,15 @@ public class ActivityDefinition extends MetadataResource {
value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value));
this.type = (Enumeration) value; // Enumeration<ActionParticipantType>
return value;
case 2074825009: // typeReference
this.typeReference = TypeConvertor.castToReference(value); // Reference
return value;
case 3506294: // role
this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 1380938712: // function
this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
default: return super.setProperty(hash, name, value);
}
@ -507,8 +574,12 @@ public class ActivityDefinition extends MetadataResource {
if (name.equals("type")) {
value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value));
this.type = (Enumeration) value; // Enumeration<ActionParticipantType>
} else if (name.equals("typeReference")) {
this.typeReference = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("role")) {
this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("function")) {
this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else
return super.setProperty(name, value);
return value;
@ -518,7 +589,9 @@ public class ActivityDefinition extends MetadataResource {
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: return getTypeElement();
case 2074825009: return getTypeReference();
case 3506294: return getRole();
case 1380938712: return getFunction();
default: return super.makeProperty(hash, name);
}
@ -528,7 +601,9 @@ public class ActivityDefinition extends MetadataResource {
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return new String[] {"code"};
case 2074825009: /*typeReference*/ return new String[] {"Reference"};
case 3506294: /*role*/ return new String[] {"CodeableConcept"};
case 1380938712: /*function*/ return new String[] {"CodeableConcept"};
default: return super.getTypesForProperty(hash, name);
}
@ -539,10 +614,18 @@ public class ActivityDefinition extends MetadataResource {
if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.participant.type");
}
else if (name.equals("typeReference")) {
this.typeReference = new Reference();
return this.typeReference;
}
else if (name.equals("role")) {
this.role = new CodeableConcept();
return this.role;
}
else if (name.equals("function")) {
this.function = new CodeableConcept();
return this.function;
}
else
return super.addChild(name);
}
@ -556,7 +639,9 @@ public class ActivityDefinition extends MetadataResource {
public void copyValues(ActivityDefinitionParticipantComponent dst) {
super.copyValues(dst);
dst.type = type == null ? null : type.copy();
dst.typeReference = typeReference == null ? null : typeReference.copy();
dst.role = role == null ? null : role.copy();
dst.function = function == null ? null : function.copy();
}
@Override
@ -566,7 +651,8 @@ public class ActivityDefinition extends MetadataResource {
if (!(other_ instanceof ActivityDefinitionParticipantComponent))
return false;
ActivityDefinitionParticipantComponent o = (ActivityDefinitionParticipantComponent) other_;
return compareDeep(type, o.type, true) && compareDeep(role, o.role, true);
return compareDeep(type, o.type, true) && compareDeep(typeReference, o.typeReference, true) && compareDeep(role, o.role, true)
&& compareDeep(function, o.function, true);
}
@Override
@ -580,7 +666,8 @@ public class ActivityDefinition extends MetadataResource {
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, role);
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, typeReference, role
, function);
}
public String fhirType() {
@ -878,10 +965,10 @@ public class ActivityDefinition extends MetadataResource {
protected BooleanType experimental;
/**
* A code or group definition that describes the intended subject of the activity being defined.
* A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.
*/
@Child(name = "subject", type = {CodeableConcept.class, Group.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Type of individual the activity definition is intended for", formalDefinition="A code or group definition that describes the intended subject of the activity being defined." )
@Child(name = "subject", type = {CodeableConcept.class, Group.class, CanonicalType.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Type of individual the activity definition is intended for", formalDefinition="A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subject-type")
protected DataType subject;
@ -1067,18 +1154,18 @@ public class ActivityDefinition extends MetadataResource {
protected BooleanType doNotPerform;
/**
* The period, timing or frequency upon which the described activity is to occur.
* The timing or frequency upon which the described activity is to occur.
*/
@Child(name = "timing", type = {Timing.class, DateTimeType.class, Age.class, Period.class, Range.class, Duration.class}, order=34, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="When activity is to occur", formalDefinition="The period, timing or frequency upon which the described activity is to occur." )
@Child(name = "timing", type = {Timing.class, Age.class, Range.class, Duration.class}, order=34, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="When activity is to occur", formalDefinition="The timing or frequency upon which the described activity is to occur." )
protected DataType timing;
/**
* Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.
*/
@Child(name = "location", type = {Location.class}, order=35, min=0, max=1, modifier=false, summary=false)
@Child(name = "location", type = {CodeableReference.class}, order=35, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Where it should happen", formalDefinition="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc." )
protected Reference location;
protected CodeableReference location;
/**
* Indicates who should participate in performing the action described.
@ -1090,7 +1177,7 @@ public class ActivityDefinition extends MetadataResource {
/**
* Identifies the food, drug or other product being consumed or supplied in the activity.
*/
@Child(name = "product", type = {Medication.class, Substance.class, CodeableConcept.class}, order=37, min=0, max=1, modifier=false, summary=false)
@Child(name = "product", type = {Medication.class, Substance.class, Ingredient.class, CodeableConcept.class}, order=37, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="What's administered/supplied", formalDefinition="Identifies the food, drug or other product being consumed or supplied in the activity." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-codes")
protected DataType product;
@ -1152,7 +1239,7 @@ public class ActivityDefinition extends MetadataResource {
@Description(shortDefinition="Dynamic aspects of the definition", formalDefinition="Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result." )
protected List<ActivityDefinitionDynamicValueComponent> dynamicValue;
private static final long serialVersionUID = 1615489416L;
private static final long serialVersionUID = 173439425L;
/**
* Constructor
@ -1558,14 +1645,14 @@ public class ActivityDefinition extends MetadataResource {
}
/**
* @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.)
* @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.)
*/
public DataType getSubject() {
return this.subject;
}
/**
* @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.)
* @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.)
*/
public CodeableConcept getSubjectCodeableConcept() throws FHIRException {
if (this.subject == null)
@ -1580,7 +1667,7 @@ public class ActivityDefinition extends MetadataResource {
}
/**
* @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.)
* @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.)
*/
public Reference getSubjectReference() throws FHIRException {
if (this.subject == null)
@ -1594,15 +1681,30 @@ public class ActivityDefinition extends MetadataResource {
return this != null && this.subject instanceof Reference;
}
/**
* @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.)
*/
public CanonicalType getSubjectCanonicalType() throws FHIRException {
if (this.subject == null)
this.subject = new CanonicalType();
if (!(this.subject instanceof CanonicalType))
throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.subject.getClass().getName()+" was encountered");
return (CanonicalType) this.subject;
}
public boolean hasSubjectCanonicalType() {
return this != null && this.subject instanceof CanonicalType;
}
public boolean hasSubject() {
return this.subject != null && !this.subject.isEmpty();
}
/**
* @param value {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.)
* @param value {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.)
*/
public ActivityDefinition setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof CanonicalType))
throw new Error("Not the right type for ActivityDefinition.subject[x]: "+value.fhirType());
this.subject = value;
return this;
@ -2828,14 +2930,14 @@ public class ActivityDefinition extends MetadataResource {
}
/**
* @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
* @return {@link #timing} (The timing or frequency upon which the described activity is to occur.)
*/
public DataType getTiming() {
return this.timing;
}
/**
* @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
* @return {@link #timing} (The timing or frequency upon which the described activity is to occur.)
*/
public Timing getTimingTiming() throws FHIRException {
if (this.timing == null)
@ -2850,22 +2952,7 @@ public class ActivityDefinition extends MetadataResource {
}
/**
* @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
*/
public DateTimeType getTimingDateTimeType() throws FHIRException {
if (this.timing == null)
this.timing = new DateTimeType();
if (!(this.timing instanceof DateTimeType))
throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.timing.getClass().getName()+" was encountered");
return (DateTimeType) this.timing;
}
public boolean hasTimingDateTimeType() {
return this != null && this.timing instanceof DateTimeType;
}
/**
* @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
* @return {@link #timing} (The timing or frequency upon which the described activity is to occur.)
*/
public Age getTimingAge() throws FHIRException {
if (this.timing == null)
@ -2880,22 +2967,7 @@ public class ActivityDefinition extends MetadataResource {
}
/**
* @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
*/
public Period getTimingPeriod() throws FHIRException {
if (this.timing == null)
this.timing = new Period();
if (!(this.timing instanceof Period))
throw new FHIRException("Type mismatch: the type Period was expected, but "+this.timing.getClass().getName()+" was encountered");
return (Period) this.timing;
}
public boolean hasTimingPeriod() {
return this != null && this.timing instanceof Period;
}
/**
* @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
* @return {@link #timing} (The timing or frequency upon which the described activity is to occur.)
*/
public Range getTimingRange() throws FHIRException {
if (this.timing == null)
@ -2910,7 +2982,7 @@ public class ActivityDefinition extends MetadataResource {
}
/**
* @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
* @return {@link #timing} (The timing or frequency upon which the described activity is to occur.)
*/
public Duration getTimingDuration() throws FHIRException {
if (this.timing == null)
@ -2929,10 +3001,10 @@ public class ActivityDefinition extends MetadataResource {
}
/**
* @param value {@link #timing} (The period, timing or frequency upon which the described activity is to occur.)
* @param value {@link #timing} (The timing or frequency upon which the described activity is to occur.)
*/
public ActivityDefinition setTiming(DataType value) {
if (value != null && !(value instanceof Timing || value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof Duration))
if (value != null && !(value instanceof Timing || value instanceof Age || value instanceof Range || value instanceof Duration))
throw new Error("Not the right type for ActivityDefinition.timing[x]: "+value.fhirType());
this.timing = value;
return this;
@ -2941,12 +3013,12 @@ public class ActivityDefinition extends MetadataResource {
/**
* @return {@link #location} (Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.)
*/
public Reference getLocation() {
public CodeableReference getLocation() {
if (this.location == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ActivityDefinition.location");
else if (Configuration.doAutoCreate())
this.location = new Reference(); // cc
this.location = new CodeableReference(); // cc
return this.location;
}
@ -2957,7 +3029,7 @@ public class ActivityDefinition extends MetadataResource {
/**
* @param value {@link #location} (Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.)
*/
public ActivityDefinition setLocation(Reference value) {
public ActivityDefinition setLocation(CodeableReference value) {
this.location = value;
return this;
}
@ -3467,7 +3539,7 @@ public class ActivityDefinition extends MetadataResource {
children.add(new Property("subtitle", "string", "An explanatory or alternate title for the activity definition giving additional information about its content.", 0, 1, subtitle));
children.add(new Property("status", "code", "The status of this activity definition. Enables tracking the life-cycle of the content.", 0, 1, status));
children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental));
children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject));
children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject));
children.add(new Property("date", "dateTime", "The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.", 0, 1, date));
children.add(new Property("publisher", "string", "The name of the organization or individual that published the activity definition.", 0, 1, publisher));
children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
@ -3493,10 +3565,10 @@ public class ActivityDefinition extends MetadataResource {
children.add(new Property("intent", "code", "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.", 0, 1, intent));
children.add(new Property("priority", "code", "Indicates how quickly the activity should be addressed with respect to other requests.", 0, 1, priority));
children.add(new Property("doNotPerform", "boolean", "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.", 0, 1, doNotPerform));
children.add(new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing));
children.add(new Property("location", "Reference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location));
children.add(new Property("timing[x]", "Timing|Age|Range|Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing));
children.add(new Property("location", "CodeableReference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location));
children.add(new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant));
children.add(new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product));
children.add(new Property("product[x]", "Reference(Medication|Substance|Ingredient)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product));
children.add(new Property("quantity", "Quantity", "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).", 0, 1, quantity));
children.add(new Property("dosage", "Dosage", "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.", 0, java.lang.Integer.MAX_VALUE, dosage));
children.add(new Property("bodySite", "CodeableConcept", "Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).", 0, java.lang.Integer.MAX_VALUE, bodySite));
@ -3518,10 +3590,11 @@ public class ActivityDefinition extends MetadataResource {
case -2060497896: /*subtitle*/ return new Property("subtitle", "string", "An explanatory or alternate title for the activity definition giving additional information about its content.", 0, 1, subtitle);
case -892481550: /*status*/ return new Property("status", "code", "The status of this activity definition. Enables tracking the life-cycle of the content.", 0, 1, status);
case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental);
case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject);
case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject);
case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject);
case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject);
case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject);
case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject);
case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject);
case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject);
case -1768521432: /*subjectCanonical*/ return new Property("subject[x]", "canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject);
case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.", 0, 1, date);
case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the activity definition.", 0, 1, publisher);
case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact);
@ -3547,19 +3620,17 @@ public class ActivityDefinition extends MetadataResource {
case -1183762788: /*intent*/ return new Property("intent", "code", "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.", 0, 1, intent);
case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the activity should be addressed with respect to other requests.", 0, 1, priority);
case -1788508167: /*doNotPerform*/ return new Property("doNotPerform", "boolean", "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.", 0, 1, doNotPerform);
case 164632566: /*timing[x]*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -873664438: /*timing*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -1837458939: /*timingDateTime*/ return new Property("timing[x]", "dateTime", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case 164607061: /*timingAge*/ return new Property("timing[x]", "Age", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -615615829: /*timingPeriod*/ return new Property("timing[x]", "Period", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -710871277: /*timingRange*/ return new Property("timing[x]", "Range", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location);
case 164632566: /*timing[x]*/ return new Property("timing[x]", "Timing|Age|Range|Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -873664438: /*timing*/ return new Property("timing[x]", "Timing|Age|Range|Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case 164607061: /*timingAge*/ return new Property("timing[x]", "Age", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -710871277: /*timingRange*/ return new Property("timing[x]", "Range", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing);
case 1901043637: /*location*/ return new Property("location", "CodeableReference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location);
case 767422259: /*participant*/ return new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant);
case 1753005361: /*product[x]*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product);
case -309474065: /*product*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product);
case -669667556: /*productReference*/ return new Property("product[x]", "Reference(Medication|Substance)", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product);
case 1753005361: /*product[x]*/ return new Property("product[x]", "Reference(Medication|Substance|Ingredient)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product);
case -309474065: /*product*/ return new Property("product[x]", "Reference(Medication|Substance|Ingredient)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product);
case -669667556: /*productReference*/ return new Property("product[x]", "Reference(Medication|Substance|Ingredient)", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product);
case 906854066: /*productCodeableConcept*/ return new Property("product[x]", "CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product);
case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).", 0, 1, quantity);
case -1326018889: /*dosage*/ return new Property("dosage", "Dosage", "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.", 0, java.lang.Integer.MAX_VALUE, dosage);
@ -3612,7 +3683,7 @@ public class ActivityDefinition extends MetadataResource {
case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration<RequestPriority>
case -1788508167: /*doNotPerform*/ return this.doNotPerform == null ? new Base[0] : new Base[] {this.doNotPerform}; // BooleanType
case -873664438: /*timing*/ return this.timing == null ? new Base[0] : new Base[] {this.timing}; // DataType
case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference
case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // CodeableReference
case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // ActivityDefinitionParticipantComponent
case -309474065: /*product*/ return this.product == null ? new Base[0] : new Base[] {this.product}; // DataType
case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity
@ -3741,7 +3812,7 @@ public class ActivityDefinition extends MetadataResource {
this.timing = TypeConvertor.castToType(value); // DataType
return value;
case 1901043637: // location
this.location = TypeConvertor.castToReference(value); // Reference
this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference
return value;
case 767422259: // participant
this.getParticipant().add((ActivityDefinitionParticipantComponent) value); // ActivityDefinitionParticipantComponent
@ -3855,7 +3926,7 @@ public class ActivityDefinition extends MetadataResource {
} else if (name.equals("timing[x]")) {
this.timing = TypeConvertor.castToType(value); // DataType
} else if (name.equals("location")) {
this.location = TypeConvertor.castToReference(value); // Reference
this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference
} else if (name.equals("participant")) {
this.getParticipant().add((ActivityDefinitionParticipantComponent) value);
} else if (name.equals("product[x]")) {
@ -3949,7 +4020,7 @@ public class ActivityDefinition extends MetadataResource {
case -2060497896: /*subtitle*/ return new String[] {"string"};
case -892481550: /*status*/ return new String[] {"code"};
case -404562712: /*experimental*/ return new String[] {"boolean"};
case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference"};
case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference", "canonical"};
case 3076014: /*date*/ return new String[] {"dateTime"};
case 1447404028: /*publisher*/ return new String[] {"string"};
case 951526432: /*contact*/ return new String[] {"ContactDetail"};
@ -3975,8 +4046,8 @@ public class ActivityDefinition extends MetadataResource {
case -1183762788: /*intent*/ return new String[] {"code"};
case -1165461084: /*priority*/ return new String[] {"code"};
case -1788508167: /*doNotPerform*/ return new String[] {"boolean"};
case -873664438: /*timing*/ return new String[] {"Timing", "dateTime", "Age", "Period", "Range", "Duration"};
case 1901043637: /*location*/ return new String[] {"Reference"};
case -873664438: /*timing*/ return new String[] {"Timing", "Age", "Range", "Duration"};
case 1901043637: /*location*/ return new String[] {"CodeableReference"};
case 767422259: /*participant*/ return new String[] {};
case -309474065: /*product*/ return new String[] {"Reference", "CodeableConcept"};
case -1285004149: /*quantity*/ return new String[] {"Quantity"};
@ -4026,6 +4097,10 @@ public class ActivityDefinition extends MetadataResource {
this.subject = new Reference();
return this.subject;
}
else if (name.equals("subjectCanonical")) {
this.subject = new CanonicalType();
return this.subject;
}
else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.date");
}
@ -4107,18 +4182,10 @@ public class ActivityDefinition extends MetadataResource {
this.timing = new Timing();
return this.timing;
}
else if (name.equals("timingDateTime")) {
this.timing = new DateTimeType();
return this.timing;
}
else if (name.equals("timingAge")) {
this.timing = new Age();
return this.timing;
}
else if (name.equals("timingPeriod")) {
this.timing = new Period();
return this.timing;
}
else if (name.equals("timingRange")) {
this.timing = new Range();
return this.timing;
@ -4128,7 +4195,7 @@ public class ActivityDefinition extends MetadataResource {
return this.timing;
}
else if (name.equals("location")) {
this.location = new Reference();
this.location = new CodeableReference();
return this.location;
}
else if (name.equals("participant")) {
@ -4376,7 +4443,7 @@ public class ActivityDefinition extends MetadataResource {
* Path: <b>ActivityDefinition.relatedArtifact.where(type='composed-of').resource</b><br>
* </p>
*/
@SearchParamDefinition(name="composed-of", path="ActivityDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
@SearchParamDefinition(name="composed-of", path="ActivityDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_COMPOSED_OF = "composed-of";
/**
* <b>Fluent Client</b> search parameter constant for <b>composed-of</b>
@ -4394,6 +4461,26 @@ public class ActivityDefinition extends MetadataResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("ActivityDefinition:composed-of").toLocked();
/**
* Search parameter: <b>context</b>
* <p>
* Description: <b>A use context assigned to the activity definition</b><br>
* Type: <b>token</b><br>
* Path: <b>(ActivityDefinition.useContext.value as CodeableConcept)</b><br>
* </p>
*/
@SearchParamDefinition(name="context", path="(ActivityDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the activity definition", type="token" )
public static final String SP_CONTEXT = "context";
/**
* <b>Fluent Client</b> search parameter constant for <b>context</b>
* <p>
* Description: <b>A use context assigned to the activity definition</b><br>
* Type: <b>token</b><br>
* Path: <b>(ActivityDefinition.useContext.value as CodeableConcept)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
/**
* Search parameter: <b>context-quantity</b>
* <p>
@ -4414,46 +4501,6 @@ public class ActivityDefinition extends MetadataResource {
*/
public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY);
/**
* Search parameter: <b>context-type-quantity</b>
* <p>
* Description: <b>A use context type and quantity- or range-based value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
@SearchParamDefinition(name="context-type-quantity", path="ActivityDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the activity definition", type="composite", compositeOf={"context-type", "context-quantity"} )
public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity";
/**
* <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b>
* <p>
* Description: <b>A use context type and quantity- or range-based value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY);
/**
* Search parameter: <b>context-type-value</b>
* <p>
* Description: <b>A use context type and value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
@SearchParamDefinition(name="context-type-value", path="ActivityDefinition.useContext", description="A use context type and value assigned to the activity definition", type="composite", compositeOf={"context-type", "context"} )
public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value";
/**
* <b>Fluent Client</b> search parameter constant for <b>context-type-value</b>
* <p>
* Description: <b>A use context type and value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE);
/**
* Search parameter: <b>context-type</b>
* <p>
@ -4474,26 +4521,6 @@ public class ActivityDefinition extends MetadataResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE);
/**
* Search parameter: <b>context</b>
* <p>
* Description: <b>A use context assigned to the activity definition</b><br>
* Type: <b>token</b><br>
* Path: <b>(ActivityDefinition.useContext.value as CodeableConcept)</b><br>
* </p>
*/
@SearchParamDefinition(name="context", path="(ActivityDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the activity definition", type="token" )
public static final String SP_CONTEXT = "context";
/**
* <b>Fluent Client</b> search parameter constant for <b>context</b>
* <p>
* Description: <b>A use context assigned to the activity definition</b><br>
* Type: <b>token</b><br>
* Path: <b>(ActivityDefinition.useContext.value as CodeableConcept)</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
/**
* Search parameter: <b>date</b>
* <p>
@ -4522,7 +4549,7 @@ public class ActivityDefinition extends MetadataResource {
* Path: <b>ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library</b><br>
* </p>
*/
@SearchParamDefinition(name="depends-on", path="ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
@SearchParamDefinition(name="depends-on", path="ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_DEPENDS_ON = "depends-on";
/**
* <b>Fluent Client</b> search parameter constant for <b>depends-on</b>
@ -4548,7 +4575,7 @@ public class ActivityDefinition extends MetadataResource {
* Path: <b>ActivityDefinition.relatedArtifact.where(type='derived-from').resource</b><br>
* </p>
*/
@SearchParamDefinition(name="derived-from", path="ActivityDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
@SearchParamDefinition(name="derived-from", path="ActivityDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_DERIVED_FROM = "derived-from";
/**
* <b>Fluent Client</b> search parameter constant for <b>derived-from</b>
@ -4674,7 +4701,7 @@ public class ActivityDefinition extends MetadataResource {
* Path: <b>ActivityDefinition.relatedArtifact.where(type='predecessor').resource</b><br>
* </p>
*/
@SearchParamDefinition(name="predecessor", path="ActivityDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
@SearchParamDefinition(name="predecessor", path="ActivityDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_PREDECESSOR = "predecessor";
/**
* <b>Fluent Client</b> search parameter constant for <b>predecessor</b>
@ -4740,7 +4767,7 @@ public class ActivityDefinition extends MetadataResource {
* Path: <b>ActivityDefinition.relatedArtifact.where(type='successor').resource</b><br>
* </p>
*/
@SearchParamDefinition(name="successor", path="ActivityDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
@SearchParamDefinition(name="successor", path="ActivityDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_SUCCESSOR = "successor";
/**
* <b>Fluent Client</b> search parameter constant for <b>successor</b>
@ -4838,6 +4865,46 @@ public class ActivityDefinition extends MetadataResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
/**
* Search parameter: <b>context-type-quantity</b>
* <p>
* Description: <b>A use context type and quantity- or range-based value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
@SearchParamDefinition(name="context-type-quantity", path="ActivityDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the activity definition", type="composite", compositeOf={"context-type", "context-quantity"} )
public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity";
/**
* <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b>
* <p>
* Description: <b>A use context type and quantity- or range-based value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY);
/**
* Search parameter: <b>context-type-value</b>
* <p>
* Description: <b>A use context type and value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
@SearchParamDefinition(name="context-type-value", path="ActivityDefinition.useContext", description="A use context type and value assigned to the activity definition", type="composite", compositeOf={"context-type", "context"} )
public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value";
/**
* <b>Fluent Client</b> search parameter constant for <b>context-type-value</b>
* <p>
* Description: <b>A use context type and value assigned to the activity definition</b><br>
* Type: <b>composite</b><br>
* Path: <b>ActivityDefinition.useContext</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -87,7 +87,6 @@ public class Address extends DataType implements ICompositeType {
case POSTAL: return "postal";
case PHYSICAL: return "physical";
case BOTH: return "both";
case NULL: return null;
default: return "?";
}
}
@ -96,7 +95,6 @@ public class Address extends DataType implements ICompositeType {
case POSTAL: return "http://hl7.org/fhir/address-type";
case PHYSICAL: return "http://hl7.org/fhir/address-type";
case BOTH: return "http://hl7.org/fhir/address-type";
case NULL: return null;
default: return "?";
}
}
@ -105,7 +103,6 @@ public class Address extends DataType implements ICompositeType {
case POSTAL: return "Mailing addresses - PO Boxes and care-of addresses.";
case PHYSICAL: return "A physical address that can be visited.";
case BOTH: return "An address that is both physical and postal.";
case NULL: return null;
default: return "?";
}
}
@ -114,7 +111,6 @@ public class Address extends DataType implements ICompositeType {
case POSTAL: return "Postal";
case PHYSICAL: return "Physical";
case BOTH: return "Postal & Physical";
case NULL: return null;
default: return "?";
}
}
@ -213,7 +209,6 @@ public class Address extends DataType implements ICompositeType {
case TEMP: return "temp";
case OLD: return "old";
case BILLING: return "billing";
case NULL: return null;
default: return "?";
}
}
@ -224,7 +219,6 @@ public class Address extends DataType implements ICompositeType {
case TEMP: return "http://hl7.org/fhir/address-use";
case OLD: return "http://hl7.org/fhir/address-use";
case BILLING: return "http://hl7.org/fhir/address-use";
case NULL: return null;
default: return "?";
}
}
@ -235,7 +229,6 @@ public class Address extends DataType implements ICompositeType {
case TEMP: return "A temporary address. The period can provide more detailed information.";
case OLD: return "This address is no longer in use (or was never correct but retained for records).";
case BILLING: return "An address to be used to send bills, invoices, receipts etc.";
case NULL: return null;
default: return "?";
}
}
@ -246,7 +239,6 @@ public class Address extends DataType implements ICompositeType {
case TEMP: return "Temporary";
case OLD: return "Old / Incorrect";
case BILLING: return "Billing";
case NULL: return null;
default: return "?";
}
}
@ -369,7 +361,7 @@ public class Address extends DataType implements ICompositeType {
* Country - a nation as commonly understood or generally accepted.
*/
@Child(name = "country", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Country (e.g. can be ISO 3166 2 or 3 letter code)", formalDefinition="Country - a nation as commonly understood or generally accepted." )
@Description(shortDefinition="Country (e.g. may be ISO 3166 2 or 3 letter code)", formalDefinition="Country - a nation as commonly understood or generally accepted." )
protected StringType country;
/**

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A pharmaceutical product described in terms of its composition and dose form.
* A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed).
*/
@ResourceDef(name="AdministrableProductDefinition", profile="http://hl7.org/fhir/StructureDefinition/AdministrableProductDefinition")
public class AdministrableProductDefinition extends DomainResource {
@ -414,38 +414,38 @@ public class AdministrableProductDefinition extends DomainResource {
protected CodeableConcept code;
/**
* The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.
* The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.
*/
@Child(name = "firstDose", type = {Quantity.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement", formalDefinition="The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement." )
@Description(shortDefinition="The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement", formalDefinition="The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement." )
protected Quantity firstDose;
/**
* The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.
* The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.
*/
@Child(name = "maxSingleDose", type = {Quantity.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement", formalDefinition="The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement." )
@Description(shortDefinition="The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement", formalDefinition="The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement." )
protected Quantity maxSingleDose;
/**
* The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.
* The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.
*/
@Child(name = "maxDosePerDay", type = {Quantity.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation", formalDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation." )
@Description(shortDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered", formalDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered." )
protected Quantity maxDosePerDay;
/**
* The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.
* The maximum dose per treatment period that can be administered.
*/
@Child(name = "maxDosePerTreatmentPeriod", type = {Ratio.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation", formalDefinition="The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation." )
@Description(shortDefinition="The maximum dose per treatment period that can be administered", formalDefinition="The maximum dose per treatment period that can be administered." )
protected Ratio maxDosePerTreatmentPeriod;
/**
* The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.
* The maximum treatment period during which an Investigational Medicinal Product can be administered.
*/
@Child(name = "maxTreatmentPeriod", type = {Duration.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation", formalDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation." )
@Description(shortDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered", formalDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered." )
protected Duration maxTreatmentPeriod;
/**
@ -497,7 +497,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #firstDose} (The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.)
* @return {@link #firstDose} (The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.)
*/
public Quantity getFirstDose() {
if (this.firstDose == null)
@ -513,7 +513,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #firstDose} (The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.)
* @param value {@link #firstDose} (The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.)
*/
public AdministrableProductDefinitionRouteOfAdministrationComponent setFirstDose(Quantity value) {
this.firstDose = value;
@ -521,7 +521,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #maxSingleDose} (The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.)
* @return {@link #maxSingleDose} (The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.)
*/
public Quantity getMaxSingleDose() {
if (this.maxSingleDose == null)
@ -537,7 +537,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #maxSingleDose} (The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.)
* @param value {@link #maxSingleDose} (The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.)
*/
public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxSingleDose(Quantity value) {
this.maxSingleDose = value;
@ -545,7 +545,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.)
* @return {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.)
*/
public Quantity getMaxDosePerDay() {
if (this.maxDosePerDay == null)
@ -561,7 +561,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.)
* @param value {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.)
*/
public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxDosePerDay(Quantity value) {
this.maxDosePerDay = value;
@ -569,7 +569,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.)
* @return {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered.)
*/
public Ratio getMaxDosePerTreatmentPeriod() {
if (this.maxDosePerTreatmentPeriod == null)
@ -585,7 +585,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.)
* @param value {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered.)
*/
public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxDosePerTreatmentPeriod(Ratio value) {
this.maxDosePerTreatmentPeriod = value;
@ -593,7 +593,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.)
* @return {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered.)
*/
public Duration getMaxTreatmentPeriod() {
if (this.maxTreatmentPeriod == null)
@ -609,7 +609,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.)
* @param value {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered.)
*/
public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxTreatmentPeriod(Duration value) {
this.maxTreatmentPeriod = value;
@ -672,11 +672,11 @@ public class AdministrableProductDefinition extends DomainResource {
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("code", "CodeableConcept", "Coded expression for the route.", 0, 1, code));
children.add(new Property("firstDose", "Quantity", "The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.", 0, 1, firstDose));
children.add(new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose));
children.add(new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerDay));
children.add(new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerTreatmentPeriod));
children.add(new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxTreatmentPeriod));
children.add(new Property("firstDose", "Quantity", "The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.", 0, 1, firstDose));
children.add(new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose));
children.add(new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.", 0, 1, maxDosePerDay));
children.add(new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered.", 0, 1, maxDosePerTreatmentPeriod));
children.add(new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered.", 0, 1, maxTreatmentPeriod));
children.add(new Property("targetSpecies", "", "A species for which this route applies.", 0, java.lang.Integer.MAX_VALUE, targetSpecies));
}
@ -684,11 +684,11 @@ public class AdministrableProductDefinition extends DomainResource {
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Coded expression for the route.", 0, 1, code);
case 132551405: /*firstDose*/ return new Property("firstDose", "Quantity", "The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.", 0, 1, firstDose);
case -259207927: /*maxSingleDose*/ return new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose);
case -2017475520: /*maxDosePerDay*/ return new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerDay);
case -608040195: /*maxDosePerTreatmentPeriod*/ return new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerTreatmentPeriod);
case 920698453: /*maxTreatmentPeriod*/ return new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxTreatmentPeriod);
case 132551405: /*firstDose*/ return new Property("firstDose", "Quantity", "The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.", 0, 1, firstDose);
case -259207927: /*maxSingleDose*/ return new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose);
case -2017475520: /*maxDosePerDay*/ return new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.", 0, 1, maxDosePerDay);
case -608040195: /*maxDosePerTreatmentPeriod*/ return new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered.", 0, 1, maxDosePerTreatmentPeriod);
case 920698453: /*maxTreatmentPeriod*/ return new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered.", 0, 1, maxTreatmentPeriod);
case 295481963: /*targetSpecies*/ return new Property("targetSpecies", "", "A species for which this route applies.", 0, java.lang.Integer.MAX_VALUE, targetSpecies);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
@ -1404,31 +1404,31 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* An identifier for the pharmaceutical medicinal product.
* An identifier for the administrable product.
*/
@Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="An identifier for the pharmaceutical medicinal product", formalDefinition="An identifier for the pharmaceutical medicinal product." )
@Description(shortDefinition="An identifier for the administrable product", formalDefinition="An identifier for the administrable product." )
protected List<Identifier> identifier;
/**
* The product that this is a pharmaceutical product of.
* The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product.
*/
@Child(name = "subject", type = {MedicinalProductDefinition.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The product that this is a pharmaceutical product of", formalDefinition="The product that this is a pharmaceutical product of." )
@Description(shortDefinition="The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product", formalDefinition="The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product." )
protected List<Reference> subject;
/**
* The administrable dose form, after necessary reconstitution.
* The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.
*/
@Child(name = "administrableDoseForm", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The administrable dose form, after necessary reconstitution", formalDefinition="The administrable dose form, after necessary reconstitution." )
@Description(shortDefinition="The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing", formalDefinition="The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing." )
protected CodeableConcept administrableDoseForm;
/**
* Todo.
* The units of presentation for the administrable product, for example 'tablet'.
*/
@Child(name = "unitOfPresentation", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Todo", formalDefinition="Todo." )
@Description(shortDefinition="The units of presentation for the administrable product, for example 'tablet'", formalDefinition="The units of presentation for the administrable product, for example 'tablet'." )
protected CodeableConcept unitOfPresentation;
/**
@ -1439,17 +1439,17 @@ public class AdministrableProductDefinition extends DomainResource {
protected List<Reference> producedFrom;
/**
* The ingredients of this administrable pharmaceutical product.
* The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s).
*/
@Child(name = "ingredient", type = {Ingredient.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The ingredients of this administrable pharmaceutical product", formalDefinition="The ingredients of this administrable pharmaceutical product." )
@Description(shortDefinition="The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)", formalDefinition="The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)." )
protected List<Reference> ingredient;
/**
* Accompanying device.
* A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged.
*/
@Child(name = "device", type = {DeviceDefinition.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Accompanying device", formalDefinition="Accompanying device." )
@Description(shortDefinition="A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged", formalDefinition="A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged." )
protected List<Reference> device;
/**
@ -1460,10 +1460,10 @@ public class AdministrableProductDefinition extends DomainResource {
protected List<AdministrableProductDefinitionPropertyComponent> property;
/**
* The path by which the pharmaceutical product is taken into or makes contact with the body.
* The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.
*/
@Child(name = "routeOfAdministration", type = {}, order=8, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The path by which the pharmaceutical product is taken into or makes contact with the body", formalDefinition="The path by which the pharmaceutical product is taken into or makes contact with the body." )
@Description(shortDefinition="The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route", formalDefinition="The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route." )
protected List<AdministrableProductDefinitionRouteOfAdministrationComponent> routeOfAdministration;
private static final long serialVersionUID = -1072766896L;
@ -1484,7 +1484,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #identifier} (An identifier for the pharmaceutical medicinal product.)
* @return {@link #identifier} (An identifier for the administrable product.)
*/
public List<Identifier> getIdentifier() {
if (this.identifier == null)
@ -1537,7 +1537,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #subject} (The product that this is a pharmaceutical product of.)
* @return {@link #subject} (The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product.)
*/
public List<Reference> getSubject() {
if (this.subject == null)
@ -1590,7 +1590,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #administrableDoseForm} (The administrable dose form, after necessary reconstitution.)
* @return {@link #administrableDoseForm} (The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.)
*/
public CodeableConcept getAdministrableDoseForm() {
if (this.administrableDoseForm == null)
@ -1606,7 +1606,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #administrableDoseForm} (The administrable dose form, after necessary reconstitution.)
* @param value {@link #administrableDoseForm} (The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.)
*/
public AdministrableProductDefinition setAdministrableDoseForm(CodeableConcept value) {
this.administrableDoseForm = value;
@ -1614,7 +1614,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #unitOfPresentation} (Todo.)
* @return {@link #unitOfPresentation} (The units of presentation for the administrable product, for example 'tablet'.)
*/
public CodeableConcept getUnitOfPresentation() {
if (this.unitOfPresentation == null)
@ -1630,7 +1630,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @param value {@link #unitOfPresentation} (Todo.)
* @param value {@link #unitOfPresentation} (The units of presentation for the administrable product, for example 'tablet'.)
*/
public AdministrableProductDefinition setUnitOfPresentation(CodeableConcept value) {
this.unitOfPresentation = value;
@ -1691,7 +1691,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #ingredient} (The ingredients of this administrable pharmaceutical product.)
* @return {@link #ingredient} (The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s).)
*/
public List<Reference> getIngredient() {
if (this.ingredient == null)
@ -1744,7 +1744,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #device} (Accompanying device.)
* @return {@link #device} (A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged.)
*/
public List<Reference> getDevice() {
if (this.device == null)
@ -1850,7 +1850,7 @@ public class AdministrableProductDefinition extends DomainResource {
}
/**
* @return {@link #routeOfAdministration} (The path by which the pharmaceutical product is taken into or makes contact with the body.)
* @return {@link #routeOfAdministration} (The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.)
*/
public List<AdministrableProductDefinitionRouteOfAdministrationComponent> getRouteOfAdministration() {
if (this.routeOfAdministration == null)
@ -1904,29 +1904,29 @@ public class AdministrableProductDefinition extends DomainResource {
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("identifier", "Identifier", "An identifier for the pharmaceutical medicinal product.", 0, java.lang.Integer.MAX_VALUE, identifier));
children.add(new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pharmaceutical product of.", 0, java.lang.Integer.MAX_VALUE, subject));
children.add(new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, after necessary reconstitution.", 0, 1, administrableDoseForm));
children.add(new Property("unitOfPresentation", "CodeableConcept", "Todo.", 0, 1, unitOfPresentation));
children.add(new Property("identifier", "Identifier", "An identifier for the administrable product.", 0, java.lang.Integer.MAX_VALUE, identifier));
children.add(new Property("subject", "Reference(MedicinalProductDefinition)", "The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product.", 0, java.lang.Integer.MAX_VALUE, subject));
children.add(new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.", 0, 1, administrableDoseForm));
children.add(new Property("unitOfPresentation", "CodeableConcept", "The units of presentation for the administrable product, for example 'tablet'.", 0, 1, unitOfPresentation));
children.add(new Property("producedFrom", "Reference(ManufacturedItemDefinition)", "The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.", 0, java.lang.Integer.MAX_VALUE, producedFrom));
children.add(new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, ingredient));
children.add(new Property("device", "Reference(DeviceDefinition)", "Accompanying device.", 0, java.lang.Integer.MAX_VALUE, device));
children.add(new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s).", 0, java.lang.Integer.MAX_VALUE, ingredient));
children.add(new Property("device", "Reference(DeviceDefinition)", "A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged.", 0, java.lang.Integer.MAX_VALUE, device));
children.add(new Property("property", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, property));
children.add(new Property("routeOfAdministration", "", "The path by which the pharmaceutical product is taken into or makes contact with the body.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration));
children.add(new Property("routeOfAdministration", "", "The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "An identifier for the pharmaceutical medicinal product.", 0, java.lang.Integer.MAX_VALUE, identifier);
case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pharmaceutical product of.", 0, java.lang.Integer.MAX_VALUE, subject);
case 1446105202: /*administrableDoseForm*/ return new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, after necessary reconstitution.", 0, 1, administrableDoseForm);
case -1427765963: /*unitOfPresentation*/ return new Property("unitOfPresentation", "CodeableConcept", "Todo.", 0, 1, unitOfPresentation);
case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "An identifier for the administrable product.", 0, java.lang.Integer.MAX_VALUE, identifier);
case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition)", "The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product.", 0, java.lang.Integer.MAX_VALUE, subject);
case 1446105202: /*administrableDoseForm*/ return new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.", 0, 1, administrableDoseForm);
case -1427765963: /*unitOfPresentation*/ return new Property("unitOfPresentation", "CodeableConcept", "The units of presentation for the administrable product, for example 'tablet'.", 0, 1, unitOfPresentation);
case 588380494: /*producedFrom*/ return new Property("producedFrom", "Reference(ManufacturedItemDefinition)", "The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.", 0, java.lang.Integer.MAX_VALUE, producedFrom);
case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, ingredient);
case -1335157162: /*device*/ return new Property("device", "Reference(DeviceDefinition)", "Accompanying device.", 0, java.lang.Integer.MAX_VALUE, device);
case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s).", 0, java.lang.Integer.MAX_VALUE, ingredient);
case -1335157162: /*device*/ return new Property("device", "Reference(DeviceDefinition)", "A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged.", 0, java.lang.Integer.MAX_VALUE, device);
case -993141291: /*property*/ return new Property("property", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, property);
case 1742084734: /*routeOfAdministration*/ return new Property("routeOfAdministration", "", "The path by which the pharmaceutical product is taken into or makes contact with the body.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration);
case 1742084734: /*routeOfAdministration*/ return new Property("routeOfAdministration", "", "The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
@ -2171,17 +2171,17 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* Search parameter: <b>device</b>
* <p>
* Description: <b>Accompanying device</b><br>
* Description: <b>A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged</b><br>
* Type: <b>reference</b><br>
* Path: <b>AdministrableProductDefinition.device</b><br>
* </p>
*/
@SearchParamDefinition(name="device", path="AdministrableProductDefinition.device", description="Accompanying device", type="reference", target={DeviceDefinition.class } )
@SearchParamDefinition(name="device", path="AdministrableProductDefinition.device", description="A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged", type="reference", target={DeviceDefinition.class } )
public static final String SP_DEVICE = "device";
/**
* <b>Fluent Client</b> search parameter constant for <b>device</b>
* <p>
* Description: <b>Accompanying device</b><br>
* Description: <b>A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged</b><br>
* Type: <b>reference</b><br>
* Path: <b>AdministrableProductDefinition.device</b><br>
* </p>
@ -2197,17 +2197,17 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* Search parameter: <b>dose-form</b>
* <p>
* Description: <b>The administrable dose form, after necessary reconstitution</b><br>
* Description: <b>The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing</b><br>
* Type: <b>token</b><br>
* Path: <b>AdministrableProductDefinition.administrableDoseForm</b><br>
* </p>
*/
@SearchParamDefinition(name="dose-form", path="AdministrableProductDefinition.administrableDoseForm", description="The administrable dose form, after necessary reconstitution", type="token" )
@SearchParamDefinition(name="dose-form", path="AdministrableProductDefinition.administrableDoseForm", description="The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing", type="token" )
public static final String SP_DOSE_FORM = "dose-form";
/**
* <b>Fluent Client</b> search parameter constant for <b>dose-form</b>
* <p>
* Description: <b>The administrable dose form, after necessary reconstitution</b><br>
* Description: <b>The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing</b><br>
* Type: <b>token</b><br>
* Path: <b>AdministrableProductDefinition.administrableDoseForm</b><br>
* </p>
@ -2217,17 +2217,17 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* Search parameter: <b>identifier</b>
* <p>
* Description: <b>An identifier for the pharmaceutical medicinal product</b><br>
* Description: <b>An identifier for the administrable product</b><br>
* Type: <b>token</b><br>
* Path: <b>AdministrableProductDefinition.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="identifier", path="AdministrableProductDefinition.identifier", description="An identifier for the pharmaceutical medicinal product", type="token" )
@SearchParamDefinition(name="identifier", path="AdministrableProductDefinition.identifier", description="An identifier for the administrable product", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
* <p>
* Description: <b>An identifier for the pharmaceutical medicinal product</b><br>
* Description: <b>An identifier for the administrable product</b><br>
* Type: <b>token</b><br>
* Path: <b>AdministrableProductDefinition.identifier</b><br>
* </p>
@ -2237,17 +2237,17 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* Search parameter: <b>ingredient</b>
* <p>
* Description: <b>The ingredients of this administrable pharmaceutical product</b><br>
* Description: <b>The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)</b><br>
* Type: <b>reference</b><br>
* Path: <b>AdministrableProductDefinition.ingredient</b><br>
* </p>
*/
@SearchParamDefinition(name="ingredient", path="AdministrableProductDefinition.ingredient", description="The ingredients of this administrable pharmaceutical product", type="reference", target={Ingredient.class } )
@SearchParamDefinition(name="ingredient", path="AdministrableProductDefinition.ingredient", description="The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)", type="reference", target={Ingredient.class } )
public static final String SP_INGREDIENT = "ingredient";
/**
* <b>Fluent Client</b> search parameter constant for <b>ingredient</b>
* <p>
* Description: <b>The ingredients of this administrable pharmaceutical product</b><br>
* Description: <b>The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)</b><br>
* Type: <b>reference</b><br>
* Path: <b>AdministrableProductDefinition.ingredient</b><br>
* </p>
@ -2309,17 +2309,17 @@ public class AdministrableProductDefinition extends DomainResource {
/**
* Search parameter: <b>subject</b>
* <p>
* Description: <b>The product that this is a pharmaceutical product of</b><br>
* Description: <b>The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product</b><br>
* Type: <b>reference</b><br>
* Path: <b>AdministrableProductDefinition.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="AdministrableProductDefinition.subject", description="The product that this is a pharmaceutical product of", type="reference", target={MedicinalProductDefinition.class } )
@SearchParamDefinition(name="subject", path="AdministrableProductDefinition.subject", description="The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product", type="reference", target={MedicinalProductDefinition.class } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
* <p>
* Description: <b>The product that this is a pharmaceutical product of</b><br>
* Description: <b>The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product</b><br>
* Type: <b>reference</b><br>
* Path: <b>AdministrableProductDefinition.subject</b><br>
* </p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -82,7 +82,6 @@ public class AdverseEvent extends DomainResource {
switch (this) {
case ACTUAL: return "actual";
case POTENTIAL: return "potential";
case NULL: return null;
default: return "?";
}
}
@ -90,7 +89,6 @@ public class AdverseEvent extends DomainResource {
switch (this) {
case ACTUAL: return "http://hl7.org/fhir/adverse-event-actuality";
case POTENTIAL: return "http://hl7.org/fhir/adverse-event-actuality";
case NULL: return null;
default: return "?";
}
}
@ -98,7 +96,6 @@ public class AdverseEvent extends DomainResource {
switch (this) {
case ACTUAL: return "The adverse event actually happened regardless of whether anyone was affected or harmed.";
case POTENTIAL: return "A potential adverse event.";
case NULL: return null;
default: return "?";
}
}
@ -106,7 +103,6 @@ public class AdverseEvent extends DomainResource {
switch (this) {
case ACTUAL: return "Adverse Event";
case POTENTIAL: return "Potential Adverse Event";
case NULL: return null;
default: return "?";
}
}
@ -192,7 +188,6 @@ public class AdverseEvent extends DomainResource {
case COMPLETED: return "completed";
case ENTEREDINERROR: return "entered-in-error";
case UNKNOWN: return "unknown";
case NULL: return null;
default: return "?";
}
}
@ -202,7 +197,6 @@ public class AdverseEvent extends DomainResource {
case COMPLETED: return "http://hl7.org/fhir/event-status";
case ENTEREDINERROR: return "http://hl7.org/fhir/event-status";
case UNKNOWN: return "http://hl7.org/fhir/event-status";
case NULL: return null;
default: return "?";
}
}
@ -212,7 +206,6 @@ public class AdverseEvent extends DomainResource {
case COMPLETED: return "The event has now concluded.";
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"stopped\" rather than \"entered-in-error\".).";
case UNKNOWN: return "The authoring/source system does not know which of the status values currently applies for this event. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring/source system does not know which.";
case NULL: return null;
default: return "?";
}
}
@ -222,7 +215,6 @@ public class AdverseEvent extends DomainResource {
case COMPLETED: return "Completed";
case ENTEREDINERROR: return "Entered in Error";
case UNKNOWN: return "Unknown";
case NULL: return null;
default: return "?";
}
}
@ -1853,10 +1845,10 @@ public class AdverseEvent extends DomainResource {
protected DateTimeType recordedDate;
/**
* Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).
* Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall.
*/
@Child(name = "resultingCondition", type = {Condition.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Effect on the subject due to this event", formalDefinition="Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical)." )
@Description(shortDefinition="Effect on the subject due to this event", formalDefinition="Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall." )
protected List<Reference> resultingCondition;
/**
@ -1877,10 +1869,10 @@ public class AdverseEvent extends DomainResource {
/**
* Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.
*/
@Child(name = "outcome", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=true)
@Child(name = "outcome", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Type of outcome from the adverse event", formalDefinition="Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/adverse-event-outcome")
protected CodeableConcept outcome;
protected List<CodeableConcept> outcome;
/**
* Information on who recorded the adverse event. May be the patient or a practitioner.
@ -1938,7 +1930,7 @@ public class AdverseEvent extends DomainResource {
@Description(shortDefinition="Research study that the subject is enrolled in", formalDefinition="The research study that the subject is enrolled in." )
protected List<Reference> study;
private static final long serialVersionUID = -162346876L;
private static final long serialVersionUID = 1528004510L;
/**
* Constructor
@ -2390,7 +2382,7 @@ public class AdverseEvent extends DomainResource {
}
/**
* @return {@link #resultingCondition} (Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).)
* @return {@link #resultingCondition} (Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall.)
*/
public List<Reference> getResultingCondition() {
if (this.resultingCondition == null)
@ -2493,25 +2485,54 @@ public class AdverseEvent extends DomainResource {
/**
* @return {@link #outcome} (Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.)
*/
public CodeableConcept getOutcome() {
public List<CodeableConcept> getOutcome() {
if (this.outcome == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AdverseEvent.outcome");
else if (Configuration.doAutoCreate())
this.outcome = new CodeableConcept(); // cc
this.outcome = new ArrayList<CodeableConcept>();
return this.outcome;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public AdverseEvent setOutcome(List<CodeableConcept> theOutcome) {
this.outcome = theOutcome;
return this;
}
public boolean hasOutcome() {
return this.outcome != null && !this.outcome.isEmpty();
if (this.outcome == null)
return false;
for (CodeableConcept item : this.outcome)
if (!item.isEmpty())
return true;
return false;
}
public CodeableConcept addOutcome() { //3
CodeableConcept t = new CodeableConcept();
if (this.outcome == null)
this.outcome = new ArrayList<CodeableConcept>();
this.outcome.add(t);
return t;
}
public AdverseEvent addOutcome(CodeableConcept t) { //3
if (t == null)
return this;
if (this.outcome == null)
this.outcome = new ArrayList<CodeableConcept>();
this.outcome.add(t);
return this;
}
/**
* @param value {@link #outcome} (Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.)
* @return The first repetition of repeating field {@link #outcome}, creating it if it does not already exist {3}
*/
public AdverseEvent setOutcome(CodeableConcept value) {
this.outcome = value;
return this;
public CodeableConcept getOutcomeFirstRep() {
if (getOutcome().isEmpty()) {
addOutcome();
}
return getOutcome().get(0);
}
/**
@ -2921,10 +2942,10 @@ public class AdverseEvent extends DomainResource {
children.add(new Property("occurrence[x]", "dateTime|Period|Timing", "The date (and perhaps time) when the adverse event occurred.", 0, 1, occurrence));
children.add(new Property("detected", "dateTime", "Estimated or actual date the AdverseEvent began, in the opinion of the reporter.", 0, 1, detected));
children.add(new Property("recordedDate", "dateTime", "The date on which the existence of the AdverseEvent was first recorded.", 0, 1, recordedDate));
children.add(new Property("resultingCondition", "Reference(Condition)", "Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).", 0, java.lang.Integer.MAX_VALUE, resultingCondition));
children.add(new Property("resultingCondition", "Reference(Condition)", "Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall.", 0, java.lang.Integer.MAX_VALUE, resultingCondition));
children.add(new Property("location", "Reference(Location)", "The information about where the adverse event occurred.", 0, 1, location));
children.add(new Property("seriousness", "CodeableConcept", "Assessment whether this event, or averted event, was of clinical importance.", 0, 1, seriousness));
children.add(new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, 1, outcome));
children.add(new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, java.lang.Integer.MAX_VALUE, outcome));
children.add(new Property("recorder", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Information on who recorded the adverse event. May be the patient or a practitioner.", 0, 1, recorder));
children.add(new Property("participant", "", "Indicates who or what participated in the adverse event and how they were involved.", 0, java.lang.Integer.MAX_VALUE, participant));
children.add(new Property("suspectEntity", "", "Describes the entity that is suspected to have caused the adverse event.", 0, java.lang.Integer.MAX_VALUE, suspectEntity));
@ -2952,10 +2973,10 @@ public class AdverseEvent extends DomainResource {
case 1515218299: /*occurrenceTiming*/ return new Property("occurrence[x]", "Timing", "The date (and perhaps time) when the adverse event occurred.", 0, 1, occurrence);
case 1048254082: /*detected*/ return new Property("detected", "dateTime", "Estimated or actual date the AdverseEvent began, in the opinion of the reporter.", 0, 1, detected);
case -1952893826: /*recordedDate*/ return new Property("recordedDate", "dateTime", "The date on which the existence of the AdverseEvent was first recorded.", 0, 1, recordedDate);
case -830261258: /*resultingCondition*/ return new Property("resultingCondition", "Reference(Condition)", "Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).", 0, java.lang.Integer.MAX_VALUE, resultingCondition);
case -830261258: /*resultingCondition*/ return new Property("resultingCondition", "Reference(Condition)", "Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall.", 0, java.lang.Integer.MAX_VALUE, resultingCondition);
case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "The information about where the adverse event occurred.", 0, 1, location);
case -1551003909: /*seriousness*/ return new Property("seriousness", "CodeableConcept", "Assessment whether this event, or averted event, was of clinical importance.", 0, 1, seriousness);
case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, 1, outcome);
case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, java.lang.Integer.MAX_VALUE, outcome);
case -799233858: /*recorder*/ return new Property("recorder", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Information on who recorded the adverse event. May be the patient or a practitioner.", 0, 1, recorder);
case 767422259: /*participant*/ return new Property("participant", "", "Indicates who or what participated in the adverse event and how they were involved.", 0, java.lang.Integer.MAX_VALUE, participant);
case -1957422662: /*suspectEntity*/ return new Property("suspectEntity", "", "Describes the entity that is suspected to have caused the adverse event.", 0, java.lang.Integer.MAX_VALUE, suspectEntity);
@ -2985,7 +3006,7 @@ public class AdverseEvent extends DomainResource {
case -830261258: /*resultingCondition*/ return this.resultingCondition == null ? new Base[0] : this.resultingCondition.toArray(new Base[this.resultingCondition.size()]); // Reference
case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference
case -1551003909: /*seriousness*/ return this.seriousness == null ? new Base[0] : new Base[] {this.seriousness}; // CodeableConcept
case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // CodeableConcept
case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : this.outcome.toArray(new Base[this.outcome.size()]); // CodeableConcept
case -799233858: /*recorder*/ return this.recorder == null ? new Base[0] : new Base[] {this.recorder}; // Reference
case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // AdverseEventParticipantComponent
case -1957422662: /*suspectEntity*/ return this.suspectEntity == null ? new Base[0] : this.suspectEntity.toArray(new Base[this.suspectEntity.size()]); // AdverseEventSuspectEntityComponent
@ -3044,7 +3065,7 @@ public class AdverseEvent extends DomainResource {
this.seriousness = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case -1106507950: // outcome
this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
this.getOutcome().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
return value;
case -799233858: // recorder
this.recorder = TypeConvertor.castToReference(value); // Reference
@ -3106,7 +3127,7 @@ public class AdverseEvent extends DomainResource {
} else if (name.equals("seriousness")) {
this.seriousness = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("outcome")) {
this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
this.getOutcome().add(TypeConvertor.castToCodeableConcept(value));
} else if (name.equals("recorder")) {
this.recorder = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("participant")) {
@ -3145,7 +3166,7 @@ public class AdverseEvent extends DomainResource {
case -830261258: return addResultingCondition();
case 1901043637: return getLocation();
case -1551003909: return getSeriousness();
case -1106507950: return getOutcome();
case -1106507950: return addOutcome();
case -799233858: return getRecorder();
case 767422259: return addParticipant();
case -1957422662: return addSuspectEntity();
@ -3245,8 +3266,7 @@ public class AdverseEvent extends DomainResource {
return this.seriousness;
}
else if (name.equals("outcome")) {
this.outcome = new CodeableConcept();
return this.outcome;
return addOutcome();
}
else if (name.equals("recorder")) {
this.recorder = new Reference();
@ -3315,7 +3335,11 @@ public class AdverseEvent extends DomainResource {
};
dst.location = location == null ? null : location.copy();
dst.seriousness = seriousness == null ? null : seriousness.copy();
dst.outcome = outcome == null ? null : outcome.copy();
if (outcome != null) {
dst.outcome = new ArrayList<CodeableConcept>();
for (CodeableConcept i : outcome)
dst.outcome.add(i.copy());
};
dst.recorder = recorder == null ? null : recorder.copy();
if (participant != null) {
dst.participant = new ArrayList<AdverseEventParticipantComponent>();

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -53,7 +53,7 @@ public class Annotation extends DataType implements ICompositeType {
/**
* The individual responsible for making the annotation.
*/
@Child(name = "author", type = {Practitioner.class, Patient.class, RelatedPerson.class, Organization.class, StringType.class}, order=0, min=0, max=1, modifier=false, summary=true)
@Child(name = "author", type = {Practitioner.class, PractitionerRole.class, Patient.class, RelatedPerson.class, Organization.class, StringType.class}, order=0, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Individual responsible for the annotation", formalDefinition="The individual responsible for making the annotation." )
protected DataType author;
@ -235,7 +235,7 @@ public class Annotation extends DataType implements ICompositeType {
protected void listChildren(List<Property> children) {
super.listChildren(children);
children.add(new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author));
children.add(new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author));
children.add(new Property("time", "dateTime", "Indicates when this particular annotation was made.", 0, 1, time));
children.add(new Property("text", "markdown", "The text of the annotation in markdown format.", 0, 1, text));
}
@ -243,9 +243,9 @@ public class Annotation extends DataType implements ICompositeType {
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 1475597077: /*author[x]*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case -1406328437: /*author*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case 305515008: /*authorReference*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)", "The individual responsible for making the annotation.", 0, 1, author);
case 1475597077: /*author[x]*/ return new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case -1406328437: /*author*/ return new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author);
case 305515008: /*authorReference*/ return new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)", "The individual responsible for making the annotation.", 0, 1, author);
case 290249084: /*authorString*/ return new Property("author[x]", "string", "The individual responsible for making the annotation.", 0, 1, author);
case 3560141: /*time*/ return new Property("time", "dateTime", "Indicates when this particular annotation was made.", 0, 1, time);
case 3556653: /*text*/ return new Property("text", "markdown", "The text of the annotation in markdown format.", 0, 1, text);

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -138,7 +138,6 @@ public class Appointment extends DomainResource {
case ENTEREDINERROR: return "entered-in-error";
case CHECKEDIN: return "checked-in";
case WAITLIST: return "waitlist";
case NULL: return null;
default: return "?";
}
}
@ -154,7 +153,6 @@ public class Appointment extends DomainResource {
case ENTEREDINERROR: return "http://hl7.org/fhir/appointmentstatus";
case CHECKEDIN: return "http://hl7.org/fhir/appointmentstatus";
case WAITLIST: return "http://hl7.org/fhir/appointmentstatus";
case NULL: return null;
default: return "?";
}
}
@ -170,7 +168,6 @@ public class Appointment extends DomainResource {
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
case CHECKEDIN: return "When checked in, all pre-encounter administrative work is complete, and the encounter may begin. (where multiple patients are involved, they are all present).";
case WAITLIST: return "The appointment has been placed on a waitlist, to be scheduled/confirmed in the future when a slot/service is available.\nA specific time might or might not be pre-allocated.";
case NULL: return null;
default: return "?";
}
}
@ -186,7 +183,6 @@ public class Appointment extends DomainResource {
case ENTEREDINERROR: return "Entered in error";
case CHECKEDIN: return "Checked In";
case WAITLIST: return "Waitlisted";
case NULL: return null;
default: return "?";
}
}
@ -313,7 +309,6 @@ public class Appointment extends DomainResource {
case REQUIRED: return "required";
case OPTIONAL: return "optional";
case INFORMATIONONLY: return "information-only";
case NULL: return null;
default: return "?";
}
}
@ -322,7 +317,6 @@ public class Appointment extends DomainResource {
case REQUIRED: return "http://hl7.org/fhir/participantrequired";
case OPTIONAL: return "http://hl7.org/fhir/participantrequired";
case INFORMATIONONLY: return "http://hl7.org/fhir/participantrequired";
case NULL: return null;
default: return "?";
}
}
@ -331,7 +325,6 @@ public class Appointment extends DomainResource {
case REQUIRED: return "The participant is required to attend the appointment.";
case OPTIONAL: return "The participant may optionally attend the appointment.";
case INFORMATIONONLY: return "The participant is excluded from the appointment, and might not be informed of the appointment taking place. (Appointment is about them, not for them - such as 2 doctors discussing results about a patient's test).";
case NULL: return null;
default: return "?";
}
}
@ -340,7 +333,6 @@ public class Appointment extends DomainResource {
case REQUIRED: return "Required";
case OPTIONAL: return "Optional";
case INFORMATIONONLY: return "Information Only";
case NULL: return null;
default: return "?";
}
}
@ -887,9 +879,10 @@ public class Appointment extends DomainResource {
/**
* The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).
*/
@Child(name = "priority", type = {UnsignedIntType.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Child(name = "priority", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Used to make informed decisions if needing to re-prioritize", formalDefinition="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority)." )
protected UnsignedIntType priority;
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ActPriority")
protected CodeableConcept priority;
/**
* The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.
@ -977,7 +970,7 @@ The duration (usually in minutes) could also be provided to indicate the length
@Description(shortDefinition="Potential date/time interval(s) requested to allocate the appointment within", formalDefinition="A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system." )
protected List<Period> requestedPeriod;
private static final long serialVersionUID = 1849497415L;
private static final long serialVersionUID = -1194073126L;
/**
* Constructor
@ -1354,50 +1347,29 @@ The duration (usually in minutes) could also be provided to indicate the length
}
/**
* @return {@link #priority} (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
* @return {@link #priority} (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).)
*/
public UnsignedIntType getPriorityElement() {
public CodeableConcept getPriority() {
if (this.priority == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Appointment.priority");
else if (Configuration.doAutoCreate())
this.priority = new UnsignedIntType(); // bb
this.priority = new CodeableConcept(); // cc
return this.priority;
}
public boolean hasPriorityElement() {
return this.priority != null && !this.priority.isEmpty();
}
public boolean hasPriority() {
return this.priority != null && !this.priority.isEmpty();
}
/**
* @param value {@link #priority} (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
* @param value {@link #priority} (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).)
*/
public Appointment setPriorityElement(UnsignedIntType value) {
public Appointment setPriority(CodeableConcept value) {
this.priority = value;
return this;
}
/**
* @return The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).
*/
public int getPriority() {
return this.priority == null || this.priority.isEmpty() ? 0 : this.priority.getValue();
}
/**
* @param value The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).
*/
public Appointment setPriority(int value) {
if (this.priority == null)
this.priority = new UnsignedIntType();
this.priority.setValue(value);
return this;
}
/**
* @return {@link #description} (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
*/
@ -2014,7 +1986,7 @@ The duration (usually in minutes) could also be provided to indicate the length
children.add(new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty));
children.add(new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that has been booked in the slot (not service type).", 0, 1, appointmentType));
children.add(new Property("reason", "CodeableReference(Condition|Procedure|Observation|ImmunizationRecommendation)", "The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reason));
children.add(new Property("priority", "unsignedInt", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority));
children.add(new Property("priority", "CodeableConcept", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority));
children.add(new Property("description", "string", "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", 0, 1, description));
children.add(new Property("supportingInformation", "Reference(Any)", "Additional information to support the appointment provided when making the appointment.", 0, java.lang.Integer.MAX_VALUE, supportingInformation));
children.add(new Property("start", "instant", "Date/Time that the appointment is to take place.", 0, 1, start));
@ -2040,7 +2012,7 @@ The duration (usually in minutes) could also be provided to indicate the length
case -1694759682: /*specialty*/ return new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty);
case -1596426375: /*appointmentType*/ return new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that has been booked in the slot (not service type).", 0, 1, appointmentType);
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Procedure|Observation|ImmunizationRecommendation)", "The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reason);
case -1165461084: /*priority*/ return new Property("priority", "unsignedInt", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority);
case -1165461084: /*priority*/ return new Property("priority", "CodeableConcept", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority);
case -1724546052: /*description*/ return new Property("description", "string", "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", 0, 1, description);
case -1248768647: /*supportingInformation*/ return new Property("supportingInformation", "Reference(Any)", "Additional information to support the appointment provided when making the appointment.", 0, java.lang.Integer.MAX_VALUE, supportingInformation);
case 109757538: /*start*/ return new Property("start", "instant", "Date/Time that the appointment is to take place.", 0, 1, start);
@ -2069,7 +2041,7 @@ The duration (usually in minutes) could also be provided to indicate the length
case -1694759682: /*specialty*/ return this.specialty == null ? new Base[0] : this.specialty.toArray(new Base[this.specialty.size()]); // CodeableConcept
case -1596426375: /*appointmentType*/ return this.appointmentType == null ? new Base[0] : new Base[] {this.appointmentType}; // CodeableConcept
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // UnsignedIntType
case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // CodeableConcept
case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
case -1248768647: /*supportingInformation*/ return this.supportingInformation == null ? new Base[0] : this.supportingInformation.toArray(new Base[this.supportingInformation.size()]); // Reference
case 109757538: /*start*/ return this.start == null ? new Base[0] : new Base[] {this.start}; // InstantType
@ -2116,7 +2088,7 @@ The duration (usually in minutes) could also be provided to indicate the length
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
return value;
case -1165461084: // priority
this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType
this.priority = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case -1724546052: // description
this.description = TypeConvertor.castToString(value); // StringType
@ -2179,7 +2151,7 @@ The duration (usually in minutes) could also be provided to indicate the length
} else if (name.equals("reason")) {
this.getReason().add(TypeConvertor.castToCodeableReference(value));
} else if (name.equals("priority")) {
this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType
this.priority = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("description")) {
this.description = TypeConvertor.castToString(value); // StringType
} else if (name.equals("supportingInformation")) {
@ -2220,7 +2192,7 @@ The duration (usually in minutes) could also be provided to indicate the length
case -1694759682: return addSpecialty();
case -1596426375: return getAppointmentType();
case -934964668: return addReason();
case -1165461084: return getPriorityElement();
case -1165461084: return getPriority();
case -1724546052: return getDescriptionElement();
case -1248768647: return addSupportingInformation();
case 109757538: return getStartElement();
@ -2249,7 +2221,7 @@ The duration (usually in minutes) could also be provided to indicate the length
case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"};
case -1596426375: /*appointmentType*/ return new String[] {"CodeableConcept"};
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
case -1165461084: /*priority*/ return new String[] {"unsignedInt"};
case -1165461084: /*priority*/ return new String[] {"CodeableConcept"};
case -1724546052: /*description*/ return new String[] {"string"};
case -1248768647: /*supportingInformation*/ return new String[] {"Reference"};
case 109757538: /*start*/ return new String[] {"instant"};
@ -2296,7 +2268,8 @@ The duration (usually in minutes) could also be provided to indicate the length
return addReason();
}
else if (name.equals("priority")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority");
this.priority = new CodeableConcept();
return this.priority;
}
else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.description");
@ -2443,9 +2416,9 @@ The duration (usually in minutes) could also be provided to indicate the length
if (!(other_ instanceof Appointment))
return false;
Appointment o = (Appointment) other_;
return compareValues(status, o.status, true) && compareValues(priority, o.priority, true) && compareValues(description, o.description, true)
&& compareValues(start, o.start, true) && compareValues(end, o.end, true) && compareValues(minutesDuration, o.minutesDuration, true)
&& compareValues(created, o.created, true) && compareValues(comment, o.comment, true) && compareValues(patientInstruction, o.patientInstruction, true)
return compareValues(status, o.status, true) && compareValues(description, o.description, true) && compareValues(start, o.start, true)
&& compareValues(end, o.end, true) && compareValues(minutesDuration, o.minutesDuration, true) && compareValues(created, o.created, true)
&& compareValues(comment, o.comment, true) && compareValues(patientInstruction, o.patientInstruction, true)
;
}
@ -2581,7 +2554,7 @@ The duration (usually in minutes) could also be provided to indicate the length
* Path: <b>Appointment.participant.actor.where(resolve() is Location)</b><br>
* </p>
*/
@SearchParamDefinition(name="location", path="Appointment.participant.actor.where(resolve() is Location)", description="This location is listed in the participants of the appointment", type="reference", target={Location.class } )
@SearchParamDefinition(name="location", path="Appointment.participant.actor.where(resolve() is Location)", description="This location is listed in the participants of the appointment", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_LOCATION = "location";
/**
* <b>Fluent Client</b> search parameter constant for <b>location</b>
@ -2627,7 +2600,7 @@ The duration (usually in minutes) could also be provided to indicate the length
* Path: <b>Appointment.participant.actor.where(resolve() is Patient)</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Appointment.participant.actor.where(resolve() is Patient)", description="One of the individuals of the appointment is this patient", type="reference", target={Patient.class } )
@SearchParamDefinition(name="patient", path="Appointment.participant.actor.where(resolve() is Patient)", description="One of the individuals of the appointment is this patient", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -2653,7 +2626,7 @@ The duration (usually in minutes) could also be provided to indicate the length
* Path: <b>Appointment.participant.actor.where(resolve() is Practitioner)</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="Appointment.participant.actor.where(resolve() is Practitioner)", description="One of the individuals of the appointment is this practitioner", type="reference", target={Practitioner.class } )
@SearchParamDefinition(name="practitioner", path="Appointment.participant.actor.where(resolve() is Practitioner)", description="One of the individuals of the appointment is this practitioner", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_PRACTITIONER = "practitioner";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>
@ -2831,7 +2804,7 @@ The duration (usually in minutes) could also be provided to indicate the length
* Path: <b>Appointment.supportingInformation</b><br>
* </p>
*/
@SearchParamDefinition(name="supporting-info", path="Appointment.supportingInformation", description="Additional information to support the appointment", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
@SearchParamDefinition(name="supporting-info", path="Appointment.supportingInformation", description="Additional information to support the appointment", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_SUPPORTING_INFO = "supporting-info";
/**
* <b>Fluent Client</b> search parameter constant for <b>supporting-info</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -789,7 +789,7 @@ public class AppointmentResponse extends DomainResource {
* Path: <b>AppointmentResponse.actor.where(resolve() is Location)</b><br>
* </p>
*/
@SearchParamDefinition(name="location", path="AppointmentResponse.actor.where(resolve() is Location)", description="This Response is for this Location", type="reference", target={Location.class } )
@SearchParamDefinition(name="location", path="AppointmentResponse.actor.where(resolve() is Location)", description="This Response is for this Location", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_LOCATION = "location";
/**
* <b>Fluent Client</b> search parameter constant for <b>location</b>
@ -835,7 +835,7 @@ public class AppointmentResponse extends DomainResource {
* Path: <b>AppointmentResponse.actor.where(resolve() is Patient)</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="AppointmentResponse.actor.where(resolve() is Patient)", description="This Response is for this Patient", type="reference", target={Patient.class } )
@SearchParamDefinition(name="patient", path="AppointmentResponse.actor.where(resolve() is Patient)", description="This Response is for this Patient", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -861,7 +861,7 @@ public class AppointmentResponse extends DomainResource {
* Path: <b>AppointmentResponse.actor.where(resolve() is Practitioner)</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="AppointmentResponse.actor.where(resolve() is Practitioner)", description="This Response is for this Practitioner", type="reference", target={Practitioner.class } )
@SearchParamDefinition(name="practitioner", path="AppointmentResponse.actor.where(resolve() is Practitioner)", description="This Response is for this Practitioner", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_PRACTITIONER = "practitioner";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -103,7 +103,6 @@ public class AuditEvent extends DomainResource {
case U: return "U";
case D: return "D";
case E: return "E";
case NULL: return null;
default: return "?";
}
}
@ -114,7 +113,6 @@ public class AuditEvent extends DomainResource {
case U: return "http://hl7.org/fhir/audit-event-action";
case D: return "http://hl7.org/fhir/audit-event-action";
case E: return "http://hl7.org/fhir/audit-event-action";
case NULL: return null;
default: return "?";
}
}
@ -125,7 +123,6 @@ public class AuditEvent extends DomainResource {
case U: return "Update data, such as revise patient information.";
case D: return "Delete items, such as a doctor master file record.";
case E: return "Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation.";
case NULL: return null;
default: return "?";
}
}
@ -136,7 +133,6 @@ public class AuditEvent extends DomainResource {
case U: return "Update";
case D: return "Delete";
case E: return "Execute";
case NULL: return null;
default: return "?";
}
}
@ -247,7 +243,6 @@ public class AuditEvent extends DomainResource {
case _3: return "3";
case _4: return "4";
case _5: return "5";
case NULL: return null;
default: return "?";
}
}
@ -258,7 +253,6 @@ public class AuditEvent extends DomainResource {
case _3: return "http://hl7.org/fhir/network-type";
case _4: return "http://hl7.org/fhir/network-type";
case _5: return "http://hl7.org/fhir/network-type";
case NULL: return null;
default: return "?";
}
}
@ -269,7 +263,6 @@ public class AuditEvent extends DomainResource {
case _3: return "The assigned telephone number.";
case _4: return "The assigned email address.";
case _5: return "URI (User directory, HTTP-PUT, ftp, etc.).";
case NULL: return null;
default: return "?";
}
}
@ -280,7 +273,6 @@ public class AuditEvent extends DomainResource {
case _3: return "Telephone Number";
case _4: return "Email address";
case _5: return "URI";
case NULL: return null;
default: return "?";
}
}
@ -412,7 +404,6 @@ public class AuditEvent extends DomainResource {
case NOTICE: return "notice";
case INFORMATIONAL: return "informational";
case DEBUG: return "debug";
case NULL: return null;
default: return "?";
}
}
@ -426,7 +417,6 @@ public class AuditEvent extends DomainResource {
case NOTICE: return "http://hl7.org/fhir/audit-event-severity";
case INFORMATIONAL: return "http://hl7.org/fhir/audit-event-severity";
case DEBUG: return "http://hl7.org/fhir/audit-event-severity";
case NULL: return null;
default: return "?";
}
}
@ -440,7 +430,6 @@ public class AuditEvent extends DomainResource {
case NOTICE: return "Normal but significant condition.";
case INFORMATIONAL: return "Informational messages.";
case DEBUG: return "Debug-level messages.";
case NULL: return null;
default: return "?";
}
}
@ -454,7 +443,6 @@ public class AuditEvent extends DomainResource {
case NOTICE: return "Notice";
case INFORMATIONAL: return "Informational";
case DEBUG: return "Debug";
case NULL: return null;
default: return "?";
}
}
@ -1610,7 +1598,7 @@ public class AuditEvent extends DomainResource {
*/
@Child(name = "type", type = {Coding.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="The type of source where event originated", formalDefinition="Code specifying the type of source where event originated." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/audit-source-type")
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/security-source-type")
protected List<Coding> type;
private static final long serialVersionUID = 31014963L;
@ -2826,28 +2814,42 @@ public class AuditEvent extends DomainResource {
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-PurposeOfUse")
protected List<CodeableConcept> purposeOfEvent;
/**
* Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.
*/
@Child(name = "basedOn", type = {CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Workflow authorization within which this event occurred", formalDefinition="Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon." )
protected List<Reference> basedOn;
/**
* This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).
*/
@Child(name = "encounter", type = {Encounter.class}, order=9, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Encounter within which this event occurred or which the event is tightly associated", formalDefinition="This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests)." )
protected Reference encounter;
/**
* An actor taking an active role in the event or activity that is logged.
*/
@Child(name = "agent", type = {}, order=8, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "agent", type = {}, order=10, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Actor involved in the event", formalDefinition="An actor taking an active role in the event or activity that is logged." )
protected List<AuditEventAgentComponent> agent;
/**
* The system that is reporting the event.
*/
@Child(name = "source", type = {}, order=9, min=1, max=1, modifier=false, summary=false)
@Child(name = "source", type = {}, order=11, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="Audit Event Reporter", formalDefinition="The system that is reporting the event." )
protected AuditEventSourceComponent source;
/**
* Specific instances of data or objects that have been accessed.
*/
@Child(name = "entity", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "entity", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Data or objects used", formalDefinition="Specific instances of data or objects that have been accessed." )
protected List<AuditEventEntityComponent> entity;
private static final long serialVersionUID = -446219294L;
private static final long serialVersionUID = -702709297L;
/**
* Constructor
@ -3188,6 +3190,83 @@ public class AuditEvent extends DomainResource {
return getPurposeOfEvent().get(0);
}
/**
* @return {@link #basedOn} (Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.)
*/
public List<Reference> getBasedOn() {
if (this.basedOn == null)
this.basedOn = new ArrayList<Reference>();
return this.basedOn;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public AuditEvent setBasedOn(List<Reference> theBasedOn) {
this.basedOn = theBasedOn;
return this;
}
public boolean hasBasedOn() {
if (this.basedOn == null)
return false;
for (Reference item : this.basedOn)
if (!item.isEmpty())
return true;
return false;
}
public Reference addBasedOn() { //3
Reference t = new Reference();
if (this.basedOn == null)
this.basedOn = new ArrayList<Reference>();
this.basedOn.add(t);
return t;
}
public AuditEvent addBasedOn(Reference t) { //3
if (t == null)
return this;
if (this.basedOn == null)
this.basedOn = new ArrayList<Reference>();
this.basedOn.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3}
*/
public Reference getBasedOnFirstRep() {
if (getBasedOn().isEmpty()) {
addBasedOn();
}
return getBasedOn().get(0);
}
/**
* @return {@link #encounter} (This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).)
*/
public Reference getEncounter() {
if (this.encounter == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AuditEvent.encounter");
else if (Configuration.doAutoCreate())
this.encounter = new Reference(); // cc
return this.encounter;
}
public boolean hasEncounter() {
return this.encounter != null && !this.encounter.isEmpty();
}
/**
* @param value {@link #encounter} (This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).)
*/
public AuditEvent setEncounter(Reference value) {
this.encounter = value;
return this;
}
/**
* @return {@link #agent} (An actor taking an active role in the event or activity that is logged.)
*/
@ -3328,6 +3407,8 @@ public class AuditEvent extends DomainResource {
children.add(new Property("recorded", "instant", "The time when the event was recorded.", 0, 1, recorded));
children.add(new Property("outcome", "CodeableConcept", "Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.", 0, 1, outcome));
children.add(new Property("purposeOfEvent", "CodeableConcept", "The purposeOfUse (reason) that was used during the event being recorded.", 0, java.lang.Integer.MAX_VALUE, purposeOfEvent));
children.add(new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.", 0, java.lang.Integer.MAX_VALUE, basedOn));
children.add(new Property("encounter", "Reference(Encounter)", "This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).", 0, 1, encounter));
children.add(new Property("agent", "", "An actor taking an active role in the event or activity that is logged.", 0, java.lang.Integer.MAX_VALUE, agent));
children.add(new Property("source", "", "The system that is reporting the event.", 0, 1, source));
children.add(new Property("entity", "", "Specific instances of data or objects that have been accessed.", 0, java.lang.Integer.MAX_VALUE, entity));
@ -3344,6 +3425,8 @@ public class AuditEvent extends DomainResource {
case -799233872: /*recorded*/ return new Property("recorded", "instant", "The time when the event was recorded.", 0, 1, recorded);
case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.", 0, 1, outcome);
case -341917691: /*purposeOfEvent*/ return new Property("purposeOfEvent", "CodeableConcept", "The purposeOfUse (reason) that was used during the event being recorded.", 0, java.lang.Integer.MAX_VALUE, purposeOfEvent);
case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.", 0, java.lang.Integer.MAX_VALUE, basedOn);
case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).", 0, 1, encounter);
case 92750597: /*agent*/ return new Property("agent", "", "An actor taking an active role in the event or activity that is logged.", 0, java.lang.Integer.MAX_VALUE, agent);
case -896505829: /*source*/ return new Property("source", "", "The system that is reporting the event.", 0, 1, source);
case -1298275357: /*entity*/ return new Property("entity", "", "Specific instances of data or objects that have been accessed.", 0, java.lang.Integer.MAX_VALUE, entity);
@ -3363,6 +3446,8 @@ public class AuditEvent extends DomainResource {
case -799233872: /*recorded*/ return this.recorded == null ? new Base[0] : new Base[] {this.recorded}; // InstantType
case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // CodeableConcept
case -341917691: /*purposeOfEvent*/ return this.purposeOfEvent == null ? new Base[0] : this.purposeOfEvent.toArray(new Base[this.purposeOfEvent.size()]); // CodeableConcept
case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference
case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference
case 92750597: /*agent*/ return this.agent == null ? new Base[0] : this.agent.toArray(new Base[this.agent.size()]); // AuditEventAgentComponent
case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // AuditEventSourceComponent
case -1298275357: /*entity*/ return this.entity == null ? new Base[0] : this.entity.toArray(new Base[this.entity.size()]); // AuditEventEntityComponent
@ -3400,6 +3485,12 @@ public class AuditEvent extends DomainResource {
case -341917691: // purposeOfEvent
this.getPurposeOfEvent().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
return value;
case -332612366: // basedOn
this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference
return value;
case 1524132147: // encounter
this.encounter = TypeConvertor.castToReference(value); // Reference
return value;
case 92750597: // agent
this.getAgent().add((AuditEventAgentComponent) value); // AuditEventAgentComponent
return value;
@ -3434,6 +3525,10 @@ public class AuditEvent extends DomainResource {
this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("purposeOfEvent")) {
this.getPurposeOfEvent().add(TypeConvertor.castToCodeableConcept(value));
} else if (name.equals("basedOn")) {
this.getBasedOn().add(TypeConvertor.castToReference(value));
} else if (name.equals("encounter")) {
this.encounter = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("agent")) {
this.getAgent().add((AuditEventAgentComponent) value);
} else if (name.equals("source")) {
@ -3456,6 +3551,8 @@ public class AuditEvent extends DomainResource {
case -799233872: return getRecordedElement();
case -1106507950: return getOutcome();
case -341917691: return addPurposeOfEvent();
case -332612366: return addBasedOn();
case 1524132147: return getEncounter();
case 92750597: return addAgent();
case -896505829: return getSource();
case -1298275357: return addEntity();
@ -3475,6 +3572,8 @@ public class AuditEvent extends DomainResource {
case -799233872: /*recorded*/ return new String[] {"instant"};
case -1106507950: /*outcome*/ return new String[] {"CodeableConcept"};
case -341917691: /*purposeOfEvent*/ return new String[] {"CodeableConcept"};
case -332612366: /*basedOn*/ return new String[] {"Reference"};
case 1524132147: /*encounter*/ return new String[] {"Reference"};
case 92750597: /*agent*/ return new String[] {};
case -896505829: /*source*/ return new String[] {};
case -1298275357: /*entity*/ return new String[] {};
@ -3512,6 +3611,13 @@ public class AuditEvent extends DomainResource {
else if (name.equals("purposeOfEvent")) {
return addPurposeOfEvent();
}
else if (name.equals("basedOn")) {
return addBasedOn();
}
else if (name.equals("encounter")) {
this.encounter = new Reference();
return this.encounter;
}
else if (name.equals("agent")) {
return addAgent();
}
@ -3555,6 +3661,12 @@ public class AuditEvent extends DomainResource {
for (CodeableConcept i : purposeOfEvent)
dst.purposeOfEvent.add(i.copy());
};
if (basedOn != null) {
dst.basedOn = new ArrayList<Reference>();
for (Reference i : basedOn)
dst.basedOn.add(i.copy());
};
dst.encounter = encounter == null ? null : encounter.copy();
if (agent != null) {
dst.agent = new ArrayList<AuditEventAgentComponent>();
for (AuditEventAgentComponent i : agent)
@ -3582,8 +3694,8 @@ public class AuditEvent extends DomainResource {
return compareDeep(type, o.type, true) && compareDeep(subtype, o.subtype, true) && compareDeep(action, o.action, true)
&& compareDeep(severity, o.severity, true) && compareDeep(period, o.period, true) && compareDeep(recorded, o.recorded, true)
&& compareDeep(outcome, o.outcome, true) && compareDeep(purposeOfEvent, o.purposeOfEvent, true)
&& compareDeep(agent, o.agent, true) && compareDeep(source, o.source, true) && compareDeep(entity, o.entity, true)
;
&& compareDeep(basedOn, o.basedOn, true) && compareDeep(encounter, o.encounter, true) && compareDeep(agent, o.agent, true)
&& compareDeep(source, o.source, true) && compareDeep(entity, o.entity, true);
}
@Override
@ -3599,7 +3711,8 @@ public class AuditEvent extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, subtype, action, severity
, period, recorded, outcome, purposeOfEvent, agent, source, entity);
, period, recorded, outcome, purposeOfEvent, basedOn, encounter, agent, source
, entity);
}
@Override
@ -3647,6 +3760,32 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS);
/**
* Search parameter: <b>agent</b>
* <p>
* Description: <b>Identifier of who</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.who</b><br>
* </p>
*/
@SearchParamDefinition(name="agent", path="AuditEvent.agent.who", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_AGENT = "agent";
/**
* <b>Fluent Client</b> search parameter constant for <b>agent</b>
* <p>
* Description: <b>Identifier of who</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.who</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AGENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AGENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:agent</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_AGENT = new ca.uhn.fhir.model.api.Include("AuditEvent:agent").toLocked();
/**
* Search parameter: <b>agent-name</b>
* <p>
@ -3687,32 +3826,6 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam AGENT_ROLE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_AGENT_ROLE);
/**
* Search parameter: <b>agent</b>
* <p>
* Description: <b>Identifier of who</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.who</b><br>
* </p>
*/
@SearchParamDefinition(name="agent", path="AuditEvent.agent.who", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
public static final String SP_AGENT = "agent";
/**
* <b>Fluent Client</b> search parameter constant for <b>agent</b>
* <p>
* Description: <b>Identifier of who</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.who</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AGENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AGENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:agent</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_AGENT = new ca.uhn.fhir.model.api.Include("AuditEvent:agent").toLocked();
/**
* Search parameter: <b>altid</b>
* <p>
@ -3733,6 +3846,32 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ALTID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ALTID);
/**
* Search parameter: <b>based-on</b>
* <p>
* Description: <b>Reference to the service request.</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.basedOn</b><br>
* </p>
*/
@SearchParamDefinition(name="based-on", path="AuditEvent.basedOn", description="Reference to the service request.", type="reference", target={CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class } )
public static final String SP_BASED_ON = "based-on";
/**
* <b>Fluent Client</b> search parameter constant for <b>based-on</b>
* <p>
* Description: <b>Reference to the service request.</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.basedOn</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:based-on</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("AuditEvent:based-on").toLocked();
/**
* Search parameter: <b>date</b>
* <p>
@ -3753,6 +3892,58 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
/**
* Search parameter: <b>encounter</b>
* <p>
* Description: <b>Encounter related to the activity recorded in the AuditEvent</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="AuditEvent.encounter", description="Encounter related to the activity recorded in the AuditEvent", type="reference", target={Encounter.class } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>
* <p>
* Description: <b>Encounter related to the activity recorded in the AuditEvent</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.encounter</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:encounter</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("AuditEvent:encounter").toLocked();
/**
* Search parameter: <b>entity</b>
* <p>
* Description: <b>Specific instance of resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.what</b><br>
* </p>
*/
@SearchParamDefinition(name="entity", path="AuditEvent.entity.what", description="Specific instance of resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_ENTITY = "entity";
/**
* <b>Fluent Client</b> search parameter constant for <b>entity</b>
* <p>
* Description: <b>Specific instance of resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.what</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTITY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENTITY);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:entity</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTITY = new ca.uhn.fhir.model.api.Include("AuditEvent:entity").toLocked();
/**
* Search parameter: <b>entity-name</b>
* <p>
@ -3813,32 +4004,6 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ENTITY_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ENTITY_TYPE);
/**
* Search parameter: <b>entity</b>
* <p>
* Description: <b>Specific instance of resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.what</b><br>
* </p>
*/
@SearchParamDefinition(name="entity", path="AuditEvent.entity.what", description="Specific instance of resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_ENTITY = "entity";
/**
* <b>Fluent Client</b> search parameter constant for <b>entity</b>
* <p>
* Description: <b>Specific instance of resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.what</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTITY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENTITY);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:entity</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTITY = new ca.uhn.fhir.model.api.Include("AuditEvent:entity").toLocked();
/**
* Search parameter: <b>outcome</b>
* <p>
@ -3867,7 +4032,7 @@ public class AuditEvent extends DomainResource {
* Path: <b>AuditEvent.agent.who.where(resolve() is Patient) | AuditEvent.entity.what.where(resolve() is Patient)</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="AuditEvent.agent.who.where(resolve() is Patient) | AuditEvent.entity.what.where(resolve() is Patient)", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } )
@SearchParamDefinition(name="patient", path="AuditEvent.agent.who.where(resolve() is Patient) | AuditEvent.entity.what.where(resolve() is Patient)", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -234,7 +234,7 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension);
}
// Manual code (from Configuration.txt)t:
// Manual code (from Configuration.txt):
public void checkNoModifiers(String noun, String verb) throws FHIRException {
if (hasModifierExtension()) {
throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb);

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -234,7 +234,7 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension);
}
// Manual code (from Configuration.txt)t:
// Manual code (from Configuration.txt):
public void checkNoModifiers(String noun, String verb) throws FHIRException {
if (hasModifierExtension()) {
throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb);

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -557,7 +557,7 @@ public class Basic extends DomainResource {
* Path: <b>Basic.subject.where(resolve() is Patient)</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Basic.subject.where(resolve() is Patient)", description="Identifies the focus of this resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } )
@SearchParamDefinition(name="patient", path="Basic.subject.where(resolve() is Patient)", description="Identifies the focus of this resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -583,7 +583,7 @@ public class Basic extends DomainResource {
* Path: <b>Basic.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the focus of this resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
@SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the focus of this resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -361,7 +361,7 @@ public class Binary extends BaseBinary implements IBaseBinary {
return ResourceType.Binary;
}
// Manual code (from Configuration.txt)t:
// Manual code (from Configuration.txt):
@Override
public byte[] getContent() {
return getData();

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -105,7 +105,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FLUID: return "fluid";
case CELLS: return "cells";
case BIOLOGICALAGENT: return "biologicalAgent";
case NULL: return null;
default: return "?";
}
}
@ -116,7 +115,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FLUID: return "http://hl7.org/fhir/product-category";
case CELLS: return "http://hl7.org/fhir/product-category";
case BIOLOGICALAGENT: return "http://hl7.org/fhir/product-category";
case NULL: return null;
default: return "?";
}
}
@ -127,7 +125,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FLUID: return "Body fluid.";
case CELLS: return "Collection of cells.";
case BIOLOGICALAGENT: return "Biological agent of unspecified type.";
case NULL: return null;
default: return "?";
}
}
@ -138,7 +135,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FLUID: return "Fluid";
case CELLS: return "Cells";
case BIOLOGICALAGENT: return "BiologicalAgent";
case NULL: return null;
default: return "?";
}
}
@ -228,15 +224,13 @@ public class BiologicallyDerivedProduct extends DomainResource {
switch (this) {
case AVAILABLE: return "available";
case UNAVAILABLE: return "unavailable";
case NULL: return null;
default: return "?";
}
}
public String getSystem() {
switch (this) {
case AVAILABLE: return "http://hl7.org/fhir/product-status";
case UNAVAILABLE: return "http://hl7.org/fhir/product-status";
case NULL: return null;
case AVAILABLE: return "http://hl7.org/fhir/biological-product-status";
case UNAVAILABLE: return "http://hl7.org/fhir/biological-product-status";
default: return "?";
}
}
@ -244,7 +238,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
switch (this) {
case AVAILABLE: return "Product is currently available for use.";
case UNAVAILABLE: return "Product is not currently available for use.";
case NULL: return null;
default: return "?";
}
}
@ -252,7 +245,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
switch (this) {
case AVAILABLE: return "Available";
case UNAVAILABLE: return "Unavailable";
case NULL: return null;
default: return "?";
}
}
@ -331,7 +323,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FARENHEIT: return "farenheit";
case CELSIUS: return "celsius";
case KELVIN: return "kelvin";
case NULL: return null;
default: return "?";
}
}
@ -340,7 +331,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FARENHEIT: return "http://hl7.org/fhir/product-storage-scale";
case CELSIUS: return "http://hl7.org/fhir/product-storage-scale";
case KELVIN: return "http://hl7.org/fhir/product-storage-scale";
case NULL: return null;
default: return "?";
}
}
@ -349,7 +339,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FARENHEIT: return "Fahrenheit temperature scale.";
case CELSIUS: return "Celsius or centigrade temperature scale.";
case KELVIN: return "Kelvin absolute thermodynamic temperature scale.";
case NULL: return null;
default: return "?";
}
}
@ -358,7 +347,6 @@ public class BiologicallyDerivedProduct extends DomainResource {
case FARENHEIT: return "Fahrenheit";
case CELSIUS: return "Celsius";
case KELVIN: return "Kelvin";
case NULL: return null;
default: return "?";
}
}
@ -1722,7 +1710,7 @@ public class BiologicallyDerivedProduct extends DomainResource {
*/
@Child(name = "status", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="available | unavailable", formalDefinition="Whether the product is currently available." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/product-status")
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/biological-product-status")
protected Enumeration<BiologicallyDerivedProductStatus> status;
/**

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model;
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent
// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0
import java.util.ArrayList;
import java.util.Date;
@ -140,7 +140,6 @@ public class Bundle extends Resource implements IBaseBundle {
case SEARCHSET: return "searchset";
case COLLECTION: return "collection";
case SUBSCRIPTIONNOTIFICATION: return "subscription-notification";
case NULL: return null;
default: return "?";
}
}
@ -156,7 +155,6 @@ public class Bundle extends Resource implements IBaseBundle {
case SEARCHSET: return "http://hl7.org/fhir/bundle-type";
case COLLECTION: return "http://hl7.org/fhir/bundle-type";
case SUBSCRIPTIONNOTIFICATION: return "http://hl7.org/fhir/bundle-type";
case NULL: return null;
default: return "?";
}
}
@ -172,7 +170,6 @@ public class Bundle extends Resource implements IBaseBundle {
case SEARCHSET: return "The bundle is a list of resources returned as a result of a search/query interaction, operation, or message.";
case COLLECTION: return "The bundle is a set of resources collected into a single package for ease of distribution that imposes no processing obligations or behavioral rules beyond persistence.";
case SUBSCRIPTIONNOTIFICATION: return "The bundle has been generated by a Subscription to communicate information to a client.";
case NULL: return null;
default: return "?";
}
}
@ -188,7 +185,6 @@ public class Bundle extends Resource implements IBaseBundle {
case SEARCHSET: return "Search Results";
case COLLECTION: return "Collection";
case SUBSCRIPTIONNOTIFICATION: return "Subscription Notification";
case NULL: return null;
default: return "?";
}
}
@ -336,7 +332,6 @@ public class Bundle extends Resource implements IBaseBundle {
case PUT: return "PUT";
case DELETE: return "DELETE";
case PATCH: return "PATCH";
case NULL: return null;
default: return "?";
}
}
@ -348,7 +343,6 @@ public class Bundle extends Resource implements IBaseBundle {
case PUT: return "http://hl7.org/fhir/http-verb";
case DELETE: return "http://hl7.org/fhir/http-verb";
case PATCH: return "http://hl7.org/fhir/http-verb";
case NULL: return null;
default: return "?";
}
}
@ -360,7 +354,6 @@ public class Bundle extends Resource implements IBaseBundle {
case PUT: return "HTTP PUT Command.";
case DELETE: return "HTTP DELETE Command.";
case PATCH: return "HTTP PATCH Command.";
case NULL: return null;
default: return "?";
}
}
@ -372,7 +365,6 @@ public class Bundle extends Resource implements IBaseBundle {
case PUT: return "PUT";
case DELETE: return "DELETE";
case PATCH: return "PATCH";
case NULL: return null;
default: return "?";
}
}
@ -475,7 +467,6 @@ public class Bundle extends Resource implements IBaseBundle {
case MATCH: return "match";
case INCLUDE: return "include";
case OUTCOME: return "outcome";
case NULL: return null;
default: return "?";
}
}
@ -484,7 +475,6 @@ public class Bundle extends Resource implements IBaseBundle {
case MATCH: return "http://hl7.org/fhir/search-entry-mode";
case INCLUDE: return "http://hl7.org/fhir/search-entry-mode";
case OUTCOME: return "http://hl7.org/fhir/search-entry-mode";
case NULL: return null;
default: return "?";
}
}
@ -493,7 +483,6 @@ public class Bundle extends Resource implements IBaseBundle {
case MATCH: return "This resource matched the search specification.";
case INCLUDE: return "This resource is returned because it is referred to from another resource in the search set.";
case OUTCOME: return "An OperationOutcome that provides additional information about the processing of a search.";
case NULL: return null;
default: return "?";
}
}
@ -502,7 +491,6 @@ public class Bundle extends Resource implements IBaseBundle {
case MATCH: return "Match";
case INCLUDE: return "Include";
case OUTCOME: return "Outcome";
case NULL: return null;
default: return "?";
}
}
@ -3129,7 +3117,7 @@ public class Bundle extends Resource implements IBaseBundle {
* Path: <b>Bundle.entry[0].resource</b><br>
* </p>
*/
@SearchParamDefinition(name="composition", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to search its contents", type="reference", target={Composition.class } )
@SearchParamDefinition(name="composition", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to search its contents", type="reference" )
public static final String SP_COMPOSITION = "composition";
/**
* <b>Fluent Client</b> search parameter constant for <b>composition</b>
@ -3175,7 +3163,7 @@ public class Bundle extends Resource implements IBaseBundle {
* Path: <b>Bundle.entry[0].resource</b><br>
* </p>
*/
@SearchParamDefinition(name="message", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents", type="reference", target={MessageHeader.class } )
@SearchParamDefinition(name="message", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents", type="reference" )
public static final String SP_MESSAGE = "message";
/**
* <b>Fluent Client</b> search parameter constant for <b>message</b>
@ -3233,7 +3221,7 @@ public class Bundle extends Resource implements IBaseBundle {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE);
// Manual code (from Configuration.txt)t:
// Manual code (from Configuration.txt):
/**
* Returns the {@link #getLink() link} which matches a given {@link BundleLinkComponent#getRelation() relation}.
* If no link is found which matches the given relation, returns <code>null</code>. If more than one

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