-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation fixes #115
Merged
Merged
Validation fixes #115
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ql to fix: kind-lab#95 The Coding provided (urn:oid:2.16.840.1.113883.6.238#2054-5) was not found in the value set 'OMB Race Categories' (http://hl7.org/fhir/us/core/ValueSet/omb-race-category|4.0.0), and a code is required from this value set. (error message = Wrong whitespace in Display Name ' Black or African American' for urn:oid:2.16.840.1.113883.6.238#2054-5. Valid display is 'Black or African American' (for the language(s) '--'))
…vation_vitalsigns.sql, to [/min] to fix: kind-lab#96 - Value is '{Beats}/min' but must be '/min' - Value is '{Breaths}/min' but must be '/min'
…) in the extension url in fhir_observation_labevents.sql to fix: kind-lab#97 The extension http://mimic.mit.edu/fhir/mimic/StructureDefinition/mimic-lab-priority could not be found so is not allowed here
…ation_request.sql to fix: kind-lab#98 The property medicationCodeableConcept must be an Object, not an Array (at MedicationRequest.medication[x])
…r_medication_administration.sql (request) and fhir_specimen.sql (collection) to fix: kind-lab#99 kind-lab#100 Object must have some content (e.g: status": "completed", "request": {}, "subject": {"reference": )
…ference (mi_ORGANISM) present in fhir_observation_micro_test.sql to fix: kind-lab#101 Object must have some content (e.g: "hasMember": [{}]) Note: this may not be not the ultimate fix - it's still possible for empty object to be produced if there is a mix of NULL and non-NULL values in the group.
… medication_mix.sql to fix: kind-lab#103 Wrong namespace on the XHTML ('null', should be 'http://www.w3.org/1999/xhtml')
…g issue: kind-lab#104 invalid Error parsing JSON: Error parsing JSON source: JSON syntax error - found String expecting Colon at Line 1 (path=[//medicationCodeableConceptConcentrated]) eg: "medicationCodeableConcept": {"text": "Humulin R U-500 \\"Concentrated\\"", "coding":
…observation_vitalsigns.sql to conform with http://hl7.org/fhir/StructureDefinition/bp|4.0. Always producing the required bp components, with not values if not available. Fixing: kind-lab#105 Observation.component: minimum required = 2, but only found 0 (from http://hl7.org/fhir/StructureDefinition/bp|4.0.1) Slice 'Observation.component:DiastolicBP': a matching slice is required, but not found (from http://hl7.org/fhir/StructureDefinition/bp|4.0.1). Note that other slices are allowed in addition to this required slice Slice 'Observation.component:SystolicBP': a matching slice is required, but not found (from http://hl7.org/fhir/StructureDefinition/bp|4.0.1). Note that other slices are allowed in addition to this required slice
…sible extract the numerical value and the unit. Otherwise, do not provide the quantity. Fixing: kind-lab#106 kind-lab#107 - Error parsing JSON: the primitive value must be a number (e.g: quantity": {"value": "3"}) - The value '60 ml' is not a valid decimal (e.g: {"value": "60ml"}) - The value 'PO' is not a valid decimal ({"value": "PO"})
…talsigns.sql to fix: kind-lab#108 Wrong Display Name 'Oxgyen saturation in Arterial blood' for http://loinc.org#2708-6. Valid display is 'Oxygen saturation in Arterial blood' (en-US) (for the language(s) '--')
…ation.sql to fix: kind-lab#109 Invalid attribute value "": Attribute value must not be empty ("") (e.g: {"dose": {"code": "", "unit": "", "value": 1,)
…to fix: kind-lab#110 Invalid attribute value "": Attribute value must not be empty ("") (e.g: [{"value": "51307513", "system": "http://mimic.mit.edu/fhir/mimic/identifier/observation-labevents"}], "valueString": "",)
…h blank medication (treating them same as NULL values) to fix: kind-lab#111 Invalid attribute value "": Attribute value must not be empty ("") (e.g: "medicationCodeableConcept": {"coding": [{"code": "", "system": "http://mimic.mit.edu/fhir/mimic/CodeSystem/mimic-medication-name )
…ir_medication_dispense.sql to fix: kind-lab#102 Object must have some content (e.g.: MedicationDispense", "dosageInstruction": [{}], "authorizingPrescription": [{"reference": "MedicationReq
…it comply with coding whitespacing rules and the cs_medication_frequency code system in fhir_medication_dispense.sql, to fix: kind-lab#112 - None of the codings provided are in the value set 'MimicMedicationFrequency' (http://mimic.mit.edu/fhir/mimic/ValueSet/mimic-medication-frequency|2.2.0), and a coding from this value set is required) (codes = http://mimic.mit.edu/fhir/mimic/CodeSystem/mimic-medication-frequency#EVERY 4 WEEKS) - Unknown code 'EVERY 4 WEEKS' in the CodeSystem 'http://mimic.mit.edu/fhir/mimic/CodeSystem/mimic-medication-frequency' version '2.2.0' - The code 'EVERY 4 WEEKS' is not valid (whitespace rules) MedicationDispensation:(timing": {"code": {"coding": [{"code": "EVERY 4 WEEKS", "system": "http://mimic.mit.edu/fhir/mimic/CodeSystem/mimic-medication-frequency"}]}
…s in the code system for cs-diagnosis-icd9, cs-diagnosis-icd10 and cs-medication-etc to fix: kind-lab#113 kind-lab#114 'Wrong Display Name XXX' errors, e.g: Wrong Display Name 'Acne Therapy Systemic - Tetracycline antibiotic' for http://mimic.mit.edu/fhir/mimic/CodeSystem/mimic-medication-etc#00005953. Valid display is 'Acne Therapy Systemic - Tetracyclines' (en) (for the language(s) '--')
…s source sources for cs_unit code system to fix: Unknown code 'TPN Bag' in the CodeSystem 'http://mimic.mit.edu/fhir/mimic/CodeSystem/mimic-units' version '2.2.0' (eg: ": {"dose": {"code": "TPN Bag", "unit": "TPN Bag", ) in MedicationAdministation.
…rminology description tables.
…sorces from mimic database (fhir_trm schema).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #95, #96, #97, #98, #99, #100, #101, #102, #103, #104, #105, #106, #107, #108, #109, #110, #111, #112, #113, #114, #92, #91.
Depends upon the corresponding PR kind-lab/mimic-profiles#26.
Summary of Changes
This pull request includes several updates and fixes to the mimic-fhir repository. Below is a detailed list of the changes made:
Switching mimic-profiles to the aehrc repo (commit: cc90af7)
Added Python script (commit: 6a6c5f9)
fhir_trm
schema).Removed unnecessary code systems and value sets (commit: 873ad6f)
Fixed source code system issues (commit: e4303e4)
emar_detail.product_unit
andemar_detail.dose_given_unit
as sources for thecs_unit
code system.Aligned coding display names (commit: aec446c)
cs-diagnosis-icd9
,cs-diagnosis-icd10
, andcs-medication-etc
code systems.Corrected whitespace in
pharmacy.frequency
(commit: b3149dd)Updated
dosageInstruction.timing
infhir_medication_dispense.sql
(commit: b03ef06)code
orrepeat
elements.Handled blank medication in
medication_dispense
generation (commit: ce0739a)NULL
values.Produced
NULL
for blanklab_VALUE
infhir_observation_labevents.sql
(commit: 0ff87cb)Handled blank
dose_given_unit
infhir_medication_administration.sql
(commit: 5f6c995)Corrected display name for LOINC code: 2708-6 (commit: 7f51b40)
fhir_observation_vitalsigns.sql
.Changed extraction of quantity from
pharmacy.fill_quantity
(commit: 18fb04a)Handled
NULL
values in BP vital signs observations (commit: 6e9306a)[http://hl7.org/fhir/StructureDefinition/bp|4.0
.](http://hl7.org/fhir/StructureDefinition/bp|4.0%60.)Changed JSON export format to 'csv' (commit: ba8387d)
Added null value checks (commit: cb72cfe)
fhir_medication_administration.sql
andfhir_specimen.sql
.Removed array wrapping for
medicationCodeableConcept
(commit: 0f1a940)fhir_medication_request.sql
.Renamed
mimic-lab-priority
tolab-priority
(commit: 81e8b3e)fhir_observation_labevents.sql
.Fixed unit codes for respiratory and heart rate (commit: 12211b4)
fhir_observation_vitalsigns.sql
.Removed leading whitespace from display names (commit: b2beb9e)
map_race_omb.sql
.