소스 검색

updated tree.txt

Josh Kamau 5 년 전
부모
커밋
9017c2c6b1

+ 28 - 3
generatecv/tree.txt

@@ -1,11 +1,16 @@
 PRO
 #    dashboard
     my_payment_schedule|pro_rate:pro_id=OWN
+        !inc:code,as_hcp_or_ally,amount,earnings
+        !col:code:Code
+        !col:as_hcp_or_ally:Description (HCP/Ally)
+        !col:amount:Amount
+        !col:earnings:Earnings:select '- TODO -' as result
     my_teams|team|add|view
-        !inc:is_active,@team_number,client_count,hcp_pro_id,ally_pro_id
-        !col:hcp_pro_id:HCP Pro:select name_display as result from pro where id = $hcp_pro_id limit 1=>/foo/bar/$hcp_pro_id
+        !inc:@team_number,hcp_pro_id,ally_pro_id,client_count
+        !col:hcp_pro_id:HCP:select name_display as result from pro where id = $hcp_pro_id limit 1=>/foo/bar/$hcp_pro_id
         !col:ally_pro_id:Ally Pro:select name_display as result from pro where id = $ally_pro_id limit 1
-        !col:client_count:Clients:select '- TODO -' as result
+        !col:client_count:Clients:select COUNT(*) as result FROM client WHERE team_id = $id
     my_teams/add_new:create
         hcpProUid:record:pro:uid,name_display
         allyProUid:record:pro:uid,name_display
@@ -45,6 +50,14 @@ PRO
                     medicareNumber
             audit_log
     my_clients|client|add|view
+        !inc:@name_display,date_of_birth,gender,is_client_enrolled_in_cm,is_client_enrolled_in_rm,mcp_pro_id,ally_pro_id
+        !col:name_display:Name
+        !col:date_of_birth:DOB
+        !col:gender:Sex
+        !col:is_client_enrolled_in_cm:CM
+        !col:is_client_enrolled_in_rm:RM
+        !col:mcp_pro_id:MCP:SELECT name_display AS result FROM pro WHERE id = $mcp_pro_id
+        !col:ally_pro_id:Ally:SELECT name_display AS result FROM pro WHERE id = $ally_pro_id
     my_clients/add_new:create
         teamUid:record:team:uid,team_number
         mcpProUid:record:pro:uid,name_display
@@ -222,6 +235,18 @@ PRO
                 id=client_ally_update.client_id
             audit_log
     notes|note|view
+        !inc:effective_dateest,client_id,hcp_pro_id,ally_pro_id,reasons,content_text,is_signed_by_ally,is_signed_by_hcp,billed
+        !col:effective_dateest:Date
+        !col:client_id:Client:select name_display as result FROM client WHERE id = $client_id
+        !col:hcp_pro_id:HCP:select name_display as result FROM pro WHERE id = $hcp_pro_id
+        !col:ally_pro_id:Ally:select name_display as result FROM pro WHERE id = $ally_pro_id
+        !col:reasons:Reason(s):select concat(reason1,reason2) as result FROM note WHERE id = $id
+        !col:service_location:Location
+        !col:category:Category
+        !col:content_text:Content
+        !col:is_signed_by_ally:Ally Signed?
+        !col:is_signed_by_hcp:HCP Signed?
+        !col:billed:Billed?:SELECT '-- TODO --' as result
     notes/view/{uid}
         ACTIONS
             signAsHcp

+ 657 - 0
generatecv/tree_detailed.txt

