/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { UriDt system = getSystemElement(); StringDt value = getValueElement(); if (system.getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString()); } return ParameterUtil.escape(value.getValueAsString()); }
@Override public String getValueAsQueryToken(FhirContext theContext) { StringBuilder b= new StringBuilder(); if (getComparatorElement() != null) { b.append(getComparatorElement().getValue()); } if (!getValueElement().isEmpty()) { b.append(getValueElement().getValueAsString()); } b.append('|'); if (!getSystemElement().isEmpty()) { b.append(getSystemElement().getValueAsString()); } b.append('|'); if (!getUnitsElement().isEmpty()) { b.append(getUnitsElement().getValueAsString()); } return b.toString(); }
BaseQuantityDt param = (BaseQuantityDt) theParam; systemValue = param.getSystemElement().getValueAsString(); unitsValue = param.getUnitsElement().getValueAsString(); cmpValue = ParamPrefixEnum.forValue(param.getComparatorElement().getValueAsString()); valueValue = param.getValueElement().getValue();
@Override public Map<String, String> getDetail() { if(myPatient != null){ List<IdentifierDt> ids = myPatient.getIdentifier(); if(ids != null && !ids.isEmpty()){ Map<String, String> detailMap = new HashMap<String, String>(); for(IdentifierDt id: ids){ String key = id.getSystem().getValueAsString(); String value = id.getValue().getValueAsString(); detailMap.put(key, value); } return detailMap; } } return null; }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { UriDt system = getSystemElement(); StringDt value = getValueElement(); if (system.getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString()); } return ParameterUtil.escape(value.getValueAsString()); }
@Override public String getValueAsQueryToken(FhirContext theContext) { StringBuilder b= new StringBuilder(); if (getComparatorElement() != null) { b.append(getComparatorElement().getValue()); } if (!getValueElement().isEmpty()) { b.append(getValueElement().getValueAsString()); } b.append('|'); if (!getSystemElement().isEmpty()) { b.append(getSystemElement().getValueAsString()); } b.append('|'); if (!getUnitsElement().isEmpty()) { b.append(getUnitsElement().getValueAsString()); } return b.toString(); }
BaseQuantityDt param = (BaseQuantityDt) theParam; systemValue = param.getSystemElement().getValueAsString(); unitsValue = param.getUnitsElement().getValueAsString(); cmpValue = ParamPrefixEnum.forValue(param.getComparatorElement().getValueAsString()); valueValue = param.getValueElement().getValue();