/** * @return Canonical reference to the value set that contains the entire code system. */ public String getValueSet() { return this.valueSet == null ? null : this.valueSet.getValue(); }
/** * @return Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported. */ public String getDefinition() { return this.definition == null ? null : this.definition.getValue(); }
/** * @return The canonical reference to the structure. */ public String getUrl() { return this.url == null ? null : this.url.getValue(); }
/** * @return The valueset for the code filter. The valueSet and code elements are additive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset. */ public String getValueSet() { return this.valueSet == null ? null : this.valueSet.getValue(); }
/** * @return Where this search parameter is originally defined. If a derivedFrom is provided, then the details in the search parameter must be consistent with the definition from which it is defined. i.e. the parameter should have the same meaning, and (usually) the functionality should be a proper subset of the underlying search parameter. */ public String getDerivedFrom() { return this.derivedFrom == null ? null : this.derivedFrom.getValue(); }
/** * @return The Questionnaire that defines and organizes the questions for which answers are being provided. */ public String getQuestionnaire() { return this.questionnaire == null ? null : this.questionnaire.getValue(); }
/** * @return Additional validation information for the in parameters - a single profile that covers all the parameters. The profile is a constraint on the parameters resource as a whole. */ public String getInputProfile() { return this.inputProfile == null ? null : this.inputProfile.getValue(); }
/** * @return Permanent link to the MessageDefinition for this message. */ public String getDefinition() { return this.definition == null ? null : this.definition.getValue(); }
/** * @return A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question. */ public String getAnswerValueSet() { return this.answerValueSet == null ? null : this.answerValueSet.getValue(); }
/** * @return The canonical URL of the code system that this code system supplement is adding designations and properties to. */ public String getSupplements() { return this.supplements == null ? null : this.supplements.getValue(); }
/** * @return A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input. */ public String getTransform() { return this.transform == null ? null : this.transform.getValue(); }
/** * @return A reference to the Measure that was calculated to produce this report. */ public String getMeasure() { return this.measure == null ? null : this.measure.getValue(); }
/** * @param value {@link #implementationGuide} (A list of implementation guides that the server does (or should) support in their entirety.) */ public boolean hasImplementationGuide(String value) { if (this.implementationGuide == null) return false; for (CanonicalType v : this.implementationGuide) if (v.getValue().equals(value)) // canonical(ImplementationGuide) return true; return false; }
/** * @param value {@link #import_} (Other maps used by this map (canonical URLs).) */ public boolean hasImport(String value) { if (this.import_ == null) return false; for (CanonicalType v : this.import_) if (v.getValue().equals(value)) // canonical(StructureMap) return true; return false; }
/** * @param value {@link #instantiatesCanonical} (The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.) */ public boolean hasInstantiatesCanonical(String value) { if (this.instantiatesCanonical == null) return false; for (CanonicalType v : this.instantiatesCanonical) if (v.getValue().equals(value)) // canonical(ActivityDefinition|PlanDefinition) return true; return false; }
/** * @param value {@link #targetProfile} (Used when the type is "Reference" or "canonical", and identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide.) */ public boolean hasTargetProfile(String value) { if (this.targetProfile == null) return false; for (CanonicalType v : this.targetProfile) if (v.getValue().equals(value)) // canonical(StructureDefinition|ImplementationGuide) return true; return false; }
/** * @param value {@link #library} (A reference to a Library resource containing the formal logic used by the measure.) */ public boolean hasLibrary(String value) { if (this.library == null) return false; for (CanonicalType v : this.library) if (v.getValue().equals(value)) // canonical(Library) return true; return false; }
/** * @param value {@link #library} (A reference to a Library resource containing any formal logic used by the activity definition.) */ public boolean hasLibrary(String value) { if (this.library == null) return false; for (CanonicalType v : this.library) if (v.getValue().equals(value)) // canonical(Library) return true; return false; }
/** * @param value {@link #instantiatesCanonical} (The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) */ public boolean hasInstantiatesCanonical(String value) { if (this.instantiatesCanonical == null) return false; for (CanonicalType v : this.instantiatesCanonical) if (v.getValue().equals(value)) // canonical(PlanDefinition|ActivityDefinition|Measure|OperationDefinition|Questionnaire) return true; return false; }
private void checkExtensions(StructureDefinition profile, List<ValidationMessage> errors, String kind, ElementDefinition ec) { if (!ec.getType().isEmpty() && "Extension".equals(ec.getType().get(0).getCode()) && ec.getType().get(0).hasProfile()) { String url = ec.getType().get(0).getProfile().get(0).getValue(); StructureDefinition defn = context.fetchResource(StructureDefinition.class, url); rule(errors, IssueType.BUSINESSRULE, profile.getId(), defn != null, "Unable to find Extension '"+url+"' referenced at "+profile.getUrl()+" "+kind+" "+ec.getPath()+" ("+ec.getSliceName()+")"); } } }