Skip to content

Note freeze and unfreeze#1070

Open
ruipbatista wants to merge 2 commits intomainfrom
note-freeze-docs
Open

Note freeze and unfreeze#1070
ruipbatista wants to merge 2 commits intomainfrom
note-freeze-docs

Conversation

@ruipbatista
Copy link
Contributor

@ruipbatista ruipbatista requested a review from a team as a code owner February 19, 2026 15:28
@aws-amplify-us-west-2
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1070.d298pum72820gn.amplifyapp.com

@aduane
Copy link
Collaborator

aduane commented Feb 21, 2026

Should this be a separate effect class or just another note effect method?

note_effect = Note(
        note_type_id="note-type-uuid",
        datetime_of_service=datetime.datetime.now(),
        patient_id="patient-uuid",
        practice_location_id="practice-location-uuid",
        provider_id="provider-uuid"
)

note_effect.create()
note_effect.lock()
note_effect.unlock()
note_effect.freeze(duration=30, blur=True)
note_effect.unfreeze()

Comment on lines +324 to +328
class MyHandler(BaseHandler):
def compute(self):
note_effect = Note(instance_id="existing-note-uuid")

return [note_effect.unfreeze()]
Copy link
Contributor

Choose a reason for hiding this comment

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

In the example above you respond to NOTE_BODY_UPDATED. For this case, how would a user know when to unfreeze the note? Like what would I suggest to people as the trigger to know someone is done in the note? I mean I guess end users may want to have an action button? Not sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is always going to depend on their user case, but unfreeze note is called automatically after the set duration has elapsed.

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