Skip to content

Commit

Permalink
adding an option on either to automatch or not patients that has huma…
Browse files Browse the repository at this point in the history
…n adjudication tag. add PUT end point for submitting patients
  • Loading branch information
ashaban committed Oct 5, 2020
1 parent 032b2f8 commit cf539e3
Show file tree
Hide file tree
Showing 9 changed files with 244 additions and 118 deletions.
26 changes: 19 additions & 7 deletions server/config/config_development_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"register": false
},
"fhirServer": {
"baseURL": "http://localhost:8081/clientregistry/fhir",
"username": "hapi",
"password": "hapi"
"password": "hapi",
"baseURL": "http://localhost:8080/hapi/fhir"
},
"elastic": {
"server": "http://localhost:9200",
Expand All @@ -30,7 +30,8 @@
"index": "patients"
},
"matching": {
"tool": "elasticsearch"
"tool": "elasticsearch",
"autoMatchPatientWithHumanAdjudTag": false
},
"codes": {
"goldenRecord": "5c827da5-4858-4f3d-a50c-62ece001efea"
Expand All @@ -44,34 +45,45 @@
"id": "openmrs",
"displayName": "OpenMRS"
},
{
"id": "dhis2",
"displayName": "DHIS2"
},
{
"id": "lims",
"displayName": "Lab Info Management System"
},
{
"id": "cr",
"displayName": "Client Registry"
}
],
"systems": {
"CRBaseURI": "http://openclientregistry.org/fhir",
"internalid": {
"uri": [
"http://health.go.ug/cr/internalid",
"http://clientregistry.org/openmrs"
"http://openmrs.org/openmrs2",
"http://clientregistry.org/openmrs",
"http://clientregistry.org/dhis2",
"http://clientregistry.org/lims"
],
"displayName": "Internal ID"
},
"nationalid": {
"uri": "http://health.go.ug/cr/natioanlid",
"uri": "http://clientregistry.org/cr/natioanlid",
"displayName": "National ID"
},
"artnumber": {
"uri": "http://health.go.ug/cr/artnumber",
"uri": "http://clientregistry.org/cr/artnumber",
"displayName": "ART Number"
},
"brokenMatch": {
"uri": "http://clientregistry.org/brokenMatch"
}
},
"sync": {
"lastFHIR2ESSync": "2020-02-21T14:51:41"
"lastFHIR2ESSync": "1970-10-05T08:15:12"
},
"__comments": {
"matching.tool": "this tells if the app should use mediator algorithms or elasticsearch algorithms for matching, two options mediator and elasticsearch"
Expand Down
26 changes: 19 additions & 7 deletions server/config/config_production_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"register": false
},
"fhirServer": {
"baseURL": "http://localhost:8081/clientregistry/fhir",
"username": "hapi",
"password": "hapi"
"password": "hapi",
"baseURL": "http://localhost:8080/hapi/fhir"
},
"elastic": {
"server": "http://localhost:9200",
Expand All @@ -30,7 +30,8 @@
"index": "patients"
},
"matching": {
"tool": "elasticsearch"
"tool": "elasticsearch",
"autoMatchPatientWithHumanAdjudTag": false
},
"codes": {
"goldenRecord": "5c827da5-4858-4f3d-a50c-62ece001efea"
Expand All @@ -44,34 +45,45 @@
"id": "openmrs",
"displayName": "OpenMRS"
},
{
"id": "dhis2",
"displayName": "DHIS2"
},
{
"id": "lims",
"displayName": "Lab Info Management System"
},
{
"id": "cr",
"displayName": "Client Registry"
}
],
"systems": {
"CRBaseURI": "http://openclientregistry.org/fhir",
"internalid": {
"uri": [
"http://health.go.ug/cr/internalid",
"http://clientregistry.org/openmrs"
"http://openmrs.org/openmrs2",
"http://clientregistry.org/openmrs",
"http://clientregistry.org/dhis2",
"http://clientregistry.org/lims"
],
"displayName": "Internal ID"
},
"nationalid": {
"uri": "http://health.go.ug/cr/natioanlid",
"uri": "http://clientregistry.org/cr/natioanlid",
"displayName": "National ID"
},
"artnumber": {
"uri": "http://health.go.ug/cr/artnumber",
"uri": "http://clientregistry.org/cr/artnumber",
"displayName": "ART Number"
},
"brokenMatch": {
"uri": "http://clientregistry.org/brokenMatch"
}
},
"sync": {
"lastFHIR2ESSync": "2020-02-21T14:51:41"
"lastFHIR2ESSync": "1970-10-05T08:15:12"
},
"__comments": {
"matching.tool": "this tells if the app should use mediator algorithms or elasticsearch algorithms for matching, two options mediator and elasticsearch"
Expand Down
7 changes: 4 additions & 3 deletions server/config/config_test_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"fhirServer": {
"username": "hapi",
"password": "hapi",
"baseURL": "http://localhost:8081/clientregistry/fhir"
"baseURL": "http://localhost:8080/hapi/fhir"
},
"elastic": {
"server": "http://localhost:9200",
Expand All @@ -30,7 +30,8 @@
"index": "patients"
},
"matching": {
"tool": "elasticsearch"
"tool": "elasticsearch",
"autoMatchPatientWithHumanAdjudTag": false
},
"codes": {
"goldenRecord": "5c827da5-4858-4f3d-a50c-62ece001efea"
Expand Down Expand Up @@ -82,7 +83,7 @@
}
},
"sync": {
"lastFHIR2ESSync": "2020-09-22T18:02:56"
"lastFHIR2ESSync": "1970-10-05T08:15:12"
},
"__comments": {
"matching.tool": "this tells if the app should use mediator algorithms or elasticsearch algorithms for matching, two options mediator and elasticsearch"
Expand Down
1 change: 0 additions & 1 deletion server/lib/esMatching.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ const performMatch = ({
goldenRecords.entry = goldenRecords.entry.filter((entry) => {
return entry.resource.resourceType + '/' + entry.resource.id === goldenID;
});

logger.info('Done matching');
return callback({
error,
Expand Down
Loading

0 comments on commit cf539e3

Please sign in to comment.