HMIS / LSASampleCode

Longitudinal System Analysis (LSA) Sample Code and Documentation
22 stars 11 forks source link

Sample Code (Step 3.3.1): hmis_HMISParticipation restrictions for hmis_Services #1240

Closed nataliesus closed 2 months ago

nataliesus commented 2 months ago

Hi @MollyMcEvilley ,

In the Spec (EntryDate instructions) it is said: If an enrollment encompasses more than one period of HMIS participation, the most recent record of HMIS participation is used to adjust enrollment dates. image

  1. I wonder if "the most recent record of HMIS participation is used" rule should be applied for hmis_Services. Because now for FirstBednight and LastBednight different HMIS participation records can be used.

  2. Could you please confirm that BedNight on HMISParticipationStatusEndDate should always be ignored (because of svc.DateProvided < part.HMISParticipationStatusEndDate condition)? image

I am asking because i.e. for ExitDate = HMISParticipationStatusEndDate which is <= ReportEndDate is valid: image

Best regards, Natalie

MollyMcEvilley commented 2 months ago
  1. The short answer is yes -- the bed night dates should be limited to the most recent period of HMIS participation.
  2. Yes, bed nights on HMISParticipationStatusEndDate should be ignored, as should bed nights on OperatingEndDate.

I have re-written the sample code for 3.3.1 to take that into account and uploaded the changes. I am leaving this open because I'm working my way through all of the date comparisons in the specs and sample code and don't want to close the issue until all of the corrections are complete and uploaded.

image

MollyMcEvilley commented 2 months ago

See Issue #1272 for further detail.