Use Integer64_43_50 for eventNumber conversion
+ delete dead code
This commit is contained in:
parent
13099f513d
commit
437430de39
|
@ -0,0 +1,19 @@
|
|||
package org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50;
|
||||
|
||||
import org.hl7.fhir.convertors.context.ConversionContext10_50;
|
||||
import org.hl7.fhir.convertors.context.ConversionContext43_50;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public class Integer64_43_50 {
|
||||
public static org.hl7.fhir.r5.model.Integer64Type convertStringToInteger64(org.hl7.fhir.r4b.model.StringType src) throws FHIRException {
|
||||
org.hl7.fhir.r5.model.Integer64Type tgt = src.hasValue() ? new org.hl7.fhir.r5.model.Integer64Type(src.getValueAsString()) : new org.hl7.fhir.r5.model.Integer64Type();
|
||||
ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt);
|
||||
return tgt;
|
||||
}
|
||||
|
||||
public static org.hl7.fhir.r4b.model.StringType convertInteger64ToString(org.hl7.fhir.r5.model.Integer64Type src) throws FHIRException {
|
||||
org.hl7.fhir.r4b.model.StringType tgt = src.hasValue() ? new org.hl7.fhir.r4b.model.StringType(src.getValueAsString()) : new org.hl7.fhir.r4b.model.StringType();
|
||||
ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt);
|
||||
return tgt;
|
||||
}
|
||||
}
|
|
@ -3,12 +3,9 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50;
|
|||
import org.hl7.fhir.convertors.context.ConversionContext43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50;
|
||||
|
||||
import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer64_43_50;
|
||||
import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class SubscriptionStatus43_50 {
|
||||
public static org.hl7.fhir.r4b.model.SubscriptionStatus convertSubscriptionStatus(org.hl7.fhir.r5.model.SubscriptionStatus src) {
|
||||
if (src == null)
|
||||
|
@ -46,9 +43,7 @@ public class SubscriptionStatus43_50 {
|
|||
private static org.hl7.fhir.r4b.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent convertSubscriptionStatusNotificationEventComponent(org.hl7.fhir.r5.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent src) {
|
||||
org.hl7.fhir.r4b.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent tgt = new org.hl7.fhir.r4b.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent();
|
||||
if (src.hasEventNumber()) {
|
||||
org.hl7.fhir.r4b.model.StringType value = new org.hl7.fhir.r4b.model.StringType();
|
||||
value.setValue(src.getEventNumberElement().getValueAsString());
|
||||
tgt.setEventNumberElement(value);
|
||||
tgt.setEventNumberElement(Integer64_43_50.convertInteger64ToString(src.getEventNumberElement()));
|
||||
}
|
||||
if (src.hasFocus()) {
|
||||
tgt.setFocus(Reference43_50.convertReference(src.getFocus()));
|
||||
|
@ -119,9 +114,7 @@ public class SubscriptionStatus43_50 {
|
|||
private static org.hl7.fhir.r5.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent convertSubscriptionStatusNotificationEventComponent(org.hl7.fhir.r4b.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent src) {
|
||||
org.hl7.fhir.r5.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent tgt = new org.hl7.fhir.r5.model.SubscriptionStatus.SubscriptionStatusNotificationEventComponent();
|
||||
if (src.hasEventNumber()) {
|
||||
org.hl7.fhir.r5.model.Integer64Type value = new org.hl7.fhir.r5.model.Integer64Type();
|
||||
value.fromStringValue(src.getEventNumberElement().getValueAsString());
|
||||
tgt.setEventNumberElement(value);
|
||||
tgt.setEventNumberElement(Integer64_43_50.convertStringToInteger64(src.getEventNumberElement()));
|
||||
}
|
||||
if (src.hasFocus()) {
|
||||
tgt.setFocus(Reference43_50.convertReference(src.getFocus()));
|
||||
|
|
|
@ -91,9 +91,6 @@ public class SubscriptionTopic43_50 {
|
|||
}
|
||||
if (src.hasFilterParameter()) {
|
||||
tgt.setFilterParameterElement(String43_50.convertString(src.getFilterParameterElement()));
|
||||
}
|
||||
if (src.hasComparator()) {
|
||||
|
||||
}
|
||||
if (src.hasModifier() || src.hasComparator()) {
|
||||
List<org.hl7.fhir.r4b.model.Enumeration<org.hl7.fhir.r4b.model.SubscriptionTopic.SubscriptionSearchModifier>> tgtModifiers = convertR5ModifierToR4BModifier(src.getModifier());
|
||||
|
|
Loading…
Reference in New Issue