Skip to content
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

Merged
merged 25 commits into from
Apr 11, 2024
Merged

PRMT-4738 #113

merged 25 commits into from
Apr 11, 2024

Conversation

martin-nhs
Copy link
Contributor

  • Delegated update status to axios callback.

Copy link
Contributor

@chrisbloe-nhse chrisbloe-nhse left a 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.

ConversationStatus.OUTBOUND_SENT_CORE,
null,
'The EHR Core has successfully been sent.'
);
} catch (error) {
await handleCoreTransferError(error, conversationId);
Copy link
Contributor

Choose a reason for hiding this comment

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

in/out?

Copy link
Contributor Author

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 });
Copy link
Contributor

Choose a reason for hiding this comment

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

in/out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

@@ -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) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

in/out? (x4)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

import { getUKTimestamp } from '../services/time';
import { addChangesToUpdateParams } from '../utilities/dynamodb-helper';
import { ValidationError } from '../errors/errors';
import { validateIds } from "../utilities/validation-utilities";
Copy link
Contributor

Choose a reason for hiding this comment

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

Double quote?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

Copy link
Contributor

@MohammadIqbalAD-NHS MohammadIqbalAD-NHS left a comment

Choose a reason for hiding this comment

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

Looks good!

@martin-nhs martin-nhs merged commit fada55d into main Apr 11, 2024
1 check passed
@martin-nhs martin-nhs deleted the PRMT-4738 branch April 11, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants