Changes between Version 3 and Version 4 of CiviCRM Module HSCIC Importer Planning


Ignore:
Timestamp:
10/08/13 10:05:03 (11 years ago)
Author:
Nick Holden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CiviCRM Module HSCIC Importer Planning

    v3 v4  
    112112The 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.
    113113
     114Note that addresses are 'unstructured' other than postcode. We could replicate the address matching approach we've implemented for the NIHR !BioResource module, but (a) beware of google maps API limit and (b) the street address for practices rarely begins with a number, so is less predictable. A reliable source of address data is becoming a higher priority.
     115
     116
    114117=== Process ===
    115118
     
    118121Match each GP to a health worker record in CiviCRM, ensure relationship links to correct GP Practice. Include senior partner / principal GP relationship.
    119122
    120 How to deal with archive data? Do we care?
     123How to deal with archive data? Do we care? For the time being, assume we don't care. What matters to us is a currently-viable record of each practice so that we can construct mailing lists, etc., not a historically accurate record of all changes.
    121124
    122 See https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_cron/7 for details on using cron to schedule the work
     125This requires an amendment to the CiviCRM object model for Practice addresses - an additional item of custom data for the 'organisation code' which comprises the practice code plus a three digit identifier. This will be optional - it only has relevance for branch surgery addresses, not main addresses.
     126
     127See https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_cron/7 for details on using hook_cron to schedule the work.
     128
     129To begin with, we should limit our work to loading in GP surgeries, GPs themselves, and addresses / telephone numbers for GP surgeries and branch surgeries. Links to health authorities and other entitities would be possible, but is outside of scope for the time being.
     130
    123131
    124132=== Psuedocode ===
     133
     134{{{
    125135
    126136wget monthly GP + practice amendment file
     
    135145if different, unpack zip file
    136146process csv file
     147
     148}}}
    137149
    138150