Skip to content

Commit

Permalink
add patients datastructure (not complete)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonym-HPI committed Jun 25, 2022
1 parent 0d8594e commit aae014d
Show file tree
Hide file tree
Showing 9 changed files with 541 additions and 198 deletions.
4 changes: 2 additions & 2 deletions backend/src/exercise/patient-ticking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ function getNextPatientHealthPoints(
const notarzt = treatedBy.notarzt;
const notSan = treatedBy.notSan;
const rettSan = treatedBy.rettSan;
// TODO: Sans should be able to treat patients too
// TODO: Sans should be able to treat patients too.
const functionParameters =
patient.healthStates[patient.currentHealthStateId].functionParameters;
// To do anything the personnel needs material
// TODO: anything the personnel needs material
// TODO: But a personnel should probably be able to treat a patient a bit without material - e.g. free airways, just press something on a strongly bleeding wound, etc.
// -> find a better heuristic
let equippedNotarzt = Math.min(notarzt, material);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/assets/male-patient.svg

This file was deleted.

67 changes: 67 additions & 0 deletions shared/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
"class-validator": "^0.13.2",
"immer": "^9.0.12",
"lodash-es": "^4.17.21",
"rbush": "^3.0.1",
"rbush-knn": "^3.0.1",
"reflect-metadata": "^0.1.13",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/jest": "^27.4.1",
"@types/lodash-es": "^4.17.6",
"@types/rbush": "^3.0.0",
"@types/uuid": "^8.3.4",
"@types/validator": "^13.7.2",
"@typescript-eslint/eslint-plugin": "5.18.0",
Expand Down
Loading

0 comments on commit aae014d

Please sign in to comment.