-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRMT-4738 #113
PRMT-4738 #113
Conversation
martin-nhs
commented
Apr 10, 2024
- Delegated update status to axios callback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First part done, but missing CORE
update.
…of new utility function.
… Outbound Conversation ID.
…reByOutboundConversationId coverage.
ConversationStatus.OUTBOUND_SENT_CORE, | ||
null, | ||
'The EHR Core has successfully been sent.' | ||
); | ||
} catch (error) { | ||
await handleCoreTransferError(error, conversationId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in/out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
status, | ||
failureReason = null | ||
) => { | ||
setCurrentSpanAttributes({ conversationId: outboundConversationId }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in/out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
src/services/gp2gp/send-core.js
Outdated
@@ -3,6 +3,8 @@ import { logInfo } from '../../middleware/logging'; | |||
import { config } from '../../config'; | |||
import { SendCoreError } from "../../errors/errors"; | |||
import { logOutboundMessage } from "./logging-utils"; | |||
import { updateConversationStatus, updateCoreStatus } from "../transfer/transfer-out-util"; | |||
import { ConversationStatus, CoreStatus } from "../../constants/enums"; | |||
|
|||
export const sendCore = async (conversationId, odsCode, coreEhr, ehrRequestId, newMessageId) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in/out? (x4)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
src/models/fragment.js
Outdated
import { getUKTimestamp } from '../services/time'; | ||
import { addChangesToUpdateParams } from '../utilities/dynamodb-helper'; | ||
import { ValidationError } from '../errors/errors'; | ||
import { validateIds } from "../utilities/validation-utilities"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quote?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!