Skip to content

Commit

Permalink
fix rxnorm tty prop build
Browse files Browse the repository at this point in the history
  • Loading branch information
ApricotLace committed Jan 11, 2024
1 parent 2d98e23 commit a090578
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ftr/extraction/rxnorm.clj
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
[:= ^:pg/fn[:jsonb_array_length [:- :preparations.displays 0]] 0] nil
[:- :preparations.displays 0]]
:suppressible-flag :preparations.suppress
:tty :preparations.tty}
:tty [:#>> :preparations.tty [0]]}

{:ql/type :pg/cte
:with {:attrs
Expand Down
14 changes: 8 additions & 6 deletions test/ftr/ci_pipelines/rxnorm/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{"vs"
{"http:--www.nlm.nih.gov-research-umls-rxnorm-valueset"
{"tag.prod.ndjson.gz" {},
"tf.61ba58d1ba96c662a73f603a68608e577fa8e3a39ebfa11b5dbd92d64f6b2485.ndjson.gz"
"tf.fb592cc629824d83c68682dbec3e0611b23eb5ccb770a854cdda1aebcc4fb887.ndjson.gz"
{}}},
"tags" {"prod.ndjson.gz" {}, "prod.hash" {}}}}

Expand All @@ -54,13 +54,13 @@
(ftr.utils.core/parse-ndjson-gz
(format "%s/rxnorm/tags/prod.ndjson.gz" (:ftr-path sut/config-defaults)))
[{:hash
"61ba58d1ba96c662a73f603a68608e577fa8e3a39ebfa11b5dbd92d64f6b2485",
"fb592cc629824d83c68682dbec3e0611b23eb5ccb770a854cdda1aebcc4fb887",
:name "rxnorm.http:--www.nlm.nih.gov-research-umls-rxnorm-valueset"}
nil])

(matcho/match
(ftr.utils.core/parse-ndjson-gz
(format "%s/rxnorm/vs/http:--www.nlm.nih.gov-research-umls-rxnorm-valueset/tf.61ba58d1ba96c662a73f603a68608e577fa8e3a39ebfa11b5dbd92d64f6b2485.ndjson.gz"
(format "%s/rxnorm/vs/http:--www.nlm.nih.gov-research-umls-rxnorm-valueset/tf.fb592cc629824d83c68682dbec3e0611b23eb5ccb770a854cdda1aebcc4fb887.ndjson.gz"
(:ftr-path sut/config-defaults)))
[{:publisher "National Library of Medicine (NLM)"
:content "not-present"
Expand All @@ -80,14 +80,15 @@
:version "20070101"}
{:code "1337"
:display "tablets"
:property {:suppressible-flag "O"}
:property {:suppressible-flag "O" :tty "SCD"}
:resourceType "Concept"
:system "http://www.nlm.nih.gov/research/umls/rxnorm"
:valueset ["http://www.nlm.nih.gov/research/umls/rxnorm/valueset"]}
{:code "2665426"
:display "0.8 ML adalimumab-adaz 50 MG/ML Prefilled Syringe [Hyrimoz]"
:property
{:other-display
{:tty "SCD"
:other-display
["Hyrimoz 40 MG in 0.8 ML Prefilled Syringe"
"0.8 ML Hyrimoz 50 MG/ML Prefilled Syringe"
"Hyrimoz 40 MG per 0.8 ML Prefilled Syringe"]
Expand All @@ -98,7 +99,8 @@
{:code "2665428"
:display "cholecalciferol 0.075 MG / folic acid 1 MG Oral Capsule"
:property
{:other-display
{:tty "SCD"
:other-display
["vitamin D 3 75 MCG (3000 UNT) / folic acid 1 MG Oral Capsule"
"vitamin D 3 75 MCG (3000 UNT) / folic acid 1 MG Oral Capsule"
"cholecalciferol 0.075 MG / folate 1 MG Oral Capsule"]
Expand Down

0 comments on commit a090578

Please sign in to comment.