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

Commit

Permalink
Updates fhir-examples repo to use proto import spellings from FhirPro…
Browse files Browse the repository at this point in the history
…to v0.6.0

PiperOrigin-RevId: 334947806
  • Loading branch information
nickgeorge committed Oct 5, 2020
1 parent 742efb9 commit db8d414
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 35 deletions.
18 changes: 9 additions & 9 deletions cc/google/fhir_examples/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cc_library(
"@com_google_absl//absl/time",
"@com_google_fhir//cc/google/fhir/r4:json_format",
"@com_google_fhir//cc/google/fhir/status:statusor",
"@com_google_fhir//proto/r4/core/resources:patient_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:patient_cc_proto",
],
)

Expand All @@ -23,7 +23,7 @@ cc_binary(
deps = [
":example_utils",
"@com_google_fhir//cc/google/fhir/r4:json_format",
"@com_google_fhir//proto/r4/core/resources:patient_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:patient_cc_proto",
],
)

Expand All @@ -36,8 +36,8 @@ cc_binary(
"@com_google_fhir//cc/google/fhir/r4:profiles",
"@com_google_fhir//cc/google/fhir/r4:resource_validation",
"@com_google_fhir//cc/google/fhir/status",
"@com_google_fhir//proto/r4:uscore_cc_proto",
"@com_google_fhir//proto/r4/core/resources:patient_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4:uscore_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:patient_cc_proto",
],
)

Expand All @@ -49,8 +49,8 @@ cc_binary(
"//proto/google/fhir_examples/myprofile:myprofile_cc_proto",
"@com_google_fhir//cc/google/fhir:json_format",
"@com_google_fhir//cc/google/fhir/r4:profiles",
"@com_google_fhir//proto/r4:uscore_cc_proto",
"@com_google_fhir//proto/r4/core:datatypes_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4:uscore_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core:datatypes_cc_proto",
],
)

Expand All @@ -62,8 +62,8 @@ cc_binary(
"@com_google_fhir//cc/google/fhir/r4:json_format",
"@com_google_fhir//cc/google/fhir/r4:resource_validation",
"@com_google_fhir//cc/google/fhir/status",
"@com_google_fhir//proto/r4:uscore_cc_proto",
"@com_google_fhir//proto/r4/core/resources:patient_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4:uscore_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:patient_cc_proto",
],
)

Expand All @@ -75,6 +75,6 @@ cc_binary(
"//proto/google/fhir_examples/myprofile:myprofile_cc_proto",
"@com_google_fhir//cc/google/fhir:json_format",
"@com_google_fhir//cc/google/fhir/r4:profiles",
"@com_google_fhir//proto/r4/core/resources:patient_cc_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:patient_cc_proto",
],
)
2 changes: 1 addition & 1 deletion cc/google/fhir_examples/example_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "absl/time/time.h"
#include "google/fhir/r4/json_format.h"
#include "google/fhir/status/statusor.h"
#include "proto/r4/core/resources/patient.pb.h"
#include "proto/google/fhir/proto/r4/core/resources/patient.pb.h"

