his_emr_api_radiology 0.0.7 → 0.0.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: b46ef467aa94dd97facd3b730fee3c7b4529f66d99e2feb3d60f0a07e2a6688e
4
- data.tar.gz: '08f811c68013cdc6510ebe239f4bdb957d5aa2a3067fdb89c5c2f63e641137e7'
3
+ metadata.gz: ab64d31ea8b7ec7e8829c80a82e4a62840f300ee3ed9e8b385c9e6d73b9dbd94
4
+ data.tar.gz: 2189afd1dc6fb546fb709195a172ecaf2dd90087e62b5ee32264e788731eac60
5
5
  SHA512:
6
- metadata.gz: 2a09feb5e35ac53d77b5b83ef54cb507d8198276d9bb42dcb36ed95d4c075c58f1300b02f73dddc88e0f26d42bc0008748f18a3b0cd0435db4035b2ad1a09d40
7
- data.tar.gz: eb2a73512bfafd03e9c8bf04cb327c435d28b34a66abdbfa7e58b35f356f6bf58eb1c592ae7cb387ec81fc6824e8c071550e4e4abc0cb27618634889da57bc8e
6
+ metadata.gz: 9ff060fddcaa5f0f523e70a7b7d175813a94cbdfa00f94b284cd25a49fedf657e1f275ea9efb153f89b846036fdfbc0a8723a581f9ca280437b9c915f09d8a99
7
+ data.tar.gz: '0794b58ba818afaad4a5564b3c04f35d0cf0a82396b81f2c64cf37e7c97998f141987b6a7be373f353a3825a06de4f99767d2017a1b376da60a4431241ab1fe9'
@@ -10,6 +10,11 @@ class Radiology::RadiologyController < ::ApplicationController
10
10
  def show
11
11
  render json: service.get_radiology_orders(params[:id])
12
12
  end
13
+
14
+ def index
15
+ render json: service.get_previous_orders(params[:patient_id])
16
+ end
17
+
13
18
  def print_order_label
14
19
  label = service.print_radiology_barcode(params[:accession_number],params[:patient_national_id], params[:patient_name], params[:radio_order], params[:date_created])
15
20
  send_data(label, type: 'application/label; charset=utf-8',
@@ -85,6 +85,10 @@ module Radiology
85
85
  ", concept_id).joins("INNER JOIN concept_set s ON
86
86
  s.concept_id = concept_name.concept_id").group("concept_name.concept_id").order(:name)
87
87
  end
88
+
89
+ def get_previous_orders(patient_id)
90
+ Observation.where("person_id = ? AND voided =0 AND concept_id = 8426",patient_id).order('obs_datetime DESC')
91
+ end
88
92
  end
89
93
  end
90
94
  end
@@ -1,3 +1,3 @@
1
1
  module Radiology
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: his_emr_api_radiology
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - petros
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-10 00:00:00.000000000 Z
11
+ date: 2021-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails