Skip to content

Commit

Permalink
Use registry link
Browse files Browse the repository at this point in the history
  • Loading branch information
akileng56 committed Aug 5, 2024
1 parent 9bf05de commit c8753bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/esm-patient-registration-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MPL-2.0",
"homepage": "https://github.com/METS-Programme/esm-patient-registration-app#readme",
"scripts": {
"start": "openmrs develop --backend http://localhost:8083",
"start": "openmrs develop",
"serve": "webpack serve --mode=development",
"debug": "npm run serve",
"build": "webpack --mode production",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const searchRegistry = async (searchParams, advancedSearchParams) => {
}
urlParams = urlParams + '&_tag:not=5c827da5-4858-4f3d-a50c-62ece001efea';

const query = `${registry}/fhir/Patient` + urlParams;
const query = `${registry}` + urlParams;
try {
let res = await fetch(query);
return await res.json();
Expand Down Expand Up @@ -56,7 +56,7 @@ export function useConceptAnswers(conceptUuid: string): { data: Array<ConceptAns
export function savePatientToRegistry(formValues: FormValues, registry) {
const createdRegistryPatient = generateFHIRPayload(formValues);
if (registry) {
return fetch(`${registry}/fhir`, {
return fetch(`${registry}`, {
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
method: 'POST',
body: JSON.stringify(createdRegistryPatient),
Expand Down

0 comments on commit c8753bb

Please sign in to comment.