Skip to content

[BACK-4187] Clinic and invites changes to support sending account setup invites#185

Closed
toddkazakov wants to merge 3 commits into
masterfrom
tk-redox-send-cloud-invites
Closed

[BACK-4187] Clinic and invites changes to support sending account setup invites#185
toddkazakov wants to merge 3 commits into
masterfrom
tk-redox-send-cloud-invites

Conversation

@toddkazakov

Copy link
Copy Markdown
Contributor

No description provided.

@ewollesen ewollesen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have questions. :)

@@ -0,0 +1,8 @@
type: object

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this data structure?

I see that we're capturing an EHR provider integration, but I don't understand why that's worth capturing? Granted I'll probably learn that when I read the other related PRs, maybe there should be something here to explain its purpose?

A description field on this might be useful in that way. To indicate what is relevant metadata that might be stored here for example, and maybe more importantly to indicate what wouldn't be appropriate to store here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We need to trigger conditional logic based on this and it was requested for reporting pusposes

$ref: ./creator.v1.yaml
context:
type: string
type: object

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a welcome change, and an ambitious one too! The context is used in a lot of places, and we should ensure that QA takes a look at some of those other places to ensure that this change hasn't broken one of the other invitation workflows that use context information.

Come to think of it, would this require a matching frontend change?

I can't remember for sure, but I have a memory of the frontend passing context along in some places, though perhaps they were just passing it as a blob, without knowing more about it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The context is an object, not a string - the spec was incorrect

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The context is an object, not a string

Yes, but it's stored as a string in MongoDB, and that's what I was hoping you were fixing. :) Oh well.

Comment thread reference/clinic/models/patient.v1.yaml
type: object
title: PatientCreationMetadata
properties:
integration:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider if "source" wouldn't be a more descriptive name for this.

Much less importantly, I think a name like source would make it easier to add other non-EHR integration patient creation sources in the future. Possibly a batch import process, or a clinician action. But admittedly that's all a concern for tomorrow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I did consider source - we're not going to be capturing the source in Tidepool Web or Uploader, so I decided to go with integration so I don't get asked why we don't have it for other sources.

@toddkazakov
toddkazakov requested a review from ewollesen March 26, 2026 14:20
@toddkazakov
toddkazakov deleted the tk-redox-send-cloud-invites branch July 14, 2026 09:26
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.

2 participants