Copy of Chart PUR Import Options

Chart PUR Import Options

The following options are allowed. Any other options are unsupported and will be rejected.

Insert Options

  • REVISE
  • INSERT
  • DELETE_THEN_INSERT

Blank Options

  • DELETE_BLANK
  • IGNORE_BLANK

Distinct Options

DISTINCT is implied for all user patient records

Default Options

For user patient records, the default options are REVISE and DELETE_BLANK..

Examples

The following scenario provides examples of each type of processing possible for PUR import.

Initial Data

@patient_mrns.MR,patients.first_name,patients.last_name,patients.birth_date,patients.username,@pur.Supervisor.id,@pur.Supervisor.id_type,@pur.Administrative Assistant.id,@pur.Administrative Assistant.id_type,users.universal_id

1111,Test1,Employee,01/01/2001,user1,,,user8,id:username,11

2222,Test2,Employee,02#02#2002,user2,user1,id:username,user9,id:username,22

3333,Test3,Employee,03/03/2003,user3,user1,id:username,,,33

4444,Test4,Employee,04-04-2004,user4,user2,id:username,,,44

5555,Test5,Employee,05/05/2005,user5,user2,id:username,,,55

6666,Test6,Employee,06/06/2006,user6,user3,id:username,,,66

7777,Test7,Employee,07/07/2007,user7,user3,id:username,,,77

8888,Test8,Employee,08/08/2008,user8,user2,id:username,,,88

9999,Test9,Employee,09/09/2009,user9,user3,id:username,,,99

After this file is loaded:

  • user1 is the supervisor of user2 and user3 3171c8e3ee59304f67f6e60829e359df
  • user2 is the supervisor of user4, user5, and user8 6ae80f3bfdf8f898f1c2427784b1a093
  • user3 is the supervisor of user6, user7, and user9 A49e45814858557f3a79bdc91302175d
  • user8 is the administrative assistant of user1 09809a31ce8f0500ecb02a1a6c1283d3
  • user9 is the administrative assistant of user2 5398c38fd1685657853f78a41c301520

Import Updated Data

@patient_mrns.MR,patients.first_name,patients.last_name,patients.birth_date,patients.username,@pur.Supervisor.id,@pur.Supervisor.id_type,DELETE_THEN_INSERT @pur.Administrative Assistant.1.id,@pur.Administrative Assistant.1.id_type,INSERT IGNORE_BLANK @pur.Administrative Assistant.2.id,@pur.Administrative Assistant.2.id_type,users.universal_id

1111,Test1,Employee,01/01/2001,user1,,,,,,,11

2222,Test2,Employee,02#02#2002,user2,user3,id:username,user9,id:username,,,22

3333,Test3,Employee,03/03/2003,user3,,,user8,id:username,user4,id:username,33

4444,Test4,Employee,04-04-2004,user4,user3,id:username,,,,,44

5555,Test5,Employee,05/05/2005,user5,user2,id:username,,,,,55

6666,Test6,Employee,06/06/2006,user6,user4,id:username,,,,,66

7777,Test7,Employee,07/07/2007,user7,user4,id:username,,,,,77

8888,Test8,Employee,08/08/2008,user8,user2,id:username,,,,,88

9999,Test9,Employee,09/09/2009,user9,user2,id:username,,,,,99

Import Logic

The imported file is processed as follows:

Supervisor

No options are specified, so the default options of REVISE and DELETE_BLANK are used. Changes to the Supervisor role are as follows:

  • user1 is not a supervisor anymore 6989e90e60202162e8aa026477d17342
  • user2 is the supervisor for user5, user8, and user9 Add60e64ec554dc53b46da036a5f1c74
  • user3 is the supervisor for user2 and user4 475dd523b3e202bee3df41e59107a10e
  • user4 is the supervisor for user6 and user7 3d4b256b35e3b53c8ef0dc441f454628

Administrative Assistant (1)

The DELETE_THEN_INSERT option is used. Changes to the the Administrative Assistant role are as follows:

  • user8 is the administrative assistant for user3 Ee8c950d8467cef921b10800df9d76da
  • user9 is the administrative assistant for user2 344fbdc63dcd779463a55bc14edfeedc

Administrative Assistant (2)

The INSERT and IGNORE_BLANK options are used. Changes to the Administrative Assistant role are as follows:

  • user4 is also an administrative assistant for user3 76a89d073e58371717549e913ef8864a

Chart Data CSV Header Options

Was this page helpful?

Let us know how we can improve this documentation.

Published: December 18, 2024