Record Class SliceRequirement.TypeDiscriminated
java.lang.Object
java.lang.Record
org.fhirfrog.frog.profilecompiler.model.SliceRequirement.TypeDiscriminated
- All Implemented Interfaces:
SliceRequirement
- Enclosing interface:
- SliceRequirement
public static record SliceRequirement.TypeDiscriminated(String sliceElementId, String sliceName, String baseElementPath, boolean mandatory, String typeCode, List<String> targetProfiles)
extends Record
implements SliceRequirement
A choice-element slice identified purely by concrete datatype (algorithm.md §3.2.2), e.g.
medication[x]:medicationReference identified by type == "Reference".-
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.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.Returns the value of thesliceElementIdrecord component.Returns the value of thesliceNamerecord component.Returns the value of thetargetProfilesrecord component.final StringtoString()Returns a string representation of this record class.typeCode()Returns the value of thetypeCoderecord component.
-
Constructor Details
-
TypeDiscriminated
public TypeDiscriminated(String sliceElementId, String sliceName, String baseElementPath, boolean mandatory, String typeCode, List<String> targetProfiles) Creates an instance of aTypeDiscriminatedrecord class.- Parameters:
sliceElementId- the value for thesliceElementIdrecord componentsliceName- the value for thesliceNamerecord componentbaseElementPath- the value for thebaseElementPathrecord componentmandatory- the value for themandatoryrecord componenttypeCode- the value for thetypeCoderecord componenttargetProfiles- the value for thetargetProfilesrecord 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
-
typeCode
Returns the value of thetypeCoderecord component.- Returns:
- the value of the
typeCoderecord component
-
targetProfiles
Returns the value of thetargetProfilesrecord component.- Returns:
- the value of the
targetProfilesrecord component
-