namespace fhir_examples {

Expand Down
2 changes: 1 addition & 1 deletion cc/google/fhir_examples/parse_patients.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <vector>

#include "google/fhir/r4/json_format.h"
#include "proto/r4/core/resources/patient.pb.h"
#include "proto/google/fhir/proto/r4/core/resources/patient.pb.h"
#include "google/fhir_examples/example_utils.h"

using std::string;
Expand Down
2 changes: 1 addition & 1 deletion cc/google/fhir_examples/print_to_analytic_ndjson.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "google/fhir/json_format.h"
#include "google/fhir/r4/profiles.h"
#include "proto/r4/core/resources/patient.pb.h"
#include "proto/google/fhir/proto/r4/core/resources/patient.pb.h"
#include "google/fhir_examples/example_utils.h"
#include "proto/google/fhir_examples/myprofile/myprofile.pb.h"

Expand Down
4 changes: 2 additions & 2 deletions cc/google/fhir_examples/profile_patients_to_custom_profile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#include "google/fhir/json_format.h"
#include "google/fhir/r4/profiles.h"
#include "proto/r4/core/datatypes.pb.h"
#include "proto/r4/uscore.pb.h"
#include "proto/google/fhir/proto/r4/core/datatypes.pb.h"
#include "proto/google/fhir/proto/r4/uscore.pb.h"
#include "google/fhir_examples/example_utils.h"
#include "proto/google/fhir_examples/myprofile/myprofile.pb.h"

Expand Down
4 changes: 2 additions & 2 deletions cc/google/fhir_examples/profile_patients_to_uscore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include "google/fhir/r4/profiles.h"
#include "google/fhir/r4/resource_validation.h"
#include "google/fhir/status/status.h"
#include "proto/r4/core/resources/patient.pb.h"
#include "proto/r4/uscore.pb.h"
#include "proto/google/fhir/proto/r4/core/resources/patient.pb.h"
#include "proto/google/fhir/proto/r4/uscore.pb.h"
#include "google/fhir_examples/example_utils.h"

using std::string;
Expand Down
4 changes: 2 additions & 2 deletions cc/google/fhir_examples/validate_patients.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include "google/fhir/r4/json_format.h"
#include "google/fhir/r4/resource_validation.h"
#include "google/fhir/status/status.h"
#include "proto/r4/core/resources/patient.pb.h"
#include "proto/r4/uscore.pb.h"
#include "proto/google/fhir/proto/r4/core/resources/patient.pb.h"
#include "proto/google/fhir/proto/r4/uscore.pb.h"
#include "google/fhir_examples/example_utils.h"

using std::string;
Expand Down
2 changes: 1 addition & 1 deletion go/google/fhir_examples/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ go_binary(
srcs = ["parse_patients.go"],
deps = [
"@com_google_fhir//go/jsonformat",
"@com_google_fhir//proto/r4/core/resources:bundle_and_contained_resource_go_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:bundle_and_contained_resource_go_proto",
],
)
2 changes: 1 addition & 1 deletion go/google/fhir_examples/parse_patients.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

"github.com/google/fhir/go/jsonformat"

r4pb "google/fhir/proto/r4/core/resources/bundle_and_contained_resource_go_proto"
r4pb "proto/google/fhir/proto/r4/core/resources/bundle_and_contained_resource_go_proto"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions java/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ java_binary(
main_class = "com.google.fhirexamples.ParsePatients",
deps = [
"@com_google_fhir//java:json_format",
"@com_google_fhir//proto/r4/core/resources:patient_java_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:patient_java_proto",
],
)

Expand All @@ -27,7 +27,7 @@ java_binary(
":example_utils",
"@com_google_fhir//java:common",
"@com_google_fhir//java:resource_validator",
"@com_google_fhir//proto/r4/core/resources:patient_java_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core/resources:patient_java_proto",
],
)

Expand Down
16 changes: 8 additions & 8 deletions proto/google/fhir_examples/myprofile/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ licenses(["notice"])
gen_fhir_definitions_and_protos(
name = "myprofile",
additional_proto_imports = [
"proto/r4/uscore.proto",
"proto/r4/uscore_codes.proto",
"proto/google/fhir/proto/r4/uscore.proto",
"proto/google/fhir/proto/r4/uscore_codes.proto",
],
extensions = [
"extensions.prototxt",
Expand All @@ -29,12 +29,12 @@ fhir_proto_library(
],
proto_deps = [
"@com_google_protobuf//:any_proto",
"@com_google_fhir//proto:annotations_proto",
"@com_google_fhir//proto/r4:uscore_codes_proto",
"@com_google_fhir//proto/r4:uscore_proto",
"@com_google_fhir//proto/r4/core:codes_proto",
"@com_google_fhir//proto/r4/core:datatypes_proto",
"@com_google_fhir//proto/r4/core:extensions_proto",
"@com_google_fhir//proto/google/fhir/proto:annotations_proto",
"@com_google_fhir//proto/google/fhir/proto/r4:uscore_codes_proto",
"@com_google_fhir//proto/google/fhir/proto/r4:uscore_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core:codes_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core:datatypes_proto",
"@com_google_fhir//proto/google/fhir/proto/r4/core:extensions_proto",
],
proto_library_prefix = "myprofile",
)
10 changes: 5 additions & 5 deletions proto/google/fhir_examples/myprofile/myprofile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ syntax = "proto3";
package fhirexamples.myprofile;

import "google/protobuf/any.proto";
import "proto/annotations.proto";
import "proto/r4/core/codes.proto";
import "proto/r4/core/datatypes.proto";
import "proto/r4/uscore.proto";
import "proto/r4/uscore_codes.proto";
import "proto/google/fhir/proto/annotations.proto";
import "proto/google/fhir/proto/r4/core/codes.proto";
import "proto/google/fhir/proto/r4/core/datatypes.proto";
import "proto/google/fhir/proto/r4/uscore.proto";
import "proto/google/fhir/proto/r4/uscore_codes.proto";

option java_multiple_files = true;
option java_package = "com.mycompany.fhirexamples.myprofile";
Expand Down

0 comments on commit db8d414

Please sign in to comment.