-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from smart-on-fhir/mikix/docref-quirks
Add some missing US Core checks now that we have attachment info
- Loading branch information
Showing
16 changed files
with
54 additions
and
77 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""Data Metrics study for Cumulus Library""" | ||
|
||
__version__ = "6.1.0" | ||
__version__ = "7.0.0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
CREATE TABLE {{ study_prefix }}__meta_version AS | ||
SELECT 1 AS data_package_version; | ||
SELECT 2 AS data_package_version; |
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
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
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
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
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
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
4 changes: 2 additions & 2 deletions
4
tests/data/c_us_core_v4_count/general/documentreference/0.ndjson
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{"resourceType": "DocumentReference", "id": "mandatory-plus-support", "status": "current", "category": [{"text": "X"}], "type": {"coding": [{"system": "http://loinc.org", "code": "11534-5"}]}, "subject": {"reference": "Patient/A"}, "content": [{"attachment": {"contentType": "text/plain"}, "format": {"display": "X"}}], "date": "2012-10-12", "author": [], "context": {"encounter": [{"reference": "Encounter/X"}], "period": {"end": "2015"}}} | ||
{"resourceType": "DocumentReference", "id": "mandatory-only", "status": "current", "category": [{"text": "X"}], "type": {"coding": [{"system": "http://loinc.org", "code": "11534-5"}]}, "subject": {"reference": "Patient/A"}, "content": [{"attachment": {"contentType": "text/plain"}}]} | ||
{"resourceType": "DocumentReference", "id": "mandatory-plus-support", "status": "current", "category": [{"text": "X"}], "type": {"coding": [{"system": "http://loinc.org", "code": "11534-5"}]}, "subject": {"reference": "Patient/A"}, "content": [{"attachment": {"contentType": "text/plain", "data": "xxx"}, "format": {"display": "X"}}], "date": "2012-10-12", "author": [], "context": {"encounter": [{"reference": "Encounter/X"}], "period": {"end": "2015"}}} | ||
{"resourceType": "DocumentReference", "id": "mandatory-only", "status": "current", "category": [{"text": "X"}], "type": {"coding": [{"system": "http://loinc.org", "code": "11534-5"}]}, "subject": {"reference": "Patient/A"}, "content": [{"attachment": {"contentType": "text/plain", "data": "xxx"}}]} | ||
{"resourceType": "DocumentReference", "id": "support-only", "date": "2012-10-12", "author": [], "content": [{"format": {"display": "X"}}], "context": {"encounter": [{"reference": "Encounter/X"}], "period": {"start": "2014"}}} |
8 changes: 4 additions & 4 deletions
8
tests/data/c_us_core_v4_count/general/expected_documentreference_mandatory.csv
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cnt,year,status,valid_status,valid_type,valid_category,valid_subject,valid_content_type,valid | ||
1,cumulus__none,current,true,true,true,true,true,true | ||
1,2015,current,true,true,true,true,true,true | ||
1,2014,cumulus__none,false,false,false,false,false,false | ||
cnt,year,status,valid_status,valid_type,valid_category,valid_subject,valid_content_type,valid_us_core_6,valid | ||
1,cumulus__none,current,true,true,true,true,true,true,true | ||
1,2015,current,true,true,true,true,true,true,true | ||
1,2014,cumulus__none,false,false,false,false,false,false,false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
data_package_version | ||
1 | ||
2 |
4 changes: 2 additions & 2 deletions
4
tests/data/t_us_core_v4/docref-low-schema/expected_documentreference_mandatory.csv
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
id,valid_status,valid_type,valid_category,valid_subject,valid_content_type,valid | ||
nothing,false,false,false,false,false,false | ||
id,valid_status,valid_type,valid_category,valid_subject,valid_content_type,valid_us_core_6,valid | ||
nothing,false,false,false,false,false,false,false |
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
28 changes: 14 additions & 14 deletions
28
tests/data/t_us_core_v4/mandatory/expected_documentreference_mandatory.csv
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
id,valid_status,valid_type,valid_category,valid_subject,valid_content_type,valid | ||
valid,true,true,true,true,true,true | ||
type-null-flavor-good,false,true,false,false,false,false | ||
type-null-flavor-bad,false,false,false,false,false,false | ||
type-multiple-good,false,true,false,false,false,false | ||
type-multiple-bad,false,false,false,false,false,false | ||
type-empty,false,false,false,false,false,false | ||
type-bad-system,false,false,false,false,false,false | ||
subject-group,false,false,false,false,false,false | ||
nothing,false,false,false,false,false,false | ||
content-no-contenttype,false,false,false,false,false,false | ||
content-no-attachment,false,false,false,false,false,false | ||
content-multiple-good,false,false,false,false,true,false | ||
content-multiple-bad,false,false,false,false,false,false | ||
id,valid_status,valid_type,valid_category,valid_subject,valid_content_type,valid_us_core_6,valid | ||
valid,true,true,true,true,true,true,true | ||
type-null-flavor-good,false,true,false,false,false,false,false | ||
type-null-flavor-bad,false,false,false,false,false,false,false | ||
type-multiple-good,false,true,false,false,false,false,false | ||
type-multiple-bad,false,false,false,false,false,false,false | ||
type-empty,false,false,false,false,false,false,false | ||
type-bad-system,false,false,false,false,false,false,false | ||
subject-group,false,false,false,false,false,false,false | ||
nothing,false,false,false,false,false,false,false | ||
content-no-contenttype,false,false,false,false,false,true,false | ||
content-no-attachment,false,false,false,false,false,false,false | ||
content-multiple-good,false,false,false,false,true,false,false | ||
content-multiple-bad,false,false,false,false,false,false,false |
2 changes: 1 addition & 1 deletion
2
tests/data/t_us_core_v4/must-support/diagnosticreport/notes.ndjson
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{"resourceType": "DiagnosticReport", "id": "valid", "encounter": {"reference": "Encounter/A"}, "issued": "2022", "performer": []} | ||
{"resourceType": "DiagnosticReport", "id": "valid", "encounter": {"reference": "Encounter/A"}, "issued": "2022", "performer": [], "presentedForm": [{"contentType": "text/html"}]} | ||
{"resourceType": "DiagnosticReport", "id": "wrong-encounter-type", "encounter": {"reference": "EpisodeOfCare/A"}} | ||
{"resourceType": "DiagnosticReport", "id": "nothing"} |
8 changes: 4 additions & 4 deletions
8
tests/data/t_us_core_v4/must-support/expected_diagnosticreport_note_must_support.csv
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
id,valid_encounter,valid_issued,valid_performer,valid | ||
wrong-encounter-type,false,false,false,false | ||
valid,true,true,true,true | ||
nothing,false,false,false,false | ||
id,valid_encounter,valid_issued,valid_performer,valid_presented_form,valid | ||
wrong-encounter-type,false,false,false,false,false | ||
valid,true,true,true,true,true | ||
nothing,false,false,false,false,false |