public org.hl7.fhir.instance.model.IdType convertId(org.hl7.fhir.dstu3.model.IdType src) throws FHIRException { org.hl7.fhir.instance.model.IdType tgt = new org.hl7.fhir.instance.model.IdType(src.getValue()); copyElement(src, tgt); return tgt; }
public static org.hl7.fhir.dstu2016may.model.IdType convertId(org.hl7.fhir.dstu3.model.IdType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.IdType tgt = new org.hl7.fhir.dstu2016may.model.IdType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
ourLog.info("Uploading {} StructureDefinition {}/{} : {}", new Object[] {theName, count, total, next.getIdElement().getValue()}); client.update().resource(next).execute();
BundleEntryComponent next = iterator.next(); if (next.getResource().getIdElement().getIdPart() != null) { String nextId = next.getResource().getIdElement().getValue(); next.getRequest().setMethod(HTTPVerb.PUT); next.getRequest().setUrl(nextId);
ourLog.info("Uploading ValueSet {}/{} : {} ({} bytes}", new Object[] {count, total, next.getIdElement().getValue(), bytes}); try { IIdType id = client.update().resource(next).execute().getId(); next.setId(next.getIdElement().toUnqualifiedVersionless()); ourLog.info("Uploading v3-codesystems ValueSet {}/{} : {}", new Object[] {count, total, next.getIdElement().getValue()}); try { client.update().resource(next).execute(); ourLog.info("Uploading v2-tables ValueSet {}/{} : {}", new Object[] {count, total, next.getIdElement().getValue()}); client.update().resource(next).execute(); count++;
/** * @return The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 3.0.1 for this version. */ public String getFhirVersion() { return this.fhirVersion == null ? null : this.fhirVersion.getValue(); }
/** * @return Named context for field, if a field is specified. */ public String getVariable() { return this.variable == null ? null : this.variable.getValue(); }
/** * @return Type or variable this rule applies to. */ public String getContext() { return this.context == null ? null : this.context.getValue(); }
/** * @return Id of the referenced rule within the external ruleset template. */ public String getRuleId() { return this.ruleId == null ? null : this.ruleId.getValue(); }
/** * @return Fixture to evaluate the XPath/JSONPath expression or the headerField against. */ public String getSourceId() { return this.sourceId == null ? null : this.sourceId.getValue(); }
/** * @return Id of the referenced rule within the external ruleset template. */ public String getRuleId() { return this.ruleId == null ? null : this.ruleId.getValue(); }
/** * @return The version of the FHIR specification on which this capability statement is based. */ public String getFhirVersion() { return this.fhirVersion == null ? null : this.fhirVersion.getValue(); }
/** * @return The element id of the related action. */ public String getActionId() { return this.actionId == null ? null : this.actionId.getValue(); }
/** * @return The MessageHeader.id of the message to which this message is a response. */ public String getIdentifier() { return this.identifier == null ? null : this.identifier.getValue(); }
private static void copy(FhirContext theCtx, IGenericClient theTarget, String theResType, List<IBaseResource> theQueued, Set<String> theSent, Bundle theReceived) { for (Bundle.BundleEntryComponent nextEntry : theReceived.getEntry()) { Resource nextResource = nextEntry.getResource(); nextResource.setId(theResType + "/" + "CR-" + nextResource.getIdElement().getIdPart()); boolean haveUnsentReference = false; for (ResourceReferenceInfo nextRefInfo : theCtx.newTerser().getAllResourceReferences(nextResource)) { IIdType nextRef = nextRefInfo.getResourceReference().getReferenceElement(); if (nextRef.hasIdPart()) { String newRef = nextRef.getResourceType() + "/" + "CR-" + nextRef.getIdPart(); ourLog.info("Changing reference {} to {}", nextRef.getValue(), newRef); nextRefInfo.getResourceReference().setReference(newRef); if (!theSent.contains(newRef)) { haveUnsentReference = true; } } } if (haveUnsentReference) { ourLog.info("Queueing {} for delivery after", nextResource.getId()); theQueued.add(nextResource); continue; } IIdType newId = theTarget .update() .resource(nextResource) .execute() .getId(); ourLog.info("Copied resource {} and got ID {}", nextResource.getId(), newId); theSent.add(nextResource.getIdElement().toUnqualifiedVersionless().getValue()); } }
/** * @param value {@link #condition} (A reference to an invariant that may make additional statements about the cardinality or value in the instance.) */ public boolean hasCondition(String value) { if (this.condition == null) return false; for (IdType v : this.condition) if (v.getValue().equals(value)) // id return true; return false; }
/** * @param value {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.) */ public boolean hasGoalId(String value) { if (this.goalId == null) return false; for (IdType v : this.goalId) if (v.getValue().equals(value)) // id return true; return false; }
"Value is '" + value + "' but must be '" + ((org.hl7.fhir.dstu3.model.CodeType) fixed).getValue() + "'"); else if (fixed instanceof org.hl7.fhir.dstu3.model.IdType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.dstu3.model.IdType) fixed).getValue(), value), "Value is '" + value + "' but must be '" + ((org.hl7.fhir.dstu3.model.IdType) fixed).getValue() + "'"); else if (fixed instanceof Quantity) checkQuantity(errors, path, focus, (Quantity) fixed);
tgt.setMaxLength(src.getMaxLength()); for (org.hl7.fhir.dstu3.model.IdType t : src.getCondition()) tgt.addCondition(t.getValue()); for (org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionConstraintComponent t : src.getConstraint()) tgt.addConstraint(convertElementDefinitionConstraintComponent(t));
tgt.setMaxLength(src.getMaxLength()); for (org.hl7.fhir.dstu3.model.IdType t : src.getCondition()) tgt.addCondition(t.getValue()); for (org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionConstraintComponent t : src.getConstraint()) tgt.addConstraint(convertElementDefinitionConstraintComponent(t));