@@ -0,0 +1,657 @@
+PRO
+#    dashboard
+    my_payment_schedule|pro_rate:pro_id=OWN
+    	COLUMNS
+    		Code:code
+    		Description (HCP/Ally):as_hcp_or_ally
+    		Amount:amount
+    		Earnings:sum(relevant bills) 
+    my_teams|team|add|view
+    my_teams/add_new:create
+        hcpProUid:record:pro:uid,name_display
+        allyProUid:record:pro:uid,name_display
+        teamNumber
+    my_teams/view/{uid}
+        ACTIONS
+            updateTeamNumber
+                teamNumber=team_number
+            deactivate
+                memo
+            updateDeactivationMemo
+                memo=deactivation_memo
+            reactivate
+                memo
+            updateReactivationMemo
+                memo=reactivation_memo
+        SUB
+            dashboard
+            clients
+                id=client.team_id=>/my_clients/view/UID
+                add_new:client
+                    teamUid:hidden=uid
+                    nameDisplay
+                    namePrefix
+                    nameFirst
+                    nameMiddle
+                    nameLast
+                    nameSuffix
+                    nameCredential
+                    gender:select:M,F
+                    dateOfBirth:date
+                    cellNumber:tel
+                    emailAddress:email
+                    medicareNumber
+            audit_log
+    my_clients|client|add|view
+    my_clients/add_new:create
+        teamUid:record:team:uid,team_number
+        mcpProUid:record:pro:uid,name_display
+        allyProUid:record:pro:uid,name_display
+        nameDisplay
+        namePrefix
+        nameFirst
+        nameMiddle
+        nameLast
+        nameSuffix
+        nameCredential
+        gender:select:M,F
+        dateOfBirth:date
+        cellNumber:tel
+        emailAddress:email
+        medicareNumber
+    my_clients/view/{uid}
+        ACTIONS
+            sendCellNumberConfirmationMessage
+            putNewCellNumber
+                newCellNumber:tel=cell_number
+            sendEmailAddressConfirmationMessage
+            confirmEmailAddressWithConfirmationToken
+            putNewEmailAddress
+                newEmailAddress:email=email_address
+            putTeam
+                teamUid:record:team:uid,team_number
+            removeTeam:if:team_id
+            putMcp
+                mcpProUid:record:pro:uid,name_display
+            removeMcp:if:mcp_pro_id
+            putAlly
+                allyProUid:record:pro:uid,name_display
+            removeAlly:if:ally_pro_id
+            putName
+                nameDisplay
+                namePrefix
+                nameFirst
+                nameMiddle
+                nameLast
+                nameSuffix
+                nameCredential
+            putGender
+                gender:select:M,F=gender
+            putDateOfBirth
+                dateOfBirth:date=date_of_birth
+            putProfilePicture
+                profilePictureBase64
+            removeProfilePicture:if:profile_picture_base64
+            updatePhoneInfo
+                homePhoneNumber=home_phone_number
+                workPhoneNumber=work_phone_number
+                supporterPhoneNumber=supporter_phone_number
+                supporterMemo=supporter_memo
+                phoneNumbersMemo=phone_numbers_memo
+            updateAddress
+                mailingAddressLine1=mailing_address_line1
+                mailingAddressLine2=mailing_address_line2
+                mailingAddressCity=mailing_address_city
+                mailingAddressState=mailing_address_state
+                mailingAddressCountry=mailing_address_country
+                mailingAddressZip=mailing_address_zip
+                mailingAddressLat=mailing_address_lat
+                mailingAddressLong=mailing_address_long
+                homeAddressLine1=home_address_line1
+                homeAddressLine2=home_address_line2
+                homeAddressCity=home_address_city
+                homeAddressState=home_address_state
+                homeAddressCountry=home_address_country
+                homeAddressZip=home_address_zip
+                homeAddressLat=home_address_lat
+                homeAddressLong=home_address_long
+            updateMedicareNumber
+                medicareNumber=medicare_number
+            manuallySetIsPartBPrimaryConfirmedToTrue
+                partBConfirmationMethod:select:MANUAL,API=partbconfirmation_method
+                partBConfirmationMemo=partbconfirmation_memo
+            manuallySetIsPartBPrimaryConfirmedToFalse
+                partBConfirmationMethod:select:MANUAL,API=partbconfirmation_method
+                partBConfirmationMemo=partbconfirmation_memo
+            setHasMcpDoneEmVisitToTrue
+                mcpEmVisitDate=mcp_em_visit_date
+                mcpEmVisitNote
+                mcpEmVisitMemo=mcp_em_visit_memo
+            updateMcpEmVisitInfo
+                mcpEmVisitDate=mcp_em_visit_date
+                mcpEmVisitNote
+                mcpEmVisitMemo=mcp_em_visit_memo
+            setHasMcpDoneEmVisitToFalse
+            putCrmReasons
+                cmReason1=cm_reason1
+                cmReason2=cm_reason2
+                rmReason1=rm_reason1
+                rmReason2=rm_reason2
+            removeCrmReasons
+            setIsClientEnrolledInCmToTrue
+            setIsClientEnrolledInCmToFalse
+            updateWhyNotEnrolledInCm
+                whyNotEnrolledInCmCategory=why_not_enrolled_in_cm_category
+                whyNotEnrolledInCmMemo=why_not_enrolled_in_cm_memo
+            setIsClientEnrolledInRmToTrue
+            setIsClientEnrolledInRmToFalse
+            updateWhyNotEnrolledInRm
+                whyNotEnrolledInRmCategory=why_not_enrolled_in_rm_category
+                whyNotEnrolledInRmMemo=why_not_enrolled_in_rm_memo
+            updateIntakeInfo
+                intakeText=intake_text
+                intakeDetail=intake_detail
+            deactivate
+                memo
+            updateDeactivationMemo
+                memo=deactivation_memo
+            reactivate
+                memo
+            updateReactivationMemo
+                memo=reactivation_memo
+        SUB
+            dashboard
+            med_profile
+            med_profile_log
+            pro_access
+                id=client_pro_access.client_id=>/pro_access/view/UID
+                add_new:client_pro_access=>/pro_access/view/UID
+                    clientUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+                    reasonCategory
+                    reasonMemo
+                    reasonDetail
+            notes
+                id=note.client_id=>/notes/view/UID
+                add_new:note=>/notes/view/UID
+                    clientUid:hidden=uid
+                    hcpProUid:record:pro:uid,name_display
+                    allyProUid:record:pro:uid,name_display
+                    effectiveDateEST:date
+                    effectiveTime:time
+                    reason1
+                    reason2
+                    reason3
+                    reason3Plus
+                    serviceLocation
+                    category
+                    contentText
+                    contentDetail
+            care_months
+                id=care_month.client_id=>/care_months/view/UID
+                add_new:care_month
+                    clientUid:hidden=uid
+                    startMonth:number
+                    startYear:number
+            care_month_entries
+                id=care_month_entry.client_id=>/care_month_entries/view/UID
+            bills
+                id=bill.client_id=>/bills/view/UID
+            related_transactions
+                id=pro_transaction.client_id=>/transactions/view/UID
+            action_items
+                id=action_item.client_id=>/action_items/view/UID
+                add_new:action_item
+                    clientUid:hidden=uid
+                    prescriberProUid:record:pro:uid,name_display
+                    toFacilityUid:record:facility:uid,name
+                    contentText
+                    contentDetail
+            erx
+                id=action_item.client_id,action_item_category='RX'=>/action_items/view/UID
+                add_new:action_item
+                    clientUid:hidden=uid
+                    prescriberProUid:record:pro:uid,name_display
+                    toFacilityUid:record:facility:uid,name
+                    contentText
+                    contentDetail
+            mcp_updates
+                id=client_mcp_update.client_id
+            ally_updates
+                id=client_ally_update.client_id
+            audit_log
+    notes|note|view
+    notes/view/{uid}
+        ACTIONS
+            signAsHcp
+        SUB
+            dashboard
+            bills
+                id=bill.note_id=>/bills/view/UID
+                add_new:bill:createForNote
+                    noteUid:hidden=uid
+                    effectiveDate:date
+                    code
+                    reason1
+                    reason2
+                    reason3
+                    reason3Plus
+                    serviceLocation
+                    modifier
+                    numberOfUnits:number
+            audit_log
+    erx|action_item:action_item_category='RX'|view
+    erx/view/{uid}
+        ACTIONS
+            signAsPrescriber
+            updateToFacility
+                toFacilityUid:record:facility:uid,name
+            updateContent
+                contentText=content_text
+                contentDetail=content_detail
+            updateStatus
+                statusCategory:select:OPEN,CLOSED
+                statusMemo
+            efax
+                toFaxNumber:tel
+        SUB
+            dashboard
+            audit_log
+    action_items|action_item|view
+    action_items/view/{uid}
+        ACTIONS
+            signAsPrescriber
+            updateToFacility
+                toFacilityUid:record:facility:uid,name
+            updateContent
+                contentText=content_text
+                contentDetail=content_detail
+            updateStatus
+                statusCategory:select:OPEN,CLOSED
+                statusMemo
+            efax
+                toFaxNumber:tel
+        SUB
+            dashboard
+            audit_log
+    care_months|care_month|view
+    care_months/view/{uid}
+        ACTIONS
+            putMcpPro
+                mcpProUid:record:pro:uid,name_display
+            putAllyPro
+                allyProUid:record:pro:uid,name_display
+            putReasons
+                reason1
+                reason2
+                reason3
+                reason3Plus
+            setIsClientEnrolledInCmToTrue
+            setIsClientEnrolledInCmToFalse
+            updateWhyNotEnrolledInCm
+                whyNotEnrolledInCmCategory
+                whyNotEnrolledInCmMemo
+            setIsClientEnrolledInRmToTrue
+            setIsClientEnrolledInRmToFalse
+            updateWhyNotEnrolledInRm
+                whyNotEnrolledInRmCategory
+                whyNotEnrolledInRmMemo
+            generateBillForCm
+                numberOfMinutes:number
+            generateBillForRm
+                numberOfMinutes:number
+            setIsCmCanceledThisMonthToTrue
+            updateWhyIsCmCanceledThisMonth
+            setIsCmCanceledThisMonthToFalse
+            setIsRmCanceledThisMonthToTrue
+            updateWhyIsRmCanceledThisMonth
+            setIsRmCanceledThisMonthToFalse
+            setIsTmThisMonthToTrue
+            setIsTmThisMonthToFalse
+        SUB
+            dashboard
+# :: need remove
+            cm_time_entries
+                id=care_month_entry.care_month_id,cm_or_rm='CM'
+                add_new:care_month_entry:createForCm
+                    careMonthUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+                    effectiveDate:date
+                    timeInSeconds:number
+                    isTimeSpecific:bool
+                    startingTime:time
+                    endingTime:time
+                    contentText
+                    contentDetail
+# :: need remove
+            rm_time_entries
+                id=care_month_entry.care_month_id,cm_or_rm='RM'
+                add_new:care_month_entry:createForRm
+                    careMonthUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+                    effectiveDate:date
+                    timeInSeconds:number
+                    isTimeSpecific:bool
+                    startingTime:time
+                    endingTime:time
+                    contentText
+                    contentDetail
+            audit_log
+    care_month_entries|care_month_entry|view
+    care_month_entries/view/{uid}
+        ACTIONS
+            updateContent
+                contentText
+                contentDetail
+            updateTiming
+                effectiveDate
+                timeInSeconds
+                isTimeSpecific:bool
+                startingTime
+                endingTime
+        SUB
+            dashboard
+    bills|bill|view
+    bills/view/{uid}
+        ACTIONS
+            payHcpAmount
+                hcpPaymentAmount:number
+            payHcpDifferentAmount
+                differentHcpPaymentAmount:number
+            signAsHcp
+            markSubmitted
+            putCollectedAmount
+                collectedAmount
+        SUB
+            dashboard
+            transactions
+                id=pro_transaction.bill_id
+            audit_log
+    transactions|pro_transaction
+    med_profile_lines|client_info_line
+    med_profile_line_updates|client_info_line_update
+    pro_access|client_pro_access|view
+    pro_access/view/{uid}
+        ACTIONS
+            updateReason
+                reasonCategory=reason_category
+                reasonDetail=reason_detail
+            deactivate
+                memo
+            updateDeactivationMemo
+                memo=deactivation_memo
+            reactivate
+                memo
+            updateReactivationMemo
+                memo=reactivation_memo
+        SUB
+            dashboard
+    mcp_updates|client_mcp_update
+    ally_updates|client_ally_update
+#   audit_log :: coming soon
+
+ADMIN
+#   admin_dashboard
+    facilities|facility|view
+    facilities/add_new:create
+    facilities/view/{uid}
+        ACTIONS
+            updateBasic
+                name=name
+                addressFull=address_full
+                addressLine1=address_line1
+                addressLine2=address_line2
+                addressCity=address_city
+                addressState=address_state
+                addressZip=address_zip
+                addressCountry=address_country
+                addressGeoLat=address_geo_lat
+                addressGeoLong=address_geo_long
+                phone=phone
+                fax=fax
+                hours=hours
+            deactivate
+                memo
+            updateDeactivationMemo
+                memo=deactivation_memo
+            reactivate
+                memo
+            updateReactivationMemo
+                memo=reactivation_memo
+        SUB
+            dashboard
+            erx
+            action_items
+            audit_log
+    pros|pro|add|view
+    pros/add_new:create
+        cellNumber:tel
+        emailAddress:email
+        nameDisplay
+        namePrefix
+        nameFirst
+        nameMiddle
+        nameLast
+        nameSuffix
+        nameCredential
+        isHcp:bool
+        hcpNpi
+        previousProfessionCategory
+        currentProfessionCategory
+    pros/view/{uid}
+        ACTIONS
+            sendCellNumberConfirmationMessage
+            confirmCellNumberWithConfirmationToken
+                cellNumber:tel=cell_number
+                token
+            putNewCellNumber
+                newCellNumber:tel=cell_number
+            confirmEmailAddressWithConfirmationToken
+                emailAddress:email=email_address
+                token
+            putNewEmailAddress
+                newEmailAddress:email=email_address
+            updateName
+                nameDisplay
+                namePrefix
+                nameFirst
+                nameMiddle
+                nameLast
+                nameSuffix
+                nameCredential
+            updateProfession
+                isHcp:bool
+                hcpNpi
+                previousProfessionCategory
+                currentProfessionCategory
+                hcpCategory
+                hcpSubcategory
+            updateEnrolledHcpInfo
+                enrolledHcpCategory
+                enrolledHcpSubcategory
+                enrolledHcpNpi
+            putProfilePicture
+                profilePictureBase64
+            updatePhoneInfo
+                homePhoneNumber
+                workPhoneNumber
+                supporterPhoneNumber
+                supporterMemo
+                phoneNumbersMemo
+            updateAddress
+                mailingAddressLine1
+                mailingAddressLine2
+                mailingAddressCity
+                mailingAddressState
+                mailingAddressCountry
+                mailingAddressZip
+                mailingAddressLat
+                mailingAddressLong
+                homeAddressLine1
+                homeAddressLine2
+                homeAddressCity
+                homeAddressState
+                homeAddressCountry
+                homeAddressZip
+                homeAddressLat
+                homeAddressLong
+            updatePaymentProcessingDetail
+                paymentProcessingDetail
+            uploadDriverLicense
+                driverLicenseFilePath
+            updateDriverLicenseInfo
+                driverLicenseState
+                driverLicenseIssueDate
+                driverLicenseExpirationDate
+            updateSsn
+                ssn
+            # new actions from ProService.java
+            sendEmailAddressConfirmationMessage
+            setIsHcpToTrue
+            setIsHcpToFalse:if:is_hcp
+            setIsEnrolledAsHcpToTrue
+            setIsEnrolledAsHcpToFalse
+            setIsEnrolledAsMcpToTrue
+            setIsEnrolledAsMcpToFalse
+            removeProfilePicture
+            updateW9Detail
+                w9Detail
+            updateSignedContractPdf
+                signedContractPdf
+            setIsPaymentProcessingDetailCompleteToTrue
+            setIsPaymentProcessingDetailCompleteToFalse
+            setIsDriverLicenseCompleteToTrue
+            setIsDriverLicenseCompleteToFalse
+            setIsSsnCompleteToTrue
+            setIsSsnCompleteToFalse
+        SUB
+            dashboard
+            payment_schedule
+                id=pro_rate.pro_id=>/pro_rates/view/UID
+                add_new:pro_rate
+                    proUid:hidden=uid
+                    asHcpOrAlly:select:HCP,ALLY
+                    code
+                    amount:number
+            teams
+            clients
+            pro_access
+            mcp_updates
+            ally_updates
+            erx
+            action_items
+            care_months
+            care_month_entries
+            notes
+            bills
+            pro_transactions
+            lobby_pros
+                id=lobby_pro.pro_id=>/lobby_pros/view/UID
+                add_new:lobby_pro
+                    proUid:hidden=uid
+                    lobbyUid:record:lobby:uid,name
+            sessions
+            audit_log
+    pro_rates|pro_rate|view
+    pro_rates/view/{uid}
+        ACTIONS
+            updateAmount
+                newAmount:number=amount
+        SUB
+            dashboard
+    lobbies|lobby|add|view
+    lobbies/add_new:create
+        name
+		urlSlug
+		isStrangerAccessible:boolean
+		isClientAccessible:boolean
+    lobbies/view/{uid}
+        ACTIONS
+            putName
+                name
+            putUrlSlug
+                urlSlug
+            setIsStrangerAccessibleToTrue
+            setIsStrangerAccessibleToFalse
+            setIsClientAccessibleToTrue
+            setIsClientAccessibleToFalse
+        SUB
+            dashboard
+            lobby_pros
+                id=lobby_pro.lobby_id=>/lobby_pros/view/UID
+                add_new:lobby_pro
+                    lobbyUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+            meetings
+                id=meeting.lobby_id=>/meetings/view/UID
+    meetings|meeting|add|view
+    meetings/add_new:meetings:createAsProPerformer
+        lobbyUid:record:lobby:uid,name
+		targetLobbyProUid:record:lobby_pro:uid,uid
+		title
+		name
+		pictureBase64
+    meetings/view/{uid}
+        ACTIONS
+            putLobby
+                lobbyUid:record:lobby:uid,name
+            putTargetLobbyPro
+                lobbyUid:record:lobbyPro:uid,name
+            putTitle
+                title
+            putStrangerInfo
+                strangerFirstName
+		        strangerLastName
+		        strangerDob:date
+		        strangerMcn
+		        isStrangerMcnPpb:boolean
+		        strangerMcnDetail
+		        strangerSsn
+		        strangerDetail
+            putMeetingNumber
+        SUB
+            dashboard
+            meeting_participants
+                id=meeting_participant.meeting_id=>/meeting_participants/view/UID
+                add_new:meeting_participant:createForPro
+                    meetingUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+                    name
+                    pictureBase64
+            meeting_invitations
+                id=meeting_invitation.meeting_id=>/meeting_invitations/view/UID
+                add_new:meeting_invitation
+                    meetingUid:hidden=uid
+                    smsOrEmail:select:SMS,EMAIL
+                    toSms
+                    toEmail
+                    toName
+            meeting_rings
+                id=meeting_ring.meeting_id=>/meeting_rings/view/UID
+            meeting_knocks
+                id=meeting_knock.meeting_id=>/meeting_knocks/view/UID
+            meeting_messages
+                id=meeting_message.meeting_id=>/meeting_messages/view/UID
+    meeting_participants|meeting_participant|view
+    meeting_participants/view/{uid}
+        SUB
+            dashboard
+    meeting_invitations|meeting_invitation|view
+    meeting_invitations/view/{uid}
+        ACTIONS
+            cancel
+                memo
+        SUB
+            dashboard
+    meeting_rings|meeting_ring|view
+    meeting_rings/view/{uid}
+        SUB
+            dashboard
+    meeting_knocks|meeting_knock|view
+    meeting_knocks/view/{uid}
+        SUB
+            dashboard
+    meeting_messages|meeting_message|view
+    meeting_message/view/{uid}
+        SUB
+            dashboard

