com.mmm.cms.homehealth.proto
Interface HomeHealthScoringModelIF

All Superinterfaces:
Namable
All Known Implementing Classes:
ClinicalFunctional_ScoringModel_v2308, ClinicalFunctional_ScoringModel_v3210, NRS_ScoringModel_v2308, NRS_ScoringModel_v3210

public interface HomeHealthScoringModelIF
extends Namable

This represents a single model for scoring a HomeHealth record. Implementations of this class should not have to worry about validating the record, and only focus on scoring it. A Reference to the Grouper that created this model at run-time to ensure any reporting through the Notify Events methods can use the Grouper instead of implementing a internal version of the notification process.


Method Summary
 HomeHealthGrouperIF getGrouper()
          gets a reference to the Grouper which created this model
 void populateCodes(HomeHealthRecordIF record)
          This populates the record with Diagnosis codes that are associated with this grouper.
 void preprocessRecord(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
          Used to perform any pre-scoring, such as any changes to the data due to multi-code relationships.
 ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
          This is the overall scoring routine.
 void setGrouper(HomeHealthGrouperIF grouper)
          Sets the Grouper which created this model at run time.
 
Methods inherited from interface com.mmm.cms.util.Namable
getName, setName
 

Method Detail

getGrouper

HomeHealthGrouperIF getGrouper()
gets a reference to the Grouper which created this model

Returns:
A reference to Grouper which created this model at runtime

setGrouper

void setGrouper(HomeHealthGrouperIF grouper)
Sets the Grouper which created this model at run time.

Parameters:
grouper -

score

ScoringPointsIF score(HomeHealthRecordIF record,
                      HomeHealthRecordValidatorIF validator)
This is the overall scoring routine. All scoring should be summed here in order to return a single value.

Parameters:
record -
validator -
Returns:
The scoring object which may hold scores per type and equation, but is dependent on the scoring model

preprocessRecord

void preprocessRecord(HomeHealthRecordIF record,
                      HomeHealthRecordValidatorIF validator)
Used to perform any pre-scoring, such as any changes to the data due to multi-code relationships.

Parameters:
record -
validator -

populateCodes

void populateCodes(HomeHealthRecordIF record)
This populates the record with Diagnosis codes that are associated with this grouper. Codes that are part of the grouper are marked as Valid and those that are not are marked as not Valid

Parameters:
record -