private String describeReference(Type reference) { if (reference == null) return "null"; if (reference instanceof UriType) return ((UriType) reference).getValue(); if (reference instanceof Reference) return ((Reference) reference).getReference(); return "??"; }
public static org.hl7.fhir.dstu3.model.UriType convertUri(org.hl7.fhir.dstu2016may.model.UriType src) throws FHIRException { org.hl7.fhir.dstu3.model.UriType tgt = new org.hl7.fhir.dstu3.model.UriType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
private void extractTokensFromCoding(List<String> theSystems, List<String> theCodes, ResourceTable theEntity, Set<BaseResourceIndexedSearchParam> theListToPopulate, RuntimeSearchParam theParameterDef, Coding nextCoding) { if (nextCoding != null && !nextCoding.isEmpty()) { String nextSystem = nextCoding.getSystemElement().getValueAsString(); String nextCode = nextCoding.getCodeElement().getValue(); if (isNotBlank(nextSystem) || isNotBlank(nextCode)) { theSystems.add(nextSystem); theCodes.add(nextCode); } if (!nextCoding.getDisplayElement().isEmpty()) { addStringParam(theEntity, theListToPopulate, theParameterDef, nextCoding.getDisplayElement().getValue()); } } }
public static org.hl7.fhir.dstu2016may.model.UriType convertUri(org.hl7.fhir.dstu3.model.UriType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.UriType tgt = new org.hl7.fhir.dstu2016may.model.UriType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
public static ValueSet makeShareable(ValueSet vs) { if (!vs.hasMeta()) vs.setMeta(new Meta()); for (UriType t : vs.getMeta().getProfile()) if (t.getValue().equals("http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition")) return vs; vs.getMeta().getProfile().add(new UriType("http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition")); return vs; }
public org.hl7.fhir.dstu3.model.UriType convertCodeToUri(org.hl7.fhir.instance.model.CodeType src) throws FHIRException { org.hl7.fhir.dstu3.model.UriType tgt = new org.hl7.fhir.dstu3.model.UriType(src.getValue()); copyElement(src, tgt); return tgt; }
expression = expression + "'" + escapedString + "'"; } else if (fixed instanceof UriType) { expression = expression + "'" + ((UriType)fixed).asStringValue() + "'"; } else if (fixed instanceof IntegerType) { expression = expression + ((IntegerType)fixed).asStringValue();
&& theSourceCode.hasValue(); boolean haveSourceCodeSystem = theSourceCodeSystem != null && theSourceCodeSystem.hasValue(); boolean haveSourceCodeSystemVersion = theSourceCodeSystemVersion != null && theSourceCodeSystemVersion.hasValue(); boolean haveSourceValueSet = theSourceValueSet != null && theSourceValueSet.hasValue(); boolean haveSourceCoding = theSourceCoding != null && theSourceCoding.hasCode(); && theSourceCodeableConcept.getCodingFirstRep().hasCode(); boolean haveTargetValueSet = theTargetValueSet != null && theTargetValueSet.hasValue(); boolean haveTargetCodeSystem = theTargetCodeSystem != null && theTargetCodeSystem.hasValue(); boolean haveReverse = theReverse != null; boolean haveId = theId != null && theId.hasIdPart();
/** * Constructor */ public UriType(URI theValue) { setValue(theValue.toString()); }
public static org.hl7.fhir.dstu2016may.model.UriType convertUri(org.hl7.fhir.dstu3.model.UriType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.UriType tgt = new org.hl7.fhir.dstu2016may.model.UriType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
public org.hl7.fhir.dstu3.model.UriType convertUri(org.hl7.fhir.instance.model.UriType src) throws FHIRException { org.hl7.fhir.dstu3.model.UriType tgt = new org.hl7.fhir.dstu3.model.UriType(src.getValue()); copyElement(src, tgt); return tgt; }
public org.hl7.fhir.instance.model.ClinicalImpression convertClinicalImpression(org.hl7.fhir.dstu3.model.ClinicalImpression src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ClinicalImpression tgt = new org.hl7.fhir.instance.model.ClinicalImpression(); copyDomainResource(src, tgt); tgt.setPatient(convertReference(src.getSubject())); tgt.setAssessor(convertReference(src.getAssessor())); tgt.setStatus(convertClinicalImpressionStatus(src.getStatus())); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setDescription(src.getDescription()); tgt.setPrevious(convertReference(src.getPrevious())); for (org.hl7.fhir.dstu3.model.Reference t : src.getProblem()) tgt.addProblem(convertReference(t)); // for (org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionInvestigationsComponent t : src.getInvestigations()) // tgt.addInvestigations(convertClinicalImpressionInvestigationsComponent(t)); for (UriType t : src.getProtocol()) tgt.setProtocol(t.asStringValue()); tgt.setSummary(src.getSummary()); for (org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent t : src.getFinding()) tgt.addFinding(convertClinicalImpressionFindingComponent(t)); tgt.setPrognosis(src.getPrognosisCodeableConceptFirstRep().getText()); // for (org.hl7.fhir.dstu3.model.Reference t : src.getPlan()) // tgt.addPlan(convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAction()) tgt.addAction(convertReference(t)); return tgt; }
if (ed.getPath().startsWith(path)) for (TypeRefComponent t : ed.getType()) { if (t.hasCode() && t.getCodeElement().hasValue()) { String tn = null; if (t.getCode().equals("Element") || t.getCode().equals("BackboneElement"))
/** * @param value An absolute URI that is used to identify this structure definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this structure definition is (or will be) published. The URL SHOULD include the major version of the structure definition. For more information see [Technical and Business Versions](resource.html#versions). */ public StructureDefinition setUrl(String value) { if (this.url == null) this.url = new UriType(); this.url.setValue(value); return this; }
public org.hl7.fhir.instance.model.CodeType convertUriToCode(org.hl7.fhir.dstu3.model.UriType src) throws FHIRException { org.hl7.fhir.instance.model.CodeType tgt = new org.hl7.fhir.instance.model.CodeType(src.getValue()); copyElement(src, tgt); return tgt; }
if (ctx.getVersion().getVersion() == FhirVersionEnum.DSTU3) { org.hl7.fhir.dstu3.model.Parameters p = new org.hl7.fhir.dstu3.model.Parameters(); p.addParameter().setName("url").setValue(new org.hl7.fhir.dstu3.model.UriType(termUrl)); for (String next : datafile) { p.addParameter().setName("localfile").setValue(new org.hl7.fhir.dstu3.model.StringType(next));
private void addQuantity(ResourceTable theEntity, HashSet<ResourceIndexedSearchParamQuantity> retVal, String resourceName, Quantity nextValue) { if (!nextValue.getValueElement().isEmpty()) { BigDecimal nextValueValue = nextValue.getValueElement().getValue(); String nextValueString = nextValue.getSystemElement().getValueAsString(); String nextValueCode = nextValue.getCode(); ResourceIndexedSearchParamQuantity nextEntity = new ResourceIndexedSearchParamQuantity(resourceName, nextValueValue, nextValueString, nextValueCode); nextEntity.setResource(theEntity); retVal.add(nextEntity); } }
private Slicer generateSlicer(ElementDefinition child, ElementDefinitionSlicingComponent slicing, StructureDefinition structure) { // given a child in a structure, it's sliced. figure out the slicing xpath if (child.getPath().endsWith(".extension")) { ElementDefinition ued = getUrlFor(structure, child); if ((ued == null || !ued.hasFixed()) && !(child.hasType() && (child.getType().get(0).hasProfile()))) return new Slicer(false); else { Slicer s = new Slicer(true); String url = (ued == null || !ued.hasFixed()) ? child.getType().get(0).getProfile() : ((UriType) ued.getFixed()).asStringValue(); s.name = " with URL = '"+url+"'"; s.criteria = "[@url = '"+url+"']"; return s; } } else return new Slicer(false); }
&& theSourceCode.hasValue(); boolean haveSourceCodeSystem = theSourceCodeSystem != null && theSourceCodeSystem.hasValue(); boolean haveSourceCodeSystemVersion = theSourceCodeSystemVersion != null && theSourceCodeSystemVersion.hasValue(); boolean haveSourceValueSet = theSourceValueSet != null && theSourceValueSet.hasValue(); boolean haveSourceCoding = theSourceCoding != null && theSourceCoding.hasCode(); && theSourceCodeableConcept.getCodingFirstRep().hasCode(); boolean haveTargetValueSet = theTargetValueSet != null && theTargetValueSet.hasValue(); boolean haveTargetCodeSystem = theTargetCodeSystem != null && theTargetCodeSystem.hasValue(); boolean haveReverse = theReverse != null; boolean haveId = theId != null && theId.hasIdPart();