Record Class SliceRequirement.Pattern
java.lang.Object
java.lang.Record
org.fhirfrog.frog.profilecompiler.model.SliceRequirement.Pattern
- All Implemented Interfaces:
SliceRequirement
- Enclosing interface:
- SliceRequirement
public static record SliceRequirement.Pattern(String sliceElementId, String sliceName, String baseElementPath, boolean mandatory, String discriminatorSubPath, PatternKind kind, String code, String system, boolean resolvedViaReferencedProfile)
extends Record
implements SliceRequirement
A slice identified by a single fixed/pattern value at the discriminator's sub-path
(algorithm.md §3.2.1's
patternCodeableConcept/patternCoding/
patternIdentifier branches). discriminatorSubPath is "" when the
discriminator path was $this. For PatternKind.PATTERN_IDENTIFIER, code
is always null - identity is carried by system alone, per algorithm.md §3.2.1's
patternIdentifier branch. system may also be null for
PatternKind.PATTERN_CODING/PatternKind.PATTERN_CODEABLE_CONCEPT when the
source pattern didn't itself constrain a system.-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseElementPathrecord component.code()Returns the value of thecoderecord 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.kind()Returns the value of thekindrecord component.booleanReturns the value of themandatoryrecord component.booleanReturns the value of theresolvedViaReferencedProfilerecord component.Returns the value of thesliceElementIdrecord component.Returns the value of thesliceNamerecord component.system()Returns the value of thesystemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Pattern
public Pattern(String sliceElementId, String sliceName, String baseElementPath, boolean mandatory, String discriminatorSubPath, PatternKind kind, String code, String system, boolean resolvedViaReferencedProfile) Creates an instance of aPatternrecord 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 componentkind- the value for thekindrecord componentcode- the value for thecoderecord componentsystem- the value for thesystemrecord 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
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
system
Returns the value of thesystemrecord component.- Returns:
- the value of the
systemrecord component
-
resolvedViaReferencedProfile
public boolean resolvedViaReferencedProfile()Returns the value of theresolvedViaReferencedProfilerecord component.- Returns:
- the value of the
resolvedViaReferencedProfilerecord component
-