Facility Provider ID

wakie87 wrote on Monday, April 16, 2012:

Hi New code based on git comments

Reviews /comments appreciated.

https://github.com/Wakie87/openemr/compare/mc_prescriber

Thanks

Scott

bradymiller wrote on Monday, April 16, 2012:

Hi,

This is an interesting feature. It will allow assigning a unique provider id per facility. I think this would be a useful feature, but would like to get feedback from community (ie. you think not useful or should be an optional feature).

The above link can’t be reviewed/tested, so I have rebased this code into one commit here to allow review/testing:
http://github.com/bradymiller/openemr/commits/wakie87-facility-provider-numbers_2

thanks,
-brady
OpenEMR

bradymiller wrote on Wednesday, April 18, 2012:

Hi,

Was hoping to get some input here on this feature. If have the time, please test it out and let us know if it makes sense to include this in the official codebase (can add per facility provider ids by clicking on the ‘View Facility Provider IDs’ at the administration->users gui). Will wait a couple more days before I do a code review (I don’t want Scott to waste time making more changes if this feature doesn’t make sense to include in the official codebase).

thanks,
-Brady
OpenEMR

yehster wrote on Wednesday, April 18, 2012:

Scott,
Can you explain a usage scenario of this feature in further detail? 

wakie87 wrote on Wednesday, April 18, 2012:

Here is a scenario related to Australia

Each Doctor is initially given a single Presciber Number, This number allows them to prescribe medications from phramacies, and allow patients to revcieve subsidised medications from the pharmacy. This prescriber number is usually only ever found on prescriptions. (I’m guessing this is something like your federal drug id?)

The doctor then has to have a provider number for each location that he/she is working at. This allows them to provide services that are subsidised by the government.  The provider number also helps the government know what locations services are being provided. This number is usually used for billing. So depending on what location/facility is used to which number is used. (This is the new Facility ID Code I have created.)

Scott

bradymiller wrote on Thursday, April 19, 2012:

Hi,

I actually asked Scott to make this a rather generic mechanism since it seemed like it could have other potential uses. Such as:
per Facility user billing id
per Facility user employee id
per Facility provider id

I just realized it could even be more generic if instead called them:
User Facility ID

-Brady
OpenEMR

yehster wrote on Thursday, April 19, 2012:

In order to support those additional uses, I think there should be another column in the new table indicating the purpose of the ID. 

Presumably there’s more work down the road to actually do something with the new data in the future.

bradymiller wrote on Thursday, April 19, 2012:

Hi yehster,
I agree. Then would be able to support adding more per facility stuff in the future.
-brady

bradymiller wrote on Wednesday, April 25, 2012:

Hi Scott,

I placed a full review on github at:
http://github.com/bradymiller/openemr/commit/721a0a8c69daeddd459c3bd10e7dc9dd53d6dc4a

After the changes, this should be reasonable to commit to the official codebase.

-brady
OpenEMR

wakie87 wrote on Thursday, April 26, 2012:

Hi Brady,

Have updated based on comments on github

https://github.com/Wakie87/openemr/compare/facility_user

Not sure what you meant about the new label coloumn? Could you explain some more?

Regards

Scott

bradymiller wrote on Thursday, April 26, 2012:

Hi,

Placed a review on github (only some minor issues left). Regarding the label columns, by doing this, can then utilize a list_options (list called facility_user_ids) to actually populate what information is dsiplayed/collected. So, in the sql table, a column entitled ‘label’ would hold the data category (such as ‘provider_id’, which would get a title from list_options of ‘Provider ID’) and then a column entitled ‘value’ would hold the actual data. So, then very easy to add more categories of provider per facility by simply adding it in the list_options list. This kind of code would be quick to add; would be glad to do it if I find some time.

-brady
OpenEMR Project

wakie87 wrote on Friday, April 27, 2012:

Hey,

Updated based on your comments. Looking into the list options and trying to get my head around it. It sounds like a good idea.

Scott

bradymiller wrote on Saturday, April 28, 2012:

Hi,

I actually built it into the layouts engine (I needed a good excuse to learn more about the engine anyways), which is pretty cool.

I posted the code here which is testing well and ready for review (it is the first commit):
http://github.com/bradymiller/openemr/commits/facility-user-layout-engine_1
(can enter in per-facility user information at Administration->Users->View Facility Specific User Information->Click on username to edit info)
(can add new entries via Administration->Layouts->Facility Specific User Information)

Scott,
Let me know what you think and also what you want for the form label and id; I put Provider ID, but can use anything you want since it’s easy for others to modify. Also, here’s a commit basically showing a diff of the changes I made to your code: http://github.com/bradymiller/openemr/commit/c9307f9ab786babce5819f56ae8ce8dc165143ce

thanks,
-brady
OpenEMR

wakie87 wrote on Monday, April 30, 2012:

Hi,

Works well, I think we can leave it as provider id as this is generic enough.

Regarding the layout of it. I was thinking  instead of a button to “View facility specific infromation” we have an extra column in the table which basically links to a modal window. Inside that modal window is two frames (Similar to the add prescription) The left frame then lists the facilitys and the right frame to fields? Does this make sense?

I am going to have a play around with this but otherwise the rest looks great!

Scott

ajperezcrespo wrote on Monday, April 30, 2012:

Scenario:
A Site with 3 facilities and providers see patients at differnt facilities.  Will this print the correct facility address on the prescription?
For example if Doc1 whos default is set to  FacilityA, then when at FacilityB make a prescription.   What Facility Address is printed? 

Thanks
 

bradymiller wrote on Monday, April 30, 2012:

Hi ajperezcrespo,
This feature isn’t really applicable to your question. This feature is just meant to track user data that facility specific. For example, facility specific id numbers, parking spots, etc. For the scenario, rec. trying it out ti see what happens or checking what gets populated in the code.
-brady
OpenEMR

bradymiller wrote on Tuesday, May 01, 2012:

Hi wakie87,

Since the back-end part of this (layouts entry etc) is looking good, I plan to commit these changes to the official codebase soon. Please feel free to improve it; I like your idea of listing facilties on left with entry form on the right and I’d suggest doing this with div elements rather than frames.

thanks,
-brady
OpenEMR