Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

Commit

Permalink
Protocol buffer Read definition
Browse files Browse the repository at this point in the history
  • Loading branch information
杜興怡 committed Dec 12, 2018
0 parents commit 97a1541
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 0 deletions.
208 changes: 208 additions & 0 deletions fhircomb.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions fhircomb.proto
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;
}
7 changes: 7 additions & 0 deletions go.mod
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
)

0 comments on commit 97a1541

Please sign in to comment.