本文整理汇总了Java中org.hl7.fhir.dstu3.model.CodeableConcept类的典型用法代码示例。如果您正苦于以下问题:Java CodeableConcept类的具体用法?Java CodeableConcept怎么用?Java CodeableConcept使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CodeableConcept类属于org.hl7.fhir.dstu3.model包,在下文中一共展示了CodeableConcept类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mapCodeToCodeableConcept
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
/**
* Helper function to convert a Code into a CodeableConcept. Takes an optional system, which
* replaces the Code.system in the resulting CodeableConcept if not null.
*
* @param from
* The Code to create a CodeableConcept from.
* @param system
* The system identifier, such as a URI. Optional; may be null.
* @return The converted CodeableConcept
*/
private static CodeableConcept mapCodeToCodeableConcept(Code from, String system) {
CodeableConcept to = new CodeableConcept();
if (from.display != null) {
to.setText(from.display);
}
Coding coding = new Coding();
coding.setCode(from.code);
coding.setDisplay(from.display);
if (system == null) {
coding.setSystem(from.system);
} else {
coding.setSystem(system);
}
to.addCoding(coding);
return to;
}
示例2: buildOperationOutcomeException
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public static BaseServerResponseException buildOperationOutcomeException(BaseServerResponseException exception, OperationOutcome.IssueSeverity code, OperationOutcome.IssueType issueType) {
CodeableConcept codeableConcept = new CodeableConcept()
.setText(exception.getMessage());
OperationOutcome operationOutcome = new OperationOutcome();
operationOutcome.addIssue()
.setSeverity(OperationOutcome.IssueSeverity.ERROR)
.setCode(issueType)
.setDetails(codeableConcept);
// operationOutcome.getMeta()
// .addProfile(SystemURL.SD_GPC_OPERATIONOUTCOME);
exception.setOperationOutcome(operationOutcome);
return exception;
}
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:19,代码来源:OperationOutcomeFactory.java
示例3: getDoseType
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getDoseType()
{
List<org.hl7.fhir.dstu3.model.Extension> extensions = adaptedClass
.getExtensionsByUrl("http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType");
if (extensions == null || extensions.size() <= 0)
{
return null;
}
else if (extensions.size() == 1)
{
return (org.hl7.fhir.dstu3.model.CodeableConcept) extensions.get(0)
.getValue();
}
else
{
throw new RuntimeException(
"More than one extension exists for doseType");
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:20,代码来源:qicoremedicationdispenseDosageInstructionAdapter.java
示例4: newCondition
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
/**
* Returns a FHIR Condition for testing purposes.
*/
public static Condition newCondition() {
Condition condition = new Condition();
// Condition based on example from FHIR:
// https://www.hl7.org/fhir/condition-example.json.html
condition.setId("Condition/example");
condition.setLanguage("en_US");
// Narrative text
Narrative narrative = new Narrative();
narrative.setStatusAsString("generated");
narrative.setDivAsString("This data was generated for test purposes.");
XhtmlNode node = new XhtmlNode();
node.setNodeType(NodeType.Text);
node.setValue("Severe burn of left ear (Date: 24-May 2012)");
condition.setText(narrative);
condition.setSubject(new Reference("Patient/example").setDisplay("Here is a display for you."));
condition.setVerificationStatus(Condition.ConditionVerificationStatus.CONFIRMED);
// Condition code
CodeableConcept code = new CodeableConcept();
code.addCoding()
.setSystem("http://snomed.info/sct")
.setCode("39065001")
.setDisplay("Severe");
condition.setSeverity(code);
// Severity code
CodeableConcept severity = new CodeableConcept();
severity.addCoding()
.setSystem("http://snomed.info/sct")
.setCode("24484000")
.setDisplay("Burn of ear")
.setUserSelected(true);
condition.setSeverity(severity);
// Onset date time
DateTimeType onset = new DateTimeType();
onset.setValueAsString("2012-05-24");
condition.setOnset(onset);
return condition;
}
示例5: setType
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoreadverseevent setType(List<CodeableConcept> param)
{
if (param != null && param.size() > 0)
{
for (int index = 0; index < param.size(); index++)
{
adaptedClass
.addExtension()
.setUrl("http://hl7.org/fhir/qicore/StructureDefinition/adverseevent-type")
.setValue(param.get(index));
}
}
return this;
}
示例6: getCode
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getCode()
{
try
{
return adaptedClass.getCode();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Code", e);
}
}
示例7: getReasonNotPerformed
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public List<CodeableConcept> getReasonNotPerformed()
{
try
{
return adaptedClass.getReasonNotPerformed();
}
catch (Exception e)
{
throw new RuntimeException("Error getting ReasonNotPerformed", e);
}
}
示例8: getType
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getType()
{
try
{
return adaptedClass.getType();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Type", e);
}
}
示例9: getComplication
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public List<CodeableConcept> getComplication()
{
try
{
return adaptedClass.getComplication();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Complication", e);
}
}
示例10: setDisability
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicorepatient setDisability(List<CodeableConcept> param)
{
if (param != null && param.size() > 0)
{
for (int index = 0; index < param.size(); index++)
{
adaptedClass
.addExtension()
.setUrl("http://hl7.org/fhir/StructureDefinition/patient-disability")
.setValue(param.get(index));
}
}
return this;
}
示例11: setReasonRejected
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoregoal setReasonRejected(CodeableConcept param)
{
adaptedClass
.addExtension()
.setUrl("http://hl7.org/fhir/StructureDefinition/goal-reasonRejected")
.setValue(param);
return this;
}
示例12: getRoute
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getRoute()
{
try
{
return adaptedClass.getRoute();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Route", e);
}
}
示例13: getPriority
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getPriority()
{
try
{
return adaptedClass.getPriority();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Priority", e);
}
}
示例14: getSpecialty
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getSpecialty()
{
try
{
return adaptedClass.getSpecialty();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Specialty", e);
}
}
示例15: getMedicationCodeableConcept
import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getMedicationCodeableConcept()
{
try
{
return adaptedClass.getMedicationCodeableConcept();
}
catch (Exception e)
{
throw new RuntimeException(
"Error getting MedicationCodeableConcept", e);
}
}