Query NDC Bad Postal Code: Difference between revisions
Jump to navigation
Jump to search
TOstryzniuk (talk | contribs) m →province = CF: m |
Ttenbergen (talk | contribs) m →{{CFE Data Integrity Checks}} Steps: Julie confirmed to treat CF same as MB for this purpose |
||
Line 4: | Line 4: | ||
Comparisons are done as part of [[vetting]] via NDC query ''NDC_Bad_Postal_Code'' in [[CFE]]. | Comparisons are done as part of [[vetting]] via NDC query ''NDC_Bad_Postal_Code'' in [[CFE]]. | ||
Steps will be: | Steps will be: | ||
* if the patient has '''[[Province]] = Manitoba''': | * if the patient has '''[[Province]] = Manitoba or CF''' : | ||
*# check the postal code in EPR, correct if different than ours | *# check the postal code in EPR, correct if different than ours | ||
*# if same as ours, check the address in EPR against [https://www.canadapost.ca/cpo/mc/personal/postalcode/fpc.jsf Canada Post Postal Codes]; | *# if same as ours, check the address in EPR against [https://www.canadapost.ca/cpo/mc/personal/postalcode/fpc.jsf Canada Post Postal Codes]; | ||
Line 13: | Line 13: | ||
** If the first letter is appropriate for province but triggers because it's not in the master list, then register the D_ID with [[Known data errors]] with query name "NDC_Bad_Postal_Code" | ** If the first letter is appropriate for province but triggers because it's not in the master list, then register the D_ID with [[Known data errors]] with query name "NDC_Bad_Postal_Code" | ||
* if the patient has Province = (US or NK or OS) the query should not trigger at all | * if the patient has Province = (US or NK or OS) the query should not trigger at all | ||
=== update to [[Table Postal_Code_Master]] === | === update to [[Table Postal_Code_Master]] === |
Revision as of 10:21, 26 September 2016
We cross-check the postal codes we collect as part of Postal Code field collection against a list of known-good postal codes.
Template:CFE Data Integrity Checks Steps
Comparisons are done as part of vetting via NDC query NDC_Bad_Postal_Code in CFE. Steps will be:
- if the patient has Province = Manitoba or CF :
- check the postal code in EPR, correct if different than ours
- if same as ours, check the address in EPR against Canada Post Postal Codes;
- update patient's postal code if it was wrong or
- make #update to Table Postal_Code_Master if postal code was correct and just not in our list
- if the patient is from any other province:
- if the Postal Code's first letter is not for the province where the patient lives you need to check EPR or internet to put the correct Postal code
- If the first letter is appropriate for province but triggers because it's not in the master list, then register the D_ID with Known data errors with query name "NDC_Bad_Postal_Code"
- if the patient has Province = (US or NK or OS) the query should not trigger at all
update to Table Postal_Code_Master
- Open Table Postal_Code_Master
- update/add code
- you only need to fill in the fields PCode, rhaname, RHA_Acronym and town, we will eliminate the other fields.
File Locations
old master imports can be found at X:\CCMDB\z_archive\PostalCode
Where was it obtained
- From Randy Martens to Julie Mojica
integrated with
Wikipedia Postal codes listings across Canada
Wikipedia, Postal codes in Canada
- at the top of the article shows the the first letter that a postal code starts with for a province.
Map showing first letter used in postal codes across Canada
RHA Listings
- see Manitoba RHAs
Start Date
2014-09-29 Cleaning to start end of August 2016