forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We decided to implement this by having multiple sort order sections for the four document types we support in CCD-A. I wrote a new preview option for CCD-A that examines the XML document to figure out the correct CCDA Template document type so we can know what sort order to use to display for the correct document. Added a deprecation notice to the ccr/display.php in case anyone is using it. We no longer reference it from the documents pages so we can probably remove it at some point. I also added a new filter event to the patient document tree viewer so people can modify / update the html tree rendering on the documents if they so choose. This made it easy to loosely couple the tree with the Carecoordination module.
- Loading branch information
Showing
8 changed files
with
430 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
* @author Ajil P.M <[email protected]> | ||
* @author Brady Miller <[email protected]> | ||
* @author Stephen Nielson <[email protected]> | ||
* @deprecated 7.0.0 People should use the /interface/modules/zend_modules/public/encountermanager/previewDocument?docId=<id> REST action instead of this file | ||
* @copyright Copyright (c) 2011 Z&H Consultancy Services Private Limited <[email protected]> | ||
* @copyright Copyright (c) 2013 Brady Miller <[email protected]> | ||
* @copyright Copyright (c) 2022 Discover and Change <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...d_modules/module/Carecoordination/src/Carecoordination/Model/CcdaDocumentTemplateOids.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* CcdaDocumentTemplateOids contains all of the CCD-A oids for the document template types we support in OpenEMR. | ||
* | ||
* @package openemr | ||
* @link http://www.open-emr.org | ||
* @author Stephen Nielson <[email protected]> | ||
* @copyright Copyright (c) 2022 Discover and Change <[email protected]> | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
namespace Carecoordination\Model; | ||
|
||
// @see http://www.hl7.org/ccdasearch/ for a listing of this oids (Last accessed on June 14th 2022) | ||
class CcdaDocumentTemplateOids | ||
{ | ||
const CCD = "2.16.840.1.113883.10.20.22.1.2"; | ||
const REFERRAL = "2.16.840.1.113883.10.20.22.1.14"; | ||
const TRANSFER_SUMMARY = "2.16.840.1.113883.10.20.22.1.13"; | ||
const CAREPLAN = "2.16.840.1.113883.10.20.22.1.15"; | ||
const CCDA_DOCUMENT_TEMPLATE_OIDS = [self::CCD, self::REFERRAL, self::TRANSFER_SUMMARY, self::CAREPLAN]; | ||
|
||
public static function isValidDocumentTemplateOid($oid) | ||
{ | ||
return in_array($oid, self::CCDA_DOCUMENT_TEMPLATE_OIDS); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.