-
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.
- Loading branch information
1 parent
18460fc
commit 89cf150
Showing
7 changed files
with
121 additions
and
37 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 |
---|---|---|
|
@@ -6,7 +6,8 @@ ENV PATH="/go/bin:${PATH}" | |
ADD ./ /go/src/github.com/bmeg/grip-graphql | ||
WORKDIR /go/src/github.com/bmeg/grip-graphql | ||
|
||
RUN go install github.com/bmeg/[email protected] | ||
|
||
RUN go install github.com/bmeg/[email protected] | ||
RUN go build --buildmode=plugin ./graphql_gen3 | ||
RUN go build --buildmode=plugin ./gen3_writer | ||
RUN go build --buildmode=plugin ./grip-graphql-endpoint | ||
|
16 changes: 16 additions & 0 deletions
16
gen3_writer/fixtures/compbio-examples-fhir/invalid_json.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
dsfdsf | ||
{"reso | ||
urceType":"Observation","id":"de328d36-2db2-43cd-b0fe-92f0e8302726","meta":{"versionId":"1","lastUpdated":"2023-01-26T14:21:56.658+00:00","source":"#DmW9sueQ4yuQdyA9","profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"]},"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"laboratory","display":"laboratory"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"2069-3","display":"Chloride"}],"text":"Chloride"},"subject":{"reference":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"},"encounter":{"reference":"Encounter/fb61addc-09d0-4546-a934-b5d5ce16d5e7"},"effectiveDateTime":"2012-12-15T14:40:53-05:00","issued":"2012-12-15T14:40:53.188-05:00","valueQuantity":{"value":102.2,"unit":"mmol/L","system":"http://unitsofmeasure.org","code":"mmol/L"},"links":[{"rel":"subject_Patient","href":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"}]} | ||
{"resourceType":"Observation","id":"e257467d-a850-4ed8-ab1a-eddd6c49f111","meta":{"versionId":"1","lastUpdated":"2023-01-26T14:21:56.658+00:00","source":"#DmW9sueQ4yuQdyA9","profile":["http://hl7.org/fhir/StructureDefinition/vitalsigns","http://hl7.org/fhir/StructureDefinition/bp"]},"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"vital-signs","display":"vital-signs"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"85354-9","display":"Blood Pressure"}],"text":"Blood Pressure"},"subject":{"reference":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"},"encounter":{"reference":"Encounter/b9200600-e594-46cb-8a00-7fdb47792665"},"effectiveDateTime":"2013-12-21T14:40:53-05:00","issued":"2013-12-21T14:40:53.188-05:00","component":[{"code":{"coding":[{"system":"http://loinc.org","code":"8462-4","display":"Diastolic Blood Pressure"}],"text":"Diastolic Blood Pressure"},"valueQuantity":{"value":83,"unit":"mm[Hg]","system":"http://unitsofmeasure.org","code":"mm[Hg]"}},{"code":{"coding":[{"system":"http://loinc.org","code":"8480-6","display":"Systolic Blood Pressure"}],"text":"Systolic Blood Pressure"},"valueQuantity":{"value":153,"unit":"mm[Hg]","system":"http://unitsofmeasure.org","code":"mm[Hg]"}}],"links":[{"rel":"subject_Patient","href":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"}]} | ||
{"resourceType":"Observation","id":"7bbaa006-c5bb-4ee4-b8ce-3cae329dfbd2","meta":{"versionI | ||
d":"1","lastUpdated":"2023-01-26T14:21:56.658+00:00","source":"#DmW9sueQ4yuQdyA9","profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"]},"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"laboratory","display":"laboratory"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"2339-0","display":"Glucose"}],"text":"Glucose"},"subject":{"reference":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"},"encounter":{"reference":"Encounter/2163ebd2-7cca-4de3-b2ec-ec8b22cc5d34"},"effectiveDateTime":"2016-01-02T14:40:53-05:00","issued":"2016-01-02T14:40:53.188-05:00","valueQuantity":{"value":67.69,"unit":"mg/dL","system":"http://unitsofmeasure.org","code":"mg/dL"},"links":[{"rel":"subject_Patient","href":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"}]} | ||
{"resourceType":"Observation","id":"e124ee34-83ff-4b68-9d8a-5b3a52ffe496","meta":{"versionId":"1","lastUpdated":"2020:00","source":"#DmW9sueQ4yuQdyA9","profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"]},"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"laboratory","display":"laboratory"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"49765-1","display":"Calcium"}],"text":"Calcium"},"subject":{"reference":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"},"encounter":{"reference":"Encounter/bd62656a-5e43-46a5-9584-d2402786f7f5"},"effectiveDateTime":"2019-01-19T14:40:53-05:00","issued":"2019-01-19T14:40:53.188-05:00","valueQuantity":{"value":8.59,"unit":"mg/dL","system":"http://unitsofmeasure.org","code":"mg/dL"},"links":[{"rel":"subject_Patient","href":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"}]} | ||
["value1", "value2"] | ||
{"resourceType":"Observation","id":"e28354e9-1126-4636-bba1-e2ed2a6ec05b","meta":{"versionId":"1","lastUpdated":"2023-01-26T14:21:56.658+00:00","source":"#DmW9sueQ4yuQdyA9","profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"]},"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"laboratory","display":"laboratory"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"20565-8","display":"Carbon Dioxide"}],"text":"Carbon Dioxide"},"subject":{"reference":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"},"encounter":{"reference":"Encounter/fb61addc-09d0-4546-a934-b5d5ce16d5e7"},"effectiveDateTime":"2012-12-15T14:40:53-05:00","issued":"2012-12-15T14:40:53.188-05:00","valueQuantity":{"value":28.2,"unit":"mmol/L","system":"http://unitsofmeasure.org","code":"mmol/L"},"links":[{"rel":"subject_Patient","href":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"}]} | ||
"just a string" | ||
{"resourceType":"Observation","id":"47ad1be4-44fd-44e3-94f7-e0389838c70f","meta":{"versionId":"1","lastUpdated":"2023-01-26T14:21:56.658+00:00","source":"#DmW9sueQ4yuQdyA9","profile":["http://hl7.org/fhir/StructureDefinition/vitalsigns","http://hl7.org/fhir/StructureDefinition/heartrate"]},"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"vital-signs","display":"vital-signs"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"8867-4","display":"Heart rate"}],"text":"Heart rate"},"subject":{"reference":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"},"encounter":{"reference":"Encounter/b9200600-e594-46cb-8a00-7fdb47792665"},"effectiveDateTime":"2013-12-21T14:40:53-05:00","issued":"2013-12-21T14:40:53.188-05:00","valueQuantity":{"value":78,"unit":"/min","system":"http://unitsofmeasure.org","code":"/min"},"links":[{"rel":"subject_Patient","href":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"}]} | ||
234234 | ||
#a mix of invalid json, invalid lines, and valid lines | ||
{"resourceType":"Observation","id":"e28354e9-1126-4636-bba1-e2ed2a6ec05b","meta":{"versionId":"1","lastUpdated":"2023-01-26T14:21:56.658+00:00","source":"#DmW9sueQ4yuQdyA9","profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"]},"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"laboratory","display":"laboratory"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"20565-8","display":"Carbon Dioxide"}],"text":"Carbon Dioxide"},"subject":{"reference":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"},"encounter":{"reference":"Encounter/fb61addc-09d0-4546-a934-b5d5ce16d5e7"},"effectiveDateTime":"2012-12-15T14:40:53-05:00","issued":"2012-12-15T14:40:53.188-05:00","valueQuantity":{"value":28.2,"unit":"mmol/L","system":"http://unitsofmeasure.org","code":"mmol/L"},"links":[{"rel":"subject_Patient","href":"Patient/45c11dad-2b38-4c8e-822e-7abff8a1ee1d"}]} | ||
{ 123: "value1", true: "value2" } | ||
{"key": { "key": { "key": { "key": { "key": { "key": "value" } } } } }} |
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