dde_mahis 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/dde_mahis/api/v1/dde_controller.rb +11 -1
- data/app/services/dde_service.rb +1 -1
- data/lib/dde_mahis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85e78e7935f8ce826abff50797aed3e81abbf4f751b80a708e619dcec36b38dc
|
4
|
+
data.tar.gz: bfe506cfe41b8899a956d5184a1f240a5a71b6f944c9669d63675cb6605f8ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6932d937a6b71ac8250b304293556cf37901423f2fa3c2e87b26f28ec704d7b2063dc4b8aa8ec7e5e9c4bae773d193222020e21acafad5a6b87e948bf0ae181
|
7
|
+
data.tar.gz: 0042ae80c90cba19ba7a712cf859b3c4d24415e8b98282861cc094cfa3024505325ba86d81920173d2f4b7b4957346c22af1d781007256841ae8e864674c9658
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module DdeMahis
|
2
2
|
class Api::V1::DdeController < ApplicationController
|
3
3
|
# GET /dde/patients
|
4
|
+
after_action :remove_from_aetc_list, only: [:merge_patients]
|
5
|
+
|
4
6
|
def find_patients_by_npid
|
5
7
|
npid = params.require(:npid)
|
6
8
|
render json: service.find_patients_by_npid(npid)
|
@@ -90,5 +92,13 @@ module DdeMahis
|
|
90
92
|
def visit_type
|
91
93
|
Program.find(params.require(:visit_type_id))
|
92
94
|
end
|
95
|
+
|
96
|
+
def remove_from_aetc_list
|
97
|
+
primary_person = Person.find_by(uuid: params[:primary][:patient_id])
|
98
|
+
AetcVisitList.where(uuid: params[:secondary].first[:patient_id])
|
99
|
+
.update_all(uuid: primary_person.uuid,
|
100
|
+
patient_id: primary_person.person_id,
|
101
|
+
category: 'triage')
|
102
|
+
end
|
93
103
|
end
|
94
|
-
end
|
104
|
+
end
|
data/app/services/dde_service.rb
CHANGED
@@ -486,7 +486,7 @@ class DdeService
|
|
486
486
|
# to that of a local patient
|
487
487
|
def localise_remote_patient(patient)
|
488
488
|
Patient.new(
|
489
|
-
|
489
|
+
identifiers: localise_remote_patient_identifiers(patient),
|
490
490
|
person: Person.new(
|
491
491
|
names: localise_remote_patient_names(patient),
|
492
492
|
addresses: localise_remote_patient_addresses(patient),
|
data/lib/dde_mahis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dde_mahis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- brian-mw
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|