Skip to content

Commit

Permalink
Handle FHIRPath constraints on root FHIR elements by creating a corre…
Browse files Browse the repository at this point in the history
…sponding fhir_path_message_constraint on the corresponding protobuf message.

PiperOrigin-RevId: 278786301
  • Loading branch information
rbrush authored and nickgeorge committed Nov 6, 2019
1 parent a40cffa commit 13a9cf3
Show file tree
Hide file tree
Showing 771 changed files with 4,041 additions and 3,507 deletions.
6 changes: 4 additions & 2 deletions cc/google/fhir/fhir_path/BUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
load("//bazel:antlr4_cc.bzl", "antlr4_cc_lexer", "antlr4_cc_parser")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

load("//bazel:antlr4_cc.bzl", "antlr4_cc_lexer", "antlr4_cc_parser")

antlr4_cc_lexer(
name = "fhir_path_lexer",
src = "FhirPath.g4",
Expand Down Expand Up @@ -63,6 +63,8 @@ cc_test(
deps = [
":fhir_path",
"//cc/google/fhir/status",
"//proto/r4/core:datatypes_cc_proto",
"//proto/r4/core/resources:encounter_cc_proto",
"//proto/stu3:codes_cc_proto",
"//proto/stu3:datatypes_cc_proto",
"//proto/stu3:resources_cc_proto",
Expand Down
1 change: 1 addition & 0 deletions cc/google/fhir/fhir_path/FhirPath.g4
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
grammar FhirPath;

// TODO: upgrade to the 2019 FHIRPath grammar (http://hl7.org/fhirpath/2019May/grammar.html)
// Grammar rules

//prog: line (line)*;
Expand Down
Loading

0 comments on commit 13a9cf3

Please sign in to comment.