Record Class FixedValueConstraint
java.lang.Object
java.lang.Record
org.fhirfrog.frog.profilecompiler.model.FixedValueConstraint
A plain must-support element's own fixed/pattern literal-value constraint (algorithm.md §3.4
rule 2).
pathSuffix is appended to the element's path to get the FHIRPath sub-location
the value actually lives at - "" for fixedUri/fixedCode (checked in
place), ".coding.code" for a patternCodeableConcept, ".system" for a
patternIdentifier - the "rewrite the checked path onto the real leaf value" move
algorithm.md §3.4 describes and §9 endorses keeping (as a structured field here, not
suffix-splicing a single path string).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFixedValueConstraint(String kind, String pathSuffix, String value) Creates an instance of aFixedValueConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thepathSuffixrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
FIXED_URI
- See Also:
-
FIXED_CODE
- See Also:
-
PATTERN_CODEABLE_CONCEPT
- See Also:
-
PATTERN_IDENTIFIER
- See Also:
-
-
Constructor Details
-
FixedValueConstraint
Creates an instance of aFixedValueConstraintrecord class.- Parameters:
kind- the value for thekindrecord componentpathSuffix- the value for thepathSuffixrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
pathSuffix
Returns the value of thepathSuffixrecord component.- Returns:
- the value of the
pathSuffixrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-