private void addCompose(ValueSet retVal, String theSystem, String theCode, String theDisplay) { if (isBlank(theCode)) { return; } ExpansionContains contains = retVal.getExpansion().addContains(); contains.setSystem(theSystem); contains.setCode(theCode); contains.setDisplay(theDisplay); }
/** * Adds a given new value for <b>contains</b> () * * <p> * <b>Definition:</b> * The codes that are contained in the value set expansion * </p> * @param theValue The contains to add (must not be <code>null</code>) */ public Expansion addContains(ExpansionContains theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getContains().add(theValue); return this; }
/** * Adds a given new value for <b>parameter</b> () * * <p> * <b>Definition:</b> * A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion * </p> * @param theValue The parameter to add (must not be <code>null</code>) */ public Expansion addParameter(ExpansionParameter theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getParameter().add(theValue); return this; }
List<ExpansionContains> contains = expansion.getExpansion().getContains(); ValidateCodeResult result = validateCodeIsInContains(contains, toStringOrNull(theSystem), toStringOrNull(theCode), theCoding, theCodeableConcept); if (result != null) {
for (IIdType nextId : valueSetIds) { ValueSet expansion = expand(nextId, null, theRequestDetails); List<ExpansionContains> contains = expansion.getExpansion().getContains(); LookupCodeResult result = lookup(contains, system, code); if (result != null) {
/** * Gets the value(s) for <b>expansion</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed * </p> */ public Expansion getExpansion() { if (myExpansion == null) { myExpansion = new Expansion(); } return myExpansion; }
/** * Gets the first repetition for <b>parameter</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion * </p> */ public ExpansionParameter getParameterFirstRep() { if (getParameter().isEmpty()) { return addParameter(); } return getParameter().get(0); }
/** * Gets the first repetition for <b>contains</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The codes that are contained in the value set expansion * </p> */ public ExpansionContains getContainsFirstRep() { if (getContains().isEmpty()) { return addContains(); } return getContains().get(0); }
/** * Adds and returns a new value for <b>contains</b> () * * <p> * <b>Definition:</b> * The codes that are contained in the value set expansion * </p> */ public ExpansionContains addContains() { ExpansionContains newType = new ExpansionContains(); getContains().add(newType); return newType; }
/** * Gets the value(s) for <b>total</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter * </p> */ public Integer getTotal() { return getTotalElement().getValue(); }
/** * Gets the value(s) for <b>timestamp</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The time at which the expansion was produced by the expanding system. * </p> */ public Date getTimestamp() { return getTimestampElement().getValue(); }
private void addCompose(ValueSet retVal, String theSystem, String theCode, String theDisplay) { if (isBlank(theCode)) { return; } ExpansionContains contains = retVal.getExpansion().addContains(); contains.setSystem(theSystem); contains.setCode(theCode); contains.setDisplay(theDisplay); }
/** * Gets the value(s) for <b>identifier</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so * </p> */ public String getIdentifier() { return getIdentifierElement().getValue(); }
/** * Adds and returns a new value for <b>parameter</b> () * * <p> * <b>Definition:</b> * A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion * </p> */ public ExpansionParameter addParameter() { ExpansionParameter newType = new ExpansionParameter(); getParameter().add(newType); return newType; }
/** * Gets the value(s) for <b>offset</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present * </p> */ public Integer getOffset() { return getOffsetElement().getValue(); }
List<ExpansionContains> contains = expansion.getExpansion().getContains(); ValidateCodeResult result = validateCodeIsInContains(contains, toStringOrNull(theSystem), toStringOrNull(theCode), theCoding, theCodeableConcept); if (result != null) {
for (IIdType nextId : valueSetIds) { ValueSet expansion = expand(nextId, null, theRequestDetails); List<ExpansionContains> contains = expansion.getExpansion().getContains(); LookupCodeResult result = lookup(contains, system, code); if (result != null) {