Skip to content

Commit

Permalink
Fix wrong dates in clinical services creation date (#687)
Browse files Browse the repository at this point in the history
* Using the new encounter endpoint
  • Loading branch information
edrisse authored and ynurmahomed committed Jul 19, 2018
1 parent 10ac020 commit 60e0813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Bahmni.Common = Bahmni.Common || {};
emrapiDiagnosisUrl: EMRAPI + "/diagnosis",
emrapiConceptUrl: EMRAPI + "/concept",
emrEncounterUrl: EMRAPI + "/encounter",
encounterUrl: RESTWS_V1 + "/encounter",
encounterUrl: RESTWS_V1 + "/poc-encounter",
encounterWrapUrl: RESTWS_V1 + "/encounterwrap",
locationUrl: RESTWS_V1 + "/location",
orderUrl: RESTWS_V1 + "/order",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('encounterService', () => {

it('should create an encounter', () => {

$httpBackend.expectPOST('/openmrs/ws/rest/v1/encounter', {}).respond({});
$httpBackend.expectPOST('/openmrs/ws/rest/v1/poc-encounter', {}).respond({});

var encounter;
encounterService.create({}).then(created => {
Expand Down Expand Up @@ -53,7 +53,7 @@ describe('encounterService', () => {
var patient = "aaa-bbb-ccc";
var encounterType = "ccc-aaa-bbb";
var ENCOUNTER = { uuid: "UUID_1" };
$httpBackend.expectGET('/openmrs/ws/rest/v1/encounter?encounterType=ccc-aaa-bbb&patient=aaa-bbb-ccc&v=custom:(uuid,encounterDatetime,provider,voided,obs:(uuid,concept:(uuid,name),obsDatetime,value,groupMembers:(uuid,concept:(uuid,name),obsDatetime,value)))')
$httpBackend.expectGET('/openmrs/ws/rest/v1/poc-encounter?encounterType=ccc-aaa-bbb&patient=aaa-bbb-ccc&v=custom:(uuid,encounterDatetime,provider,voided,obs:(uuid,concept:(uuid,name),obsDatetime,value,groupMembers:(uuid,concept:(uuid,name),obsDatetime,value)))')
.respond({ results: ENCOUNTER });

var encounter;
Expand Down

0 comments on commit 60e0813

Please sign in to comment.