
API SPEC::::::

    addTopLevel

        category
        data
        noteUid
        additionReasonCategory // 'ON_INTAKE', 'DURING_VISIT'
        additionReasonMemo
        isRemoved
        removalReasonCategory // 'ON_INTAKE', 'DURING_VISIT'
        removalReasonMemo
        isRemovedDueToEntryError
        removalEffectiveDate

        childReviewData
        childPlanData

        coreReviewData
        corePlanData

    updateTopLevel

        noteUid
        data
        additionReasonCategory
        additionReasonMemo
        isRemoved
        removalReasonCategory
        removalReasonMemo
        isRemovedDueToEntryError
        removalEffectiveDate

        childReviewData
        childPlanData

        coreReviewData
        corePlanData

--------------------------------------------------

UI SPEC:::::

    Is this medication currently active? Q1
        Yes
        No

    @if(Yes)...

        Is this pre-existing, or being prescribed during this visit? QA

            Pre-existing (before this visit)
            Prescribed during this visit (as part of my plan)

    @if(No)...

        @if(_UPDATE_FORM_)
            Is this medication being removed due to an entry error? QB
                Yes... DEATH
                No.... continue...
        @endif

        Was this medication removed PRIOR to this visit or DURING this visit? QC

            Removed prior to this visit
            Removed during this visit (as part of my plan)

--------------------------------

@if((Q1 == 'Yes') || (Q1 == 'No' && QB == 'No'))

    Start Date | Prescribed By 
        // always, default to today/note.hcp if QA = 'Prescribed during this visit'
    
    End Date | Removal By/Memo
        // if(Q1 == 'No'), default to today/note.hcp if QC = 'Removed during this visit'

SINGLE-LINE RICH TEXT EDITORS:

    Pre-existing directions (before today's visit) // ---> corePlanData
        // if(Q1 == 'Yes' && QA == 'Pre-existing') || (Q1 == 'No')

    Review // ---> childReviewData

    Changes to directions during this visit (as part of my plan) // ---> childPlanData

---------------------------------

JOHNNY BRAVO (MODEL PATIENT E2E)

    INTAKE:

        Problem -> A, B, C, D
        Medication

    Visit 1:

        Problem -> A, B
        Medication

    Visit 2:

        Problem -> C (mark entry error), D
        Medication

    Visit 3:

        Problem
        Medication

    Visit 4: // LATER

        Supply Order
        eRx, etc.

---------------------------------

    Step by step documentation:

---------------------------------