Record Class ChoiceTypeMustSupportElement
java.lang.Object
java.lang.Record
org.fhirfrog.frog.profilecompiler.model.ChoiceTypeMustSupportElement
public record ChoiceTypeMustSupportElement(String originalChoiceElementId, String originalChoicePath, String syntheticPath, String typeCode, boolean mandatory, List<String> targetProfiles)
extends Record
A choice-type (
xxx[x]) element with a specific must-support type, produced by the
elementdefinition-type-must-support extension (algorithm.md §3.3), e.g.
Condition.onset[x]'s dateTime type yielding the synthetic path
onsetDateTime. originalChoiceElementId is kept so PlainElementExtractor
can perform genuine structural ancestor-path rewriting for nested must-support sub-elements
(algorithm.md §3.4 rule 3 / §8.7's substring-containment fix) instead of string-matching.-
Constructor Summary
Constructors -
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.booleanReturns the value of themandatoryrecord component.Returns the value of theoriginalChoiceElementIdrecord component.Returns the value of theoriginalChoicePathrecord component.Returns the value of thesyntheticPathrecord 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
-
ChoiceTypeMustSupportElement
public ChoiceTypeMustSupportElement(String originalChoiceElementId, String originalChoicePath, String syntheticPath, String typeCode, boolean mandatory, List<String> targetProfiles) Creates an instance of aChoiceTypeMustSupportElementrecord class.- Parameters:
originalChoiceElementId- the value for theoriginalChoiceElementIdrecord componentoriginalChoicePath- the value for theoriginalChoicePathrecord componentsyntheticPath- the value for thesyntheticPathrecord componenttypeCode- the value for thetypeCoderecord componentmandatory- the value for themandatoryrecord 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 '=='. -
originalChoiceElementId
Returns the value of theoriginalChoiceElementIdrecord component.- Returns:
- the value of the
originalChoiceElementIdrecord component
-
originalChoicePath
Returns the value of theoriginalChoicePathrecord component.- Returns:
- the value of the
originalChoicePathrecord component
-
syntheticPath
Returns the value of thesyntheticPathrecord component.- Returns:
- the value of the
syntheticPathrecord component
-
typeCode
Returns the value of thetypeCoderecord component.- Returns:
- the value of the
typeCoderecord component
-
mandatory
public boolean mandatory()Returns the value of themandatoryrecord component.- Returns:
- the value of the
mandatoryrecord component
-
targetProfiles
Returns the value of thetargetProfilesrecord component.- Returns:
- the value of the
targetProfilesrecord component
-