You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-33Lines changed: 22 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,57 +26,46 @@ To run the transformer, ensure that [CDA](https://cda.readthedocs.io/en/latest/)
26
26
Usage: cda2fhir transform [OPTIONS]
27
27
28
28
Options:
29
-
-s, --save Save FHIR ndjson to CDA2FHIR/data/META folder.
30
-
[default: True]
29
+
-s, --save Save FHIR ndjson to CDA2FHIR/data/META folder.
30
+
[default: True]
31
31
-v, --verbose
32
-
-ns, --n_samples TEXT Number of samples to randomly select - max 100.
33
-
-nd, --n_diagnosis TEXT Number of diagnosis to randomly select - max 100.
34
-
-nf, --n_files TEXT Number of files to randomly select - max 100.
35
-
-f, --transform_files Transform CDA files to FHIR DocumentReference and Group.
36
-
-p, --path TEXT Path to save the FHIR NDJSON files. default is
37
-
CDA2FHIR/data/META.
38
-
--help Show this message and exit.
32
+
-ns, --n_samples TEXT Number of samples to randomly select - max 100.
33
+
-nd, --n_diagnosis TEXT Number of diagnosis to randomly select - max 100.
34
+
-nf, --n_files TEXT Number of files to randomly select - max 100.
35
+
-f, --transform_files Transform CDA files to FHIR DocumentReference and
36
+
Group.
37
+
-t, --transform_treatment Transform CDA treatment to all sub-hierarchy of
38
+
FHIR MedicationAdministration ->
39
+
SubstanceDefinitionRepresentation.
40
+
-c, --transform_condition Transform CDA disease to Condition
41
+
-m, --transform_mutation Transform CDA mutation to Observation
42
+
-p, --path TEXT Path to save the FHIR NDJSON files. default is
43
+
CDA2FHIR/data/META.
44
+
--help Show this message and exit.
39
45
```
40
46
41
47
- example
42
48
```
43
49
cda2fhir transform
44
50
```
45
51
46
-
NOTE: in-case of interest in validating your FHIR data with GEN3, you will need to go through the [user-guide, setup, and documentation of GEN3 tracker](https://aced-idp.github.io/requirements/) before running the ```cda2fhir``` commands.
This command will validate your FHIR entities and their reference relations to each other. It will also generate a summary count of all entities in each ndjson file.
77
61
78
62
NOTE: This process may take _**5 minutes**_ or more, depending on your platform or compute power due to the size of the current data.
79
63
64
+
#### Check for a field ex. extension
65
+
```bash
66
+
awk '!/extension/ {exit 1}' data/META/ResearchSubject.ndjson &&echo"Every line contains 'extension'"||echo"Not every line contains 'extension'"
67
+
```
68
+
80
69
81
70
### Testing
82
71
Current integration testing runs on all data and may take approximately _**2 hours**_.
0 commit comments