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

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

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

origin: jamesagnew/hapi-fhir

@Override
protected IBaseOperationOutcome createOperationOutcome(String theSeverity, String theMessage, String theCode) {
  OperationOutcome oo = new OperationOutcome();
  OperationOutcomeIssueComponent issue = oo.addIssue();
  issue.getSeverityElement().setValueAsString(theSeverity);
  issue.setDiagnostics(theMessage);
  try {
    issue.setCode(org.hl7.fhir.dstu3.model.OperationOutcome.IssueType.fromCode(theCode));
  } catch (FHIRException e) {
    ourLog.error("Unknown code: {}", theCode);
  }
  return oo;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * Constructor
 */
public Enumeration(EnumFactory<T> theEnumFactory, String theValue) {
  if (theEnumFactory == null)
    throw new IllegalArgumentException("An enumeration factory must be provided");
  myEnumFactory = theEnumFactory;
  setValueAsString(theValue);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public INarrative setStatusAsString(String theString) {
  getStatusElement().setValueAsString(theString);
  return this;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
protected IBaseOperationOutcome createOperationOutcome(String theSeverity, String theMessage, String theCode) {
  OperationOutcome oo = new OperationOutcome();
  OperationOutcomeIssueComponent issue = oo.addIssue();
  issue.getSeverityElement().setValueAsString(theSeverity);
  issue.setDiagnostics(theMessage);
  try {
    issue.setCode(org.hl7.fhir.dstu3.model.OperationOutcome.IssueType.fromCode(theCode));
  } catch (FHIRException e) {
    ourLog.error("Unknown code: {}", theCode);
  }
  return oo;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

param.getTypeElement().setValueAsString(nextParameter.getParamType().getCode());
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

String httpVerb = ResourceMetadataKeyEnum.ENTRY_TRANSACTION_METHOD.get(nextAsResource);
if (httpVerb != null) {
 entry.getRequest().getMethodElement().setValueAsString(httpVerb);
 if (id != null) {
  entry.getRequest().setUrl(id.getValue());
 entry.getSearch().getModeElement().setValueAsString(searchMode);
origin: org.hspconsortium.carewebframework/cwf-api-core

@Override
public HumanName deserialize(String value) {
  String pcs[] = value.split("\\" + NAME_DELIM);
  HumanName result = new HumanName();
  int i = 0;
  if ((value = getComponent(pcs, i++)) != null) {
    result.setFamily(value);
  }
  if ((value = getComponent(pcs, i++)) != null) {
    result.addGiven(value);
  }
  if ((value = getComponent(pcs, i++)) != null) {
    result.addGiven(value);
  }
  if ((value = getComponent(pcs, i++)) != null) {
    result.addSuffix(value);
  }
  if ((value = getComponent(pcs, i++)) != null) {
    result.addPrefix(value);
  }
  if ((value = getComponent(pcs, i++)) != null) {
    result.addSuffix(value);
  }
  if ((value = getComponent(pcs, i++)) != null) {
    result.getUseElement().setValueAsString(value.toLowerCase());
  }
  return result;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

entry.getRequest().getMethodElement().setValueAsString(httpVerb);
entry.getRequest().getUrlElement().setValue(next.getId());
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public void addRootPropertiesToBundle(String theId, String theServerBase, String theLinkSelf, String theLinkPrev, String theLinkNext, Integer theTotalResults, BundleTypeEnum theBundleType,
                   IPrimitiveType<Date> theLastUpdated) {
 ensureBundle();
 myBase = theServerBase;
 if (myBundle.getIdElement().isEmpty()) {
  myBundle.setId(theId);
 }
 if (myBundle.getIdElement().isEmpty()) {
  myBundle.setId(UUID.randomUUID().toString());
 }
 if (myBundle.getMeta().getLastUpdated() == null && theLastUpdated != null) {
  myBundle.getMeta().getLastUpdatedElement().setValueAsString(theLastUpdated.getValueAsString());
 }
 if (!hasLink(Constants.LINK_SELF, myBundle) && isNotBlank(theLinkSelf)) {
  myBundle.addLink().setRelation(Constants.LINK_SELF).setUrl(theLinkSelf);
 }
 if (!hasLink(Constants.LINK_NEXT, myBundle) && isNotBlank(theLinkNext)) {
  myBundle.addLink().setRelation(Constants.LINK_NEXT).setUrl(theLinkNext);
 }
 if (!hasLink(Constants.LINK_PREVIOUS, myBundle) && isNotBlank(theLinkPrev)) {
  myBundle.addLink().setRelation(Constants.LINK_PREVIOUS).setUrl(theLinkPrev);
 }
 if (myBundle.getTypeElement().isEmpty() && theBundleType != null) {
  myBundle.getTypeElement().setValueAsString(theBundleType.getCode());
 }
 if (myBundle.getTotalElement().isEmpty() && theTotalResults != null) {
  myBundle.getTotalElement().setValue(theTotalResults);
 }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

param.setUse(OperationParameterUse.IN);
param.setType("string");
param.getSearchTypeElement().setValueAsString(nextParam.getParamType().getCode());
param.setMin(nextParam.isRequired() ? 1 : 0);
param.setMax("1");
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

myBundle.getTypeElement().setValueAsString(theBundleType.getCode());
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

param.getSearchTypeElement().setValueAsString(nextParam.getSearchParamType());
org.hl7.fhir.dstu3.modelEnumerationsetValueAsString

Popular methods of Enumeration

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

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Socket (java.net)
    Provides a client-side TCP socket.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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