Record Class SliceRequirement.RequiredBinding
java.lang.Object
java.lang.Record
org.fhirfrog.frog.profilecompiler.model.SliceRequirement.RequiredBinding
- Record Components:
codePath- the FHIRPath sub-path, relative to one candidate element of the sliced array, at which the.codeleaf actually lives -"code"when the discriminator sub-element is itself aCoding,"coding.code"(optionally sub-path-prefixed) when it's aCodeableConcept. Carried explicitly rather than re-derived fromdiscriminatorSubPathat compile-to-FHIRPath time, because the same discriminator sub-path can back either shape depending on the profile (AU Core'scoding:pbs/coding:amtresolve directly on aCoding; AU Base'sau- dvanumber'sIdentifier.typeresolves on aCodeableConcept).
- All Implemented Interfaces:
SliceRequirement
- Enclosing interface:
- SliceRequirement
public static record SliceRequirement.RequiredBinding(String sliceElementId, String sliceName, String baseElementPath, boolean mandatory, String discriminatorSubPath, String codePath, String valueSetUrl, List<String> codes, boolean resolvedViaReferencedProfile)
extends Record
implements SliceRequirement
A slice identified by required-strength ValueSet membership at the discriminator's
sub-path (algorithm.md §3.2.1's
requiredBinding branch) - a disjunction over
codes, expanded eagerly at compile time from locally-loaded IG packages only
(see ValueSetExpander; not from a terminology server).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.fhirfrog.frog.profilecompiler.model.SliceRequirement
SliceRequirement.Pattern, SliceRequirement.RequiredBinding, SliceRequirement.TypeDiscriminated, SliceRequirement.ValueDiscriminated -
Constructor Summary
ConstructorsConstructorDescriptionRequiredBinding(String sliceElementId, String sliceName, String baseElementPath, boolean mandatory, String discriminatorSubPath, String codePath, String valueSetUrl, List<String> codes, boolean resolvedViaReferencedProfile) Creates an instance of aRequiredBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseElementPathrecord component.codePath()Returns the value of thecodePathrecord component.codes()Returns the value of thecodesrecord component.Returns the value of thediscriminatorSubPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themandatoryrecord component.booleanReturns the value of theresolvedViaReferencedProfilerecord component.Returns the value of thesliceElementIdrecord component.Returns the value of thesliceNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueSetUrlrecord component.
-
Constructor Details
-
RequiredBinding
public RequiredBinding(String sliceElementId, String sliceName, String baseElementPath, boolean mandatory, String discriminatorSubPath, String codePath, String valueSetUrl, List<String> codes, boolean resolvedViaReferencedProfile) Creates an instance of aRequiredBindingrecord class.- Parameters:
sliceElementId- the value for thesliceElementIdrecord componentsliceName- the value for thesliceNamerecord componentbaseElementPath- the value for thebaseElementPathrecord componentmandatory- the value for themandatoryrecord componentdiscriminatorSubPath- the value for thediscriminatorSubPathrecord componentcodePath- the value for thecodePathrecord componentvalueSetUrl- the value for thevalueSetUrlrecord componentcodes- the value for thecodesrecord componentresolvedViaReferencedProfile- the value for theresolvedViaReferencedProfilerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sliceElementId
Returns the value of thesliceElementIdrecord component.- Specified by:
sliceElementIdin interfaceSliceRequirement- Returns:
- the value of the
sliceElementIdrecord component
-
sliceName
Returns the value of thesliceNamerecord component.- Specified by:
sliceNamein interfaceSliceRequirement- Returns:
- the value of the
sliceNamerecord component
-
baseElementPath
Returns the value of thebaseElementPathrecord component.- Specified by:
baseElementPathin interfaceSliceRequirement- Returns:
- the value of the
baseElementPathrecord component
-
mandatory
public boolean mandatory()Returns the value of themandatoryrecord component.- Specified by:
mandatoryin interfaceSliceRequirement- Returns:
- the value of the
mandatoryrecord component
-
discriminatorSubPath
Returns the value of thediscriminatorSubPathrecord component.- Returns:
- the value of the
discriminatorSubPathrecord component
-
codePath
Returns the value of thecodePathrecord component.- Returns:
- the value of the
codePathrecord component
-
valueSetUrl
Returns the value of thevalueSetUrlrecord component.- Returns:
- the value of the
valueSetUrlrecord component
-
codes
Returns the value of thecodesrecord component.- Returns:
- the value of the
codesrecord component
-
resolvedViaReferencedProfile
public boolean resolvedViaReferencedProfile()Returns the value of theresolvedViaReferencedProfilerecord component.- Returns:
- the value of the
resolvedViaReferencedProfilerecord component
-