Tabnine Logo
Enumeration.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
org.hl7.fhir.dstu3.model.Enumeration

Best Java code snippets using org.hl7.fhir.dstu3.model.Enumeration.getValue (Showing top 20 results out of 315)

origin: jamesagnew/hapi-fhir

private static <T extends Enum<?>> String extractSystem(Enumeration<T> theBoundCode) {
  if (theBoundCode.getValue() != null) {
    return theBoundCode.getEnumFactory().toSystem(theBoundCode.getValue());
  }
  return null;
}
origin: jamesagnew/hapi-fhir

private void verifyStatusOk(RestOperationTypeEnum theOperation, IBaseResource theOldResourceOrNull, IBaseResource theResource) {
  Subscription subscription = (Subscription) theResource;
  SubscriptionStatus newStatus = subscription.getStatusElement().getValue();
  if (newStatus == SubscriptionStatus.REQUESTED || newStatus == SubscriptionStatus.OFF) {
    return;
  }
  if (newStatus == null) {
    String actualCode = subscription.getStatusElement().getValueAsString();
    throw new UnprocessableEntityException("Can not " + theOperation.getCode() + " resource: Subscription.status must be populated on this server" + ((isNotBlank(actualCode)) ? " (invalid value " + actualCode + ")" : ""));
  }
  if (theOldResourceOrNull != null) {
    try {
      Subscription existing = (Subscription) theOldResourceOrNull;
      SubscriptionStatus existingStatus = existing.getStatusElement().getValue();
      if (existingStatus != newStatus) {
        verifyActiveStatus(theOperation, subscription, newStatus, existingStatus);
      }
    } catch (ResourceNotFoundException e) {
      verifyActiveStatus(theOperation, subscription, newStatus, null);
    }
  } else {
    verifyActiveStatus(theOperation, subscription, newStatus, null);
  }
}
origin: jamesagnew/hapi-fhir

@Override
public String getBundleType(Bundle theRequest) {
  if (theRequest.getType() == null) {
    return null;
  }
  return theRequest.getTypeElement().getValue().toCode();
}
origin: jamesagnew/hapi-fhir

