From 0e65e147e4c164d850f3bb908ca05bc4161baa8b Mon Sep 17 00:00:00 2001 From: noerog <32459203+noerog@users.noreply.github.com> Date: Mon, 17 Aug 2020 12:41:18 -0400 Subject: [PATCH] Add Cloud Healthcare API to Kokoro testing pipeline (#1862) --- .kokoro/healthcare/common.cfg | 29 ++++++++++++++++++ .kokoro/healthcare/datasets.cfg | 7 +++++ .kokoro/healthcare/dicom.cfg | 7 +++++ .kokoro/healthcare/fhir.cfg | 7 +++++ .kokoro/healthcare/hl7v2.cfg | 7 +++++ .../datasets/system-test/datasets.test.js | 30 +++++++++---------- .../dicom/system-test/dicom_stores.test.js | 10 ++++++- healthcare/dicom/system-test/dicomweb.test.js | 11 ++++++- healthcare/fhir/exportFhirResources.js | 2 +- healthcare/fhir/importFhirResources.js | 8 +++-- healthcare/fhir/resources/fhir_data.ndjson | 5 ++-- .../fhir/system-test/fhir_resources.test.js | 9 ++++++ .../fhir/system-test/fhir_stores.test.js | 10 +++++++ .../hl7v2/system-test/hl7v2_messages.test.js | 8 +++++ .../hl7v2/system-test/hl7v2_stores.test.js | 8 +++++ 15 files changed, 135 insertions(+), 23 deletions(-) create mode 100644 .kokoro/healthcare/common.cfg create mode 100644 .kokoro/healthcare/datasets.cfg create mode 100644 .kokoro/healthcare/dicom.cfg create mode 100644 .kokoro/healthcare/fhir.cfg create mode 100644 .kokoro/healthcare/hl7v2.cfg diff --git a/.kokoro/healthcare/common.cfg b/.kokoro/healthcare/common.cfg new file mode 100644 index 0000000000..4b44832907 --- /dev/null +++ b/.kokoro/healthcare/common.cfg @@ -0,0 +1,29 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Download secrets from Cloud Storage. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/nodejs-docs-samples" + +# All builds use the trampoline script to run in docker. +build_file: "nodejs-docs-samples/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} + +# Tell the trampoline which build file to use. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/nodejs-docs-samples/.kokoro/build.sh" +} + +# Export XUnit test results for further analysis +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} diff --git a/.kokoro/healthcare/datasets.cfg b/.kokoro/healthcare/datasets.cfg new file mode 100644 index 0000000000..3a70a5a9a4 --- /dev/null +++ b/.kokoro/healthcare/datasets.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Set the folder in which the tests are run +env_vars: { + key: "PROJECT" + value: "healthcare/datasets" +} diff --git a/.kokoro/healthcare/dicom.cfg b/.kokoro/healthcare/dicom.cfg new file mode 100644 index 0000000000..09b90ccca2 --- /dev/null +++ b/.kokoro/healthcare/dicom.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Set the folder in which the tests are run +env_vars: { + key: "PROJECT" + value: "healthcare/dicom" +} diff --git a/.kokoro/healthcare/fhir.cfg b/.kokoro/healthcare/fhir.cfg new file mode 100644 index 0000000000..95a05d95e5 --- /dev/null +++ b/.kokoro/healthcare/fhir.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Set the folder in which the tests are run +env_vars: { + key: "PROJECT" + value: "healthcare/fhir" +} diff --git a/.kokoro/healthcare/hl7v2.cfg b/.kokoro/healthcare/hl7v2.cfg new file mode 100644 index 0000000000..bf1a8167ca --- /dev/null +++ b/.kokoro/healthcare/hl7v2.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Set the folder in which the tests are run +env_vars: { + key: "PROJECT" + value: "healthcare/hl7v2" +} diff --git a/healthcare/datasets/system-test/datasets.test.js b/healthcare/datasets/system-test/datasets.test.js index 9de8bf07f7..0f645409f1 100644 --- a/healthcare/datasets/system-test/datasets.test.js +++ b/healthcare/datasets/system-test/datasets.test.js @@ -58,6 +58,21 @@ it('should get a dataset', () => { assert.ok(output.includes('name')); }); +it('should create and get a dataset IAM policy', () => { + const localMember = 'group:dpebot@google.com'; + const localRole = 'roles/viewer'; + + let output = execSync( + `node setDatasetIamPolicy.js ${projectId} ${cloudRegion} ${datasetId} ${localMember} ${localRole}`, + ); + assert.ok(output.includes, 'ETAG'); + + output = execSync( + `node getDatasetIamPolicy.js ${projectId} ${cloudRegion} ${datasetId}` + ); + assert.ok(output.includes('dpebot')); +}); + it('should patch a dataset', () => { const timeZone = 'GMT'; const output = execSync( @@ -83,21 +98,6 @@ it('should de-identify data in a dataset and write to a new dataset', () => { ); }); -it('should create and get a dataset IAM policy', () => { - const localMember = 'group:dpebot@google.com'; - const localRole = 'roles/viewer'; - - let output = execSync( - `node setDatasetIamPolicy.js ${projectId} ${cloudRegion} ${datasetId} ${localMember} ${localRole}`, - ); - assert.ok(output.includes, 'ETAG'); - - output = execSync( - `node getDatasetIamPolicy.js ${projectId} ${cloudRegion} ${datasetId}` - ); - assert.ok(output.includes('dpebot')); -}); - it('should delete a dataset', () => { const output = execSync( `node deleteDataset.js ${projectId} ${cloudRegion} ${datasetId}`, diff --git a/healthcare/dicom/system-test/dicom_stores.test.js b/healthcare/dicom/system-test/dicom_stores.test.js index afd14ef269..4a7bbd4f8a 100644 --- a/healthcare/dicom/system-test/dicom_stores.test.js +++ b/healthcare/dicom/system-test/dicom_stores.test.js @@ -33,7 +33,7 @@ const cwdDatasets = path.join(__dirname, '../../datasets'); const cwd = path.join(__dirname, '..'); const datasetId = `nodejs-docs-samples-test-${uuid.v4()}`.replace(/-/gi, '_'); -const dicomStoreId = `nodejs-docs-samples-test-fhir-store${uuid.v4()}`.replace( +const dicomStoreId = `nodejs-docs-samples-test-dicom-store${uuid.v4()}`.replace( /-/gi, '_' ); @@ -41,6 +41,14 @@ const dcmFileName = 'IM-0002-0001-JPEG-BASELINE.dcm'; const resourceFile = `resources/${dcmFileName}`; const gcsUri = `${bucketName}/${dcmFileName}`; +const installDeps = 'npm install'; + +// Run npm install on datasets directory because modalities +// require bootstrapping datasets, and Kokoro needs to know +// to install dependencies from the datasets directory. +assert.ok( + execSync(installDeps, {cwd: `${cwdDatasets}`, shell: true}) +); before(async () => { assert( diff --git a/healthcare/dicom/system-test/dicomweb.test.js b/healthcare/dicom/system-test/dicomweb.test.js index ec9bfa8a28..490ac73521 100644 --- a/healthcare/dicom/system-test/dicomweb.test.js +++ b/healthcare/dicom/system-test/dicomweb.test.js @@ -41,6 +41,15 @@ const studyUid = '1.2.840.113619.2.176.3596.3364818.7819.1259708454.105'; const seriesUid = '1.2.840.113619.2.176.3596.3364818.7819.1259708454.108'; const instanceUid = '1.2.840.113619.2.176.3596.3364818.7271.1259708501.876'; +const installDeps = 'npm install'; + +// Run npm install on datasets directory because modalities +// require bootstrapping datasets, and Kokoro needs to know +// to install dependencies from the datasets directory. +assert.ok( + execSync(installDeps, {cwd: `${cwdDatasets}`, shell: true}) +); + before(() => { assert( process.env.GOOGLE_CLOUD_PROJECT, @@ -64,7 +73,7 @@ after(() => { `node deleteDicomStore.js ${projectId} ${cloudRegion} ${datasetId} ${dicomStoreId}`, {cwd} ); - execSync(`node deleteDataset.js ${datasetId}`, {cwd: cwdDatasets}); + execSync(`node deleteDataset.js ${projectId} ${cloudRegion} ${datasetId}`, {cwd: cwdDatasets}); } catch (err) {} // Ignore error }); diff --git a/healthcare/fhir/exportFhirResources.js b/healthcare/fhir/exportFhirResources.js index 771714eff5..1e4b167494 100644 --- a/healthcare/fhir/exportFhirResources.js +++ b/healthcare/fhir/exportFhirResources.js @@ -64,7 +64,7 @@ const main = ( {name: operationName} ); - if (typeof operationStatus.data.response.resourceCount !== 'undefined') { + if (typeof operationStatus.data.metadata.counter !== 'undefined') { console.log('Exported FHIR resources successfully'); } else { console.log('Export failed'); diff --git a/healthcare/fhir/importFhirResources.js b/healthcare/fhir/importFhirResources.js index 15311cc1d8..f14de25fce 100644 --- a/healthcare/fhir/importFhirResources.js +++ b/healthcare/fhir/importFhirResources.js @@ -44,7 +44,7 @@ const main = ( const request = { name, resource: { - contentStructure: 'BUNDLE', + contentStructure: 'RESOURCE', gcsSource: { uri: `gs://${gcsUri}`, }, @@ -66,9 +66,11 @@ const main = ( operationRequest ); - if (typeof operationStatus.data.error === 'undefined') { + const success = operationStatus.data.metadata.counter.success; + + if (typeof success !== 'undefined') { console.log( - `Import FHIR resources succeeded. ${operationStatus.data.response.inputSize} resources imported` + `Import FHIR resources succeeded. ${success} resources imported` ); } else { console.log( diff --git a/healthcare/fhir/resources/fhir_data.ndjson b/healthcare/fhir/resources/fhir_data.ndjson index d357b47277..d027de5a5e 100644 --- a/healthcare/fhir/resources/fhir_data.ndjson +++ b/healthcare/fhir/resources/fhir_data.ndjson @@ -1,2 +1,3 @@ -{"entry":[{"resource":{"id":"2756653a-d80e-4ca1-899f-a79c5ad0c40d","identifier":[{"system":"internal","value":"travel-questionnaire"}],"item":[{"linkId":"1","text":"What country will you be travelling to?","type":"string"},{"item":[{"linkId":"2.1","text":"Departure","type":"date"},{"linkId":"2.2","text":"Return","type":"date"}],"linkId":"2","text":"What dates will you be travelling on?","type":"group"}],"resourceType":"Questionnaire","status":"active","subjectType":["Patient"],"title":"Travel Intention"}}],"resourceType":"Bundle"} -{"entry":[{"resource":{"birthDate":"1937-05-09","gender":"female","id":"7e5f36bc-3694-49ce-bdba-8ab7a13988d2","identifier":[{"value":"demo-patient"}],"name":[{"family":"Smith","given":["Taylor"],"use":"official"}],"resourceType":"Patient","telecom":[{"value":"(555) 555-5555"}]}},{"resource":{"abatementDateTime":"1937-06-04T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Hepatitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/0c02267a-22cc-4204-8ec3-4c93c0800f27"}]}],"id":"eb044420-53e8-4e99-a826-cf80ac777f39","onsetDateTime":"1937-05-21T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1937-05-31T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/0c02267a-22cc-4204-8ec3-4c93c0800f27"}]}],"id":"8e893750-719d-4b66-9bcd-cb270fbb6686","onsetDateTime":"1937-05-17T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1937-05-31T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/0c02267a-22cc-4204-8ec3-4c93c0800f27"}]}],"id":"cb6e40b2-2ce6-4dee-a91e-751ac2b7954e","onsetDateTime":"1937-05-17T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1937-06-04T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/0c02267a-22cc-4204-8ec3-4c93c0800f27"}]}],"id":"56e756d4-9f27-448c-98b1-e0eb36527f17","onsetDateTime":"1937-05-21T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1939-05-31T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Hepatitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/80130bc9-f124-4cd1-a5b6-b608be87627b"}]}],"id":"fbf82cf1-b0e2-4855-9660-1732d4e48799","onsetDateTime":"1939-05-17T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1939-06-02T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/80130bc9-f124-4cd1-a5b6-b608be87627b"}]}],"id":"206a3fbb-4f1f-42e9-8bfd-68659a365503","onsetDateTime":"1939-05-19T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1939-06-02T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/80130bc9-f124-4cd1-a5b6-b608be87627b"}]}],"id":"4dcf2c14-16c2-4a89-a278-442e642f7845","onsetDateTime":"1939-05-19T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1939-06-03T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/80130bc9-f124-4cd1-a5b6-b608be87627b"}]}],"id":"aa169bde-71bb-4eae-93eb-b8f9d6a30e43","onsetDateTime":"1939-05-20T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1943-06-07T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Hepatitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/088891de-06fa-4070-a8b2-84b7dd852fab"}]}],"id":"8d6b9aef-64d8-419d-bb11-0fe8fb869612","onsetDateTime":"1943-05-24T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1943-06-04T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/088891de-06fa-4070-a8b2-84b7dd852fab"}]}],"id":"59aea76e-ef40-42db-be1c-b2ae565b5f2a","onsetDateTime":"1943-05-21T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1943-06-02T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/088891de-06fa-4070-a8b2-84b7dd852fab"}]}],"id":"a7780a8b-b6c2-4dfe-9244-4bda7ee43c89","onsetDateTime":"1943-05-19T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1943-06-07T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/088891de-06fa-4070-a8b2-84b7dd852fab"}]}],"id":"130ab1bf-6b99-49c1-973f-b0f77cef3e1a","onsetDateTime":"1943-05-24T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1944-06-03T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Hepatitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/ef69ba1a-f9d2-4ac2-81a5-a15ed9658a35"}]}],"id":"ca9b79fd-c5ff-47b0-942f-350032b684f3","onsetDateTime":"1944-05-20T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1944-06-01T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/ef69ba1a-f9d2-4ac2-81a5-a15ed9658a35"}]}],"id":"45ead8ee-6b76-4e41-b0f4-27d2ea14af35","onsetDateTime":"1944-05-18T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1944-06-06T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/ef69ba1a-f9d2-4ac2-81a5-a15ed9658a35"}]}],"id":"f58e7cf6-4147-4847-9c02-91100965fe5e","onsetDateTime":"1944-05-23T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1944-06-04T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/ef69ba1a-f9d2-4ac2-81a5-a15ed9658a35"}]}],"id":"7cb036e1-91c1-4f70-a295-da664e5bbd8d","onsetDateTime":"1944-05-21T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1946-05-26T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Hepatitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/ac6556be-5099-49ce-8684-9a1a0949a000"}]}],"id":"c54d39ba-8b7a-49e2-8cb2-ea10f18f8c05","onsetDateTime":"1946-05-12T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1946-05-27T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/ac6556be-5099-49ce-8684-9a1a0949a000"}]}],"id":"8019af79-5daa-4ce7-bba8-bcd2a707b2dc","onsetDateTime":"1946-05-13T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1946-05-22T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/ac6556be-5099-49ce-8684-9a1a0949a000"}]}],"id":"0b09f65f-1730-4f18-8f76-ebb35d6d6fcc","onsetDateTime":"1946-05-08T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1950-06-02T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Hepatitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/f5d6e8cf-b0d0-49f7-98d9-089d57d924b3"}]}],"id":"f847e3b4-064b-434f-88ad-14df10e8e0e2","onsetDateTime":"1950-05-19T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1950-06-03T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/f5d6e8cf-b0d0-49f7-98d9-089d57d924b3"}]}],"id":"f9e17311-f1a1-460f-947e-a2dcb6759686","onsetDateTime":"1950-05-20T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1950-06-05T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/f5d6e8cf-b0d0-49f7-98d9-089d57d924b3"}]}],"id":"ddf0c17d-a61e-4aee-96cd-c668eb2fcdae","onsetDateTime":"1950-05-22T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1950-06-02T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/f5d6e8cf-b0d0-49f7-98d9-089d57d924b3"}]}],"id":"42a635b9-5bd4-4716-b7ec-e0a3d644d7db","onsetDateTime":"1950-05-19T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1954-06-02T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/42fe5ae2-c45a-4c85-b062-ba00e34b3873"}]}],"id":"ed46eb33-ca5d-4978-a302-e7336ed8544c","onsetDateTime":"1954-05-19T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1954-05-31T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/42fe5ae2-c45a-4c85-b062-ba00e34b3873"}]}],"id":"79901fcf-5a0b-44c0-9b0e-8f1bb9bf0ad9","onsetDateTime":"1954-05-17T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1960-05-24T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/2118c2ee-79ff-495d-aec7-b2dad1fc577c"}]}],"id":"3f0d1df4-c66e-4f36-b39e-99ff451d2730","onsetDateTime":"1960-05-10T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1965-05-23T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/9a410039-a9d9-40f8-a3bd-ee9573c2110c"}]}],"id":"03465d22-b4b3-4f74-84e1-bfbe9d777def","onsetDateTime":"1965-05-09T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1965-05-21T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/9a410039-a9d9-40f8-a3bd-ee9573c2110c"}]}],"id":"28941bcf-28e5-4be1-a170-55d6f1d5d4b8","onsetDateTime":"1965-05-07T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1967-05-28T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/82167200-02ca-4d7c-8be1-d5f0bf7dd5dd"}]}],"id":"7d565176-3038-478b-ae50-063286d4ed2d","onsetDateTime":"1967-05-14T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1967-05-28T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/82167200-02ca-4d7c-8be1-d5f0bf7dd5dd"}]}],"id":"90f402f3-4dd8-4183-93c3-a4e37fb30c28","onsetDateTime":"1967-05-14T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1968-05-18T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/cb23d929-69c4-490b-a640-1d618990325e"}]}],"id":"5bdcddaa-71ad-4d82-81ad-162d0e142a0c","onsetDateTime":"1968-05-04T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1973-05-26T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/8653983c-7de9-4367-b33d-2e9982092a90"}]}],"id":"3412a7f7-ba43-49f0-ae31-2fc30c92c635","onsetDateTime":"1973-05-12T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1974-05-27T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/27ef7dc1-080f-43da-86e4-67313a073a6c"}]}],"id":"60f66aa4-7fc8-4214-8a98-ca1492644538","onsetDateTime":"1974-05-13T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1974-05-30T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/27ef7dc1-080f-43da-86e4-67313a073a6c"}]}],"id":"6cad4043-b2b2-4f63-be06-d386ef631807","onsetDateTime":"1974-05-16T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1977-05-21T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/9711d7c8-b082-47cd-802a-2bd51717cc8c"}]}],"id":"7b339480-9193-48a7-8f9d-6fcdc2fee6ab","onsetDateTime":"1977-05-07T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1977-05-21T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/9711d7c8-b082-47cd-802a-2bd51717cc8c"}]}],"id":"0136302a-c4d9-4391-b800-985954af6a04","onsetDateTime":"1977-05-07T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1981-05-23T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/3e39aa22-c175-4e91-9d29-0e02b87ea7ff"}]}],"id":"74803409-a93e-4768-b456-b7a84289483c","onsetDateTime":"1981-05-09T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1981-05-26T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/3e39aa22-c175-4e91-9d29-0e02b87ea7ff"}]}],"id":"41e1c6f5-0c2a-4686-baf4-8326a5435e88","onsetDateTime":"1981-05-12T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1981-05-24T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/3e39aa22-c175-4e91-9d29-0e02b87ea7ff"}]}],"id":"af56fad5-42d0-44e1-ac4d-65f32f48f5cd","onsetDateTime":"1981-05-10T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1986-05-20T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/e42a4fe0-f12e-4e54-8541-8636139211cd"}]}],"id":"ef70bb03-7c0f-43b4-ae6c-d46fed90fe7f","onsetDateTime":"1986-05-06T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1989-05-19T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/fe48c934-0dbb-4d01-86df-b44a0464955a"}]}],"id":"cce8242a-daff-47f0-ad9f-7c4e9fb40bba","onsetDateTime":"1989-05-05T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1989-05-20T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/fe48c934-0dbb-4d01-86df-b44a0464955a"}]}],"id":"07b6a73e-0604-4883-a93c-ebb6e17f5ac9","onsetDateTime":"1989-05-06T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1989-05-19T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/fe48c934-0dbb-4d01-86df-b44a0464955a"}]}],"id":"c5b090bd-5d4c-40ad-9da8-53878cc9e287","onsetDateTime":"1989-05-05T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1990-05-19T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/707e7b4c-bf95-453d-b24e-bc463ef2fb87"}]}],"id":"96ab86b7-d513-4aee-95b3-c22442eff634","onsetDateTime":"1990-05-05T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1990-05-23T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/707e7b4c-bf95-453d-b24e-bc463ef2fb87"}]}],"id":"50587f3b-8f01-4158-98d3-37e16df49b3e","onsetDateTime":"1990-05-09T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1992-05-12T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/7c7b1a31-fbab-4f04-a8f1-577aa2bd31d3"}]}],"id":"aaf6e36d-894c-49e4-9def-5fd94b6e2123","onsetDateTime":"1992-04-28T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"1997-05-16T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/c66f15f6-4ff9-4ed4-9586-f33bc801daf2"}]}],"id":"11395261-5c45-43e3-b601-8f066ab405ab","onsetDateTime":"1997-05-02T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"2004-05-09T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/a015259a-8bf9-46d2-b200-8fd2fef1a66d"}]}],"id":"605c8ee5-b3e3-4752-be36-6addfaa309a7","onsetDateTime":"2004-04-25T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"2013-05-15T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Measles","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/11d56a76-6010-4da5-b7f7-f8d919447f2d"}]}],"id":"e0ea94d2-e7a5-4619-9705-6acb823af984","onsetDateTime":"2013-05-01T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"2013-05-18T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/11d56a76-6010-4da5-b7f7-f8d919447f2d"}]}],"id":"8af5b70e-5dba-48ae-ae02-ee4019e3ed35","onsetDateTime":"2013-05-04T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"2013-05-17T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/11d56a76-6010-4da5-b7f7-f8d919447f2d"}]}],"id":"3ffd8f92-444d-4d90-b443-da05cb12d833","onsetDateTime":"2013-05-03T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"2015-05-09T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Meningitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/e370c4e6-b5b3-407b-b673-436617498fef"}]}],"id":"76910f71-937d-4fb3-8657-db540943ca9c","onsetDateTime":"2015-04-25T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"2015-05-11T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Yellow Fever","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/e370c4e6-b5b3-407b-b673-436617498fef"}]}],"id":"ff9c7331-f1c6-475e-b115-d09c94acd9f5","onsetDateTime":"2015-04-27T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"abatementDateTime":"2019-05-03T00:00:00Z","clinicalStatus":"resolved","code":{"coding":[{"code":"Hepatitis","system":"http://hl7.org/fhir/v3/ConditionCode"}]},"evidence":[{"detail":[{"reference":"QuestionnaireResponse/e7dd38fd-e7ea-4823-9d05-5afb6884a3ec"}]}],"id":"2df1fdc9-73e7-49a5-8ca4-7369d697d4b4","onsetDateTime":"2019-04-19T00:00:00Z","resourceType":"Condition","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"0c02267a-22cc-4204-8ec3-4c93c0800f27","item":[{"answer":[{"valueString":"Democratic Republic of the Congo"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1937-05-09"}],"linkId":"2.1"},{"answer":[{"valueDate":"1937-05-20"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"80130bc9-f124-4cd1-a5b6-b608be87627b","item":[{"answer":[{"valueString":"Nigeria"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1939-05-09"}],"linkId":"2.1"},{"answer":[{"valueDate":"1939-05-20"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"088891de-06fa-4070-a8b2-84b7dd852fab","item":[{"answer":[{"valueString":"Vietnam"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1943-05-08"}],"linkId":"2.1"},{"answer":[{"valueDate":"1943-05-22"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"ef69ba1a-f9d2-4ac2-81a5-a15ed9658a35","item":[{"answer":[{"valueString":"Democratic Republic of the Congo"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1944-05-07"}],"linkId":"2.1"},{"answer":[{"valueDate":"1944-05-21"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"ac6556be-5099-49ce-8684-9a1a0949a000","item":[{"answer":[{"valueString":"Egypt"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1946-05-07"}],"linkId":"2.1"},{"answer":[{"valueDate":"1946-05-11"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"4f3fb6c3-c2f2-4451-940d-82c84a2473e8","item":[{"answer":[{"valueString":"Mexico"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1949-05-06"}],"linkId":"2.1"},{"answer":[{"valueDate":"1949-05-07"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"f5d6e8cf-b0d0-49f7-98d9-089d57d924b3","item":[{"answer":[{"valueString":"Mexico"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1950-05-06"}],"linkId":"2.1"},{"answer":[{"valueDate":"1950-05-19"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"42fe5ae2-c45a-4c85-b062-ba00e34b3873","item":[{"answer":[{"valueString":"Ethiopia"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1954-05-05"}],"linkId":"2.1"},{"answer":[{"valueDate":"1954-05-19"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"0fdfee07-b5ac-4225-9eed-b1b333953cad","item":[{"answer":[{"valueString":"Brazil"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1957-05-04"}],"linkId":"2.1"},{"answer":[{"valueDate":"1957-05-10"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"2118c2ee-79ff-495d-aec7-b2dad1fc577c","item":[{"answer":[{"valueString":"Iran"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1960-05-03"}],"linkId":"2.1"},{"answer":[{"valueDate":"1960-05-11"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"9a410039-a9d9-40f8-a3bd-ee9573c2110c","item":[{"answer":[{"valueString":"Bangladesh"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1965-05-02"}],"linkId":"2.1"},{"answer":[{"valueDate":"1965-05-09"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"82167200-02ca-4d7c-8be1-d5f0bf7dd5dd","item":[{"answer":[{"valueString":"Thailand"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1967-05-02"}],"linkId":"2.1"},{"answer":[{"valueDate":"1967-05-15"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"cb23d929-69c4-490b-a640-1d618990325e","item":[{"answer":[{"valueString":"Ethiopia"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1968-05-01"}],"linkId":"2.1"},{"answer":[{"valueDate":"1968-05-06"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"8653983c-7de9-4367-b33d-2e9982092a90","item":[{"answer":[{"valueString":"India"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1973-04-30"}],"linkId":"2.1"},{"answer":[{"valueDate":"1973-05-11"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"27ef7dc1-080f-43da-86e4-67313a073a6c","item":[{"answer":[{"valueString":"Pakistan"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1974-04-30"}],"linkId":"2.1"},{"answer":[{"valueDate":"1974-05-13"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"9711d7c8-b082-47cd-802a-2bd51717cc8c","item":[{"answer":[{"valueString":"Japan"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1977-04-29"}],"linkId":"2.1"},{"answer":[{"valueDate":"1977-05-08"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"3e39aa22-c175-4e91-9d29-0e02b87ea7ff","item":[{"answer":[{"valueString":"Brazil"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1981-04-28"}],"linkId":"2.1"},{"answer":[{"valueDate":"1981-05-10"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"e42a4fe0-f12e-4e54-8541-8636139211cd","item":[{"answer":[{"valueString":"Nigeria"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1986-04-27"}],"linkId":"2.1"},{"answer":[{"valueDate":"1986-05-08"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"fe48c934-0dbb-4d01-86df-b44a0464955a","item":[{"answer":[{"valueString":"Turkey"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1989-04-26"}],"linkId":"2.1"},{"answer":[{"valueDate":"1989-05-08"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"707e7b4c-bf95-453d-b24e-bc463ef2fb87","item":[{"answer":[{"valueString":"Bangladesh"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1990-04-26"}],"linkId":"2.1"},{"answer":[{"valueDate":"1990-05-08"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"7c7b1a31-fbab-4f04-a8f1-577aa2bd31d3","item":[{"answer":[{"valueString":"China"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1992-04-25"}],"linkId":"2.1"},{"answer":[{"valueDate":"1992-05-01"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"c66f15f6-4ff9-4ed4-9586-f33bc801daf2","item":[{"answer":[{"valueString":"Brazil"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"1997-04-24"}],"linkId":"2.1"},{"answer":[{"valueDate":"1997-05-04"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"0d4d0f1b-0301-4887-a7c6-a2bcafcadb06","item":[{"answer":[{"valueString":"India"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2001-04-23"}],"linkId":"2.1"},{"answer":[{"valueDate":"2001-04-24"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"a015259a-8bf9-46d2-b200-8fd2fef1a66d","item":[{"answer":[{"valueString":"Democratic Republic of the Congo"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2004-04-22"}],"linkId":"2.1"},{"answer":[{"valueDate":"2004-04-26"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"81ddbdf2-e375-4480-a9cf-f31c2a1c9f09","item":[{"answer":[{"valueString":"Democratic Republic of the Congo"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2006-04-22"}],"linkId":"2.1"},{"answer":[{"valueDate":"2006-04-23"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"29a8cc27-3929-403a-97b3-06c8256fd4c9","item":[{"answer":[{"valueString":"Indonesia"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2009-04-21"}],"linkId":"2.1"},{"answer":[{"valueDate":"2009-04-22"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"11d56a76-6010-4da5-b7f7-f8d919447f2d","item":[{"answer":[{"valueString":"Indonesia"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2013-04-20"}],"linkId":"2.1"},{"answer":[{"valueDate":"2013-05-01"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"e370c4e6-b5b3-407b-b673-436617498fef","item":[{"answer":[{"valueString":"Mexico"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2015-04-20"}],"linkId":"2.1"},{"answer":[{"valueDate":"2015-04-26"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"6f0b68af-68eb-4b73-a601-e5892819f93c","item":[{"answer":[{"valueString":"Brazil"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2016-04-19"}],"linkId":"2.1"},{"answer":[{"valueDate":"2016-04-22"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}},{"resource":{"author":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"},"id":"e7dd38fd-e7ea-4823-9d05-5afb6884a3ec","item":[{"answer":[{"valueString":"Egypt"}],"linkId":"1"},{"item":[{"answer":[{"valueDate":"2019-04-19"}],"linkId":"2.1"},{"answer":[{"valueDate":"2019-04-21"}],"linkId":"2.2"}],"linkId":"2"}],"questionnaire":{"reference":"Questionnaire/2756653a-d80e-4ca1-899f-a79c5ad0c40d"},"resourceType":"QuestionnaireResponse","status":"completed","subject":{"reference":"Patient/7e5f36bc-3694-49ce-bdba-8ab7a13988d2"}}}],"resourceType":"Bundle"} \ No newline at end of file +{"class":{"code":"IMP","display":"inpatient encounter","system":"http://hl7.org/fhir/v3/ActCode"},"id":"6090e773-3e91-40a7-8fce-1e22f6774c29","reason":[{"text":"The patient had an abnormal heart rate. She was concerned about this."}],"resourceType":"Encounter","status":"finished","subject":{"reference":"Patient/2938bb9e-1f16-429e-8d44-9508ab0e4151"}} +{"class":{"code":"IMP","display":"inpatient encounter","system":"http://hl7.org/fhir/v3/ActCode"},"id":"7101f884-4f02-51b8-9gdf-2f33g7885d30","reason":[{"text":"The patient was experiencing recurrent fevers."}],"resourceType":"Encounter","status":"finished","subject":{"reference":"Patient/3049cc0f-2g27-530f-9e55-0619bc1f5262"}} +{"birthDate":"1970-01-01","gender":"female","id":"2938bb9e-1f16-429e-8d44-9508ab0e4151","name":[{"family":"Smith","given":["Darcy"],"use":"official"}],"resourceType":"Patient"} diff --git a/healthcare/fhir/system-test/fhir_resources.test.js b/healthcare/fhir/system-test/fhir_resources.test.js index fefe014354..b5e817b876 100644 --- a/healthcare/fhir/system-test/fhir_resources.test.js +++ b/healthcare/fhir/system-test/fhir_resources.test.js @@ -35,6 +35,15 @@ const resourceType = 'Patient'; const version = 'STU3'; let resourceId; +const installDeps = 'npm install'; + +// Run npm install on datasets directory because modalities +// require bootstrapping datasets, and Kokoro needs to know +// to install dependencies from the datasets directory. +assert.ok( + execSync(installDeps, {cwd: `${cwdDatasets}`, shell: true}) +); + before(() => { assert( process.env.GOOGLE_CLOUD_PROJECT, diff --git a/healthcare/fhir/system-test/fhir_stores.test.js b/healthcare/fhir/system-test/fhir_stores.test.js index d1f987dbed..03d49a16c6 100644 --- a/healthcare/fhir/system-test/fhir_stores.test.js +++ b/healthcare/fhir/system-test/fhir_stores.test.js @@ -43,6 +43,14 @@ const fhirFileName = 'fhir_data.ndjson'; const fhirResourceFile = `resources/${fhirFileName}`; const gcsUri = `${bucketName}/${fhirFileName}`; +const installDeps = 'npm install'; + +// Run npm install on datasets directory because modalities +// require bootstrapping datasets, and Kokoro needs to know +// to install dependencies from the datasets directory. +assert.ok( + execSync(installDeps, {cwd: `${cwdDatasets}`, shell: true}) +); before(async () => { assert( @@ -56,6 +64,8 @@ before(async () => { // Create a Cloud Storage bucket to be used for testing. await storage.createBucket(bucketName); console.log(`Bucket ${bucketName} created.`); + // Upload the FHIR resource file so that there's something to + // use for the importFhirResources test. await storage.bucket(bucketName).upload(fhirResourceFile); // Create a Pub/Sub topic to be used for testing. diff --git a/healthcare/hl7v2/system-test/hl7v2_messages.test.js b/healthcare/hl7v2/system-test/hl7v2_messages.test.js index 82a643e4b4..c0110fc8b7 100644 --- a/healthcare/hl7v2/system-test/hl7v2_messages.test.js +++ b/healthcare/hl7v2/system-test/hl7v2_messages.test.js @@ -34,6 +34,14 @@ const messageFile = 'resources/hl7v2-sample.json'; const messageId = '2yqbdhYHlk_ucSmWkcKOVm_N0p0OpBXgIlVG18rB-cw='; const labelKey = 'my-key'; const labelValue = 'my-value'; +const installDeps = 'npm install'; + +// Run npm install on datasets directory because modalities +// require bootstrapping datasets, and Kokoro needs to know +// to install dependencies from the datasets directory. +assert.ok( + execSync(installDeps, {cwd: `${cwdDatasets}`, shell: true}) +); before(() => { assert( diff --git a/healthcare/hl7v2/system-test/hl7v2_stores.test.js b/healthcare/hl7v2/system-test/hl7v2_stores.test.js index cf101b7455..32a046cdf7 100644 --- a/healthcare/hl7v2/system-test/hl7v2_stores.test.js +++ b/healthcare/hl7v2/system-test/hl7v2_stores.test.js @@ -32,6 +32,14 @@ const hl7v2StoreId = `nodejs-docs-samples-test-hl7v2-store${uuid.v4()}`.replace( '_' ); const topicName = `nodejs-healthcare-test-topic-${uuid.v4()}`; +const installDeps = 'npm install'; + +// Run npm install on datasets directory because modalities +// require bootstrapping datasets, and Kokoro needs to know +// to install dependencies from the datasets directory. +assert.ok( + execSync(installDeps, {cwd: `${cwdDatasets}`, shell: true}) +); before(async () => { assert(