dde_mahis 0.1.7 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98d52783d48cc54031d990aa9894e2c8f697e09959a007b72f8795fad7b1a393
4
- data.tar.gz: 9c1a6e58dbbbfaefb91e61431f931ef0aa126f075c31137d47fca27a5f3e1676
3
+ metadata.gz: 85e78e7935f8ce826abff50797aed3e81abbf4f751b80a708e619dcec36b38dc
4
+ data.tar.gz: bfe506cfe41b8899a956d5184a1f240a5a71b6f944c9669d63675cb6605f8ab6
5
5
  SHA512:
6
- metadata.gz: 8d3caa597ea2da540832b27bc4c7181d00f4004c3f7fa53b6f0e36409d9b0ffa733568b1244c0a8660479bdaec4061e779adb3ebb738c7c9c2cde716817f5b75
7
- data.tar.gz: 44cdbf6ef47069b8544a9d9dca89ade68c3b0cf375a4c6aa54f98d8e99e1ff01f152f338ea9f5e8de7f2afc0991313f8fe5d54644af4133839dffa8d69336886
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
@@ -1,3 +1,3 @@
1
1
  module DdeMahis
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
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.7
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-24 00:00:00.000000000 Z
11
+ date: 2025-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails