Java Code Examples for org.hl7.fhir.instance.model.api.IPrimitiveType#setValueAsString()
The following examples show how to use
org.hl7.fhir.instance.model.api.IPrimitiveType#setValueAsString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StringConverter.java From bunsen with Apache License 2.0 | 4 votes |
@Override public void toHapi(Object input, IPrimitiveType primitive) { primitive.setValueAsString((String) input); }
Example 2
Source File: DefinitionToSparkVisitor.java From bunsen with Apache License 2.0 | 4 votes |
@Override public void toHapi(Object input, IPrimitiveType primitive) { primitive.setValueAsString(((BigDecimal) input).toPlainString()); }
Example 3
Source File: StringToHapiSetter.java From bunsen with Apache License 2.0 | 3 votes |
@Override public IBase toHapi(Object sparkObject) { IPrimitiveType element = (IPrimitiveType) elementDefinition.newInstance(); element.setValueAsString((String) sparkObject); return element; }
Example 4
Source File: EnumConverter.java From bunsen with Apache License 2.0 | 3 votes |
@Override public void toHapi(Object input, IPrimitiveType primitive) { if ("?".equals(input)) { input = null; } primitive.setValueAsString((String) input); }