psr12 fixes for new PHP_CodeSniffer (#4795)
[openemr.git] / portal / patient / libs / Model / DAO / OnsiteDocumentMap.php
blob7737443afad7324cd09014801d49a7c85023c84f
1 <?php
3 /**
4 * OnsiteDocumentMap.php
6 * @package OpenEMR
7 * @link https://www.open-emr.org
8 * @author Jerry Padgett <sjpadgett@gmail.com>
9 * @copyright Copyright (c) 2016-2017 Jerry Padgett <sjpadgett@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 /** import supporting libraries */
14 require_once("verysimple/Phreeze/IDaoMap.php");
15 require_once("verysimple/Phreeze/IDaoMap2.php");
17 /**
18 * OnsiteDocumentMap is a static class with functions used to get FieldMap and KeyMap information that
19 * is used by Phreeze to map the OnsiteDocumentDAO to the onsite_documents datastore.
21 * WARNING: THIS IS AN AUTO-GENERATED FILE
23 * This file should generally not be edited by hand except in special circumstances.
24 * You can override the default fetching strategies for KeyMaps in _config.php.
25 * Leaving this file alone will allow easy re-generation of all DAOs in the event of schema changes
27 * @package Openemr::Model::DAO
28 * @author ClassBuilder
29 * @version 1.0
31 class OnsiteDocumentMap implements IDaoMap, IDaoMap2
33 private static $KM;
34 private static $FM;
36 /**
37 * {@inheritdoc}
39 public static function AddMap($property, FieldMap $map)
41 self::GetFieldMaps();
42 self::$FM[$property] = $map;
45 /**
46 * {@inheritdoc}
48 public static function SetFetchingStrategy($property, $loadType)
50 self::GetKeyMaps();
51 self::$KM[$property]->LoadType = $loadType;
54 /**
55 * {@inheritdoc}
57 public static function GetFieldMaps()
59 if (self::$FM == null) {
60 self::$FM = array();
61 self::$FM["Id"] = new FieldMap("Id", "onsite_documents", "id", true, FM_TYPE_INT, 10, null, true);
62 self::$FM["Pid"] = new FieldMap("Pid", "onsite_documents", "pid", false, FM_TYPE_INT, 10, null, false);
63 self::$FM["Facility"] = new FieldMap("Facility", "onsite_documents", "facility", false, FM_TYPE_INT, 10, null, false);
64 self::$FM["Provider"] = new FieldMap("Provider", "onsite_documents", "provider", false, FM_TYPE_INT, 10, null, false);
65 self::$FM["Encounter"] = new FieldMap("Encounter", "onsite_documents", "encounter", false, FM_TYPE_INT, 10, null, false);
66 self::$FM["CreateDate"] = new FieldMap("CreateDate", "onsite_documents", "create_date", false, FM_TYPE_TIMESTAMP, null, "0000-00-00 00:00:00", false);
67 self::$FM["DocType"] = new FieldMap("DocType", "onsite_documents", "doc_type", false, FM_TYPE_VARCHAR, 255, null, false);
68 self::$FM["PatientSignedStatus"] = new FieldMap("PatientSignedStatus", "onsite_documents", "patient_signed_status", false, FM_TYPE_SMALLINT, 5, null, false);
69 self::$FM["PatientSignedTime"] = new FieldMap("PatientSignedTime", "onsite_documents", "patient_signed_time", false, FM_TYPE_DATETIME, null, null, false);
70 self::$FM["AuthorizeSignedTime"] = new FieldMap("AuthorizeSignedTime", "onsite_documents", "authorize_signed_time", false, FM_TYPE_DATETIME, null, null, false);
71 self::$FM["AcceptSignedStatus"] = new FieldMap("AcceptSignedStatus", "onsite_documents", "accept_signed_status", false, FM_TYPE_SMALLINT, 5, null, false);
72 self::$FM["AuthorizingSignator"] = new FieldMap("AuthorizingSignator", "onsite_documents", "authorizing_signator", false, FM_TYPE_VARCHAR, 50, null, false);
73 self::$FM["ReviewDate"] = new FieldMap("ReviewDate", "onsite_documents", "review_date", false, FM_TYPE_DATETIME, null, null, false);
74 self::$FM["DenialReason"] = new FieldMap("DenialReason", "onsite_documents", "denial_reason", false, FM_TYPE_VARCHAR, 255, null, false);
75 self::$FM["AuthorizedSignature"] = new FieldMap("AuthorizedSignature", "onsite_documents", "authorized_signature", false, FM_TYPE_TEXT, null, null, false);
76 self::$FM["PatientSignature"] = new FieldMap("PatientSignature", "onsite_documents", "patient_signature", false, FM_TYPE_TEXT, null, null, false);
77 self::$FM["FullDocument"] = new FieldMap("FullDocument", "onsite_documents", "full_document", false, FM_TYPE_BLOB, null, null, false);
78 self::$FM["FileName"] = new FieldMap("FileName", "onsite_documents", "file_name", false, FM_TYPE_VARCHAR, 255, null, false);
79 self::$FM["FilePath"] = new FieldMap("FilePath", "onsite_documents", "file_path", false, FM_TYPE_VARCHAR, 255, null, false);
82 return self::$FM;
85 /**
86 * {@inheritdoc}
88 public static function GetKeyMaps()
90 if (self::$KM == null) {
91 self::$KM = array();
94 return self::$KM;