Skip to content

Phase 2 assessments capture with Unit tests

Closes #10 (closed), #14 (closed), #16 (closed), #29 (closed), #41 (closed), #51 (closed)

Tasks Done

  • Stage 2 assessments capture with notifications showing
  • Stage 2 Unit Test
  • Classification repository to classify babies health using program rules
  • Classification repository Unit Test

Video GIF showing stage - 2 with classification functionality

  • background turns red on danger
  • background turns yellow on problem
  • background turns green on normal
Classifying as Danger after stage 2 assessments Classifying as Problem after stage 2 assessments

Unit Test

Test Cases for stage-2

  • Throws exception if assesments are done before 60 mins from birth
  • Throws exception if wardname is empty
  • Throws exception if assessments are incomplete
  • Marks phase-2 as complete if everything is correctly filled
  • Adds stage-2 assessments if list is empty

Test Cases for Classification Repository

  • if temperature < 95.5 or > 99.5 then classifies as danger
  • if severe jaundice or fast breathing then classifies as danger
  • if weight < 2000 & poor feeding then classifies as problem
  • if everything is normal then classifies as normal
Edited by Darshpreet Singh

Merge request reports