Skip to content

Commit

Permalink
fix(healthcare): specify V3 parser version when creating HL7v2 store (G…
Browse files Browse the repository at this point in the history
…oogleCloudPlatform#3475)

* fix(healthcare): specify V3 parser version when creating HL7v2 store

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
noerog and gcf-owl-bot[bot] authored Aug 23, 2023
1 parent ea2995a commit c6e0a09
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion healthcare/hl7v2/createHl7v2Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ const main = (
// const datasetId = 'my-dataset';
// const hl7v2StoreId = 'my-hl7v2-store';
const parent = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}`;
const request = {parent, hl7V2StoreId: hl7v2StoreId};
const request = {
parent,
hl7V2StoreId: hl7v2StoreId,
resource: {
parserConfig: {
version: 'V3',
},
},
};

await healthcare.projects.locations.datasets.hl7V2Stores.create(request);
console.log(`Created HL7v2 store: ${hl7v2StoreId}`);
Expand Down

0 comments on commit c6e0a09

Please sign in to comment.