+ 38 - 0
resources/views/admin/pros_SINGLE/ACTION_setIsHcpToFalse.blade.php

@@ -0,0 +1,38 @@
+@extends('admin.pros.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3">
+        <div>Set Is Hcp To False</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="true"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/pro/setIsHcpToFalse">
+        <input type="hidden" name="_success" value="{{route('pros-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('pros_SINGLE-ACTION_setIsHcpToFalse', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('pros-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 38 - 0
resources/views/admin/pros_SINGLE/ACTION_setIsHcpToTrue.blade.php

@@ -0,0 +1,38 @@
+@extends('admin.pros.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3">
+        <div>Set Is Hcp To True</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="true"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/pro/setIsHcpToTrue">
+        <input type="hidden" name="_success" value="{{route('pros-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('pros_SINGLE-ACTION_setIsHcpToTrue', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('pros-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 10 - 160
resources/views/pro/my_clients/index.blade.php

@@ -12,175 +12,25 @@
         <table class="table table-hover text-nowrap">
             <thead>
             <tr>
-<th>Id</th>
-<th>Created At</th>
-<th>Type</th>
-<th>Uid</th>
-<th>Deactivated At</th>
-<th>Deactivation Memo</th>
-<th>Is Active</th>
-<th>Reactivated At</th>
-<th>Reactivation Memo</th>
-<th>Cell Number</th>
-<th>Cell Number Confirmation Token</th>
-<th>Cell Number Confirmed At</th>
-<th>Cm Reason1</th>
-<th>Cm Reason2</th>
-<th>Cm Target</th>
-<th>Date Of Birth</th>
-<th>Email Address</th>
-<th>Email Address Confirmation Token</th>
-<th>Email Address Confirmed At</th>
-<th>Gender</th>
-<th>Has Mcp Done Em Visit</th>
-<th>Home Address City</th>
-<th>Home Address Country</th>
-<th>Home Address Lat</th>
-<th>Home Address Line1</th>
-<th>Home Address Line2</th>
-<th>Home Address Long</th>
-<th>Home Address State</th>
-<th>Home Address Zip</th>
-<th>Home Phone Number</th>
-<th>Intake Detail</th>
-<th>Intake Text</th>
-<th>Is Cell Number Confirmation Pending</th>
-<th>Is Cell Number Confirmed</th>
-<th>Is Client Enrolled In Cm</th>
-<th>Is Client Enrolled In Rm</th>
-<th>Is Currently In Meeting</th>
-<th>Is Email Address Confirmation Pending</th>
-<th>Is Email Address Confirmed</th>
-<th>Is Partbprimary Confirmed</th>
-<th>Is Password Temporary</th>
-<th>Mailing Address City</th>
-<th>Mailing Address Country</th>
-<th>Mailing Address Lat</th>
-<th>Mailing Address Line1</th>
-<th>Mailing Address Line2</th>
-<th>Mailing Address Long</th>
-<th>Mailing Address State</th>
-<th>Mailing Address Zip</th>
-<th>Mcp Em Visit Date</th>
-<th>Mcp Em Visit Memo</th>
-<th>Medicare Number</th>
-<th>Name Credential</th>
-<th>Name Display</th>
-<th>Name First</th>
-<th>Name Last</th>
-<th>Name Middle</th>
-<th>Name Prefix</th>
-<th>Name Suffix</th>
-<th>Partbconfirmation Memo</th>
-<th>Partbconfirmation Method</th>
-<th>Password</th>
-<th>Phone Numbers Memo</th>
-<th>Profile Picture Base64</th>
-<th>Rm Reason1</th>
-<th>Rm Reason2</th>
-<th>Supporter Memo</th>
-<th>Supporter Phone Number</th>
-<th>Username</th>
-<th>Why Not Enrolled In Cm Category</th>
-<th>Why Not Enrolled In Cm Memo</th>
-<th>Why Not Enrolled In Rm Category</th>
-<th>Why Not Enrolled In Rm Memo</th>
-<th>Work Phone Number</th>
-<th>Created By Session Id</th>
-<th>Deactivated By Session Id</th>
-<th>Reactivated By Session Id</th>
-<th>Ally Pro Id</th>
-<th>Current Meeting Participant Id</th>
-<th>Mcp Em Visit Note Id</th>
-<th>Mcp Pro Id</th>
-<th>Team Id</th>
+<th>Name</th>
+<th>DOB</th>
+<th>Sex</th>
+<th>CM</th>
+<th>RM</th>
+<th>MCP</th>
+<th>Ally</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
-<td><?= $record->id ?></td>
-<td><?= $record->created_at ?></td>
-<td><?= $record->type ?></td>
-<td><a href="/my_clients/view/<?= $record->uid ?>"><?= $record->uid ?></a></td>
-<td><?= $record->deactivated_at ?></td>
-<td><?= $record->deactivation_memo ?></td>
-<td><?= $record->is_active ?></td>
-<td><?= $record->reactivated_at ?></td>
-<td><?= $record->reactivation_memo ?></td>
-<td><?= $record->cell_number ?></td>
-<td><?= $record->cell_number_confirmation_token ?></td>
-<td><?= $record->cell_number_confirmed_at ?></td>
-<td><?= $record->cm_reason1 ?></td>
-<td><?= $record->cm_reason2 ?></td>
-<td><?= $record->cm_target ?></td>
+<td><a href="/my_clients/view/<?= $record->uid ?>"><?= $record->name_display ?></a></td>
 <td><?= $record->date_of_birth ?></td>
-<td><?= $record->email_address ?></td>
-<td><?= $record->email_address_confirmation_token ?></td>
-<td><?= $record->email_address_confirmed_at ?></td>
 <td><?= $record->gender ?></td>
-<td><?= $record->has_mcp_done_em_visit ?></td>
-<td><?= $record->home_address_city ?></td>
-<td><?= $record->home_address_country ?></td>
-<td><?= $record->home_address_lat ?></td>
-<td><?= $record->home_address_line1 ?></td>
-<td><?= $record->home_address_line2 ?></td>
-<td><?= $record->home_address_long ?></td>
-<td><?= $record->home_address_state ?></td>
-<td><?= $record->home_address_zip ?></td>
-<td><?= $record->home_phone_number ?></td>
-<td><?= $record->intake_detail ?></td>
-<td><?= $record->intake_text ?></td>
-<td><?= $record->is_cell_number_confirmation_pending ?></td>
-<td><?= $record->is_cell_number_confirmed ?></td>
 <td><?= $record->is_client_enrolled_in_cm ?></td>
 <td><?= $record->is_client_enrolled_in_rm ?></td>
-<td><?= $record->is_currently_in_meeting ?></td>
-<td><?= $record->is_email_address_confirmation_pending ?></td>
-<td><?= $record->is_email_address_confirmed ?></td>
-<td><?= $record->is_partbprimary_confirmed ?></td>
-<td><?= $record->is_password_temporary ?></td>
-<td><?= $record->mailing_address_city ?></td>
-<td><?= $record->mailing_address_country ?></td>
-<td><?= $record->mailing_address_lat ?></td>
-<td><?= $record->mailing_address_line1 ?></td>
-<td><?= $record->mailing_address_line2 ?></td>
-<td><?= $record->mailing_address_long ?></td>
-<td><?= $record->mailing_address_state ?></td>
-<td><?= $record->mailing_address_zip ?></td>
-<td><?= $record->mcp_em_visit_date ?></td>
-<td><?= $record->mcp_em_visit_memo ?></td>
-<td><?= $record->medicare_number ?></td>
-<td><?= $record->name_credential ?></td>
-<td><?= $record->name_display ?></td>
-<td><?= $record->name_first ?></td>
-<td><?= $record->name_last ?></td>
-<td><?= $record->name_middle ?></td>
-<td><?= $record->name_prefix ?></td>
-<td><?= $record->name_suffix ?></td>
-<td><?= $record->partbconfirmation_memo ?></td>
-<td><?= $record->partbconfirmation_method ?></td>
-<td><?= $record->password ?></td>
-<td><?= $record->phone_numbers_memo ?></td>
-<td><?= $record->profile_picture_base64 ?></td>
-<td><?= $record->rm_reason1 ?></td>
-<td><?= $record->rm_reason2 ?></td>
-<td><?= $record->supporter_memo ?></td>
-<td><?= $record->supporter_phone_number ?></td>
-<td><?= $record->username ?></td>
-<td><?= $record->why_not_enrolled_in_cm_category ?></td>
-<td><?= $record->why_not_enrolled_in_cm_memo ?></td>
-<td><?= $record->why_not_enrolled_in_rm_category ?></td>
-<td><?= $record->why_not_enrolled_in_rm_memo ?></td>
-<td><?= $record->work_phone_number ?></td>
-<td><?= $record->created_by_session_id ?></td>
-<td><?= $record->deactivated_by_session_id ?></td>
-<td><?= $record->reactivated_by_session_id ?></td>
-<td><?= $record->ally_pro_id ?></td>
-<td><?= $record->current_meeting_participant_id ?></td>
-<td><?= $record->mcp_em_visit_note_id ?></td>
-<td><?= $record->mcp_pro_id ?></td>
-<td><?= $record->team_id ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("SELECT name_display AS result FROM pro WHERE id = {$record->mcp_pro_id}")[0]->result ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("SELECT name_display AS result FROM pro WHERE id = {$record->ally_pro_id}")[0]->result ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 6 - 30
resources/views/pro/my_payment_schedule/index.blade.php

@@ -12,43 +12,19 @@
         <table class="table table-hover text-nowrap">
             <thead>
             <tr>
-<th>Id</th>
-<th>Created At</th>
-<th>Type</th>
-<th>Uid</th>
-<th>Deactivated At</th>
-<th>Deactivation Memo</th>
-<th>Is Active</th>
-<th>Reactivated At</th>
-<th>Reactivation Memo</th>
-<th>Amount</th>
-<th>As Hcp Or Ally</th>
 <th>Code</th>
-<th>Created By Session Id</th>
-<th>Deactivated By Session Id</th>
-<th>Reactivated By Session Id</th>
-<th>Pro Id</th>
+<th>Description (HCP/Ally)</th>
+<th>Amount</th>
+<th>Earnings</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
-<td><?= $record->id ?></td>
-<td><?= $record->created_at ?></td>
-<td><?= $record->type ?></td>
-<td><?= $record->uid ?></td>
-<td><?= $record->deactivated_at ?></td>
-<td><?= $record->deactivation_memo ?></td>
-<td><?= $record->is_active ?></td>
-<td><?= $record->reactivated_at ?></td>
-<td><?= $record->reactivation_memo ?></td>
-<td><?= $record->amount ?></td>
-<td><?= $record->as_hcp_or_ally ?></td>
 <td><?= $record->code ?></td>
-<td><?= $record->created_by_session_id ?></td>
-<td><?= $record->deactivated_by_session_id ?></td>
-<td><?= $record->reactivated_by_session_id ?></td>
-<td><?= $record->pro_id ?></td>
+<td><?= $record->as_hcp_or_ally ?></td>
+<td><?= $record->amount ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select '- TODO -' as result")[0]->result ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 7 - 33
resources/views/pro/my_teams/index.blade.php

@@ -12,45 +12,19 @@
         <table class="table table-hover text-nowrap">
             <thead>
             <tr>
-<th>Id</th>
-<th>Created At</th>
-<th>Type</th>
-<th>Uid</th>
-<th>Deactivated At</th>
-<th>Deactivation Memo</th>
-<th>Is Active</th>
-<th>Reactivated At</th>
-<th>Reactivation Memo</th>
-<th>Client Count</th>
-<th>Client Count Refreshed At</th>
 <th>Team Number</th>
-<th>Created By Session Id</th>
-<th>Deactivated By Session Id</th>
-<th>Reactivated By Session Id</th>
-<th>Ally Pro Id</th>
-<th>Hcp Pro Id</th>
+<th>HCP</th>
+<th>Ally Pro</th>
+<th>Clients</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
-<td><?= $record->id ?></td>
-<td><?= $record->created_at ?></td>
-<td><?= $record->type ?></td>
-<td><a href="/my_teams/view/<?= $record->uid ?>"><?= $record->uid ?></a></td>
-<td><?= $record->deactivated_at ?></td>
-<td><?= $record->deactivation_memo ?></td>
-<td><?= $record->is_active ?></td>
-<td><?= $record->reactivated_at ?></td>
-<td><?= $record->reactivation_memo ?></td>
-<td><?= $record->client_count ?></td>
-<td><?= $record->client_count_refreshed_at ?></td>
-<td><?= $record->team_number ?></td>
-<td><?= $record->created_by_session_id ?></td>
-<td><?= $record->deactivated_by_session_id ?></td>
-<td><?= $record->reactivated_by_session_id ?></td>
-<td><?= $record->ally_pro_id ?></td>
-<td><?= $record->hcp_pro_id ?></td>
+<td><a href="/my_teams/view/<?= $record->uid ?>"><?= $record->team_number ?></a></td>
+<td><a href="/foo/bar/<?= $record->hcp_pro_id ?>"><?= \Illuminate\Support\Facades\DB::select("select name_display as result from pro where id = {$record->hcp_pro_id} limit 1")[0]->result ?></a></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select name_display as result from pro where id = {$record->ally_pro_id} limit 1")[0]->result ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select COUNT(*) as result FROM client WHERE team_id = {$record->id}")[0]->result ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 4 - 8
resources/views/pro/my_teams_SINGLE/SUB_clients.blade.php

@@ -14,10 +14,8 @@
             <table class="table table-hover text-nowrap">
                 <thead>
                 <tr>
-                    <th>Id</th>
-<th>Created At</th>
+                    <th>Created At</th>
 <th>Type</th>
-<th>Uid</th>
 <th>Deactivated At</th>
 <th>Deactivation Memo</th>
 <th>Is Active</th>
@@ -95,16 +93,14 @@
 <th>Current Meeting Participant Id</th>
 <th>Mcp Em Visit Note Id</th>
 <th>Mcp Pro Id</th>
-<th>Team Id</th>
+<th>Team</th>
                 </tr>
                 </thead>
                 <tbody>
                 @foreach($subRecords as $subRecord)
                     <tr>
-                        <td><?= $subRecord->id ?></td>
-<td><?= $subRecord->created_at ?></td>
+                        <td><a href="/my_clients/view/{{ $subRecord->uid }}"><?= $subRecord->created_at ?></a></td>
 <td><?= $subRecord->type ?></td>
-<td><a href="/my_clients/view/{{ $subRecord->uid }}"><?= $subRecord->uid ?></a></td>
 <td><?= $subRecord->deactivated_at ?></td>
 <td><?= $subRecord->deactivation_memo ?></td>
 <td><?= $subRecord->is_active ?></td>
@@ -182,7 +178,7 @@
 <td><?= $subRecord->current_meeting_participant_id ?></td>
 <td><?= $subRecord->mcp_em_visit_note_id ?></td>
 <td><?= $subRecord->mcp_pro_id ?></td>
-<td><?= $subRecord->team_id ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select team_number as result from team where id = {$subRecord->team_id} limit 1")[0]->result ?></td>
                     </tr>
                 @endforeach
                 </tbody>

+ 15 - 53
resources/views/pro/notes/index.blade.php

@@ -12,67 +12,29 @@
         <table class="table table-hover text-nowrap">
             <thead>
             <tr>
-<th>Id</th>
-<th>Created At</th>
-<th>Type</th>
-<th>Uid</th>
-<th>Cancellation Memo</th>
-<th>Cancelled At</th>
-<th>Is Cancelled</th>
-<th>Category</th>
-<th>Content Detail</th>
-<th>Content Text</th>
-<th>Effective Dateest</th>
-<th>Effective Time</th>
-<th>Is Signed By Ally</th>
-<th>Is Signed By Hcp</th>
-<th>Reason1</th>
-<th>Reason2</th>
-<th>Reason3</th>
-<th>Reason3plus</th>
-<th>Service Location</th>
-<th>Signed By Ally At</th>
-<th>Signed By Hcp At</th>
-<th>Created By Session Id</th>
-<th>Cancelled By Session Id</th>
-<th>Ally Pro Id</th>
-<th>Client Id</th>
-<th>Hcp Pro Id</th>
-<th>Signed By Ally Session Id</th>
-<th>Signed By Hcp Session Id</th>
+<th>Date</th>
+<th>Client</th>
+<th>HCP</th>
+<th>Ally</th>
+<th>Reason(s)</th>
+<th>Content</th>
+<th>Ally Signed?</th>
+<th>HCP Signed?</th>
+<th>Billed?</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
-<td><?= $record->id ?></td>
-<td><?= $record->created_at ?></td>
-<td><?= $record->type ?></td>
-<td><a href="/notes/view/<?= $record->uid ?>"><?= $record->uid ?></a></td>
-<td><?= $record->cancellation_memo ?></td>
-<td><?= $record->cancelled_at ?></td>
-<td><?= $record->is_cancelled ?></td>
-<td><?= $record->category ?></td>
-<td><?= $record->content_detail ?></td>
-<td><?= $record->content_text ?></td>
 <td><?= $record->effective_dateest ?></td>
-<td><?= $record->effective_time ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select name_display as result FROM client WHERE id = {$record->client_id}")[0]->result ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select name_display as result FROM pro WHERE id = {$record->hcp_pro_id}")[0]->result ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select name_display as result FROM pro WHERE id = {$record->ally_pro_id}")[0]->result ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("select concat(reason1,reason2) as result FROM note WHERE id = {$record->id}")[0]->result ?></td>
+<td><?= $record->content_text ?></td>
 <td><?= $record->is_signed_by_ally ?></td>
 <td><?= $record->is_signed_by_hcp ?></td>
-<td><?= $record->reason1 ?></td>
-<td><?= $record->reason2 ?></td>
-<td><?= $record->reason3 ?></td>
-<td><?= $record->reason3plus ?></td>
-<td><?= $record->service_location ?></td>
-<td><?= $record->signed_by_ally_at ?></td>
-<td><?= $record->signed_by_hcp_at ?></td>
-<td><?= $record->created_by_session_id ?></td>
-<td><?= $record->cancelled_by_session_id ?></td>
-<td><?= $record->ally_pro_id ?></td>
-<td><?= $record->client_id ?></td>
-<td><?= $record->hcp_pro_id ?></td>
-<td><?= $record->signed_by_ally_session_id ?></td>
-<td><?= $record->signed_by_hcp_session_id ?></td>
+<td><?= \Illuminate\Support\Facades\DB::select("SELECT '-- TODO --' as result")[0]->result ?></td>
                 </tr>
             @endforeach
             </tbody>