Place of Service (POS) Codes Needs Updates

writecraft wrote on Thursday, September 25, 2014:

Hi,

I’ve been working on a client’s OpenEMR site, she had an issue with finding the correct POS codes for some of her facilities. I found that the POS codes are hard-coded in OpenEMR here: /library/classes/POSRef.class.php and are somewhat out of date, and missing codes compared to the official list here: http://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set.html (see codes 01, 09, 16, 17, 18).

So, rather than hand updating POSRef.class.php, I added this right above ‘return $pos;’ in the init_pos() function:

		// Updater added by WriteCraft to update facility POS (Place of Service) codes http://www.cms.gov/Medicare/Coding/place-of-service-codes/
		// In Administration > Lists, create a new List named 'Facility POS Codes'
		// Add only missing or needs updating POS Codes
		// ID = POS Code, Title = Place of Service Name, Notes = Place of Service Description
		// You can add your own custom codes as well -- outside the CMS code series ( ie "101: Facility No Longer In Service" )
		
		$res = sqlStatement("select * from list_options where list_id='Facility_POS_Codes' order by option_id");
			while($posRow=sqlFetchArray($res)){ 
				$ref = (int)$posRow['option_id']-1;
				$pos[$ref] = array("code" => $posRow['option_id'], "title" => $posRow['title'], "description" => $posRow['notes']);
			}
		
		// end Updater

Is there an easier way to keep the POS codes current?

Thanks!

juggernautsei wrote on Monday, August 22, 2016:

Reviving this thread because I am doing some work over here in this area. There is a request to be able to set the POS Code per encounter. I have run into this over and over.

I am working on the encounter form to include the ability to select POS on the encounter form.
See attached screenshot.

Also, the POS class file needs to be updated . The provided link is what I will be using to update the class file with.

I will submit the work as soon as I can.

Any suggestions?

juggernautsei wrote on Monday, August 22, 2016:

Pull request Encounter pos code by juggernautsei · Pull Request #194 · openemr/openemr · GitHub

sunsetsystems wrote on Monday, August 22, 2016:

Made a couple of comments in your PR. Thanks!

Rod
http://www.sunsetsystems.com/

juggernautsei wrote on Tuesday, August 23, 2016:

I have reviewed the comments and made the adjustements to the code.

sunsetsystems wrote on Tuesday, August 23, 2016:

I found a couple more things to comment on but have not tested. Aside from that it looks reasoanble and I’ll give others a chance to chime in and test.

Rod
http://www.sunsetsystems.com/

juggernautsei wrote on Thursday, August 25, 2016:

Here is the new commit

bradymiller wrote on Thursday, August 25, 2016:

Hi Sherwin,

Placed a review on github. Just some minor things and missing the input gui script on the PR.

thanks,
-brady
OpenEMR

juggernautsei wrote on Thursday, August 25, 2016:

Yeah, not sure what happened there and it was cluster of nothing good. So here is the next commit https://github.com/openemr/openemr/pull/201