Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Rems118 url change#13

Merged
Meng-Chau merged 4 commits into
masterfrom
rems118_url_change
Jun 23, 2022
Merged

Rems118 url change#13
Meng-Chau merged 4 commits into
masterfrom
rems118_url_change

Conversation

@Meng-Chau

@Meng-Chau Meng-Chau commented Jun 13, 2022

Copy link
Copy Markdown

review this alongside mcode/dtr#27

Comment thread backend/routes/doctorOrders.js Outdated
const documentId = req.params.id;
let documentOrder = await DoctorOrder.findById(documentId);
const crdUrl = (process.env.CRD_BASE_URL ? process.env.CRD_BASE_URL : "http://localhost:8090/") + "rems/" + documentOrder.caseNumber;
const crdUrl = (process.env.CRD_BASE_URL ? process.env.CRD_BASE_URL : "http://localhost:8090/") + "api/rems/" + documentOrder.caseNumber;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe there is any endpoint on CRD for api/rems/. It was added in mcode/CRD#18 and changed in mcode/CRD#24, should just be rems/ unless there are plans to revert the endpoint back in CRD.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, I'm not aware of which endpoints are used since I'm new to the team and I haven't been able to test out implementation with postman. I can check in with Sahil about this and make a new request if necessary

@Meng-Chau Meng-Chau requested a review from KeeyanGhoreshi June 14, 2022 14:35
}

function parseRemsAdminRequest(requestBody , existingDocOrder = undefined) {
const complianceBundle = requestBody?.resource;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this back to be .resource

Comment thread backend/routes/doctorOrders.js Outdated
const DoctorOrder = require('../models/doctorOrders');

router.patch("/fhir/rems/:id", async (req, res, next) => {
router.patch("/$process-message/:id", async (req, res, next) => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to be ([$])process-message. See expressjs/express#2987 for more context

Comment thread backend/routes/doctorOrders.js Outdated
});

router.patch("/fhir/rems/pickedUp/:id", async (req, res, next) => {
router.patch("/$process-message/pickedUp/:id", async (req, res, next) => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to be ([$])process-message. See expressjs/express#2987 for more context

Comment thread backend/routes/doctorOrders.js Outdated


router.post("/fhir/rems", (req, res, next) => {
router.post("/$process-message", (req, res, next) => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to be ([$])process-message. See expressjs/express#2987 for more context

@Meng-Chau Meng-Chau merged commit 77dc319 into master Jun 23, 2022
@smalho01 smalho01 deleted the rems118_url_change branch November 2, 2022 18:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants