Tabnine Logo
BoundCodeDt.getValueAsString
Code IndexAdd Tabnine to your IDE (free)

How to use
getValueAsString
method
in
ca.uhn.fhir.model.primitive.BoundCodeDt

Best Java code snippets using ca.uhn.fhir.model.primitive.BoundCodeDt.getValueAsString (Showing top 12 results out of 315)

origin: jamesagnew/hapi-fhir

@Override
public String getStatusAsString() {
  return getStatus().getValueAsString();
}
origin: jamesagnew/hapi-fhir

    if (!needContactPointSystem.equals(nextValue.getSystemElement().getValueAsString())) {
      continue;
  systems.add(nextValue.getSystemElement().getValueAsString());
  codes.add(nextValue.getValueElement().getValue());
} else if (nextObject instanceof BoundCodeDt) {
origin: jamesagnew/hapi-fhir

  systemValue = param.getSystemElement().getValueAsString();
  unitsValue = param.getUnitsElement().getValueAsString();
  cmpValue = ParamPrefixEnum.forValue(param.getComparatorElement().getValueAsString());
  valueValue = param.getValueElement().getValue();
} else if (theParam instanceof QuantityParam) {
origin: jamesagnew/hapi-fhir

private void verifyStatusOk(RestOperationTypeEnum theOperation, IBaseResource theOldResourceOrNull, IBaseResource theResource) {
  Subscription subscription = (Subscription) theResource;
  SubscriptionStatusEnum newStatus = subscription.getStatusElement().getValueAsEnum();
  if (newStatus == SubscriptionStatusEnum.REQUESTED || newStatus == SubscriptionStatusEnum.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;
      SubscriptionStatusEnum existingStatus = existing.getStatusElement().getValueAsEnum();
      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

@SuppressWarnings("unused")
public static void codes() {
 // START SNIPPET: codes
 Patient patient = new Patient();
 // You can set this code using a String if you want. Note that
 // for "closed" valuesets (such as the one used for Patient.gender)
 // you must use one of the strings defined by the FHIR specification.
 // You must not define your own.
 patient.getGenderElement().setValue("male");
 
 // HAPI also provides Java enumerated types which make it easier to
 // deal with coded values. This code achieves the exact same result
 // as the code above.
 patient.setGender(AdministrativeGenderEnum.MALE);
 
 // You can also retrieve coded values the same way
 String genderString = patient.getGenderElement().getValueAsString();
 AdministrativeGenderEnum genderEnum = patient.getGenderElement().getValueAsEnum();
 
 // The following is a shortcut to create
 patient.setMaritalStatus(MaritalStatusCodesEnum.M);
 // END SNIPPET: codes
}
origin: jamesagnew/hapi-fhir

Long count = counts.get(nextResource.getTypeElement().getValueAsString());
if (count != null) {
  nextResource.addUndeclaredExtension(false, ExtensionConstants.CONF_RESOURCE_COUNT, new DecimalDt(count));
origin: ca.uhn.hapi.fhir/hapi-fhir-base

@Override
public String getStatusAsString() {
  return getStatus().getValueAsString();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu

@Override
public Map<String, String> getDetail() {
  Map<String, String> details = new HashMap<String, String>();		
  details.put("startDate", myEncounter.getPeriod().getStart().getValueAsString());
  details.put("endDate", myEncounter.getPeriod().getEnd().getValueAsString());
  details.put("service", myEncounter.getServiceProvider().getDisplay().getValue());
  details.put("type", myEncounter.getTypeFirstRep().getText().getValue());
  details.put("status", myEncounter.getStatus().getValueAsString());
  details.put("subject", myEncounter.getSubject().getReference().getValue());
  return details;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

  systemValue = param.getSystemElement().getValueAsString();
  unitsValue = param.getUnitsElement().getValueAsString();
  cmpValue = ParamPrefixEnum.forValue(param.getComparatorElement().getValueAsString());
  valueValue = param.getValueElement().getValue();
} else if (theParam instanceof QuantityParam) {
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

private void verifyStatusOk(RestOperationTypeEnum theOperation, IBaseResource theOldResourceOrNull, IBaseResource theResource) {
  Subscription subscription = (Subscription) theResource;
  SubscriptionStatusEnum newStatus = subscription.getStatusElement().getValueAsEnum();
  if (newStatus == SubscriptionStatusEnum.REQUESTED || newStatus == SubscriptionStatusEnum.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;
      SubscriptionStatusEnum existingStatus = existing.getStatusElement().getValueAsEnum();
      if (existingStatus != newStatus) {
        verifyActiveStatus(theOperation, subscription, newStatus, existingStatus);
      }
    } catch (ResourceNotFoundException e) {
      verifyActiveStatus(theOperation, subscription, newStatus, null);
    }
  } else {
    verifyActiveStatus(theOperation, subscription, newStatus, null);
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu

@Override
public String getDescription() {
  if(myEncounter != null){						
    String type = myEncounter.getTypeFirstRep().getText().getValue();
    String status = myEncounter.getStatus().getValueAsString();
    String startDate = myEncounter.getPeriod().getStart().getValueAsString();
    String endDate = myEncounter.getPeriod().getEnd().getValueAsString();
    return "Encounter: " + type + ": " + status +", "+ startDate + " - " + endDate; 			
  }
  return null;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

Long count = counts.get(nextResource.getTypeElement().getValueAsString());
if (count != null) {
  nextResource.addUndeclaredExtension(false, ExtensionConstants.CONF_RESOURCE_COUNT, new DecimalDt(count));
ca.uhn.fhir.model.primitiveBoundCodeDtgetValueAsString

Popular methods of BoundCodeDt

  • getValueAsEnum
  • getValue
  • setValue
  • setValueAsEnum
  • setValueAsString
  • <init>
  • isEmpty
  • getBinder

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • String (java.lang)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Vim plugins
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