Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All New FHIR Location Resource #3829

Merged
merged 6 commits into from
Aug 14, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes
Signed-off-by: Yash Bothra <yashrajbothra786@gmail.com>
  • Loading branch information
yashrajbothra committed Aug 13, 2020
commit 9b8dc22d1fa8187a241f838e204d13880a040481
16 changes: 13 additions & 3 deletions src/Services/FHIR/FhirLocationService.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<?php

/**
* FhirLocationService
*
* @package OpenEMR
* @link http://www.open-emr.org
* @author Yash Bothra <yashrajbothra786@gmail.com>
* @copyright Copyright (c) 2020 Yash Bothra <yashrajbothra786@gmail.com>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*/

namespace OpenEMR\Services\FHIR;

use OpenEMR\FHIR\R4\FHIRDomainResource\FHIRLocation;
Expand All @@ -21,7 +31,7 @@ public function __construct()
}

/**
* Returns an array mapping FHIR Patient Resource search parameters to OpenEMR Patient search parameters
* Returns an array mapping FHIR Location Resource search parameters to OpenEMR Location search parameters
* @return array The search parameters
*/
protected function loadSearchParameters()
Expand All @@ -30,11 +40,11 @@ protected function loadSearchParameters()
}

/**
* Parses an OpenEMR location record, returning the equivalent FHIR Patient Resource
* Parses an OpenEMR location record, returning the equivalent FHIR Location Resource
*
* @param array $dataRecord The source OpenEMR data record
* @param boolean $encode Indicates if the returned resource is encoded into a string. Defaults to false.
* @return FHIRPatient
* @return FHIRLocation
*/
public function parseOpenEMRRecord($dataRecord = array(), $encode = false)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Validators/BaseValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static function validateId($field, $table, $lookupId, $isUuid = false)
* @param $tables All tables in database
* @param $lookupId The identifier to validateId
* @param $isUuid true if the lookupId is UUID, otherwise false
* @return true if the lookupId is a valid existing id, otherwise Validation Message
* @return true if the lookupId is a valid existing id, otherwise false
*/
public static function validateIdMultiple($field, $tables, $lookupId, $isUuid = false)
{
Expand Down