health_cards 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00d219e97e10c8f9bb218fc58c03132cb82e29596b256c4b75a20b9b798d8605
|
4
|
+
data.tar.gz: 13194eee55a226534b8ad877cfc79461502722a8fc3d95083ac668430b75c26a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffd6a53d171040b7416ad1374bcdd666bc5eb8bdd745ef98b630effc3e0623df82e8d0abb595e5c8d3f0bea60db25bad2f4b5e9f393a7c0389b2ffddc47002bf
|
7
|
+
data.tar.gz: 612e1f0e2d161580478b032250b9616748786d23a17896b6c22392e07b14cde695c67973d2baf593046af367c8304f0a4adb87c72dda68e398de0b3a97d9a30e
|
@@ -12,7 +12,7 @@ module HealthCards
|
|
12
12
|
# Class level methods for Payload class specific settings
|
13
13
|
module ClassMethods
|
14
14
|
# Define allowed attributes for this Payload class
|
15
|
-
# @param type [Class] Scopes the attributes to a
|
15
|
+
# @param type [Class] Scopes the attributes to a specific class. Must be a subclass of FHIR::Model
|
16
16
|
# @param attributes [Array] An array of string with the attribute names that will be passed through
|
17
17
|
# when data is minimized
|
18
18
|
def allow(type:, attributes: [])
|
@@ -20,7 +20,7 @@ module HealthCards
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# Define disallowed attributes for this Payload class
|
23
|
-
# @param type [Class] Scopes the attributes to a
|
23
|
+
# @param type [Class] Scopes the attributes to a specific class. If not used will default to all FHIR resources.
|
24
24
|
# To apply a rule to all FHIR types (resources and types), use FHIR::Model as the type
|
25
25
|
# @param attributes [Array] An array of string with the attribute names that will be passed through
|
26
26
|
# when data is minimized
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module HealthCards
|
4
|
+
class MonkeypoxImmunizationPayload < MonkeypoxPayload
|
5
|
+
additional_types 'https://smarthealth.cards#immunization'
|
6
|
+
|
7
|
+
allow type: FHIR::Immunization,
|
8
|
+
attributes: %w[meta status vaccineCode patient occurrenceDateTime manufacturer lotNumber performer
|
9
|
+
isSubpotent]
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'health_cards/attribute_filters'
|
4
|
+
require 'health_cards/payload_types'
|
5
|
+
|
6
|
+
module HealthCards
|
7
|
+
# Implements Payload for use with COVID Vaccination IG
|
8
|
+
class MonkeypoxPayload < HealthCards::Payload
|
9
|
+
additional_types 'https://smarthealth.cards#monkeypox'
|
10
|
+
|
11
|
+
allow type: FHIR::Patient, attributes: %w[identifier name birthDate]
|
12
|
+
end
|
13
|
+
end
|
data/lib/health_cards/version.rb
CHANGED
data/lib/health_cards.rb
CHANGED
@@ -19,7 +19,9 @@ require 'health_cards/chunk'
|
|
19
19
|
require 'health_cards/verifier'
|
20
20
|
require 'health_cards/importer'
|
21
21
|
require 'health_cards/payload_types/covid_payload'
|
22
|
+
require 'health_cards/payload_types/monkeypox_payload'
|
22
23
|
require 'health_cards/payload_types/covid_immunization_payload'
|
24
|
+
require 'health_cards/payload_types/monkeypox_immunization_payload'
|
23
25
|
require 'health_cards/payload_types/covid_lab_result_payload'
|
24
26
|
require 'health_cards/exporter'
|
25
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: health_cards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reece Adamson
|
@@ -12,10 +12,10 @@ authors:
|
|
12
12
|
- Mick O'Hanlon
|
13
13
|
- Priyank Madria
|
14
14
|
- Shaumik Ashraf
|
15
|
-
autorequire:
|
15
|
+
autorequire:
|
16
16
|
bindir: exe
|
17
17
|
cert_chain: []
|
18
|
-
date:
|
18
|
+
date: 2022-09-19 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: fhir_models
|
@@ -90,6 +90,8 @@ files:
|
|
90
90
|
- lib/health_cards/payload_types/covid_immunization_payload.rb
|
91
91
|
- lib/health_cards/payload_types/covid_lab_result_payload.rb
|
92
92
|
- lib/health_cards/payload_types/covid_payload.rb
|
93
|
+
- lib/health_cards/payload_types/monkeypox_immunization_payload.rb
|
94
|
+
- lib/health_cards/payload_types/monkeypox_payload.rb
|
93
95
|
- lib/health_cards/private_key.rb
|
94
96
|
- lib/health_cards/public_key.rb
|
95
97
|
- lib/health_cards/qr_codes.rb
|
@@ -103,7 +105,7 @@ metadata:
|
|
103
105
|
homepage_uri: https://github.com/dvci/health_cards
|
104
106
|
source_code_uri: https://github.com/dvci/health_cards
|
105
107
|
changelog_uri: https://github.com/dvci/health_cards/blob/main/CHANGELOG.md
|
106
|
-
post_install_message:
|
108
|
+
post_install_message:
|
107
109
|
rdoc_options: []
|
108
110
|
require_paths:
|
109
111
|
- lib
|
@@ -119,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
121
|
version: '0'
|
120
122
|
requirements: []
|
121
123
|
rubygems_version: 3.1.6
|
122
|
-
signing_key:
|
124
|
+
signing_key:
|
123
125
|
specification_version: 4
|
124
126
|
summary: Create verifiable clinical data using SMART Health Cards.
|
125
127
|
test_files: []
|