-
Notifications
You must be signed in to change notification settings - Fork 49
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
IHE gateway V2: Zod Validation and Typing Responses #2032
IHE gateway V2: Zod Validation and Typing Responses #2032
Conversation
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xca/process/dq-response.ts
Show resolved
Hide resolved
Refs: #1667 Signed-off-by: Jonah Kaye <jonah.arturo@gmail.com>
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.
remove this
f5ffc2e
to
fb98d4e
Compare
<name> | ||
<family partType="FAM">NWHINZZZTESTPATIENT</family> | ||
<given partType="GIV">NWHINONE</given> | ||
</name> |
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.
adding test for where name is in different format which we saw in prod
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.
shared schemas
|
||
const findSlotValue = (name: string): string | undefined => { | ||
const slot = slots.find((slot: Slot) => slot._name === name); | ||
return slot | ||
? Array.isArray(slot.ValueList.Value) |
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.
ValueList.Value is never an array so removing this
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/xcpd-response.ts
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/schema.ts
Outdated
Show resolved
Hide resolved
Refs: #1667 Signed-off-by: Jonah Kaye <jonah.arturo@gmail.com>
1085759
to
e939ec7
Compare
Refs: #1667 Signed-off-by: Jonah Kaye <jonah.arturo@gmail.com>
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.
Approved on the condition that my comments are addressed
packages/core/src/external/carequality/ihe-gateway-v2/outbound/__tests__/process-dr.test.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xca/process/dq-response.ts
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xca/process/schema.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/error.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/error.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/error.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/error.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/schema.ts
Outdated
Show resolved
Hide resolved
Refs: #1667 Signed-off-by: Jonah Kaye <jonah.arturo@gmail.com>
d03bba8
to
6ad9752
Compare
Refs: #1667 Signed-off-by: Jonah Kaye <jonah.arturo@gmail.com>
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/schema.ts
Outdated
Show resolved
Hide resolved
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.
handleSchemaErrorResponse()
: I see we're not logging or doing anything w/ the information that we had a schema parsing error - shouldn't we?
packages/core/src/external/carequality/ihe-gateway-v2/outbound/schema.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/schema.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xca/process/dr-response.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xca/process/dr-response.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xca/process/schema.ts
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xca/process/schema.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/schema.ts
Outdated
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/error.ts
Show resolved
Hide resolved
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/schema.ts
Outdated
Show resolved
Hide resolved
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.
Leaving a few comments.
Missed this one:
handleSchemaErrorResponse(): I see we're not logging or doing anything w/ the information that we had a schema parsing error - shouldn't we?
packages/core/src/external/carequality/ihe-gateway-v2/outbound/xcpd/process/schema.ts
Show resolved
Hide resolved
4899def
to
f6e1578
Compare
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.
LGTM, approving considering we can address the couple of small comments. 🚀
Ticket: #1667
Dependencies
Description
Testing
Release Plan