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

FHIR Coverage Resource Added #4164

Merged
merged 30 commits into from
Jan 12, 2021
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6749f87
Merge pull request #1 from openemr/master
vishnuyar Dec 29, 2020
63e04de
Merge pull request #2 from openemr/master
vishnuyar Dec 31, 2020
bd3dd1b
Merge pull request #3 from openemr/master
vishnuyar Jan 4, 2021
e874a33
FHIR Coverage Resource added and associated changes
vishnuyar Jan 6, 2021
9338f43
style fixes
vishnuyar Jan 6, 2021
3ac2602
add OrganizationService API
vishnuyar Jan 7, 2021
12cdce5
add uuid column to insurance_companies and insurance_data
vishnuyar Jan 7, 2021
7b909af
PSR12 fixes
vishnuyar Jan 7, 2021
3de6432
add insert update to Organization Service
vishnuyar Jan 7, 2021
6ab5e8c
add FHIR Coverage route
vishnuyar Jan 7, 2021
5cb31e3
add orgtype while parsing resource
vishnuyar Jan 7, 2021
d475121
bug fix
vishnuyar Jan 7, 2021
8f50fc2
remove orgType
vishnuyar Jan 7, 2021
bffd64d
fixed handling errors
vishnuyar Jan 7, 2021
a38095b
add validation messages
vishnuyar Jan 7, 2021
6dbd6cd
modular functions
vishnuyar Jan 7, 2021
6121ecb
moved from 6.0.0 to 6.0.1
vishnuyar Jan 7, 2021
7498ef1
style fixes
vishnuyar Jan 7, 2021
027d0f1
handling old api services data
vishnuyar Jan 8, 2021
b5e752e
fixed review suggestions
vishnuyar Jan 8, 2021
752d8a8
bug fix for php7.4+
vishnuyar Jan 8, 2021
b3daabb
bug fix for php7.4
vishnuyar Jan 8, 2021
ae7f9b9
bug fix for php7.4
vishnuyar Jan 8, 2021
9815306
bug fix for php7.4
vishnuyar Jan 8, 2021
f3afe10
add getOneById and getOneByPid functions
vishnuyar Jan 10, 2021
dc35de7
styling fix
vishnuyar Jan 10, 2021
e4370f9
some more fixes
vishnuyar Jan 11, 2021
d958941
add insurance organization identifier
vishnuyar Jan 11, 2021
344d402
checking for empty results fix
vishnuyar Jan 12, 2021
5f9ba95
alphatize Coverage
vishnuyar Jan 12, 2021
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
add orgtype while parsing resource
  • Loading branch information
vishnuyar committed Jan 7, 2021
commit 5cb31e33ab36d002c3e46c18ecf49ca9d7df2f00
15 changes: 14 additions & 1 deletion src/Services/FHIR/FhirOrganizationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,20 @@ public function parseFhirResource($fhirResource = array())
$data['state'] = $fhirResource['address'][0]['state'];
}
}

//setting default OrgType to facility
$data['orgType'] = 'facility';
if (isset($fhirResource['type'])) {
foreach ($fhirResource['type'] as $orgtype) {
foreach ($orgtype['coding'] as $coding) {
if ($coding['code'] == 'pay') {
$data['orgType'] = 'insurance'
}
if ($coding['code'] == 'prov') {
$data['orgType'] = 'facility'
}
}
}
}
if (isset($fhirResource['telecom'])) {
foreach ($fhirResource['telecom'] as $telecom) {
switch ($telecom['system']) {
Expand Down