@Override
public String getEntryRequestVerb(Bundle.BundleEntryComponent theEntry) {
  String retVal = null;
  Bundle.HTTPVerb value = theEntry.getRequest().getMethodElement().getValue();
  if (value != null) {
    retVal = value.toCode();
  }
  return retVal;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return causality1 | causality2.
 */
public AdverseEventCausality getCausality() { 
 return this.causality == null ? null : this.causality.getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
 */
public AddressType getType() { 
 return this.type == null ? null : this.type.getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.
 */
public AllergyIntoleranceSeverity getSeverity() { 
 return this.severity == null ? null : this.severity.getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

 */
public PublicationStatus getStatus() { 
 return this.status == null ? null : this.status.getValue();
}
/**
 * @param value The status of this activity definition. Enables tracking the life-cycle of the content.
origin: jamesagnew/hapi-fhir

private void verifyActiveStatus(RestOperationTypeEnum theOperation, Subscription theSubscription, SubscriptionStatus newStatus, SubscriptionStatus theExistingStatus) {
  SubscriptionChannelType channelType = theSubscription.getChannel().getTypeElement().getValue();
  if (channelType == null) {
    throw new UnprocessableEntityException("Subscription.channel.type must be populated");
  }
  if (channelType == SubscriptionChannelType.WEBSOCKET) {
    return;
  }
  if (theExistingStatus != null) {
    throw new UnprocessableEntityException("Subscription.status can not be changed from " + describeStatus(theExistingStatus) + " to " + describeStatus(newStatus));
  }
  if (theSubscription.getStatus() == null) {
    throw new UnprocessableEntityException("Can not " + theOperation.getCode().toLowerCase() + " resource: Subscription.status must be populated on this server");
  }
  throw new UnprocessableEntityException("Subscription.status must be '" + SubscriptionStatus.OFF.toCode() + "' or '" + SubscriptionStatus.REQUESTED.toCode() + "' on a newly created subscription");
}
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.instance.model.Composition.CompositionAttesterComponent convertCompositionAttesterComponent(org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.instance.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.instance.model.Composition.CompositionAttesterComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode> t : src.getMode())
  tgt.addMode(convertCompositionAttestationMode(t.getValue()));
 tgt.setTime(src.getTime());
 tgt.setParty(convertReference(src.getParty()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.instance.model.HealthcareService.HealthcareServiceAvailableTimeComponent convertHealthcareServiceAvailableTimeComponent(org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.instance.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.instance.model.HealthcareService.HealthcareServiceAvailableTimeComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.HealthcareService.DaysOfWeek> t : src.getDaysOfWeek())
  tgt.addDaysOfWeek(convertDaysOfWeek(t.getValue()));
 tgt.setAllDay(src.getAllDay());
 tgt.setAvailableStartTime(src.getAvailableStartTime());
 tgt.setAvailableEndTime(src.getAvailableEndTime());
 return tgt;
}
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.instance.model.ElementDefinition.TypeRefComponent convertElementDefinitionTypeComponent(org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.instance.model.ElementDefinition.TypeRefComponent tgt = new org.hl7.fhir.instance.model.ElementDefinition.TypeRefComponent();
 copyElement(src, tgt);
 tgt.setCodeElement(convertUriToCode(src.getCodeElement()));
 if (src.hasCode() && "Reference".equals(src.getCode())) {
  if (src.hasTargetProfile())
   tgt.addProfile(src.getTargetProfile());
 } else if (src.hasProfile())
  tgt.addProfile(src.getProfile());
 for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.ElementDefinition.AggregationMode> t : src.getAggregation())
  tgt.addAggregation(convertAggregationMode(t.getValue()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent convertTypeRefComponent(org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent tgt = new org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent();
 copyElement(src, tgt);
 tgt.setCode(src.getCode());
 if (src.hasCode() && "Reference".equals(src.getCode()))
  tgt.addProfile(src.getTargetProfile());
 else
  tgt.addProfile(src.getProfile());
 for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.ElementDefinition.AggregationMode> t : src.getAggregation())
  tgt.addAggregation(convertAggregationMode(t.getValue()));
 tgt.setVersioning(convertReferenceVersionRules(src.getVersioning()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent convertCodeSystemFilterComponent(org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent();
 copyElement(src, tgt);
 tgt.setCode(src.getCode());
 if (src.hasDescription())
  tgt.setDescription(src.getDescription());
 for (Enumeration<FilterOperator> t : src.getOperator())
  tgt.addOperator(t.getValue().toCode());
 tgt.setValue(src.getValue());
 return tgt;
}
origin: jamesagnew/hapi-fhir

boolean modeOk;
for (Enumeration<AggregationMode> mode : type.getAggregation()) {
 if (mode.getValue().equals(AggregationMode.CONTAINED) && refType.equals("contained"))
  ok = true;
 else if (mode.getValue().equals(AggregationMode.BUNDLED) && refType.equals("bundled"))
  ok = true;
 else if (mode.getValue().equals(AggregationMode.REFERENCED) && (refType.equals("bundled")||refType.equals("remote")))
  ok = true;
origin: jamesagnew/hapi-fhir

if (ei.definition!=null)
 for (Enumeration<PropertyRepresentation> r : ei.definition.getRepresentation()) {
  if (r.getValue() == PropertyRepresentation.XMLATTR) {
   isXmlAttr = true;
   break;
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.instance.model.Timing.TimingRepeatComponent convertTimingRepeatComponent(org.hl7.fhir.dstu3.model.Timing.TimingRepeatComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.instance.model.Timing.TimingRepeatComponent tgt = new org.hl7.fhir.instance.model.Timing.TimingRepeatComponent();
 copyElement(src, tgt);
 tgt.setBounds(convertType(src.getBounds()));
 tgt.setCount(src.getCount());
 tgt.setDuration(src.getDuration());
 tgt.setDurationMax(src.getDurationMax());
 tgt.setDurationUnits(convertUnitsOfTime(src.getDurationUnit()));
 tgt.setFrequency(src.getFrequency());
 tgt.setFrequencyMax(src.getFrequencyMax());
 tgt.setPeriod(src.getPeriod());
 tgt.setPeriodMax(src.getPeriodMax());
 tgt.setPeriodUnits(convertUnitsOfTime(src.getPeriodUnit()));
 for (Enumeration<EventTiming> t : src.getWhen())
  tgt.setWhen(convertEventTiming(t.getValue()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent convertTimingRepeatComponent(org.hl7.fhir.dstu3.model.Timing.TimingRepeatComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent tgt = new org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent();
 copyElement(src, tgt);
 tgt.setBounds(convertType(src.getBounds()));
 if (src.hasCount())
  tgt.setCount(src.getCount());
 if (src.hasCountMax())
  tgt.setCountMax(src.getCountMax());
 if (src.hasDuration())
  tgt.setDuration(src.getDuration());
 if (src.hasDurationMax())
  tgt.setDurationMax(src.getDurationMax());
 tgt.setDurationUnit(convertUnitsOfTime(src.getDurationUnit()));
 if (src.hasFrequency())
  tgt.setFrequency(src.getFrequency());
 if (src.hasFrequencyMax())
  tgt.setFrequencyMax(src.getFrequencyMax());
 if (src.hasPeriod())
  tgt.setPeriod(src.getPeriod());
 if (src.hasPeriodMax())
  tgt.setPeriodMax(src.getPeriodMax());
 tgt.setPeriodUnit(convertUnitsOfTime(src.getPeriodUnit()));
 for (Enumeration<EventTiming> t : src.getWhen())
  tgt.setWhen(convertEventTiming(t.getValue()));
 if (src.hasOffset())
  tgt.setOffset(src.getOffset());
 return tgt;
}
origin: jamesagnew/hapi-fhir

tgt.setPath(src.getPath());
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.ElementDefinition.PropertyRepresentation> t : src.getRepresentation())
 tgt.addRepresentation(convertPropertyRepresentation(t.getValue()));
if (src.hasSliceName())
 tgt.setName(src.getSliceName());
origin: jamesagnew/hapi-fhir

tgt.setPath(src.getPath());
for (org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.ElementDefinition.PropertyRepresentation> t : src.getRepresentation())
 tgt.addRepresentation(convertPropertyRepresentation(t.getValue()));
if (src.hasSliceName())
 tgt.setName(src.getSliceName());
org.hl7.fhir.dstu3.modelEnumerationgetValue

Popular methods of Enumeration

  • getValueAsString
  • setValueAsString
  • getEnumFactory
    Provides the enum factory which binds this enumeration to a specific ValueSet
  • setValue
  • <init>
    Constructor
  • asStringValue
  • copy
  • isEmpty

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now