15 | | == 2. UHL Data Warehouse |
| 17 | There is a 27 column 'standard' format for the data, as follows: |
| 18 | |
| 19 | * epraccur.zip - GP practice current data |
| 20 | *epraccur.csv |
| 21 | * Fields: |
| 22 | * Organisation code |
| 23 | * Practice Name |
| 24 | * National Grouping |
| 25 | * High Level Health Authority |
| 26 | * Address line 1 |
| 27 | * Address line 2 |
| 28 | * Address line 3 |
| 29 | * Address line 4 |
| 30 | * Address line 5 |
| 31 | * Postcode |
| 32 | * Open date |
| 33 | * Close date |
| 34 | * Status (A = Active, C = Closed, D = Dormant, P = Proposed) |
| 35 | * Sub-type code (B = Allocated to a parent organisation, Z = Not allocated to a parent organisation) |
| 36 | * Parent Organisation code (CCG/PCT etc code) |
| 37 | * Join parent date |
| 38 | * Left parent date |
| 39 | * Telephone number |
| 40 | * Null |
| 41 | * Null |
| 42 | * Null |
| 43 | * Amended record indicator |
| 44 | * Null |
| 45 | * Null |
| 46 | * Null |
| 47 | * Practice Type (0 = Other, 1 = WIC Practice, 2 = OOH Practice, 3 = WIC + OOH Practice, 4 = GP Practice, 5 = Prison prescribing cost centre) |
| 48 | * Null |
| 49 | |
| 50 | * ebranchs.zip - Branch surgery data |
| 51 | *ebranchs.csv |
| 52 | * Fields: |
| 53 | * Organisation code (made up of the surgery code plus three digits - 001, 002, etc - to denote a branch surgery) |
| 54 | * Branch surgery Name |
| 55 | * National Grouping |
| 56 | * High Level Health Authority |
| 57 | * Address line 1 |
| 58 | * Address line 2 |
| 59 | * Address line 3 |
| 60 | * Address line 4 |
| 61 | * Address line 5 |
| 62 | * Postcode |
| 63 | * Open date |
| 64 | * Close date |
| 65 | * Null |
| 66 | * Null |
| 67 | * Parent Organisation code (GP surgery code) |
| 68 | * Join parent date |
| 69 | * Left parent date |
| 70 | * Telephone number |
| 71 | * Null |
| 72 | * Null |
| 73 | * Null |
| 74 | * Amended record indicator |
| 75 | * Null |
| 76 | * Government Office Region Code |
| 77 | * Null |
| 78 | * Null |
| 79 | * Null |
| 80 | |
| 81 | * egpcur.zip - GP current data |
| 82 | *egpcur.csv |
| 83 | * Fields: |
| 84 | * G code |
| 85 | * Name (surname space initials) |
| 86 | * National Grouping |
| 87 | * High Level Health Authority |
| 88 | * Address line 1 |
| 89 | * Address line 2 |
| 90 | * Address line 3 |
| 91 | * Address line 4 |
| 92 | * Address line 5 |
| 93 | * Postcode |
| 94 | * Open date |
| 95 | * Close date |
| 96 | * Status (A = Active, C = Closed, P = Proposed) |
| 97 | * Sub-type code (P = Principal GP / Senior partner, O = Other GP) |
| 98 | * Parent Organisation code (GP surgery code) |
| 99 | * Join parent date |
| 100 | * Left parent date |
| 101 | * Telephone number |
| 102 | * Null |
| 103 | * Null |
| 104 | * Null |
| 105 | * Amended record indicator |
| 106 | * Null |
| 107 | * Current care organisation |
| 108 | * Null |
| 109 | * Null |
| 110 | * Null |
| 111 | |
| 112 | The monthly update file (egpam.zip -> egpam.csv) is an amalgamation of entries in both the above two formats into a single file for GP and GP practice data. Updated branch data is in ebranchsam.csv which is contained in eamendam.zip each month. |
| 113 | |
| 114 | === Process === |
| 115 | |
| 116 | Match each primary practice with a record in CiviCRM - update details, ensure 'main' address matches or is updated |
| 117 | Match each branch surgery with an address in CiviCRM of type 'other' |
| 118 | Match each GP to a health worker record in CiviCRM, ensure relationship links to correct GP Practice. Include senior partner / principal GP relationship. |
| 119 | |
| 120 | How to deal with archive data? Do we care? |
| 121 | |
| 122 | |
| 123 | == 2. UHL Data Warehouse == |