Template:Location dropdown cleanup: Difference between revisions
Ttenbergen (talk | contribs) |
Ttenbergen (talk | contribs) |
||
Line 36: | Line 36: | ||
== CFE Query == | == CFE Query == | ||
query z_s_dispo_inactivatable 2021-10-05 contains the following: | query z_s_dispo_inactivatable 2021-10-05 contains the following: | ||
<pre> | |||
SELECT s_dispo.location_name, s_dispo.Site, s_dispo.active, s_dispo.inpatient, L_Log_PIL.CountOfD_ID, s_dispo.previous_location, L_Log_P.CountOfD_ID, s_dispo.s_location, L_Log_SL.CountOfD_ID, s_dispo.dispo, L_Log_D.CountOfD_ID | SELECT s_dispo.location_name, s_dispo.Site, s_dispo.active, s_dispo.inpatient, L_Log_PIL.CountOfD_ID, s_dispo.previous_location, L_Log_P.CountOfD_ID, s_dispo.s_location, L_Log_SL.CountOfD_ID, s_dispo.dispo, L_Log_D.CountOfD_ID | ||
FROM (((s_dispo LEFT JOIN (SELECT Count(L_Log.D_ID) AS CountOfD_ID, L_Log.Pre_admit_Inpatient_Institution | FROM (((s_dispo LEFT JOIN (SELECT Count(L_Log.D_ID) AS CountOfD_ID, L_Log.Pre_admit_Inpatient_Institution | ||
Line 53: | Line 53: | ||
WHERE (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.inpatient)=True) AND ((L_Log_PIL.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.previous_location)=True) AND ((L_Log_P.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.s_location)=True) AND ((L_Log_SL.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.dispo)=True) AND ((L_Log_D.CountOfD_ID) Is Null)) | WHERE (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.inpatient)=True) AND ((L_Log_PIL.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.previous_location)=True) AND ((L_Log_P.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.s_location)=True) AND ((L_Log_SL.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.dispo)=True) AND ((L_Log_D.CountOfD_ID) Is Null)) | ||
ORDER BY s_dispo.location_name; | ORDER BY s_dispo.location_name; | ||
</pre> | |||
Revision as of 12:50, 2021 October 5
Temporary template to ensure consistent messaging on this topic.
"Can we remove the items that are no longer Service/Locations, Previous Locations, Pre-admit Inpatient Institutions or dispo locations from the dropdowns?"
We can and will remove them, but that can only happen once no more laptops use them. We will need to keep track of this and then remove them when ready. If I removed them now, then any box that currently has them enter would misbehave.
Some of these might still be legit just not currently used. Can any be deactivated? Sherry's question made me think that there should be more that should be taken off. It could be that there are pre-patient-follow profiles left that use the old entries, but that's a while ago, so it's also possible that collectors are not using the codes consistently. Sherry, could you give me three sample locations, and the field from which you think they should be no longer available? Ttenbergen 10:49, 2021 October 5 (CDT) |
|
CFE Query
query z_s_dispo_inactivatable 2021-10-05 contains the following:
SELECT s_dispo.location_name, s_dispo.Site, s_dispo.active, s_dispo.inpatient, L_Log_PIL.CountOfD_ID, s_dispo.previous_location, L_Log_P.CountOfD_ID, s_dispo.s_location, L_Log_SL.CountOfD_ID, s_dispo.dispo, L_Log_D.CountOfD_ID FROM (((s_dispo LEFT JOIN (SELECT Count(L_Log.D_ID) AS CountOfD_ID, L_Log.Pre_admit_Inpatient_Institution FROM L_Log WHERE (((L_Log.RecordStatus)="incomplete")) GROUP BY L_Log.Pre_admit_Inpatient_Institution) AS L_Log_PIL ON s_dispo.dispo_ID = L_Log_PIL.Pre_admit_Inpatient_Institution) LEFT JOIN (SELECT Count(L_Log.D_ID) AS CountOfD_ID, L_Log.Previous_Location FROM L_Log WHERE (((L_Log.RecordStatus)="incomplete")) GROUP BY L_Log.Previous_Location) AS L_Log_P ON s_dispo.dispo_ID = L_Log_P.Previous_Location) LEFT JOIN (SELECT Count(L_Log.D_ID) AS CountOfD_ID, L_Log.Service_Location FROM L_Log WHERE (((L_Log.RecordStatus)="incomplete")) GROUP BY L_Log.Service_Location) AS L_Log_SL ON s_dispo.dispo_ID = L_Log_SL.Service_Location) LEFT JOIN (SELECT Count(L_Log.D_ID) AS CountOfD_ID, L_Log.Dispo FROM L_Log WHERE (((L_Log.RecordStatus)="incomplete")) GROUP BY L_Log.Dispo) AS L_Log_D ON s_dispo.dispo_ID = L_Log_D.Dispo WHERE (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.inpatient)=True) AND ((L_Log_PIL.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.previous_location)=True) AND ((L_Log_P.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.s_location)=True) AND ((L_Log_SL.CountOfD_ID) Is Null)) OR (((s_dispo.Site) Is Not Null) AND ((s_dispo.active)=True) AND ((s_dispo.dispo)=True) AND ((L_Log_D.CountOfD_ID) Is Null)) ORDER BY s_dispo.location_name;