Skip to content

Commit

Permalink
POC-367
Browse files Browse the repository at this point in the history
  • Loading branch information
drizzentic committed Jul 10, 2023
1 parent 238be23 commit 9d4baae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'
services:
etl-prod:
container_name: etl-rest-server-prod
image: ampathke/etl-services:v2.16.5.2
image: ampathke/etl-services:POC-367
environment:
- NODE_TLS_REJECT_UNAUTHORIZED=0
- TZ=Africa/Nairobi
Expand All @@ -11,13 +11,13 @@ services:
- 8.8.8.8

volumes:
- /media/data/etl/conf:/opt/etl/conf
- /media/data/etl/uploads:/opt/etl/uploads
- /opt/etl/conf:/opt/etl/conf
- /opt/etl/uploads:/opt/etl/uploads
# deploy:
# mode: replicated
# replicas: 1
# placement:
# constraints:
# - node.hostname == upgrade1
ports:
- 9141:8002
- 8012:8004
2 changes: 1 addition & 1 deletion programs/patient-program-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5449,7 +5449,7 @@
"allowedIf": "programLocation === intendedVisitLocationUuid && (!isFirstAMPATHHIVVisit || !isFirstPNCVisit) && gender==='F'",
"encounterTypes": [
{
"uuid": "ded4ecf7-8129-4a9e-8aa3-a21a7adb7759",
"uuid": "db215741-de99-424a-a109-1f23eb3b680b",
"display": "PNC ADULTRETURN"
},
{
Expand Down
3 changes: 0 additions & 3 deletions programs/scope-builder.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,10 @@ function isInitialVisit(
});
// get latest initial encounter and compare with dateenrolled to check whether it's a new enrollment
let latestEnc = initialEncounters[initialEncounters.length - 1];
console.log('has initial', initialEncounters, dateEnrolled);
if (
initialEncounters.length > 0 &&
dateEnrolled > latestEnc.encounterDatetime
) {
console.log('wapo');
return true;
} else if (initialEncounters.length === 0) {
return true;
Expand Down Expand Up @@ -410,7 +408,6 @@ function buildMNCHScopeMembers(scope, patientEncounters, programEnrollment) {
'ded4ecf7-8129-4a9e-8aa3-a21a7adb7759',
'8d5b27bc-c2cc-11de-8d13-0010c6dffd0f'
);
console.log(scope);
}
function isInitialHivVisit(patientEncounters) {
const adultInitial = '8d5b27bc-c2cc-11de-8d13-0010c6dffd0f';
Expand Down

0 comments on commit 9d4baae

Please sign in to comment.