Record Class DoctorAdvisory.ProviderAnalysis
java.lang.Object
java.lang.Record
com.shaft.doctor.model.DoctorAdvisory.ProviderAnalysis
- Record Components:
schemaVersion- provider analysis schema versionobservations- evidence-cited observationshypotheses- advisory hypothesesmissingEvidence- evidence gaps identified by the providerrecommendedActions- advisory actionslimitations- limitations stated by the provider
- Enclosing class:
DoctorAdvisory
public static record DoctorAdvisory.ProviderAnalysis(String schemaVersion, List<DoctorAdvisory.Observation> observations, List<DoctorAdvisory.Hypothesis> hypotheses, List<String> missingEvidence, List<DoctorAdvisory.RecommendedAction> recommendedActions, List<String> limitations)
extends Record
Versioned provider output accepted by Doctor.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProviderAnalysis(String schemaVersion, List<DoctorAdvisory.Observation> observations, List<DoctorAdvisory.Hypothesis> hypotheses, List<String> missingEvidence, List<DoctorAdvisory.RecommendedAction> recommendedActions, List<String> limitations) Creates immutable provider analysis. -
Method Summary
Modifier and TypeMethodDescriptionempty()Returns an empty provider analysis.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehypothesesrecord component.Returns the value of thelimitationsrecord component.Returns the value of themissingEvidencerecord component.Returns the value of theobservationsrecord component.Returns the value of therecommendedActionsrecord component.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_SCHEMA_VERSION
Current provider analysis schema version.- See Also:
-
-
Constructor Details
-
ProviderAnalysis
public ProviderAnalysis(String schemaVersion, List<DoctorAdvisory.Observation> observations, List<DoctorAdvisory.Hypothesis> hypotheses, List<String> missingEvidence, List<DoctorAdvisory.RecommendedAction> recommendedActions, List<String> limitations) Creates immutable provider analysis.
-
-
Method Details
-
empty
Returns an empty provider analysis.- Returns:
- empty analysis
-
toString
-
hashCode
-
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). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
observations
Returns the value of theobservationsrecord component.- Returns:
- the value of the
observationsrecord component
-
hypotheses
Returns the value of thehypothesesrecord component.- Returns:
- the value of the
hypothesesrecord component
-
missingEvidence
Returns the value of themissingEvidencerecord component.- Returns:
- the value of the
missingEvidencerecord component
-
recommendedActions
Returns the value of therecommendedActionsrecord component.- Returns:
- the value of the
recommendedActionsrecord component
-
limitations
Returns the value of thelimitationsrecord component.- Returns:
- the value of the
limitationsrecord component
-