Skip to content

Commit

Permalink
Updated models as per suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
naodya committed Apr 6, 2020
1 parent 86effb3 commit 22616d1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ Please note: This API supports the following types:
"diabetes": false,
"hiv": false,
"pregnancy": false,
},
},
"haveSex": false,
"animalMarket": false
"healthFacility": false
}
```

Expand Down Expand Up @@ -274,6 +277,18 @@ Please note: This API supports the following types:
"receiverName": "string",
"source": "string",
"formStatus": "string"
"fatigue": false
"underlyingConditions": {
"chronicLungDisease": false,
"heartDisease": false,
"liverDisease": false,
"renalDisease": false,
"autoimmuneDisease": false,
"cancer": false,
"diabetes": false,
"hiv": false,
"pregnancy": false,
},
}
```

Expand Down
12 changes: 12 additions & 0 deletions models/MedicalFacility.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ const MedicalFacilitySchema = new Schema(
receiverName: { type: String },
source: { type: String },
formStatus: { type: String },
fatigue: { type: Boolean },
underlyingConditions: {
chronicLungDisease: { type: Boolean },
heartDisease: { type: Boolean },
liverDisease: { type: Boolean },
renalDisease: { type: Boolean },
autoimmuneDisease: { type: Boolean },
cancer: { type: Boolean },
diabetes: { type: Boolean },
hiv: { type: Boolean },
pregnancy: { type: Boolean },
},
},
{
timestamps: true,
Expand Down
3 changes: 3 additions & 0 deletions models/Passenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ const PassengerSchema = new Schema(
hiv: { type: Boolean },
pregnancy: { type: Boolean },
},
haveSex: { type: Boolean },
animalMarket: { type: Boolean },
healthFacility: { type: Boolean },
},
{
timestamps: true,
Expand Down

0 comments on commit 22616d1

Please sign in to comment.