Skip to content

Commit cb38ff0

Browse files
noerogfhinkel
authored andcommitted
Cloud Healthcare API alpha HL7v2 samples and tests (#881)
1 parent cccf576 commit cb38ff0

7 files changed

Lines changed: 1037 additions & 0 deletions

File tree

healthcare/hl7v2/README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Cloud Healthcare API Node.js HL7v2 store and HL7v2 message example
4+
5+
This sample app demonstrates HL7v2 store and HL7v2 message management for the Cloud Healthcare API.
6+
7+
# Setup
8+
9+
Run the following command to install the library dependencies for Node.js:
10+
11+
npm install
12+
13+
# Running the samples
14+
15+
## HL7v2 stores
16+
17+
hl7v2_stores.js <command>
18+
19+
Commands:
20+
hl7v2_stores.js createHl7v2Store <datasetId> <hl7v2StoreId> Creates a new HL7v2 store within the parent dataset.
21+
hl7v2_stores.js deleteHl7v2Store <datasetId> <hl7v2StoreId> Deletes the HL7v2 store and removes all resources that
22+
are contained within it.
23+
hl7v2_stores.js getHl7v2Store <datasetId> <hl7v2StoreId> Gets the specified HL7v2 store or returns NOT_FOUND if
24+
it doesn't exist.
25+
hl7v2_stores.js listHl7v2Stores <datasetId> Lists the HL7v2 stores in the given dataset.
26+
hl7v2_stores.js patchHl7v2Store <datasetId> <hl7v2StoreId> Updates the HL7v2 store.
27+
<pubsubTopic>
28+
29+
Options:
30+
--version Show version number [boolean]
31+
--apiKey, -a The API key used for discovering the API.
32+
[string]
33+
--cloudRegion, -c [string] [default: "us-central1"]
34+
--projectId, -p The Project ID to use. Defaults to the value of the GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT
35+
environment variables. [string]
36+
--serviceAccount, -s The path to your service credentials JSON.
37+
[string]
38+
--help Show help [boolean]
39+
40+
41+
## HL7v2 messages
42+
43+
hl7v2_messages.js <command>
44+
45+
Commands:
46+
hl7v2_messages.js createHl7v2Message <datasetId> Creates a new HL7v2 message and, if configured, sends a
47+
<hl7v2StoreId> <messageFile> notification to the parent store's Cloud Pub/Sub topic.
48+
hl7v2_messages.js ingestHl7v2Message <datasetId> Ingests a new HL7v2 message from the hospital and, if
49+
<hl7v2StoreId> <messageFile> configured, sends a notification to the Cloud Pub/Sub
50+
topic.
51+
hl7v2_messages.js deleteHl7v2Message <datasetId> Deletes the specified HL7v2 message.
52+
<hl7v2StoreId> <messageId>
53+
hl7v2_messages.js getHl7v2Message <datasetId> <hl7v2StoreId> Gets the specified HL7v2 message.
54+
<messageId>
55+
hl7v2_messages.js listHl7v2Messages <datasetId> Lists all the messages in the given HL7v2 store.
56+
<hl7v2StoreId>
57+
hl7v2_messages.js patchHl7v2Message <datasetId> Updates the specified HL7v2 message.
58+
<hl7v2StoreId> <labelKey> <labelValue>
59+
60+
Options:
61+
--version Show version number [boolean]
62+
--apiKey, -a The API key used for discovering the API.
63+
[string]
64+
--cloudRegion, -c [string] [default: "us-central1"]
65+
--projectId, -p The Project ID to use. Defaults to the value of the GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT
66+
environment variables. [string]
67+
--serviceAccount, -s The path to your service credentials JSON.
68+
[string]
69+
--help Show help [boolean]
70+
71+
For more information, see https://cloud.google.com/healthcare/docs

0 commit comments

Comments
 (0)