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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69b7d105c7767e5989ec3b1617f6c985c322c298447cf33dd3560e9a8426d77d
4
- data.tar.gz: 03351fd8551cbb69ea2dde9e6a1411d4330bf91c6e9708955a5863b8cf9e5de8
3
+ metadata.gz: 85e78e7935f8ce826abff50797aed3e81abbf4f751b80a708e619dcec36b38dc
4
+ data.tar.gz: bfe506cfe41b8899a956d5184a1f240a5a71b6f944c9669d63675cb6605f8ab6
5
5
  SHA512:
6
- metadata.gz: 5736f44a360881606509b037ca814e96021a07db82a7ccff8d00815042a427619da7d6b0e126c4e232b105797e8b0e9fe75c9a198f33f70a396483f91d0e96fa
7
- data.tar.gz: 4b4811eb1462631b358ac2a5468c5cd9cee3cdbb3eb96bf264bbae15d9371db43a387dd9665e0d0b43ffbf71c1d95e0174526b7615d4995743036d2cd8c92dcc
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
@@ -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
- patient_identifiers: localise_remote_patient_identifiers(patient),
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),
@@ -1,3 +1,3 @@
1
1
  module DdeMahis
2
- VERSION = "0.1.6"
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.6
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-21 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