Record Class GeneratedAssertion
java.lang.Object
java.lang.Record
org.fhirfrog.frog.profilecompiler.model.GeneratedAssertion
- Record Components:
path- the FHIR element path this check is about, resource-type-prefix stripped (e.g."identifier", or a compiler-synthesized choice path like"onsetDateTime"- see algorithm.md §3.3)resourceType- the profile's base resource type (e.g."Patient")fhirPath- the literal, self-contained FHIRPath boolean expression to assertseverity-Severity.ERRORif missing this fails the profile;Severity.WARNINGif merely optional-but-unsupporteddescription- a short, human-readable statement of what this check verifies
public record GeneratedAssertion(String path, String resourceType, String fhirPath, Severity severity, String description)
extends Record
One compiled, literal, per-instance FHIRPath check derived from a profile's must-support or
mandatory-element requirements (algorithm.md §7, §5.11) - the compiler's actual output artifact.
fhirPath is always evaluable against a single resource instance of resourceType;
v1 deliberately does not emit Bundle-scoped/aggregate assertions (see design.md's spike finding).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.fhirPath()Returns the value of thefhirPathrecord component.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.Returns the value of theresourceTyperecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeneratedAssertion
public GeneratedAssertion(String path, String resourceType, String fhirPath, Severity severity, String description) Creates an instance of aGeneratedAssertionrecord class.- Parameters:
path- the value for thepathrecord componentresourceType- the value for theresourceTyperecord componentfhirPath- the value for thefhirPathrecord componentseverity- the value for theseverityrecord componentdescription- the value for thedescriptionrecord 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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
fhirPath
Returns the value of thefhirPathrecord component.- Returns:
- the value of the
fhirPathrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-