Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Update to FHIR v1.8 (STU3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jawalonoski committed Dec 9, 2016
1 parent 35e4625 commit 7f3ea4a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ gemspec

gem 'rake'
gem 'pry'
gem 'fhir_models', '~> 1.6'

group :test do
gem 'simplecov', :require => false
Expand Down
7 changes: 3 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
fhir_scorecard (1.0.1)
fhir_models
fhir_scorecard (1.8.0)
fhir_models (~> 1.8)

GEM
remote: https://rubygems.org/
Expand All @@ -15,7 +15,7 @@ GEM
coderay (1.1.1)
date_time_precision (0.8.1)
docile (1.1.5)
fhir_models (1.6.8)
fhir_models (1.8.1)
bcp47 (>= 0.3)
date_time_precision (>= 0.8)
mime-types (>= 1.16, < 3)
Expand Down Expand Up @@ -51,7 +51,6 @@ PLATFORMS

DEPENDENCIES
awesome_print
fhir_models (~> 1.6)
fhir_scorecard!
minitest (~> 5.3)
minitest-reporters
Expand Down
4 changes: 2 additions & 2 deletions fhir_scorecard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Gem::Specification.new do |s|
s.email = "[email protected]"
s.homepage = "https://github.com/fhir-crucible/fhir_scorecard"
s.authors = ["Jason Walonoski"]
s.version = '1.0.1'
s.version = '1.8.0'

s.files = s.files = `git ls-files`.split("\n")

s.add_runtime_dependency 'fhir_models'
s.add_runtime_dependency 'fhir_models', '~> 1.8'
end
2 changes: 1 addition & 1 deletion lib/rubrics/completeness.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Completeness < FHIR::Rubrics
'QuestionnaireResponse','Coverage'
]

MEDICATIONS = [ 'MedicationStatement','MedicationDispense','MedicationAdministration','MedicationOrder' ]
MEDICATIONS = [ 'MedicationStatement','MedicationDispense','MedicationAdministration','MedicationRequest' ]

# A Patient Record is not complete without certain required items and medications.
rubric :completeness do |record|
Expand Down
4 changes: 2 additions & 2 deletions lib/rubrics/cvx_meds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CVXMeds < FHIR::Rubrics
# Medication.code (CodeableConcept)
# MedicationAdministration.medicationCodeableConcept / medicationReference
# MedicationDispense.medicationCodeableConcept / medicationReference
# MedicationOrder.medicationCodeableConcept / medicationReference
# MedicationRequest.medicationCodeableConcept / medicationReference
# MedicationStatement.medicationCodeableConcept / medicationReference

resources = record.entry.map{|e|e.resource}
Expand All @@ -19,7 +19,7 @@ class CVXMeds < FHIR::Rubrics
results[:eligible_fields] += 1
results[:validated_fields] += 1 if cvx?(resource.code)
elsif (
resource.is_a?(FHIR::MedicationOrder) ||
resource.is_a?(FHIR::MedicationRequest) ||
resource.is_a?(FHIR::MedicationDispense) ||
resource.is_a?(FHIR::MedicationAdministration) ||
resource.is_a?(FHIR::MedicationStatement) )
Expand Down
2 changes: 1 addition & 1 deletion lib/rubrics/quantities_ucum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class QuantitiesUcum < FHIR::Rubrics

CHECK = [
'VisionPrescription','SupplyDelivery','Substance','Specimen','Sequence','Observation','NutritionRequest',
'MedicationStatement','MedicationOrder','MedicationDispense','MedicationAdministration','Medication','Immunization','CarePlan'
'MedicationStatement','MedicationRequest','MedicationDispense','MedicationAdministration','Medication','Immunization','CarePlan'
]

# Physical quantities should use UCUM
Expand Down
4 changes: 2 additions & 2 deletions lib/rubrics/rxnorm_meds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RxNormMeds < FHIR::Rubrics
# Medication.code (CodeableConcept)
# MedicationAdministration.medicationCodeableConcept / medicationReference
# MedicationDispense.medicationCodeableConcept / medicationReference
# MedicationOrder.medicationCodeableConcept / medicationReference
# MedicationRequest.medicationCodeableConcept / medicationReference
# MedicationStatement.medicationCodeableConcept / medicationReference

resources = record.entry.map{|e|e.resource}
Expand All @@ -19,7 +19,7 @@ class RxNormMeds < FHIR::Rubrics
results[:eligible_fields] += 1
results[:validated_fields] += 1 if rxnorm?(resource.code)
elsif (
resource.is_a?(FHIR::MedicationOrder) ||
resource.is_a?(FHIR::MedicationRequest) ||
resource.is_a?(FHIR::MedicationDispense) ||
resource.is_a?(FHIR::MedicationAdministration) ||
resource.is_a?(FHIR::MedicationStatement) )
Expand Down

0 comments on commit 7f3ea4a

Please sign in to comment.