i = valueset_remove.remove(code);
The
ValueSet.remove function removes all values from a
ValueSet object that have a code matching the specified numeric or string expression
code. The type of the code must match the type of the value set.
When using a numeric value set with ranges—both
from and
to codes are defined—or defined
special values, the function will remove a value only if it is the
from value or if it is the special value.
The function returns the number of values with the matching code that were removed from the value set. If the value set is read-only, the function returns
default.