This repository has been archived by the owner on Sep 20, 2020. It is now read-only.
-
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
杜興怡
committed
Dec 12, 2018
0 parents
commit 97a1541
Showing
3 changed files
with
246 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,31 @@ | ||
// Protocol buffer description for a FHIR data persistence service | ||
|
||
syntax = "proto3"; | ||
|
||
package fhircomb; | ||
|
||
// Interface exported by the server. | ||
service Fhircomb { | ||
|
||
// Obtains the resource record that matches the search criteria. | ||
rpc Read(Search) returns (Record) {} | ||
|
||
} | ||
|
||
// A search criteria to request the resource record. | ||
message Search { | ||
// A ID is the UUID for the Patient record | ||
string id = 1; | ||
|
||
// The resource type | ||
string type = 2; | ||
} | ||
|
||
// A resource record returned from the data store. | ||
message Record { | ||
//// string id = 1; | ||
//// string resource_type = 2; | ||
//// string status = 3; | ||
|
||
bytes resource = 1; | ||
} |
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,7 @@ | ||
module github.com/patterns/fhircomb | ||
|
||
require ( | ||
github.com/jackc/pgx v3.3.0+incompatible // indirect | ||
github.com/pkg/errors v0.8.0 // indirect | ||
google.golang.org/grpc v1.17.0 // indirect | ||
) |