From 31c3b614b7bf203c9b1d53306688b3bd6984e11d Mon Sep 17 00:00:00 2001 From: Kevin Eger Date: Tue, 9 Aug 2022 19:59:44 +0000 Subject: [PATCH] Generate Proto messages in stable, alphabetical ordering by message name. For new profiles whose names don't name match existing resources, this can result in a change in ordering of resources in ContainedResources when generating protos. PiperOrigin-RevId: 466443054 --- .../fhir/protogen/ProtoFilePrinter.java | 6 +- .../google/fhir/protogen/ProtoGenerator.java | 7 +- javatests/com/google/fhir/protogen/BUILD | 2 + .../fhir/protogen/ProtoGeneratorTest.java | 14 +- .../google/fhir/proto/r4/core/datatypes.proto | 860 +- .../fhir/proto/r4/google_extensions.proto | 168 + proto/google/fhir/proto/r4/uscore.proto | 8646 ++++++++--------- proto/google/fhir/proto/r4/uscore_codes.proto | 2332 ++--- .../r4/profiles/retagging/retagging_test.json | 64 +- .../profiles/retagging/retagging_test.proto | 16 +- .../retagging/retagging_test_codes.proto | 56 +- .../retagging/retagging_test_extensions.json | 44 +- .../retagging/retagging_test_extensions.proto | 128 +- .../retagging_test_terminologies.json | 14 +- .../retagging_split/retagging_split_test.json | 64 +- .../retagging_split_test_codes.proto | 56 +- .../retagging_split_test_extensions.json | 44 +- .../retagging_split_test_extensions.proto | 126 +- .../retagging_split_test_terminologies.json | 14 +- .../split/bundle_and_contained_resource.proto | 12 +- testdata/r4/profiles/split/split_test.json | 26 +- .../r4/profiles/split/split_test_codes.proto | 56 +- .../profiles/split/split_test_extensions.json | 44 +- .../split/split_test_extensions.proto | 126 +- .../split/split_test_terminologies.json | 14 +- testdata/r4/profiles/test.json | 26 +- testdata/r4/profiles/test.proto | 4190 ++++---- testdata/r4/profiles/test_codes.proto | 56 +- testdata/r4/profiles/test_extensions.json | 16 +- testdata/r4/profiles/test_extensions.proto | 126 +- testdata/r4/profiles/test_terminologies.json | 14 +- 31 files changed, 8668 insertions(+), 8699 deletions(-) create mode 100644 proto/google/fhir/proto/r4/google_extensions.proto diff --git a/java/com/google/fhir/protogen/ProtoFilePrinter.java b/java/com/google/fhir/protogen/ProtoFilePrinter.java index b10681073..5c3fedc3d 100644 --- a/java/com/google/fhir/protogen/ProtoFilePrinter.java +++ b/java/com/google/fhir/protogen/ProtoFilePrinter.java @@ -14,6 +14,7 @@ package com.google.fhir.protogen; + import com.google.common.base.Ascii; import com.google.common.base.CharMatcher; import com.google.common.base.Joiner; @@ -40,6 +41,7 @@ import com.google.protobuf.Descriptors.FieldDescriptor; import java.util.ArrayList; import java.util.Calendar; +import java.util.Comparator; import java.util.GregorianCalendar; import java.util.HashSet; import java.util.List; @@ -126,7 +128,9 @@ public String print(FileDescriptorProto fileDescriptor) { contents.append(printHeader(fileDescriptor)).append("\n"); contents.append(printImports(fileDescriptor)).append("\n"); contents.append(printOptions(fileDescriptor, fullyQualifiedPackageName)).append("\n"); - for (DescriptorProto descriptor : fileDescriptor.getMessageTypeList()) { + for (DescriptorProto descriptor : + ImmutableList.sortedCopyOf( + Comparator.comparing(DescriptorProto::getName), fileDescriptor.getMessageTypeList())) { contents .append(printMessage(descriptor, fullyQualifiedPackageName, fullyQualifiedPackageName)) .append("\n"); diff --git a/java/com/google/fhir/protogen/ProtoGenerator.java b/java/com/google/fhir/protogen/ProtoGenerator.java index 065ddd2b9..b140064f0 100644 --- a/java/com/google/fhir/protogen/ProtoGenerator.java +++ b/java/com/google/fhir/protogen/ProtoGenerator.java @@ -1979,7 +1979,8 @@ public FileDescriptorProto addContainedResource( } } int tagNumber = Iterables.getLast(baseContainedResource.getFields()).getNumber() + 1; - for (String resourceType : resourcesToInclude) { + + for (String resourceType : ImmutableList.sortedCopyOf(resourcesToInclude)) { contained.addField( FieldDescriptorProto.newBuilder() .setName(CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, resourceType)) @@ -2394,9 +2395,7 @@ private static void logDiscrepancies(String msg) { private static StructureDefinition reconcileSnapshotAndDifferential(StructureDefinition def) { // Generate a map from (element id) -> (element) for all elements in the Differential view. Map diffs = - def.getDifferential() - .getElementList() - .stream() + def.getDifferential().getElementList().stream() .collect( Collectors.toMap((element) -> element.getId().getValue(), Function.identity())); diff --git a/javatests/com/google/fhir/protogen/BUILD b/javatests/com/google/fhir/protogen/BUILD index 47afd91d0..c82be1d89 100644 --- a/javatests/com/google/fhir/protogen/BUILD +++ b/javatests/com/google/fhir/protogen/BUILD @@ -39,6 +39,8 @@ java_test( "//proto/google/fhir/proto/r4/core/resources:testdata", "//spec:fhir_r4_filegroup", "//spec:fhir_r4_package.zip", + "//spec:fhir_stu3_filegroup", + "//spec:fhir_stu3_package.zip", "//testdata/r4:descriptors", ], test_class = "com.google.fhir.protogen.ProtoGeneratorTest", diff --git a/javatests/com/google/fhir/protogen/ProtoGeneratorTest.java b/javatests/com/google/fhir/protogen/ProtoGeneratorTest.java index fc6dc1920..d47d2a28c 100644 --- a/javatests/com/google/fhir/protogen/ProtoGeneratorTest.java +++ b/javatests/com/google/fhir/protogen/ProtoGeneratorTest.java @@ -523,7 +523,7 @@ private String createNonCorePackage(String protoPackage) throws IOException { } @Test - public void addContainedResource_derivedResources_unsortedFileDescriptor() + public void addContainedResource_derivedResources_sorted() throws IOException, InvalidFhirException { ProtoGenerator generator = ProtoGeneratorTestUtils.makeProtoGenerator( @@ -562,27 +562,27 @@ public void addContainedResource_derivedResources_unsortedFileDescriptor() .setOneofIndex(0)) .addField( FieldDescriptorProto.newBuilder() - .setName("foo") + .setName("bar") .setNumber(147) .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) .setType(FieldDescriptorProto.Type.TYPE_MESSAGE) - .setTypeName(".google.foo.Foo") + .setTypeName(".google.foo.Bar") .setOneofIndex(0)) .addField( FieldDescriptorProto.newBuilder() - .setName("bar") + .setName("baz") .setNumber(148) .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) .setType(FieldDescriptorProto.Type.TYPE_MESSAGE) - .setTypeName(".google.foo.Bar") + .setTypeName(".google.foo.Baz") .setOneofIndex(0)) .addField( FieldDescriptorProto.newBuilder() - .setName("baz") + .setName("foo") .setNumber(149) .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) .setType(FieldDescriptorProto.Type.TYPE_MESSAGE) - .setTypeName(".google.foo.Baz") + .setTypeName(".google.foo.Foo") .setOneofIndex(0)) .addOneofDecl(OneofDescriptorProto.newBuilder().setName("oneof_resource"))) .build()); diff --git a/proto/google/fhir/proto/r4/core/datatypes.proto b/proto/google/fhir/proto/r4/core/datatypes.proto index 6e56bcb07..5c0d7d3b6 100644 --- a/proto/google/fhir/proto/r4/core/datatypes.proto +++ b/proto/google/fhir/proto/r4/core/datatypes.proto @@ -24,434 +24,6 @@ option java_multiple_files = true; option java_package = "com.google.fhir.r4.core"; option (.google.fhir.proto.fhir_version) = R4; -// Auto-generated from StructureDefinition for base64Binary. -// Primitive Type base64Binary. -// See http://hl7.org/fhir/StructureDefinition/base64Binary -message Base64Binary { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "(\\s*([0-9a-zA-Z\\+/=]){4}\\s*)+"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/base64Binary"; - - // Primitive value for base64Binary - bytes value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for boolean. -// Primitive Type boolean. -// See http://hl7.org/fhir/StructureDefinition/boolean -message Boolean { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "true|false"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/boolean"; - - // Primitive value for boolean - bool value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for canonical. -// Primitive Type canonical. -// See http://hl7.org/fhir/StructureDefinition/canonical -message Canonical { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "\\S*"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/canonical"; - - // Primitive value for canonical - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for code. -// Primitive Type code. -// See http://hl7.org/fhir/StructureDefinition/code -message Code { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "[^\\s]+(\\s[^\\s]+)*"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/code"; - - // Primitive value for code - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for date. -// Primitive Type date. -// See http://hl7.org/fhir/StructureDefinition/date -message Date { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = - "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/date"; - - // Primitive value for date - int64 value_us = 1; - - string timezone = 2; - - enum Precision { - PRECISION_UNSPECIFIED = 0; - YEAR = 1; - MONTH = 2; - DAY = 3; - } - Precision precision = 3; - - // xml:id (or equivalent in JSON) - String id = 4; - - // Additional content defined by implementations - repeated Extension extension = 5; -} - -// Auto-generated from StructureDefinition for dateTime. -// Primitive Type dateTime. -// See http://hl7.org/fhir/StructureDefinition/dateTime -message DateTime { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = - "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/dateTime"; - - // Primitive value for dateTime - int64 value_us = 1; - - string timezone = 2; - - enum Precision { - PRECISION_UNSPECIFIED = 0; - YEAR = 1; - MONTH = 2; - DAY = 3; - SECOND = 4; - MILLISECOND = 5; - MICROSECOND = 6; - } - Precision precision = 3; - - // xml:id (or equivalent in JSON) - String id = 4; - - // Additional content defined by implementations - repeated Extension extension = 5; -} - -// Auto-generated from StructureDefinition for decimal. -// Primitive Type decimal. -// See http://hl7.org/fhir/StructureDefinition/decimal -message Decimal { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = - "-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/decimal"; - - // Primitive value for decimal - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for id. -// Primitive Type id. -// See http://hl7.org/fhir/StructureDefinition/id -message Id { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "[A-Za-z0-9\\-\\.]{1,64}"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/id"; - - // Primitive value for id - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for instant. -// Primitive Type instant. -// See http://hl7.org/fhir/StructureDefinition/instant -message Instant { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = - "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/instant"; - - // Primitive value for instant - int64 value_us = 1; - - string timezone = 2; - - enum Precision { - PRECISION_UNSPECIFIED = 0; - SECOND = 1; - MILLISECOND = 2; - MICROSECOND = 3; - } - Precision precision = 3; - - // xml:id (or equivalent in JSON) - String id = 4; - - // Additional content defined by implementations - repeated Extension extension = 5; -} - -// Auto-generated from StructureDefinition for integer. -// Primitive Type integer. -// See http://hl7.org/fhir/StructureDefinition/integer -message Integer { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "-?([0]|([1-9][0-9]*))"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/integer"; - - // Primitive value for integer - sint32 value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for markdown. -// Primitive Type markdown. -// See http://hl7.org/fhir/StructureDefinition/markdown -message Markdown { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "[ \\r\\n\\t\\S]+"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/markdown"; - - // Primitive value for markdown - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for oid. -// Primitive Type oid. -// See http://hl7.org/fhir/StructureDefinition/oid -message Oid { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = - "urn:oid:[0-2](\\.(0|[1-9][0-9]*))+"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/oid"; - - // Primitive value for oid - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for positiveInt. -// Primitive Type positiveInt. -// See http://hl7.org/fhir/StructureDefinition/positiveInt -message PositiveInt { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "[1-9][0-9]*"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/positiveInt"; - - // Primitive value for positiveInt - uint32 value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for string. -// Primitive Type string. -// See http://hl7.org/fhir/StructureDefinition/string -message String { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "[ \\r\\n\\t\\S]+"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/string"; - - // Primitive value for string - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for time. -// Primitive Type time. -// See http://hl7.org/fhir/StructureDefinition/time -message Time { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = - "([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/time"; - - // Primitive value for time - int64 value_us = 1; - - enum Precision { - PRECISION_UNSPECIFIED = 0; - SECOND = 1; - MILLISECOND = 2; - MICROSECOND = 3; - } - Precision precision = 2; - - // xml:id (or equivalent in JSON) - String id = 3; - - // Additional content defined by implementations - repeated Extension extension = 4; -} - -// Auto-generated from StructureDefinition for unsignedInt. -// Primitive Type unsignedInt. -// See http://hl7.org/fhir/StructureDefinition/unsignedInt -message UnsignedInt { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "[0]|([1-9][0-9]*)"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/unsignedInt"; - - // Primitive value for unsignedInt - uint32 value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for uri. -// Primitive Type uri. -// See http://hl7.org/fhir/StructureDefinition/uri -message Uri { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "\\S*"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/uri"; - - // Primitive value for uri - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for url. -// Primitive Type url. -// See http://hl7.org/fhir/StructureDefinition/url -message Url { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "\\S*"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/url"; - - // Primitive value for url - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for uuid. -// Primitive Type uuid. -// See http://hl7.org/fhir/StructureDefinition/uuid -message Uuid { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = - "urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/uuid"; - - // Primitive value for uuid - string value = 1; - - // xml:id (or equivalent in JSON) - String id = 2; - - // Additional content defined by implementations - repeated Extension extension = 3; -} - -// Auto-generated from StructureDefinition for xhtml. -// Primitive Type xhtml. -// See http://hl7.org/fhir/StructureDefinition/xhtml -message Xhtml { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/StructureDefinition/xhtml"; - - // Actual xhtml - string value = 1 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // xml:id (or equivalent in JSON) - String id = 2; - - // xhtml.extension not present on profile. - reserved 3; -} - // Auto-generated from StructureDefinition for Address. // An address expressed using postal conventions (as opposed to GPS or other // location definition formats). See @@ -686,6 +258,82 @@ message BackboneElement { repeated Extension modifier_extension = 3; } +// Auto-generated from StructureDefinition for base64Binary. +// Primitive Type base64Binary. +// See http://hl7.org/fhir/StructureDefinition/base64Binary +message Base64Binary { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "(\\s*([0-9a-zA-Z\\+/=]){4}\\s*)+"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/base64Binary"; + + // Primitive value for base64Binary + bytes value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + +// Auto-generated from StructureDefinition for boolean. +// Primitive Type boolean. +// See http://hl7.org/fhir/StructureDefinition/boolean +message Boolean { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "true|false"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/boolean"; + + // Primitive value for boolean + bool value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + +// Auto-generated from StructureDefinition for canonical. +// Primitive Type canonical. +// See http://hl7.org/fhir/StructureDefinition/canonical +message Canonical { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "\\S*"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/canonical"; + + // Primitive value for canonical + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + +// Auto-generated from StructureDefinition for code. +// Primitive Type code. +// See http://hl7.org/fhir/StructureDefinition/code +message Code { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "[^\\s]+(\\s[^\\s]+)*"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/code"; + + // Primitive value for code + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + // Auto-generated from StructureDefinition for CodeableConcept. // Concept - reference to a terminology or just text. // See http://hl7.org/fhir/StructureDefinition/CodeableConcept @@ -1044,6 +692,89 @@ message DataRequirement { repeated Sort sort = 10; } +// Auto-generated from StructureDefinition for date. +// Primitive Type date. +// See http://hl7.org/fhir/StructureDefinition/date +message Date { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = + "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/date"; + + // Primitive value for date + int64 value_us = 1; + + string timezone = 2; + + enum Precision { + PRECISION_UNSPECIFIED = 0; + YEAR = 1; + MONTH = 2; + DAY = 3; + } + Precision precision = 3; + + // xml:id (or equivalent in JSON) + String id = 4; + + // Additional content defined by implementations + repeated Extension extension = 5; +} + +// Auto-generated from StructureDefinition for dateTime. +// Primitive Type dateTime. +// See http://hl7.org/fhir/StructureDefinition/dateTime +message DateTime { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = + "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/dateTime"; + + // Primitive value for dateTime + int64 value_us = 1; + + string timezone = 2; + + enum Precision { + PRECISION_UNSPECIFIED = 0; + YEAR = 1; + MONTH = 2; + DAY = 3; + SECOND = 4; + MILLISECOND = 5; + MICROSECOND = 6; + } + Precision precision = 3; + + // xml:id (or equivalent in JSON) + String id = 4; + + // Additional content defined by implementations + repeated Extension extension = 5; +} + +// Auto-generated from StructureDefinition for decimal. +// Primitive Type decimal. +// See http://hl7.org/fhir/StructureDefinition/decimal +message Decimal { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = + "-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/decimal"; + + // Primitive value for decimal + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + // Auto-generated from StructureDefinition for Distance. // A length - a value with a unit that is a physical distance. // See http://hl7.org/fhir/StructureDefinition/Distance @@ -2007,8 +1738,27 @@ message HumanName { // Parts that come after the name repeated String suffix = 8; - // Time period when name was/is in use - Period period = 9; + // Time period when name was/is in use + Period period = 9; +} + +// Auto-generated from StructureDefinition for id. +// Primitive Type id. +// See http://hl7.org/fhir/StructureDefinition/id +message Id { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "[A-Za-z0-9\\-\\.]{1,64}"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/id"; + + // Primitive value for id + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; } // Auto-generated from StructureDefinition for Identifier. @@ -2058,6 +1808,74 @@ message Identifier { [(.google.fhir.proto.valid_reference_type) = "Organization"]; } +// Auto-generated from StructureDefinition for instant. +// Primitive Type instant. +// See http://hl7.org/fhir/StructureDefinition/instant +message Instant { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = + "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/instant"; + + // Primitive value for instant + int64 value_us = 1; + + string timezone = 2; + + enum Precision { + PRECISION_UNSPECIFIED = 0; + SECOND = 1; + MILLISECOND = 2; + MICROSECOND = 3; + } + Precision precision = 3; + + // xml:id (or equivalent in JSON) + String id = 4; + + // Additional content defined by implementations + repeated Extension extension = 5; +} + +// Auto-generated from StructureDefinition for integer. +// Primitive Type integer. +// See http://hl7.org/fhir/StructureDefinition/integer +message Integer { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "-?([0]|([1-9][0-9]*))"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/integer"; + + // Primitive value for integer + sint32 value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + +// Auto-generated from StructureDefinition for markdown. +// Primitive Type markdown. +// See http://hl7.org/fhir/StructureDefinition/markdown +message Markdown { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "[ \\r\\n\\t\\S]+"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/markdown"; + + // Primitive value for markdown + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + // Auto-generated from StructureDefinition for MarketingStatus. // The marketing status describes the date when a medicinal product is actually // put on the market or the date as of which it is no longer available. See @@ -2271,6 +2089,26 @@ message Narrative { ]; } +// Auto-generated from StructureDefinition for oid. +// Primitive Type oid. +// See http://hl7.org/fhir/StructureDefinition/oid +message Oid { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = + "urn:oid:[0-2](\\.(0|[1-9][0-9]*))+"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/oid"; + + // Primitive value for oid + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + // Auto-generated from StructureDefinition for ParameterDefinition. // Definition of a parameter to a module. // See http://hl7.org/fhir/StructureDefinition/ParameterDefinition @@ -2398,6 +2236,25 @@ message Population { CodeableConcept physiological_condition = 7; } +// Auto-generated from StructureDefinition for positiveInt. +// Primitive Type positiveInt. +// See http://hl7.org/fhir/StructureDefinition/positiveInt +message PositiveInt { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "[1-9][0-9]*"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/positiveInt"; + + // Primitive value for positiveInt + uint32 value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + // Auto-generated from StructureDefinition for ProdCharacteristic. // The marketing status describes the date when a medicinal product is actually // put on the market or the date as of which it is no longer available. See @@ -2819,6 +2676,25 @@ message SimpleQuantity { Code code = 7; } +// Auto-generated from StructureDefinition for string. +// Primitive Type string. +// See http://hl7.org/fhir/StructureDefinition/string +message String { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "[ \\r\\n\\t\\S]+"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/string"; + + // Primitive value for string + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + // Auto-generated from StructureDefinition for SubstanceAmount. // Chemical substances are a single substance type whose primary defining // element is the molecular structure. Chemical substances shall be defined on @@ -2885,6 +2761,34 @@ message SubstanceAmount { ReferenceRange reference_range = 7; } +// Auto-generated from StructureDefinition for time. +// Primitive Type time. +// See http://hl7.org/fhir/StructureDefinition/time +message Time { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = + "([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/time"; + + // Primitive value for time + int64 value_us = 1; + + enum Precision { + PRECISION_UNSPECIFIED = 0; + SECOND = 1; + MILLISECOND = 2; + MICROSECOND = 3; + } + Precision precision = 2; + + // xml:id (or equivalent in JSON) + String id = 3; + + // Additional content defined by implementations + repeated Extension extension = 4; +} + // Auto-generated from StructureDefinition for Timing. // A timing schedule that specifies an event that may occur multiple times. // See http://hl7.org/fhir/StructureDefinition/Timing @@ -3110,6 +3014,63 @@ message TriggerDefinition { Expression condition = 7; } +// Auto-generated from StructureDefinition for unsignedInt. +// Primitive Type unsignedInt. +// See http://hl7.org/fhir/StructureDefinition/unsignedInt +message UnsignedInt { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "[0]|([1-9][0-9]*)"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/unsignedInt"; + + // Primitive value for unsignedInt + uint32 value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + +// Auto-generated from StructureDefinition for uri. +// Primitive Type uri. +// See http://hl7.org/fhir/StructureDefinition/uri +message Uri { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "\\S*"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/uri"; + + // Primitive value for uri + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + +// Auto-generated from StructureDefinition for url. +// Primitive Type url. +// See http://hl7.org/fhir/StructureDefinition/url +message Url { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = "\\S*"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/url"; + + // Primitive value for url + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + // Auto-generated from StructureDefinition for UsageContext. // Describes the context of use for a conformance or knowledge resource. // See http://hl7.org/fhir/StructureDefinition/UsageContext @@ -3151,6 +3112,45 @@ message UsageContext { [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } +// Auto-generated from StructureDefinition for uuid. +// Primitive Type uuid. +// See http://hl7.org/fhir/StructureDefinition/uuid +message Uuid { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.value_regex) = + "urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/uuid"; + + // Primitive value for uuid + string value = 1; + + // xml:id (or equivalent in JSON) + String id = 2; + + // Additional content defined by implementations + repeated Extension extension = 3; +} + +// Auto-generated from StructureDefinition for xhtml. +// Primitive Type xhtml. +// See http://hl7.org/fhir/StructureDefinition/xhtml +message Xhtml { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/StructureDefinition/xhtml"; + + // Actual xhtml + string value = 1 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // xml:id (or equivalent in JSON) + String id = 2; + + // xhtml.extension not present on profile. + reserved 3; +} + // End of auto-generated messages. // Base for all elements. See http://hl7.org/fhir/StructureDefinition/Element diff --git a/proto/google/fhir/proto/r4/google_extensions.proto b/proto/google/fhir/proto/r4/google_extensions.proto new file mode 100644 index 000000000..437fb5419 --- /dev/null +++ b/proto/google/fhir/proto/r4/google_extensions.proto @@ -0,0 +1,168 @@ +// Copyright 2019 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.fhir.r4.google; + +import "proto/google/fhir/proto/annotations.proto"; +import "proto/google/fhir/proto/r4/core/datatypes.proto"; + +option java_multiple_files = true; +option java_package = "com.google.fhir.r4.google"; +option (.google.fhir.proto.fhir_version) = R4; + +// Auto-generated from StructureDefinition for Base64BinarySeparatorStride. +// Base64Binary rendering parameters. +// See https://g.co/fhir/StructureDefinition/base64Binary-separatorStride +message Base64BinarySeparatorStride { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "https://g.co/fhir/StructureDefinition/base64Binary-separatorStride"; + + // Unique id for inter-element referencing + core.String id = 1; + + // The separator, usually a sequence of spaces. + core.String separator = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // The stride. + core.PositiveInt stride = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; +} + +// Auto-generated from StructureDefinition for EventLabel. +// EventLabels define labels used for TensorFlow model training and evaluation. +// See https://g.co/fhir/StructureDefinition/eventLabel +message EventLabel { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "https://g.co/fhir/StructureDefinition/eventLabel"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // The patient associated with this label + core.Reference patient = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // The type of label, part of the prediction task definition + core.Coding type = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Time associated with the label event, if available + core.DateTime event_time = 6; + + // Resource that owns this label + core.Reference source = 7; + + // List of labels associated with this event + message Label { + // Unique id for inter-element referencing + core.String id = 1; + + // Extension.extension.extension not present on profile. + reserved 2; + + // Extension.extension.value[x] not present on profile. + reserved 3; + + // Class name in multi-class prediction tasks, e.g. code "780.60" for icd9 + core.Coding class_name = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // The value of the label + message ClassValueX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.Boolean boolean = 1; + core.Decimal decimal = 2; + core.Integer integer = 3; + core.String string_value = 4 [json_name = "string"]; + core.DateTime date_time = 5; + } + } + ClassValueX class_value = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + } + repeated Label label = 8; +} + +// Auto-generated from StructureDefinition for EventTrigger. +// EventTriggers specify cutoff times for generated TensorFlow examples. +// See https://g.co/fhir/StructureDefinition/eventTrigger +message EventTrigger { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "https://g.co/fhir/StructureDefinition/eventTrigger"; + + // Unique id for inter-element referencing + core.String id = 1; + + // The type of trigger, part of the prediction task definition. + core.Coding type = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Prediction event time, more recent data will be elided. + core.DateTime event_time = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Resource that owns this trigger. + core.Reference source = 6; +} + +// Auto-generated from StructureDefinition for OperationOutcomeSubject. +// Indicates the FHIR resource subject of this OperationOutcome. +// See https://g.co/fhir/medicalrecords/OperationOutcomeSubject +message OperationOutcomeSubject { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "https://g.co/fhir/medicalrecords/OperationOutcomeSubject"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Value of extension + core.Reference value_reference = 3; +} + +// Auto-generated from StructureDefinition for PrimitiveHasNoValue. +// Whether or not the primitive is missing a value. +// See https://g.co/fhir/StructureDefinition/primitiveHasNoValue +message PrimitiveHasNoValue { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "https://g.co/fhir/StructureDefinition/primitiveHasNoValue"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Value of extension + core.Boolean value_boolean = 3; +} diff --git a/proto/google/fhir/proto/r4/uscore.proto b/proto/google/fhir/proto/r4/uscore.proto index 34416c05e..f1808de53 100644 --- a/proto/google/fhir/proto/r4/uscore.proto +++ b/proto/google/fhir/proto/r4/uscore.proto @@ -27,412 +27,307 @@ option java_multiple_files = true; option java_package = "com.google.fhir.r4.uscore"; option (.google.fhir.proto.fhir_version) = R4; -// Auto-generated from StructureDefinition for USCoreProcedureProfile. -// An action that is being or was performed on a patient. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure -message USCoreProcedureProfile { - option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; +// Auto-generated from StructureDefinition for USCoreBirthSexExtension. +// Extension. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex +message PatientUSCoreBirthSexExtension { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Procedure"; + "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure"; - option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "Procedure.basedOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "Procedure.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code" - type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "encounter" - type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" - }; - option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" - }; - option (.google.fhir.proto.search_parameter) = { - name: "instantiates-canonical" - type: REFERENCE - expression: "Procedure.instantiatesCanonical" - }; - option (.google.fhir.proto.search_parameter) = { - name: "instantiates-uri" - type: URI - expression: "Procedure.instantiatesUri" - }; - option (.google.fhir.proto.search_parameter) = { - name: "location" - type: REFERENCE - expression: "Procedure.location" - }; - option (.google.fhir.proto.search_parameter) = { - name: "part-of" - type: REFERENCE - expression: "Procedure.partOf" - }; - option (.google.fhir.proto.search_parameter) = { - name: "patient" - type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" - }; - option (.google.fhir.proto.search_parameter) = { - name: "performer" - type: REFERENCE - expression: "Procedure.performer.actor" - }; - option (.google.fhir.proto.search_parameter) = { - name: "reason-code" - type: TOKEN - expression: "Procedure.reasonCode" - }; - option (.google.fhir.proto.search_parameter) = { - name: "reason-reference" - type: REFERENCE - expression: "Procedure.reasonReference" - }; - option (.google.fhir.proto.search_parameter) = { - name: "status" - type: TOKEN - expression: "Procedure.status" - }; - option (.google.fhir.proto.search_parameter) = { - name: "subject" - type: REFERENCE - expression: "Procedure.subject" - }; - - // Logical id of this artifact - core.Id id = 1; - - // Metadata about the resource - core.Meta meta = 2; - - // A set of rules under which this content was created - core.Uri implicit_rules = 3; - - // Language of the resource content - core.Code language = 4; - - // Text summary of the resource, for human interpretation - core.Narrative text = 5; - - // Contained, inline Resources - repeated protobuf.Any contained = 6; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"; - // Field 7 reserved for strongly-typed ContainedResource for id: - // Procedure.contained - reserved 7; + // Unique id for inter-element referencing + core.String id = 1; // Additional content defined by implementations - repeated core.Extension extension = 8; - - // Extensions that cannot be ignored - repeated core.Extension modifier_extension = 9; - - // External Identifiers for this procedure - repeated core.Identifier identifier = 10; - - // Instantiates FHIR protocol or definition - repeated core.Canonical instantiates_canonical = 11; - - // Instantiates external protocol or definition - repeated core.Uri instantiates_uri = 12; - - // A request for this procedure - repeated core.Reference based_on = 13 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest" - ]; - - // Part of referenced event - repeated core.Reference part_of = 14 [ - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "MedicationAdministration" - ]; + repeated core.Extension extension = 2; - // preparation | in-progress | not-done | on-hold | stopped | completed | - // entered-in-error | unknown - message StatusCode { + // Value of extension + message ValueCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/event-status"; + "http://hl7.org/fhir/us/core/ValueSet/birthsex"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.EventStatusCode.Value value = 1; + BirthSexValueSet.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 15 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + ValueCode value_code = 3; +} - // Reason for current status - core.CodeableConcept status_reason = 16; +// Auto-generated from StructureDefinition for USCoreEthnicityExtension. +// US Core ethnicity Extension. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity +message PatientUSCoreEthnicityExtension { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"; - // Classification of the procedure - core.CodeableConcept category = 17; + // Unique id for inter-element referencing + core.String id = 1; - // Procedure codes from SNOMED CT, CPT, or HCPCS II - core.CodeableConcept code = 18 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Who the procedure was performed on - core.Reference subject = 19 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; + // Hispanic or Latino|Not Hispanic or Latino + message OmbCategoryCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - // Encounter created as part of - core.Reference encounter = 20 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + core.String id = 1; - // When the procedure was performed - message PerformedX { - option (.google.fhir.proto.is_choice_type) = true; + repeated core.Extension extension = 2; - oneof choice { - core.DateTime date_time = 1; - core.Period period = 2; + core.String version = 4; + + message BoundCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/us/core/ValueSet/omb-ethnicity-category"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + OmbEthnicityCategoriesValueSet.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; } - } - PerformedX performed = 21 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + BoundCode code = 5; - // Who recorded the procedure - core.Reference recorder = 22 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole" - ]; + core.String display = 6; - // Person who asserts this procedure - core.Reference asserter = 23 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole" - ]; + core.Boolean user_selected = 7; + } + OmbCategoryCoding omb_category = 4; + + // Extended ethnicity codes + message DetailedCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - // The people who performed the procedure - message Performer { - // Unique id for inter-element referencing core.String id = 1; - // Additional content defined by implementations repeated core.Extension extension = 2; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + core.String version = 4; - // Type of performance - core.CodeableConcept function = 4; + message BoundCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/us/core/ValueSet/detailed-ethnicity"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // The reference to the practitioner - core.Reference actor = 5 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Device" - ]; + DetailedEthnicityValueSet.Value value = 1; - // Organization the device or practitioner was acting for - core.Reference on_behalf_of = 6 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + core.String id = 2; + + repeated core.Extension extension = 3; + } + BoundCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; } - repeated Performer performer = 24; + repeated DetailedCoding detailed = 5; - // Where the procedure happened - core.Reference location = 25 - [(.google.fhir.proto.valid_reference_type) = "Location"]; + // ethnicity Text + core.String text = 6 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; +} - // Coded reason procedure performed - repeated core.CodeableConcept reason_code = 26; +// Auto-generated from StructureDefinition for USCoreRaceExtension. +// US Core Race Extension. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-race +message PatientUSCoreRaceExtension { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"; - // The justification that the procedure was performed - repeated core.Reference reason_reference = 27 [ - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", - (.google.fhir.proto.valid_reference_type) = "DocumentReference" - ]; + // Unique id for inter-element referencing + core.String id = 1; - // Target body sites - repeated core.CodeableConcept body_site = 28; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // The result of procedure - core.CodeableConcept outcome = 29; + // American Indian or Alaska Native|Asian|Black or African American|Native + // Hawaiian or Other Pacific Islander|White + message OmbCategoryCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - // Any report resulting from the procedure - repeated core.Reference report = 30 [ - (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", - (.google.fhir.proto.valid_reference_type) = "DocumentReference", - (.google.fhir.proto.valid_reference_type) = "Composition" - ]; + core.String id = 1; - // Complication following the procedure - repeated core.CodeableConcept complication = 31; + repeated core.Extension extension = 2; - // A condition that is a result of the procedure - repeated core.Reference complication_detail = 32 - [(.google.fhir.proto.valid_reference_type) = "Condition"]; + core.String version = 4; - // Instructions for follow up - repeated core.CodeableConcept follow_up = 33; + message BoundCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/us/core/ValueSet/omb-race-category"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Additional information about the procedure - repeated core.Annotation note = 34; + OmbRaceCategoriesValueSet.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + BoundCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + repeated OmbCategoryCoding omb_category = 4; + + // Extended race codes + message DetailedCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - // Manipulated, implanted, or removed device - message FocalDevice { - // Unique id for inter-element referencing core.String id = 1; - // Additional content defined by implementations repeated core.Extension extension = 2; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + core.String version = 4; - // Kind of change to device - core.CodeableConcept action = 4; + message BoundCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/us/core/ValueSet/detailed-race"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Device that was changed - core.Reference manipulated = 5 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Device" - ]; - } - repeated FocalDevice focal_device = 35; + DetailedRaceValueSet.Value value = 1; - // Items used during procedure - repeated core.Reference used_reference = 36 [ - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "Medication", - (.google.fhir.proto.valid_reference_type) = "Substance" - ]; + core.String id = 2; - // Coded items used during the procedure - repeated core.CodeableConcept used_code = 37; + repeated core.Extension extension = 3; + } + BoundCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + repeated DetailedCoding detailed = 5; + + // Race Text + core.String text = 6 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } -// Auto-generated from StructureDefinition for USCorePractitionerProfile. -// A person with a formal responsibility in the provisioning of healthcare or -// related services. See -// http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner -message USCorePractitionerProfile { +// Auto-generated from StructureDefinition for USCoreAllergyIntolerance. +// Allergy or Intolerance (generally: Risk of adverse reaction to a substance). +// See +// http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance +message USCoreAllergyIntolerance { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Practitioner"; + "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()"; option (.google.fhir.proto.search_parameter) = { - name: "active" - type: TOKEN - expression: "Practitioner.active" + name: "asserter" + type: REFERENCE + expression: "AllergyIntolerance.asserter" }; option (.google.fhir.proto.search_parameter) = { - name: "address" - type: STRING - expression: "Patient.address | Person.address | Practitioner.address | RelatedPerson.address" + name: "category" + type: TOKEN + expression: "AllergyIntolerance.category" }; option (.google.fhir.proto.search_parameter) = { - name: "address-city" - type: STRING - expression: "Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city" + name: "clinical-status" + type: TOKEN + expression: "AllergyIntolerance.clinicalStatus" }; option (.google.fhir.proto.search_parameter) = { - name: "address-country" - type: STRING - expression: "Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country" + name: "code" + type: TOKEN + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; option (.google.fhir.proto.search_parameter) = { - name: "address-postalcode" - type: STRING - expression: "Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode" + name: "criticality" + type: TOKEN + expression: "AllergyIntolerance.criticality" }; option (.google.fhir.proto.search_parameter) = { - name: "address-state" - type: STRING - expression: "Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state" + name: "date" + type: DATE + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "address-use" + name: "identifier" type: TOKEN - expression: "Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "communication" - type: TOKEN - expression: "Practitioner.communication" + name: "last-date" + type: DATE + expression: "AllergyIntolerance.lastOccurrence" }; option (.google.fhir.proto.search_parameter) = { - name: "email" + name: "manifestation" type: TOKEN - expression: "Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')" + expression: "AllergyIntolerance.reaction.manifestation" }; option (.google.fhir.proto.search_parameter) = { - name: "family" - type: STRING - expression: "Patient.name.family | Practitioner.name.family" + name: "onset" + type: DATE + expression: "AllergyIntolerance.reaction.onset" }; option (.google.fhir.proto.search_parameter) = { - name: "gender" - type: TOKEN - expression: "Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender" + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "given" - type: STRING - expression: "Patient.name.given | Practitioner.name.given" + name: "recorder" + type: REFERENCE + expression: "AllergyIntolerance.recorder" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "route" type: TOKEN - expression: "Practitioner.identifier" + expression: "AllergyIntolerance.reaction.exposureRoute" }; option (.google.fhir.proto.search_parameter) = { - name: "name" - type: STRING - expression: "Practitioner.name" + name: "severity" + type: TOKEN + expression: "AllergyIntolerance.reaction.severity" }; option (.google.fhir.proto.search_parameter) = { - name: "phone" + name: "type" type: TOKEN - expression: "Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')" + expression: "AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type" }; option (.google.fhir.proto.search_parameter) = { - name: "phonetic" - type: STRING - expression: "Patient.name | Person.name | Practitioner.name | RelatedPerson.name" - }; - option (.google.fhir.proto.search_parameter) = { - name: "telecom" + name: "verification-status" type: TOKEN - expression: "Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom" + expression: "AllergyIntolerance.verificationStatus" }; // Logical id of this artifact @@ -454,7 +349,7 @@ message USCorePractitionerProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Practitioner.contained + // AllergyIntolerance.contained reserved 7; // Additional content defined by implementations @@ -463,48 +358,118 @@ message USCorePractitionerProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // An identifier for the person as this agent - repeated core.Identifier identifier = 10 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // External ids for this item + repeated core.Identifier identifier = 10; - // Whether this practitioner's record is in active use - core.Boolean active = 11; + // active | inactive | resolved + core.CodeableConcept clinical_status = 11; - // The name(s) associated with the practitioner - repeated core.HumanName name = 12 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // unconfirmed | confirmed | refuted | entered-in-error + core.CodeableConcept verification_status = 12; - // A contact detail for the practitioner (that apply to all roles) - repeated core.ContactPoint telecom = 13; + // allergy | intolerance - Underlying mechanism (if known) + message TypeCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/allergy-intolerance-type"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Address(es) of the practitioner that are not role specific (typically home - // address) - repeated core.Address address = 14; + core.AllergyIntoleranceTypeCode.Value value = 1; - // male | female | other | unknown - message GenderCode { + core.String id = 2; + + repeated core.Extension extension = 3; + } + TypeCode type = 13; + + // food | medication | environment | biologic + message CategoryCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/administrative-gender"; + "http://hl7.org/fhir/ValueSet/allergy-intolerance-category"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.AdministrativeGenderCode.Value value = 1; + core.AllergyIntoleranceCategoryCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - GenderCode gender = 15; + repeated CategoryCode category = 14; - // The date on which the practitioner was born - core.Date birth_date = 16; + // low | high | unable-to-assess + message CriticalityCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Image of the person - repeated core.Attachment photo = 17; + core.AllergyIntoleranceCriticalityCode.Value value = 1; - // Certification, licenses, or training pertaining to the provision of care - message Qualification { + core.String id = 2; + + repeated core.Extension extension = 3; + } + CriticalityCode criticality = 15; + + // Code that identifies the allergy or intolerance + core.CodeableConcept code = 16 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Who the sensitivity is for + core.Reference patient = 17 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; + + // Encounter when the allergy or intolerance was asserted + core.Reference encounter = 18 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + + // When allergy or intolerance was identified + message OnsetX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.DateTime date_time = 1; + core.Age age = 2; + core.Period period = 3; + core.Range range = 4; + core.String string_value = 5 [json_name = "string"]; + } + } + OnsetX onset = 19; + + // Date first version of the resource instance was recorded + core.DateTime recorded_date = 20; + + // Who recorded the sensitivity + core.Reference recorder = 21 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; + + // Source of the information about the allergy + core.Reference asserter = 22 [ + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole" + ]; + + // Date(/time) of last known occurrence of a reaction + core.DateTime last_occurrence = 23; + + // Additional text not captured in other fields + repeated core.Annotation note = 24; + + // Adverse Reaction Events linked to exposure to substance + message Reaction { // Unique id for inter-element referencing core.String id = 1; @@ -514,65 +479,89 @@ message USCorePractitionerProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // An identifier for this qualification for the practitioner - repeated core.Identifier identifier = 4; + // Specific substance or pharmaceutical product considered to be responsible + // for event + core.CodeableConcept substance = 4; - // Coded representation of the qualification - core.CodeableConcept code = 5 + // Clinical symptoms/signs associated with the Event + repeated core.CodeableConcept manifestation = 5 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Period during which the qualification is valid - core.Period period = 6; + // Description of the event as a whole + core.String description = 6; - // Organization that regulates and issues the qualification - core.Reference issuer = 7 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - } - repeated Qualification qualification = 18; + // Date(/time) when manifestations showed + core.DateTime onset = 7; - // A language the practitioner can use in patient communication - repeated core.CodeableConcept communication = 19; + // mild | moderate | severe (of event as a whole) + message SeverityCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/reaction-event-severity"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // field 20 reserved for Practitioner.identifier:NPI which uses an unsupported - // slicing on Identifier - reserved 20; + core.AllergyIntoleranceSeverityCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + SeverityCode severity = 8; + + // How the subject was exposed to the substance + core.CodeableConcept exposure_route = 9; + + // Text about event not captured in other fields + repeated core.Annotation note = 10; + } + repeated Reaction reaction = 25; } -// Auto-generated from StructureDefinition for -// USCoreDiagnosticReportProfileLaboratoryReporting. A Diagnostic report - a -// combination of request information, atomic results, images, interpretation, -// as well as formatted reports. See -// http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab -message USCoreDiagnosticReportProfileLaboratoryReporting { +// Auto-generated from StructureDefinition for USCoreCarePlanProfile. +// Healthcare plan for patient or group. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan +message USCoreCarePlanProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"; + "http://hl7.org/fhir/StructureDefinition/CarePlan"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan"; option (.google.fhir.proto.search_parameter) = { - name: "assessed-condition" + name: "activity-code" + type: TOKEN + expression: "CarePlan.activity.detail.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "activity-date" + type: DATE + expression: "CarePlan.activity.detail.scheduled" + }; + option (.google.fhir.proto.search_parameter) = { + name: "activity-reference" type: REFERENCE - expression: "DiagnosticReport.extension('http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition')" + expression: "CarePlan.activity.reference" }; option (.google.fhir.proto.search_parameter) = { name: "based-on" type: REFERENCE - expression: "DiagnosticReport.basedOn" + expression: "CarePlan.basedOn" }; option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "DiagnosticReport.category" + name: "care-team" + type: REFERENCE + expression: "CarePlan.careTeam" }; option (.google.fhir.proto.search_parameter) = { - name: "code" + name: "category" type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" + expression: "CarePlan.category" }; option (.google.fhir.proto.search_parameter) = { - name: "conclusion" - type: TOKEN - expression: "DiagnosticReport.conclusionCode" + name: "condition" + type: REFERENCE + expression: "CarePlan.addresses" }; option (.google.fhir.proto.search_parameter) = { name: "date" @@ -582,7 +571,12 @@ message USCoreDiagnosticReportProfileLaboratoryReporting { option (.google.fhir.proto.search_parameter) = { name: "encounter" type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" + expression: "CarePlan.encounter" + }; + option (.google.fhir.proto.search_parameter) = { + name: "goal" + type: REFERENCE + expression: "CarePlan.goal" }; option (.google.fhir.proto.search_parameter) = { name: "identifier" @@ -590,14 +584,24 @@ message USCoreDiagnosticReportProfileLaboratoryReporting { expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "issued" - type: DATE - expression: "DiagnosticReport.issued" + name: "instantiates-canonical" + type: REFERENCE + expression: "CarePlan.instantiatesCanonical" }; option (.google.fhir.proto.search_parameter) = { - name: "media" + name: "instantiates-uri" + type: URI + expression: "CarePlan.instantiatesUri" + }; + option (.google.fhir.proto.search_parameter) = { + name: "intent" + type: TOKEN + expression: "CarePlan.intent" + }; + option (.google.fhir.proto.search_parameter) = { + name: "part-of" type: REFERENCE - expression: "DiagnosticReport.media.link" + expression: "CarePlan.partOf" }; option (.google.fhir.proto.search_parameter) = { name: "patient" @@ -607,32 +611,22 @@ message USCoreDiagnosticReportProfileLaboratoryReporting { option (.google.fhir.proto.search_parameter) = { name: "performer" type: REFERENCE - expression: "DiagnosticReport.performer" + expression: "CarePlan.activity.detail.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "result" + name: "replaces" type: REFERENCE - expression: "DiagnosticReport.result" - }; - option (.google.fhir.proto.search_parameter) = { - name: "results-interpreter" - type: REFERENCE - expression: "DiagnosticReport.resultsInterpreter" - }; - option (.google.fhir.proto.search_parameter) = { - name: "specimen" - type: REFERENCE - expression: "DiagnosticReport.specimen" + expression: "CarePlan.replaces" }; option (.google.fhir.proto.search_parameter) = { name: "status" type: TOKEN - expression: "DiagnosticReport.status" + expression: "CarePlan.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "DiagnosticReport.subject" + expression: "CarePlan.subject" }; // Logical id of this artifact @@ -648,13 +642,14 @@ message USCoreDiagnosticReportProfileLaboratoryReporting { core.Code language = 4; // Text summary of the resource, for human interpretation - core.Narrative text = 5; + core.Narrative text = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; // Contained, inline Resources repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // DiagnosticReport.contained + // CarePlan.contained reserved 7; // Additional content defined by implementations @@ -663,97 +658,130 @@ message USCoreDiagnosticReportProfileLaboratoryReporting { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business identifier for report + // External Ids for this plan repeated core.Identifier identifier = 10; - // What was requested - repeated core.Reference based_on = 11 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest" - ]; + // Instantiates FHIR protocol or definition + repeated core.Canonical instantiates_canonical = 11; - // registered | partial | preliminary | final + + // Instantiates external protocol or definition + repeated core.Uri instantiates_uri = 12; + + // Fulfills CarePlan + repeated core.Reference based_on = 13 + [(.google.fhir.proto.valid_reference_type) = "CarePlan"]; + + // CarePlan replaced by this CarePlan + repeated core.Reference replaces = 14 + [(.google.fhir.proto.valid_reference_type) = "CarePlan"]; + + // Part of referenced CarePlan + repeated core.Reference part_of = 15 + [(.google.fhir.proto.valid_reference_type) = "CarePlan"]; + + // draft | active | on-hold | revoked | completed | entered-in-error | unknown message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/diagnostic-report-status"; + "http://hl7.org/fhir/ValueSet/request-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.DiagnosticReportStatusCode.Value value = 1; + core.RequestStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 12 + StatusCode status = 16 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Service category - repeated core.CodeableConcept category = 13 + // proposal | plan | order | option + message IntentCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-plan-intent"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.CarePlanIntentValueSet.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + IntentCode intent = 17 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // US Core Laboratory Report Order Code - core.CodeableConcept code = 14 + // Type of plan + repeated core.CodeableConcept category = 18 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // The subject of the report - usually, but not always, the patient - core.Reference subject = 15 [ + // Human-friendly name for the care plan + core.String title = 19; + + // Summary of nature of plan + core.String description = 20; + + // Who the care plan is for + core.Reference subject = 21 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, (.google.fhir.proto.valid_reference_type) = "Patient" ]; - // Health care event when test ordered - core.Reference encounter = 16 + // Encounter created as part of + core.Reference encounter = 22 [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // Specimen Collection Datetime or Period - message EffectiveX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.DateTime date_time = 1; - core.Period period = 2; - } - } - EffectiveX effective = 17 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Time period plan covers + core.Period period = 23; - // DateTime this version was made - core.Instant issued = 18 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Date record was first recorded + core.DateTime created = 24; - // Responsible Diagnostic Service - repeated core.Reference performer = 19 [ + // Who is the designated responsible party + core.Reference author = 25 [ + (.google.fhir.proto.valid_reference_type) = "Patient", (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "Organization" + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "CareTeam" ]; - // Primary result interpreter - repeated core.Reference results_interpreter = 20 [ + // Who provided the content of the care plan + repeated core.Reference contributor = 26 [ + (.google.fhir.proto.valid_reference_type) = "Patient", (.google.fhir.proto.valid_reference_type) = "Practitioner", (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", (.google.fhir.proto.valid_reference_type) = "Organization", (.google.fhir.proto.valid_reference_type) = "CareTeam" ]; - // Specimens this report is based on - repeated core.Reference specimen = 21 - [(.google.fhir.proto.valid_reference_type) = "Specimen"]; + // Who's involved in plan? + repeated core.Reference care_team = 27 + [(.google.fhir.proto.valid_reference_type) = "CareTeam"]; - // Observations - repeated core.Reference result = 22 - [(.google.fhir.proto.valid_reference_type) = "Observation"]; + // Health issues this plan addresses + repeated core.Reference addresses = 28 + [(.google.fhir.proto.valid_reference_type) = "Condition"]; - // Reference to full details of imaging associated with the diagnostic report - repeated core.Reference imaging_study = 23 - [(.google.fhir.proto.valid_reference_type) = "ImagingStudy"]; + // Information considered as part of plan + repeated core.Reference supporting_info = 29 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; + + // Desired outcome of plan + repeated core.Reference goal = 30 + [(.google.fhir.proto.valid_reference_type) = "Goal"]; + + // Action to occur as part of plan + message Activity { + option (.google.fhir.proto.fhir_path_message_constraint) = + "detail.empty() or reference.empty()"; - // Key images associated with this report - message Media { // Unique id for inter-element referencing core.String id = 1; @@ -763,218 +791,651 @@ message USCoreDiagnosticReportProfileLaboratoryReporting { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Comment about the image (e.g. explanation) - core.String comment = 4; + // Results of the activity + repeated core.CodeableConcept outcome_codeable_concept = 4; - // Reference to the image source - core.Reference link = 5 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Media" + // Appointment, Encounter, Procedure, etc. + repeated core.Reference outcome_reference = 5 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; + + // Comments about the activity status/progress + repeated core.Annotation progress = 6; + + // Activity details defined in specific resource + core.Reference reference = 7 [ + (.google.fhir.proto.valid_reference_type) = "Appointment", + (.google.fhir.proto.valid_reference_type) = "CommunicationRequest", + (.google.fhir.proto.valid_reference_type) = "DeviceRequest", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "Task", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest", + (.google.fhir.proto.valid_reference_type) = "VisionPrescription", + (.google.fhir.proto.valid_reference_type) = "RequestGroup" ]; - } - repeated Media media = 24; - // Clinical conclusion (interpretation) of test results - core.String conclusion = 25; + // In-line definition of activity + message Detail { + // Unique id for inter-element referencing + core.String id = 1; - // Codes for the clinical conclusion of test results - repeated core.CodeableConcept conclusion_code = 26; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Entire report as issued - repeated core.Attachment presented_form = 27; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - // field 28 reserved for DiagnosticReport.category:LaboratorySlice which uses - // an unsupported slicing on CodeableConcept - reserved 28; -} + // Appointment | CommunicationRequest | DeviceRequest | MedicationRequest + // | NutritionOrder | Task | ServiceRequest | VisionPrescription + message KindCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-plan-activity-kind"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; -// Auto-generated from StructureDefinition for -// USCorePediatricWeightForHeightObservationProfile. FHIR Vital Signs Profile. -// See -// http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height -message USCorePediatricWeightForHeightObservationProfile { - option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/vitalsigns"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Observation"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "dataAbsentReason.empty() or value.empty()"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())"; - option (.google.fhir.proto.search_parameter) = { - name: "amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "Observation.basedOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "Observation.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code" - type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-concept" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-date" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-quantity" - type: COMPOSITE - expression: "Observation" + core.CarePlanActivityKindValueSet.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + KindCode kind = 4; + + // Instantiates FHIR protocol or definition + repeated core.Canonical instantiates_canonical = 5; + + // Instantiates external protocol or definition + repeated core.Uri instantiates_uri = 6; + + // Detail type of activity + core.CodeableConcept code = 7; + + // Why activity should be done or why activity was prohibited + repeated core.CodeableConcept reason_code = 8; + + // Why activity is needed + repeated core.Reference reason_reference = 9 [ + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", + (.google.fhir.proto.valid_reference_type) = "DocumentReference" + ]; + + // Goals this activity relates to + repeated core.Reference goal = 10 + [(.google.fhir.proto.valid_reference_type) = "Goal"]; + + // not-started | scheduled | in-progress | on-hold | completed | cancelled + // | stopped | unknown | entered-in-error + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.CarePlanActivityStatusCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + StatusCode status = 11 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Reason for current status + core.CodeableConcept status_reason = 12; + + // If true, activity is prohibiting action + core.Boolean do_not_perform = 13; + + // When activity is to occur + message ScheduledX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.Timing timing = 1; + core.Period period = 2; + core.String string_value = 3 [json_name = "string"]; + } + } + ScheduledX scheduled = 14; + + // Where it should happen + core.Reference location = 15 + [(.google.fhir.proto.valid_reference_type) = "Location"]; + + // Who will be responsible? + repeated core.Reference performer = 16 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "CareTeam", + (.google.fhir.proto.valid_reference_type) = "HealthcareService", + (.google.fhir.proto.valid_reference_type) = "Device" + ]; + + // What is to be administered/supplied + message ProductX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.CodeableConcept codeable_concept = 1; + core.Reference reference = 2 [ + (.google.fhir.proto.valid_reference_type) = "Medication", + (.google.fhir.proto.valid_reference_type) = "Substance" + ]; + } + } + ProductX product = 17; + + // How to consume/day? + core.SimpleQuantity daily_amount = 18; + + // How much to administer/supply/consume + core.SimpleQuantity quantity = 19; + + // Extra info describing activity to perform + core.String description = 20; + } + Detail detail = 8; + } + repeated Activity activity = 31; + + // Comments about the plan + repeated core.Annotation note = 32; + + // field 33 reserved for CarePlan.category:AssessPlan which uses an + // unsupported slicing on CodeableConcept + reserved 33; +} + +// Auto-generated from StructureDefinition for USCoreCareTeam. +// Planned participants in the coordination and delivery of care for a patient +// or group. See +// http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam +message USCoreCareTeam { + option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CareTeam"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam"; + option (.google.fhir.proto.search_parameter) = { + name: "category" + type: TOKEN + expression: "CareTeam.category" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-string" - type: COMPOSITE - expression: "Observation" + name: "date" + type: DATE + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code" + name: "encounter" + type: REFERENCE + expression: "CareTeam.encounter" + }; + option (.google.fhir.proto.search_parameter) = { + name: "identifier" type: TOKEN - expression: "Observation.code | Observation.component.code" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-concept" - type: COMPOSITE - expression: "Observation | Observation.component" + name: "participant" + type: REFERENCE + expression: "CareTeam.participant.member" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-quantity" - type: COMPOSITE - expression: "Observation | Observation.component" + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-data-absent-reason" + name: "status" type: TOKEN - expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" + expression: "CareTeam.status" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-value-concept" + name: "subject" + type: REFERENCE + expression: "CareTeam.subject" + }; + + // Logical id of this artifact + core.Id id = 1; + + // Metadata about the resource + core.Meta meta = 2; + + // A set of rules under which this content was created + core.Uri implicit_rules = 3; + + // Language of the resource content + core.Code language = 4; + + // Text summary of the resource, for human interpretation + core.Narrative text = 5; + + // Contained, inline Resources + repeated protobuf.Any contained = 6; + + // Field 7 reserved for strongly-typed ContainedResource for id: + // CareTeam.contained + reserved 7; + + // Additional content defined by implementations + repeated core.Extension extension = 8; + + // Extensions that cannot be ignored + repeated core.Extension modifier_extension = 9; + + // External Ids for this team + repeated core.Identifier identifier = 10; + + // proposed | active | suspended | inactive | entered-in-error + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-team-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.CareTeamStatusCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + StatusCode status = 11; + + // Type of team + repeated core.CodeableConcept category = 12; + + // Name of the team, such as crisis assessment team + core.String name = 13; + + // Who care team is for + core.Reference subject = 14 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; + + // Encounter created as part of + core.Reference encounter = 15 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + + // Time period team covers + core.Period period = 16; + + // Members of the team + message Participant { + option (.google.fhir.proto.fhir_path_message_constraint) = + "onBehalfOf.exists() implies (member.resolve().iif(empty(), true, ofType(Practitioner).exists()))"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // Type of involvement + core.CodeableConcept role = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Who is involved + core.Reference member = 5 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; + + // Organization of the practitioner + core.Reference on_behalf_of = 6 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // Time period of participant + core.Period period = 7; + } + repeated Participant participant = 17 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Why the care team exists + repeated core.CodeableConcept reason_code = 18; + + // Why the care team exists + repeated core.Reference reason_reference = 19 + [(.google.fhir.proto.valid_reference_type) = "Condition"]; + + // Organization responsible for the care team + repeated core.Reference managing_organization = 20 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // A contact detail for the care team (that applies to all members) + repeated core.ContactPoint telecom = 21; + + // Comments made about the CareTeam + repeated core.Annotation note = 22; +} + +// Auto-generated from StructureDefinition for +// USCoreDiagnosticReportProfileLaboratoryReporting. A Diagnostic report - a +// combination of request information, atomic results, images, interpretation, +// as well as formatted reports. See +// http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab +message USCoreDiagnosticReportProfileLaboratoryReporting { + option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab"; + option (.google.fhir.proto.search_parameter) = { + name: "assessed-condition" + type: REFERENCE + expression: "DiagnosticReport.extension('http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "based-on" + type: REFERENCE + expression: "DiagnosticReport.basedOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "category" type: TOKEN - expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" + expression: "DiagnosticReport.category" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + name: "code" + type: TOKEN + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code" + name: "conclusion" type: TOKEN - expression: "Observation.component.code" + expression: "DiagnosticReport.conclusionCode" + }; + option (.google.fhir.proto.search_parameter) = { + name: "date" + type: DATE + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "encounter" + type: REFERENCE + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-concept" - type: COMPOSITE - expression: "Observation.component" + name: "identifier" + type: TOKEN + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + }; + option (.google.fhir.proto.search_parameter) = { + name: "issued" + type: DATE + expression: "DiagnosticReport.issued" + }; + option (.google.fhir.proto.search_parameter) = { + name: "media" + type: REFERENCE + expression: "DiagnosticReport.media.link" + }; + option (.google.fhir.proto.search_parameter) = { + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + }; + option (.google.fhir.proto.search_parameter) = { + name: "performer" + type: REFERENCE + expression: "DiagnosticReport.performer" + }; + option (.google.fhir.proto.search_parameter) = { + name: "result" + type: REFERENCE + expression: "DiagnosticReport.result" + }; + option (.google.fhir.proto.search_parameter) = { + name: "results-interpreter" + type: REFERENCE + expression: "DiagnosticReport.resultsInterpreter" + }; + option (.google.fhir.proto.search_parameter) = { + name: "specimen" + type: REFERENCE + expression: "DiagnosticReport.specimen" + }; + option (.google.fhir.proto.search_parameter) = { + name: "status" + type: TOKEN + expression: "DiagnosticReport.status" + }; + option (.google.fhir.proto.search_parameter) = { + name: "subject" + type: REFERENCE + expression: "DiagnosticReport.subject" + }; + + // Logical id of this artifact + core.Id id = 1; + + // Metadata about the resource + core.Meta meta = 2; + + // A set of rules under which this content was created + core.Uri implicit_rules = 3; + + // Language of the resource content + core.Code language = 4; + + // Text summary of the resource, for human interpretation + core.Narrative text = 5; + + // Contained, inline Resources + repeated protobuf.Any contained = 6; + + // Field 7 reserved for strongly-typed ContainedResource for id: + // DiagnosticReport.contained + reserved 7; + + // Additional content defined by implementations + repeated core.Extension extension = 8; + + // Extensions that cannot be ignored + repeated core.Extension modifier_extension = 9; + + // Business identifier for report + repeated core.Identifier identifier = 10; + + // What was requested + repeated core.Reference based_on = 11 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest" + ]; + + // registered | partial | preliminary | final + + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/diagnostic-report-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.DiagnosticReportStatusCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + StatusCode status = 12 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Service category + repeated core.CodeableConcept category = 13 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // US Core Laboratory Report Order Code + core.CodeableConcept code = 14 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // The subject of the report - usually, but not always, the patient + core.Reference subject = 15 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; + + // Health care event when test ordered + core.Reference encounter = 16 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + + // Specimen Collection Datetime or Period + message EffectiveX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.DateTime date_time = 1; + core.Period period = 2; + } + } + EffectiveX effective = 17 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // DateTime this version was made + core.Instant issued = 18 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Responsible Diagnostic Service + repeated core.Reference performer = 19 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; + + // Primary result interpreter + repeated core.Reference results_interpreter = 20 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "CareTeam" + ]; + + // Specimens this report is based on + repeated core.Reference specimen = 21 + [(.google.fhir.proto.valid_reference_type) = "Specimen"]; + + // Observations + repeated core.Reference result = 22 + [(.google.fhir.proto.valid_reference_type) = "Observation"]; + + // Reference to full details of imaging associated with the diagnostic report + repeated core.Reference imaging_study = 23 + [(.google.fhir.proto.valid_reference_type) = "ImagingStudy"]; + + // Key images associated with this report + message Media { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // Comment about the image (e.g. explanation) + core.String comment = 4; + + // Reference to the image source + core.Reference link = 5 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Media" + ]; + } + repeated Media media = 24; + + // Clinical conclusion (interpretation) of test results + core.String conclusion = 25; + + // Codes for the clinical conclusion of test results + repeated core.CodeableConcept conclusion_code = 26; + + // Entire report as issued + repeated core.Attachment presented_form = 27; + + // field 28 reserved for DiagnosticReport.category:LaboratorySlice which uses + // an unsupported slicing on CodeableConcept + reserved 28; +} + +// Auto-generated from StructureDefinition for +// USCoreDiagnosticReportProfileNoteExchange. US Core Diagnostic Report Profile +// for Report and Note exchange. See +// http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note +message USCoreDiagnosticReportProfileNoteExchange { + option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note"; + option (.google.fhir.proto.search_parameter) = { + name: "assessed-condition" + type: REFERENCE + expression: "DiagnosticReport.extension('http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition')" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-quantity" - type: COMPOSITE - expression: "Observation.component" + name: "based-on" + type: REFERENCE + expression: "DiagnosticReport.basedOn" }; option (.google.fhir.proto.search_parameter) = { - name: "component-data-absent-reason" + name: "category" type: TOKEN - expression: "Observation.component.dataAbsentReason" + expression: "DiagnosticReport.category" }; option (.google.fhir.proto.search_parameter) = { - name: "component-value-concept" + name: "code" type: TOKEN - expression: "(Observation.component.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-value-quantity" - type: QUANTITY - expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; option (.google.fhir.proto.search_parameter) = { - name: "data-absent-reason" + name: "conclusion" type: TOKEN - expression: "Observation.dataAbsentReason" + expression: "DiagnosticReport.conclusionCode" }; option (.google.fhir.proto.search_parameter) = { name: "date" type: DATE expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; - option (.google.fhir.proto.search_parameter) = { - name: "derived-from" - type: REFERENCE - expression: "Observation.derivedFrom" - }; - option (.google.fhir.proto.search_parameter) = { - name: "device" - type: REFERENCE - expression: "Observation.device" - }; - option (.google.fhir.proto.search_parameter) = { - name: "dna-variant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; option (.google.fhir.proto.search_parameter) = { name: "encounter" type: REFERENCE expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" }; - option (.google.fhir.proto.search_parameter) = { - name: "focus" - type: REFERENCE - expression: "Observation.focus" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-dnavariant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-identifier" - type: TOKEN - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "has-member" - type: REFERENCE - expression: "Observation.hasMember" - }; option (.google.fhir.proto.search_parameter) = { name: "identifier" type: TOKEN expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "method" - type: TOKEN - expression: "Observation.method" + name: "issued" + type: DATE + expression: "DiagnosticReport.issued" }; option (.google.fhir.proto.search_parameter) = { - name: "part-of" + name: "media" type: REFERENCE - expression: "Observation.partOf" + expression: "DiagnosticReport.media.link" }; option (.google.fhir.proto.search_parameter) = { name: "patient" @@ -984,42 +1445,32 @@ message USCorePediatricWeightForHeightObservationProfile { option (.google.fhir.proto.search_parameter) = { name: "performer" type: REFERENCE - expression: "Observation.performer" + expression: "DiagnosticReport.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "specimen" + name: "result" type: REFERENCE - expression: "Observation.specimen" + expression: "DiagnosticReport.result" }; option (.google.fhir.proto.search_parameter) = { - name: "status" - type: TOKEN - expression: "Observation.status" + name: "results-interpreter" + type: REFERENCE + expression: "DiagnosticReport.resultsInterpreter" }; option (.google.fhir.proto.search_parameter) = { - name: "subject" + name: "specimen" type: REFERENCE - expression: "Observation.subject" + expression: "DiagnosticReport.specimen" }; option (.google.fhir.proto.search_parameter) = { - name: "value-concept" + name: "status" type: TOKEN - expression: "(Observation.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-date" - type: DATE - expression: "(Observation.value as dateTime) | (Observation.value as Period)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" + expression: "DiagnosticReport.status" }; option (.google.fhir.proto.search_parameter) = { - name: "value-string" - type: STRING - expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" + name: "subject" + type: REFERENCE + expression: "DiagnosticReport.subject" }; // Logical id of this artifact @@ -1041,7 +1492,7 @@ message USCorePediatricWeightForHeightObservationProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Observation.contained + // DiagnosticReport.contained reserved 7; // Additional content defined by implementations @@ -1050,72 +1501,55 @@ message USCorePediatricWeightForHeightObservationProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business Identifier for observation + // Business identifier for report repeated core.Identifier identifier = 10; - // Fulfills plan, proposal or order + // What was requested repeated core.Reference based_on = 11 [ (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "DeviceRequest", (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", (.google.fhir.proto.valid_reference_type) = "MedicationRequest", (.google.fhir.proto.valid_reference_type) = "NutritionOrder", (.google.fhir.proto.valid_reference_type) = "ServiceRequest" ]; - // Part of referenced event - repeated core.Reference part_of = 12 [ - (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", - (.google.fhir.proto.valid_reference_type) = "MedicationDispense", - (.google.fhir.proto.valid_reference_type) = "MedicationStatement", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Immunization", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy" - ]; - - // registered | preliminary | final | amended + + // registered | partial | preliminary | final + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/observation-status"; + "http://hl7.org/fhir/ValueSet/diagnostic-report-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.ObservationStatusCode.Value value = 1; + core.DiagnosticReportStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 13 + StatusCode status = 12 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Classification of type of observation - repeated core.CodeableConcept category = 14 + // Service category + repeated core.CodeableConcept category = 13 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Weight-for-length per age and gender - core.CodeableConcept code = 15 + // US Core Report Code + core.CodeableConcept code = 14 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who and/or what the observation is about - core.Reference subject = 16 [ + // The subject of the report - usually, but not always, the patient + core.Reference subject = 15 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; - - // What the observation is about, when it is not about the subject of record - repeated core.Reference focus = 17 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; - // Healthcare event during which this observation is made - core.Reference encounter = 18 + // Health care event when test ordered + core.Reference encounter = 16 [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // Often just a dateTime for Vital Signs + // Time of the report or note message EffectiveX { - option (.google.fhir.proto.fhir_path_message_constraint) = - "($this as dateTime).toString().length() >= 8"; option (.google.fhir.proto.is_choice_type) = true; oneof choice { @@ -1123,65 +1557,40 @@ message USCorePediatricWeightForHeightObservationProfile { core.Period period = 2; } } - EffectiveX effective = 19 + EffectiveX effective = 17 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Date/Time this version was made available - core.Instant issued = 20; + // DateTime this version was made + core.Instant issued = 18; - // Who is responsible for the observation - repeated core.Reference performer = 21 [ + // Responsible Diagnostic Service + repeated core.Reference performer = 19 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; + + // Primary result interpreter + repeated core.Reference results_interpreter = 20 [ (.google.fhir.proto.valid_reference_type) = "Practitioner", (.google.fhir.proto.valid_reference_type) = "PractitionerRole", (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + (.google.fhir.proto.valid_reference_type) = "CareTeam" ]; - // Vital Signs value are recorded using the Quantity data type. For supporting - // observations such as Cuff size could use other datatypes such as - // CodeableConcept. - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Quantity quantity = 1; - } - } - ValueX value = 22 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Why the result is missing - core.CodeableConcept data_absent_reason = 23; - - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 24; - - // Comments about the observation - repeated core.Annotation note = 25; - - // Observed body part - core.CodeableConcept body_site = 26; - - // How it was done - core.CodeableConcept method = 27; - - // Specimen used for this observation - core.Reference specimen = 28 + // Specimens this report is based on + repeated core.Reference specimen = 21 [(.google.fhir.proto.valid_reference_type) = "Specimen"]; - // (Measurement) Device - core.Reference device = 29 [ - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "DeviceMetric" - ]; + // Observations + repeated core.Reference result = 22 + [(.google.fhir.proto.valid_reference_type) = "Observation"]; - // Provides guide for interpretation - message ReferenceRange { - option (.google.fhir.proto.fhir_path_message_constraint) = - "low.exists() or high.exists() or text.exists()"; + // Reference to full details of imaging associated with the diagnostic report + repeated core.Reference imaging_study = 23 + [(.google.fhir.proto.valid_reference_type) = "ImagingStudy"]; + // Key images associated with this report + message Media { // Unique id for inter-element referencing core.String id = 1; @@ -1191,215 +1600,155 @@ message USCorePediatricWeightForHeightObservationProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Low Range, if relevant - core.SimpleQuantity low = 4; - - // High Range, if relevant - core.SimpleQuantity high = 5; - - // Reference range qualifier - core.CodeableConcept type = 6; - - // Reference range population - repeated core.CodeableConcept applies_to = 7; - - // Applicable age range, if relevant - core.Range age = 8; + // Comment about the image (e.g. explanation) + core.String comment = 4; - // Text based reference range in an observation - core.String text = 9; + // Reference to the image source + core.Reference link = 5 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Media" + ]; } - repeated ReferenceRange reference_range = 30; - - // Used when reporting vital signs panel components - repeated core.Reference has_member = 31 [ - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; - - // Related measurements the observation is made from - repeated core.Reference derived_from = 32 [ - (.google.fhir.proto.valid_reference_type) = "DocumentReference", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy", - (.google.fhir.proto.valid_reference_type) = "Media", - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; - - // Used when reporting systolic and diastolic blood pressure. - message Component { - option (.google.fhir.proto.fhir_path_message_constraint) = - "value.exists() or dataAbsentReason.exists()"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // Type of component observation (code / type) - core.CodeableConcept code = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Vital Sign Value recorded with UCUM - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Quantity quantity = 1; - core.CodeableConcept codeable_concept = 2; - core.String string_value = 3 [json_name = "string"]; - core.Boolean boolean = 4; - core.Integer integer = 5; - core.Range range = 6; - core.Ratio ratio = 7; - core.SampledData sampled_data = 8; - core.Time time = 9; - core.DateTime date_time = 10; - core.Period period = 11; - } - } - ValueX value = 5; - - // Why the component result is missing - core.CodeableConcept data_absent_reason = 6; + repeated Media media = 24; - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 7; + // Clinical conclusion (interpretation) of test results + core.String conclusion = 25; - // Provides guide for interpretation of component result - repeated ReferenceRange reference_range = 8; - } - repeated Component component = 33; + // Codes for the clinical conclusion of test results + repeated core.CodeableConcept conclusion_code = 26; - // field 34 reserved for Observation.category:VSCat which uses an unsupported - // slicing on CodeableConcept - reserved 34; + // Entire report as issued + repeated core.Attachment presented_form = 27; } -// Auto-generated from StructureDefinition for USCoreEncounterProfile. -// An interaction during which services are provided to the patient. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter -message USCoreEncounterProfile { +// Auto-generated from StructureDefinition for USCoreDocumentReferenceProfile. +// A reference to a document. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference +message USCoreDocumentReferenceProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Encounter"; + "http://hl7.org/fhir/StructureDefinition/DocumentReference"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference"; option (.google.fhir.proto.search_parameter) = { - name: "account" + name: "authenticator" type: REFERENCE - expression: "Encounter.account" + expression: "DocumentReference.authenticator" }; option (.google.fhir.proto.search_parameter) = { - name: "appointment" + name: "author" type: REFERENCE - expression: "Encounter.appointment" + expression: "DocumentReference.author" }; option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "Encounter.basedOn" + name: "category" + type: TOKEN + expression: "DocumentReference.category" }; option (.google.fhir.proto.search_parameter) = { - name: "class" + name: "contenttype" type: TOKEN - expression: "Encounter.class" + expression: "DocumentReference.content.attachment.contentType" + }; + option (.google.fhir.proto.search_parameter) = { + name: "custodian" + type: REFERENCE + expression: "DocumentReference.custodian" }; option (.google.fhir.proto.search_parameter) = { name: "date" type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" + expression: "DocumentReference.date" }; option (.google.fhir.proto.search_parameter) = { - name: "diagnosis" - type: REFERENCE - expression: "Encounter.diagnosis.condition" + name: "description" + type: STRING + expression: "DocumentReference.description" }; option (.google.fhir.proto.search_parameter) = { - name: "episode-of-care" + name: "encounter" type: REFERENCE - expression: "Encounter.episodeOfCare" + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "event" type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + expression: "DocumentReference.context.event" }; option (.google.fhir.proto.search_parameter) = { - name: "length" - type: QUANTITY - expression: "Encounter.length" + name: "facility" + type: TOKEN + expression: "DocumentReference.context.facilityType" }; option (.google.fhir.proto.search_parameter) = { - name: "location" - type: REFERENCE - expression: "Encounter.location.location" + name: "format" + type: TOKEN + expression: "DocumentReference.content.format" }; option (.google.fhir.proto.search_parameter) = { - name: "location-period" - type: DATE - expression: "Encounter.location.period" + name: "identifier" + type: TOKEN + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "part-of" - type: REFERENCE - expression: "Encounter.partOf" + name: "language" + type: TOKEN + expression: "DocumentReference.content.attachment.language" + }; + option (.google.fhir.proto.search_parameter) = { + name: "location" + type: URI + expression: "DocumentReference.content.attachment.url" }; option (.google.fhir.proto.search_parameter) = { - name: "participant" + name: "patient" type: REFERENCE - expression: "Encounter.participant.individual" + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "participant-type" - type: TOKEN - expression: "Encounter.participant.type" + name: "period" + type: DATE + expression: "DocumentReference.context.period" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" + name: "related" type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + expression: "DocumentReference.context.related" }; option (.google.fhir.proto.search_parameter) = { - name: "practitioner" + name: "relatesto" type: REFERENCE - expression: "Encounter.participant.individual.where(resolve() is Practitioner)" + expression: "DocumentReference.relatesTo.target" }; option (.google.fhir.proto.search_parameter) = { - name: "reason-code" + name: "relation" type: TOKEN - expression: "Encounter.reasonCode" + expression: "DocumentReference.relatesTo.code" }; option (.google.fhir.proto.search_parameter) = { - name: "reason-reference" - type: REFERENCE - expression: "Encounter.reasonReference" + name: "relationship" + type: COMPOSITE + expression: "DocumentReference.relatesTo" }; option (.google.fhir.proto.search_parameter) = { - name: "service-provider" - type: REFERENCE - expression: "Encounter.serviceProvider" + name: "security-label" + type: TOKEN + expression: "DocumentReference.securityLabel" }; option (.google.fhir.proto.search_parameter) = { - name: "special-arrangement" + name: "setting" type: TOKEN - expression: "Encounter.hospitalization.specialArrangement" + expression: "DocumentReference.context.practiceSetting" }; option (.google.fhir.proto.search_parameter) = { name: "status" type: TOKEN - expression: "Encounter.status" + expression: "DocumentReference.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "Encounter.subject" + expression: "DocumentReference.subject" }; option (.google.fhir.proto.search_parameter) = { name: "type" @@ -1426,7 +1775,7 @@ message USCoreEncounterProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Encounter.contained + // DocumentReference.contained reserved 7; // Additional content defined by implementations @@ -1435,118 +1784,85 @@ message USCoreEncounterProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Identifier(s) by which this encounter is known - repeated core.Identifier identifier = 10; + // Master Version Specific Identifier + core.Identifier master_identifier = 10; - // planned | arrived | triaged | in-progress | onleave | finished | cancelled - // + + // Other identifiers for the document + repeated core.Identifier identifier = 11; + + // current | superseded | entered-in-error message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-status"; + "http://hl7.org/fhir/ValueSet/document-reference-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.EncounterStatusCode.Value value = 1; + core.DocumentReferenceStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 11 + StatusCode status = 12 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // List of past encounter statuses - message StatusHistory { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // planned | arrived | triaged | in-progress | onleave | finished | - // cancelled + - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.EncounterStatusCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - StatusCode status = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // The time that the episode was in the specified status - core.Period period = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - } - repeated StatusHistory status_history = 12; - - // Classification of patient encounter - core.Coding class_value = 13 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - json_name = "class" - ]; - - // List of past encounter classes - message ClassHistory { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; + // preliminary | final | amended | entered-in-error + message DocStatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/composition-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + core.CompositionStatusCode.Value value = 1; - // inpatient | outpatient | ambulatory | emergency + - core.Coding class_value = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - json_name = "class" - ]; + core.String id = 2; - // The time that the episode was in the specified class - core.Period period = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + repeated core.Extension extension = 3; } - repeated ClassHistory class_history = 14; + DocStatusCode doc_status = 13; - // Specific type of encounter - repeated core.CodeableConcept type = 15 + // Kind of document (LOINC if possible) + core.CodeableConcept type = 14 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Specific type of service - core.CodeableConcept service_type = 16; - - // Indicates the urgency of the encounter - core.CodeableConcept priority = 17; + // Categorization of document + repeated core.CodeableConcept category = 15 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // The patient or group present at the encounter - core.Reference subject = 18 [ + // Who/what is the subject of the document + core.Reference subject = 16 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, (.google.fhir.proto.valid_reference_type) = "Patient" ]; - // Episode(s) of care that this encounter should be recorded against - repeated core.Reference episode_of_care = 19 - [(.google.fhir.proto.valid_reference_type) = "EpisodeOfCare"]; + // When this document reference was created + core.Instant date = 17; - // The ServiceRequest that initiated this encounter - repeated core.Reference based_on = 20 - [(.google.fhir.proto.valid_reference_type) = "ServiceRequest"]; + // Who and/or what authored the document + repeated core.Reference author = 18 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; - // List of participants involved in the encounter - message Participant { + // Who/what authenticated the document + core.Reference authenticator = 19 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; + + // Organization which maintains the document + core.Reference custodian = 20 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // Relationships to other documents + message RelatesTo { // Unique id for inter-element referencing core.String id = 1; @@ -1556,72 +1872,40 @@ message USCoreEncounterProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Role of participant in encounter - repeated core.CodeableConcept type = 4; - - // Period of time during the encounter that the participant participated - core.Period period = 5; - - // Persons involved in the encounter other than the patient - core.Reference individual = 6 - [(.google.fhir.proto.valid_reference_type) = "Practitioner"]; - } - repeated Participant participant = 21; - - // The appointment that scheduled this encounter - repeated core.Reference appointment = 22 - [(.google.fhir.proto.valid_reference_type) = "Appointment"]; - - // The start and end time of the encounter - core.Period period = 23; - - // Quantity of time the encounter lasted (less time absent) - core.Duration length = 24; - - // Coded reason the encounter takes place - repeated core.CodeableConcept reason_code = 25; - - // Reason the encounter takes place (reference) - repeated core.Reference reason_reference = 26 [ - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" - ]; + // replaces | transforms | signs | appends + message CodeType { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/document-relationship-type"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // The list of diagnosis relevant to this encounter - message Diagnosis { - // Unique id for inter-element referencing - core.String id = 1; + core.DocumentRelationshipTypeCode.Value value = 1; - // Additional content defined by implementations - repeated core.Extension extension = 2; + core.String id = 2; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + repeated core.Extension extension = 3; + } + CodeType code = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // The diagnosis or procedure relevant to the encounter - core.Reference condition = 4 [ + // Target of the relationship + core.Reference target = 5 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Procedure" + (.google.fhir.proto.valid_reference_type) = "DocumentReference" ]; - - // Role that this diagnosis has within the encounter (e.g. admission, - // billing, discharge …) - core.CodeableConcept use = 5; - - // Ranking of the diagnosis (for each role type) - core.PositiveInt rank = 6; } - repeated Diagnosis diagnosis = 27; + repeated RelatesTo relates_to = 21; - // The set of accounts that may be used for billing for this Encounter - repeated core.Reference account = 28 - [(.google.fhir.proto.valid_reference_type) = "Account"]; + // Human-readable description + core.String description = 22; + + // Document security-tags + repeated core.CodeableConcept security_label = 23; - // Details about the admission to a healthcare service - message Hospitalization { + // Document referenced + message Content { // Unique id for inter-element referencing core.String id = 1; @@ -1631,44 +1915,21 @@ message USCoreEncounterProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Pre-admission identifier - core.Identifier pre_admission_identifier = 4; - - // The location/organization from which the patient came before admission - core.Reference origin = 5 [ - (.google.fhir.proto.valid_reference_type) = "Location", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; - - // From where patient was admitted (physician referral, transfer) - core.CodeableConcept admit_source = 6; - - // The type of hospital re-admission that has occurred (if any). If the - // value is absent, then this is not identified as a readmission - core.CodeableConcept re_admission = 7; - - // Diet preferences reported by the patient - repeated core.CodeableConcept diet_preference = 8; - - // Special courtesies (VIP, board member) - repeated core.CodeableConcept special_courtesy = 9; - - // Wheelchair, translator, stretcher, etc. - repeated core.CodeableConcept special_arrangement = 10; - - // Location/organization to which the patient is discharged - core.Reference destination = 11 [ - (.google.fhir.proto.valid_reference_type) = "Location", - (.google.fhir.proto.valid_reference_type) = "Organization" + // Where to access the document + core.Attachment attachment = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.fhir_path_constraint) = + "url.exists() or data.exists()" ]; - // Category or kind of location after discharge - core.CodeableConcept discharge_disposition = 12; + // Format/content rules for the document + core.Coding format = 5; } - Hospitalization hospitalization = 29; + Content content = 24 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // List of locations where the patient has been - message Location { + // Clinical context of document + message Context { // Unique id for inter-element referencing core.String id = 1; @@ -1678,175 +1939,152 @@ message USCoreEncounterProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Location the encounter takes place - core.Reference location = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Location" - ]; + // Context of the document content + core.Reference encounter = 4 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // planned | active | reserved | completed - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-location-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Main clinical acts documented + repeated core.CodeableConcept event = 5; - core.EncounterLocationStatusCode.Value value = 1; + // Time of service that is being documented + core.Period period = 6; - core.String id = 2; + // Kind of facility where patient was seen + core.CodeableConcept facility_type = 7; - repeated core.Extension extension = 3; - } - StatusCode status = 5; + // Additional details about where the content was created (e.g. clinical + // specialty) + core.CodeableConcept practice_setting = 8; - // The physical type of the location (usually the level in the location - // hierachy - bed room ward etc.) - core.CodeableConcept physical_type = 6; + // Patient demographics from source + core.Reference source_patient_info = 9 + [(.google.fhir.proto.valid_reference_type) = "Patient"]; - // Time period during which the patient was present at the location - core.Period period = 7; + // Related identifiers or resources + repeated core.Reference related = 10 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; } - repeated Location location = 30; - - // The organization (facility) responsible for this encounter - core.Reference service_provider = 31 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - - // Another Encounter this encounter is part of - core.Reference part_of = 32 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + Context context = 25; } -// Auto-generated from StructureDefinition for USCoreDocumentReferenceProfile. -// A reference to a document. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference -message USCoreDocumentReferenceProfile { +// Auto-generated from StructureDefinition for USCoreEncounterProfile. +// An interaction during which services are provided to the patient. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter +message USCoreEncounterProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/DocumentReference"; + "http://hl7.org/fhir/StructureDefinition/Encounter"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"; option (.google.fhir.proto.search_parameter) = { - name: "authenticator" + name: "account" type: REFERENCE - expression: "DocumentReference.authenticator" + expression: "Encounter.account" }; option (.google.fhir.proto.search_parameter) = { - name: "author" + name: "appointment" type: REFERENCE - expression: "DocumentReference.author" + expression: "Encounter.appointment" }; option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "DocumentReference.category" + name: "based-on" + type: REFERENCE + expression: "Encounter.basedOn" }; option (.google.fhir.proto.search_parameter) = { - name: "contenttype" + name: "class" type: TOKEN - expression: "DocumentReference.content.attachment.contentType" - }; - option (.google.fhir.proto.search_parameter) = { - name: "custodian" - type: REFERENCE - expression: "DocumentReference.custodian" + expression: "Encounter.class" }; option (.google.fhir.proto.search_parameter) = { name: "date" type: DATE - expression: "DocumentReference.date" - }; - option (.google.fhir.proto.search_parameter) = { - name: "description" - type: STRING - expression: "DocumentReference.description" + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "encounter" + name: "diagnosis" type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" + expression: "Encounter.diagnosis.condition" }; option (.google.fhir.proto.search_parameter) = { - name: "event" - type: TOKEN - expression: "DocumentReference.context.event" + name: "episode-of-care" + type: REFERENCE + expression: "Encounter.episodeOfCare" }; option (.google.fhir.proto.search_parameter) = { - name: "facility" + name: "identifier" type: TOKEN - expression: "DocumentReference.context.facilityType" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "format" - type: TOKEN - expression: "DocumentReference.content.format" + name: "length" + type: QUANTITY + expression: "Encounter.length" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + name: "location" + type: REFERENCE + expression: "Encounter.location.location" }; option (.google.fhir.proto.search_parameter) = { - name: "language" - type: TOKEN - expression: "DocumentReference.content.attachment.language" + name: "location-period" + type: DATE + expression: "Encounter.location.period" }; option (.google.fhir.proto.search_parameter) = { - name: "location" - type: URI - expression: "DocumentReference.content.attachment.url" + name: "part-of" + type: REFERENCE + expression: "Encounter.partOf" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" + name: "participant" type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + expression: "Encounter.participant.individual" }; option (.google.fhir.proto.search_parameter) = { - name: "period" - type: DATE - expression: "DocumentReference.context.period" + name: "participant-type" + type: TOKEN + expression: "Encounter.participant.type" }; option (.google.fhir.proto.search_parameter) = { - name: "related" + name: "patient" type: REFERENCE - expression: "DocumentReference.context.related" + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "relatesto" + name: "practitioner" type: REFERENCE - expression: "DocumentReference.relatesTo.target" + expression: "Encounter.participant.individual.where(resolve() is Practitioner)" }; option (.google.fhir.proto.search_parameter) = { - name: "relation" + name: "reason-code" type: TOKEN - expression: "DocumentReference.relatesTo.code" + expression: "Encounter.reasonCode" }; option (.google.fhir.proto.search_parameter) = { - name: "relationship" - type: COMPOSITE - expression: "DocumentReference.relatesTo" + name: "reason-reference" + type: REFERENCE + expression: "Encounter.reasonReference" }; option (.google.fhir.proto.search_parameter) = { - name: "security-label" - type: TOKEN - expression: "DocumentReference.securityLabel" + name: "service-provider" + type: REFERENCE + expression: "Encounter.serviceProvider" }; option (.google.fhir.proto.search_parameter) = { - name: "setting" + name: "special-arrangement" type: TOKEN - expression: "DocumentReference.context.practiceSetting" + expression: "Encounter.hospitalization.specialArrangement" }; option (.google.fhir.proto.search_parameter) = { name: "status" type: TOKEN - expression: "DocumentReference.status" + expression: "Encounter.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "DocumentReference.subject" + expression: "Encounter.subject" }; option (.google.fhir.proto.search_parameter) = { name: "type" @@ -1873,7 +2111,7 @@ message USCoreDocumentReferenceProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // DocumentReference.contained + // Encounter.contained reserved 7; // Additional content defined by implementations @@ -1882,85 +2120,29 @@ message USCoreDocumentReferenceProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Master Version Specific Identifier - core.Identifier master_identifier = 10; - - // Other identifiers for the document - repeated core.Identifier identifier = 11; + // Identifier(s) by which this encounter is known + repeated core.Identifier identifier = 10; - // current | superseded | entered-in-error + // planned | arrived | triaged | in-progress | onleave | finished | cancelled + // + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/document-reference-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.DocumentReferenceStatusCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - StatusCode status = 12 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // preliminary | final | amended | entered-in-error - message DocStatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/composition-status"; + "http://hl7.org/fhir/ValueSet/encounter-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.CompositionStatusCode.Value value = 1; + core.EncounterStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - DocStatusCode doc_status = 13; - - // Kind of document (LOINC if possible) - core.CodeableConcept type = 14 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Categorization of document - repeated core.CodeableConcept category = 15 + StatusCode status = 11 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who/what is the subject of the document - core.Reference subject = 16 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; - - // When this document reference was created - core.Instant date = 17; - - // Who and/or what authored the document - repeated core.Reference author = 18 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; - - // Who/what authenticated the document - core.Reference authenticator = 19 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; - - // Organization which maintains the document - core.Reference custodian = 20 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - - // Relationships to other documents - message RelatesTo { + // List of past encounter statuses + message StatusHistory { // Unique id for inter-element referencing core.String id = 1; @@ -1970,40 +2152,39 @@ message USCoreDocumentReferenceProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // replaces | transforms | signs | appends - message CodeType { + // planned | arrived | triaged | in-progress | onleave | finished | + // cancelled + + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/document-relationship-type"; + "http://hl7.org/fhir/ValueSet/encounter-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.DocumentRelationshipTypeCode.Value value = 1; + core.EncounterStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - CodeType code = 4 + StatusCode status = 4 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Target of the relationship - core.Reference target = 5 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "DocumentReference" - ]; + // The time that the episode was in the specified status + core.Period period = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } - repeated RelatesTo relates_to = 21; - - // Human-readable description - core.String description = 22; + repeated StatusHistory status_history = 12; - // Document security-tags - repeated core.CodeableConcept security_label = 23; + // Classification of patient encounter + core.Coding class_value = 13 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + json_name = "class" + ]; - // Document referenced - message Content { + // List of past encounter classes + message ClassHistory { // Unique id for inter-element referencing core.String id = 1; @@ -2013,21 +2194,44 @@ message USCoreDocumentReferenceProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Where to access the document - core.Attachment attachment = 4 [ + // inpatient | outpatient | ambulatory | emergency + + core.Coding class_value = 4 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.fhir_path_constraint) = - "url.exists() or data.exists()" + json_name = "class" ]; - // Format/content rules for the document - core.Coding format = 5; + // The time that the episode was in the specified class + core.Period period = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } - Content content = 24 + repeated ClassHistory class_history = 14; + + // Specific type of encounter + repeated core.CodeableConcept type = 15 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Clinical context of document - message Context { + // Specific type of service + core.CodeableConcept service_type = 16; + + // Indicates the urgency of the encounter + core.CodeableConcept priority = 17; + + // The patient or group present at the encounter + core.Reference subject = 18 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; + + // Episode(s) of care that this encounter should be recorded against + repeated core.Reference episode_of_care = 19 + [(.google.fhir.proto.valid_reference_type) = "EpisodeOfCare"]; + + // The ServiceRequest that initiated this encounter + repeated core.Reference based_on = 20 + [(.google.fhir.proto.valid_reference_type) = "ServiceRequest"]; + + // List of participants involved in the encounter + message Participant { // Unique id for inter-element referencing core.String id = 1; @@ -2037,156 +2241,119 @@ message USCoreDocumentReferenceProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Context of the document content - core.Reference encounter = 4 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - - // Main clinical acts documented - repeated core.CodeableConcept event = 5; - - // Time of service that is being documented - core.Period period = 6; + // Role of participant in encounter + repeated core.CodeableConcept type = 4; - // Kind of facility where patient was seen - core.CodeableConcept facility_type = 7; + // Period of time during the encounter that the participant participated + core.Period period = 5; - // Additional details about where the content was created (e.g. clinical - // specialty) - core.CodeableConcept practice_setting = 8; + // Persons involved in the encounter other than the patient + core.Reference individual = 6 + [(.google.fhir.proto.valid_reference_type) = "Practitioner"]; + } + repeated Participant participant = 21; - // Patient demographics from source - core.Reference source_patient_info = 9 - [(.google.fhir.proto.valid_reference_type) = "Patient"]; + // The appointment that scheduled this encounter + repeated core.Reference appointment = 22 + [(.google.fhir.proto.valid_reference_type) = "Appointment"]; - // Related identifiers or resources - repeated core.Reference related = 10 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; - } - Context context = 25; -} + // The start and end time of the encounter + core.Period period = 23; -// Auto-generated from StructureDefinition for USCoreCareTeam. -// Planned participants in the coordination and delivery of care for a patient -// or group. See -// http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam -message USCoreCareTeam { - option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CareTeam"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam"; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "CareTeam.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "encounter" - type: REFERENCE - expression: "CareTeam.encounter" - }; - option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" - }; - option (.google.fhir.proto.search_parameter) = { - name: "participant" - type: REFERENCE - expression: "CareTeam.participant.member" - }; - option (.google.fhir.proto.search_parameter) = { - name: "patient" - type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" - }; - option (.google.fhir.proto.search_parameter) = { - name: "status" - type: TOKEN - expression: "CareTeam.status" - }; - option (.google.fhir.proto.search_parameter) = { - name: "subject" - type: REFERENCE - expression: "CareTeam.subject" - }; + // Quantity of time the encounter lasted (less time absent) + core.Duration length = 24; - // Logical id of this artifact - core.Id id = 1; + // Coded reason the encounter takes place + repeated core.CodeableConcept reason_code = 25; - // Metadata about the resource - core.Meta meta = 2; + // Reason the encounter takes place (reference) + repeated core.Reference reason_reference = 26 [ + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" + ]; - // A set of rules under which this content was created - core.Uri implicit_rules = 3; + // The list of diagnosis relevant to this encounter + message Diagnosis { + // Unique id for inter-element referencing + core.String id = 1; - // Language of the resource content - core.Code language = 4; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Text summary of the resource, for human interpretation - core.Narrative text = 5; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - // Contained, inline Resources - repeated protobuf.Any contained = 6; + // The diagnosis or procedure relevant to the encounter + core.Reference condition = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Procedure" + ]; - // Field 7 reserved for strongly-typed ContainedResource for id: - // CareTeam.contained - reserved 7; + // Role that this diagnosis has within the encounter (e.g. admission, + // billing, discharge …) + core.CodeableConcept use = 5; - // Additional content defined by implementations - repeated core.Extension extension = 8; + // Ranking of the diagnosis (for each role type) + core.PositiveInt rank = 6; + } + repeated Diagnosis diagnosis = 27; - // Extensions that cannot be ignored - repeated core.Extension modifier_extension = 9; + // The set of accounts that may be used for billing for this Encounter + repeated core.Reference account = 28 + [(.google.fhir.proto.valid_reference_type) = "Account"]; - // External Ids for this team - repeated core.Identifier identifier = 10; + // Details about the admission to a healthcare service + message Hospitalization { + // Unique id for inter-element referencing + core.String id = 1; - // proposed | active | suspended | inactive | entered-in-error - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-team-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Additional content defined by implementations + repeated core.Extension extension = 2; - core.CareTeamStatusCode.Value value = 1; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - core.String id = 2; + // Pre-admission identifier + core.Identifier pre_admission_identifier = 4; - repeated core.Extension extension = 3; - } - StatusCode status = 11; + // The location/organization from which the patient came before admission + core.Reference origin = 5 [ + (.google.fhir.proto.valid_reference_type) = "Location", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; - // Type of team - repeated core.CodeableConcept category = 12; + // From where patient was admitted (physician referral, transfer) + core.CodeableConcept admit_source = 6; - // Name of the team, such as crisis assessment team - core.String name = 13; + // The type of hospital re-admission that has occurred (if any). If the + // value is absent, then this is not identified as a readmission + core.CodeableConcept re_admission = 7; - // Who care team is for - core.Reference subject = 14 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; + // Diet preferences reported by the patient + repeated core.CodeableConcept diet_preference = 8; - // Encounter created as part of - core.Reference encounter = 15 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + // Special courtesies (VIP, board member) + repeated core.CodeableConcept special_courtesy = 9; - // Time period team covers - core.Period period = 16; + // Wheelchair, translator, stretcher, etc. + repeated core.CodeableConcept special_arrangement = 10; - // Members of the team - message Participant { - option (.google.fhir.proto.fhir_path_message_constraint) = - "onBehalfOf.exists() implies (member.resolve().iif(empty(), true, ofType(Practitioner).exists()))"; + // Location/organization to which the patient is discharged + core.Reference destination = 11 [ + (.google.fhir.proto.valid_reference_type) = "Location", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; + + // Category or kind of location after discharge + core.CodeableConcept discharge_disposition = 12; + } + Hospitalization hospitalization = 29; + // List of locations where the patient has been + message Location { // Unique id for inter-element referencing core.String id = 1; @@ -2196,105 +2363,95 @@ message USCoreCareTeam { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Type of involvement - core.CodeableConcept role = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Who is involved - core.Reference member = 5 [ + // Location the encounter takes place + core.Reference location = 4 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + (.google.fhir.proto.valid_reference_type) = "Location" ]; - // Organization of the practitioner - core.Reference on_behalf_of = 6 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + // planned | active | reserved | completed + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/encounter-location-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Time period of participant - core.Period period = 7; - } - repeated Participant participant = 17 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + core.EncounterLocationStatusCode.Value value = 1; - // Why the care team exists - repeated core.CodeableConcept reason_code = 18; + core.String id = 2; - // Why the care team exists - repeated core.Reference reason_reference = 19 - [(.google.fhir.proto.valid_reference_type) = "Condition"]; + repeated core.Extension extension = 3; + } + StatusCode status = 5; - // Organization responsible for the care team - repeated core.Reference managing_organization = 20 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + // The physical type of the location (usually the level in the location + // hierachy - bed room ward etc.) + core.CodeableConcept physical_type = 6; - // A contact detail for the care team (that applies to all members) - repeated core.ContactPoint telecom = 21; + // Time period during which the patient was present at the location + core.Period period = 7; + } + repeated Location location = 30; - // Comments made about the CareTeam - repeated core.Annotation note = 22; + // The organization (facility) responsible for this encounter + core.Reference service_provider = 31 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // Another Encounter this encounter is part of + core.Reference part_of = 32 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; } -// Auto-generated from StructureDefinition for USCoreProvenance. -// US Core Provenance. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance -message USCoreProvenance { +// Auto-generated from StructureDefinition for USCoreGoalProfile. +// Describes the intended objective(s) for a patient, group or organization. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal +message USCoreGoalProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Provenance"; + "http://hl7.org/fhir/StructureDefinition/Goal"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance"; - option (.google.fhir.proto.search_parameter) = { - name: "agent" - type: REFERENCE - expression: "Provenance.agent.who" - }; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal"; option (.google.fhir.proto.search_parameter) = { - name: "agent-role" + name: "achievement-status" type: TOKEN - expression: "Provenance.agent.role" + expression: "Goal.achievementStatus" }; option (.google.fhir.proto.search_parameter) = { - name: "agent-type" + name: "category" type: TOKEN - expression: "Provenance.agent.type" + expression: "Goal.category" }; option (.google.fhir.proto.search_parameter) = { - name: "entity" - type: REFERENCE - expression: "Provenance.entity.what" + name: "identifier" + type: TOKEN + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "location" - type: REFERENCE - expression: "Provenance.location" + name: "lifecycle-status" + type: TOKEN + expression: "Goal.lifecycleStatus" }; option (.google.fhir.proto.search_parameter) = { name: "patient" type: REFERENCE - expression: "Provenance.target.where(resolve() is Patient)" + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "recorded" + name: "start-date" type: DATE - expression: "Provenance.recorded" - }; - option (.google.fhir.proto.search_parameter) = { - name: "signature-type" - type: TOKEN - expression: "Provenance.signature.type" + expression: "(Goal.start as date)" }; option (.google.fhir.proto.search_parameter) = { - name: "target" + name: "subject" type: REFERENCE - expression: "Provenance.target" + expression: "Goal.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "when" + name: "target-date" type: DATE - expression: "(Provenance.occurred as dateTime)" + expression: "(Goal.target.due as date)" }; // Logical id of this artifact @@ -2316,7 +2473,7 @@ message USCoreProvenance { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Provenance.contained + // Goal.contained reserved 7; // Additional content defined by implementations @@ -2325,80 +2482,63 @@ message USCoreProvenance { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // The Resource this Provenance record supports - repeated core.Reference target = 10 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Resource" - ]; - - // When the activity occurred - message OccurredX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Period period = 1; - core.DateTime date_time = 2; - } - } - OccurredX occurred = 11; - - // Timestamp when the activity was recorded / updated - core.Instant recorded = 12 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // External Ids for this goal + repeated core.Identifier identifier = 10; - // Policy or plan the activity was defined by - repeated core.Uri policy = 13; + // proposed | planned | accepted | active | on-hold | completed | cancelled | + // entered-in-error | rejected + message LifecycleStatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/goal-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Where the activity occurred, if relevant - core.Reference location = 14 - [(.google.fhir.proto.valid_reference_type) = "Location"]; + core.GoalLifecycleStatusCode.Value value = 1; - // Reason the activity is occurring - repeated core.CodeableConcept reason = 15; + core.String id = 2; - // Activity that occurred - core.CodeableConcept activity = 16; + repeated core.Extension extension = 3; + } + LifecycleStatusCode lifecycle_status = 11 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Actor involved - message Agent { - // Unique id for inter-element referencing - core.String id = 1; + // in-progress | improving | worsening | no-change | achieved | sustaining | + // not-achieved | no-progress | not-attainable + core.CodeableConcept achievement_status = 12; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // E.g. Treatment, dietary, behavioral, etc. + repeated core.CodeableConcept category = 13; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // high-priority | medium-priority | low-priority + core.CodeableConcept priority = 14; - // How the agent participated - core.CodeableConcept type = 4; + // Code or text describing goal + core.CodeableConcept description = 15 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // What the agents role was - repeated core.CodeableConcept role = 5; + // Who this goal is intended for + core.Reference subject = 16 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; - // Who participated - core.Reference who = 6 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; + // When goal pursuit begins + message StartX { + option (.google.fhir.proto.is_choice_type) = true; - // Who the agent is representing - core.Reference on_behalf_of = 7 [ - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.fhir_path_constraint) = - "($this.agent.who.resolve().is Practitioner or Device) implies exists()" - ]; + oneof choice { + core.Date date = 1; + core.CodeableConcept codeable_concept = 2; + } } - repeated Agent agent = 17 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + StartX start = 17; + + // Target outcome for the goal + message Target { + option (.google.fhir.proto.fhir_path_message_constraint) = + "(detail.exists() and measure.exists()) or detail.exists().not()"; - // An entity used in this activity - message Entity { // Unique id for inter-element referencing core.String id = 1; @@ -2408,45 +2548,70 @@ message USCoreProvenance { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // derivation | revision | quotation | source | removal - message RoleCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/provenance-entity-role"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.ProvenanceEntityRoleCode.Value value = 1; + // The parameter whose value is being tracked + core.CodeableConcept measure = 4; - core.String id = 2; + // The target value to be achieved + message DetailX { + option (.google.fhir.proto.is_choice_type) = true; - repeated core.Extension extension = 3; + oneof choice { + core.Quantity quantity = 1; + core.Range range = 2; + core.CodeableConcept codeable_concept = 3; + core.String string_value = 4 [json_name = "string"]; + core.Boolean boolean = 5; + core.Integer integer = 6; + core.Ratio ratio = 7; + } } - RoleCode role = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + DetailX detail = 5; - // Identity of entity - core.Reference what = 5 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Resource" - ]; + // Reach goal on or before + message DueX { + option (.google.fhir.proto.is_choice_type) = true; - // Entity is attributed to this agent - repeated Agent agent = 6; + oneof choice { + core.Date date = 1; + } + } + DueX due = 6; } - repeated Entity entity = 18; + repeated Target target = 18; - // Signature on target - repeated core.Signature signature = 19; + // When goal status took effect + core.Date status_date = 19; - // field 20 reserved for Provenance.agent:ProvenanceAuthor which uses an - // unsupported slicing on BackboneElement - reserved 20; + // Reason for current status + core.String status_reason = 20; - // field 21 reserved for Provenance.agent:ProvenanceTransmitter which uses an - // unsupported slicing on BackboneElement - reserved 21; + // Who's responsible for creating Goal? + core.Reference expressed_by = 21 [ + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; + + // Issues addressed by this goal + repeated core.Reference addresses = 22 [ + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "MedicationStatement", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest", + (.google.fhir.proto.valid_reference_type) = "RiskAssessment" + ]; + + // Comments about the goal + repeated core.Annotation note = 23; + + // What result was achieved regarding the goal? + repeated core.CodeableConcept outcome_code = 24; + + // Observation that resulted from goal + repeated core.Reference outcome_reference = 25 + [(.google.fhir.proto.valid_reference_type) = "Observation"]; } // Auto-generated from StructureDefinition for USCoreImmunizationProfile. @@ -2799,133 +2964,79 @@ message USCoreImmunizationProfile { repeated ProtocolApplied protocol_applied = 37; } -// Auto-generated from StructureDefinition for USCoreBirthSexExtension. -// Extension. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex -message PatientUSCoreBirthSexExtension { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Value of extension - message ValueCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/us/core/ValueSet/birthsex"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - BirthSexValueSet.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - ValueCode value_code = 3; -} - -// Auto-generated from StructureDefinition for -// USCoreDiagnosticReportProfileNoteExchange. US Core Diagnostic Report Profile -// for Report and Note exchange. See -// http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note -message USCoreDiagnosticReportProfileNoteExchange { +// Auto-generated from StructureDefinition for USCoreImplantableDeviceProfile. +// Item used in healthcare. +// See +// http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device +message USCoreImplantableDeviceProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"; + "http://hl7.org/fhir/StructureDefinition/Device"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note"; - option (.google.fhir.proto.search_parameter) = { - name: "assessed-condition" - type: REFERENCE - expression: "DiagnosticReport.extension('http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "DiagnosticReport.basedOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "DiagnosticReport.category" - }; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "udiCarrier.empty() or (udiCarrier.carrierAIDC.exists() or udiCarrier.carrierHRF.exists())"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "udiCarrier.empty() or (manufactureDate.exists() or expirationDate.exists() or lotNumber.exists() or serialNumber.exists() or distinctIdentifier.exists())"; option (.google.fhir.proto.search_parameter) = { - name: "code" - type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" + name: "device-name" + type: STRING + expression: "Device.deviceName.name | Device.type.coding.display | Device.type.text" }; option (.google.fhir.proto.search_parameter) = { - name: "conclusion" + name: "identifier" type: TOKEN - expression: "DiagnosticReport.conclusionCode" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" + expression: "Device.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "encounter" + name: "location" type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" + expression: "Device.location" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + name: "manufacturer" + type: STRING + expression: "Device.manufacturer" }; option (.google.fhir.proto.search_parameter) = { - name: "issued" - type: DATE - expression: "DiagnosticReport.issued" + name: "model" + type: STRING + expression: "Device.modelNumber" }; option (.google.fhir.proto.search_parameter) = { - name: "media" + name: "organization" type: REFERENCE - expression: "DiagnosticReport.media.link" + expression: "Device.owner" }; option (.google.fhir.proto.search_parameter) = { name: "patient" type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" - }; - option (.google.fhir.proto.search_parameter) = { - name: "performer" - type: REFERENCE - expression: "DiagnosticReport.performer" + expression: "Device.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "result" - type: REFERENCE - expression: "DiagnosticReport.result" + name: "status" + type: TOKEN + expression: "Device.status" }; option (.google.fhir.proto.search_parameter) = { - name: "results-interpreter" - type: REFERENCE - expression: "DiagnosticReport.resultsInterpreter" + name: "type" + type: TOKEN + expression: "Device.type" }; option (.google.fhir.proto.search_parameter) = { - name: "specimen" - type: REFERENCE - expression: "DiagnosticReport.specimen" + name: "udi-carrier" + type: STRING + expression: "Device.udiCarrier.carrierHRF" }; option (.google.fhir.proto.search_parameter) = { - name: "status" - type: TOKEN - expression: "DiagnosticReport.status" + name: "udi-di" + type: STRING + expression: "Device.udiCarrier.deviceIdentifier" }; option (.google.fhir.proto.search_parameter) = { - name: "subject" - type: REFERENCE - expression: "DiagnosticReport.subject" + name: "url" + type: URI + expression: "Device.url" }; // Logical id of this artifact @@ -2947,7 +3058,7 @@ message USCoreDiagnosticReportProfileNoteExchange { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // DiagnosticReport.contained + // Device.contained reserved 7; // Additional content defined by implementations @@ -2956,96 +3067,190 @@ message USCoreDiagnosticReportProfileNoteExchange { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business identifier for report + // Instance identifier repeated core.Identifier identifier = 10; - // What was requested - repeated core.Reference based_on = 11 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest" - ]; + // The reference to the definition for the device + core.Reference definition = 11 + [(.google.fhir.proto.valid_reference_type) = "DeviceDefinition"]; - // registered | partial | preliminary | final + + // Unique Device Identifier (UDI) Barcode string + message UdiCarrier { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // Mandatory fixed portion of UDI + core.String device_identifier = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // UDI Issuing Organization + core.Uri issuer = 5; + + // Regional UDI authority + core.Uri jurisdiction = 6; + + // UDI Machine Readable Barcode String + core.Base64Binary carrier_aidc = 7 [json_name = "carrierAIDC"]; + + // UDI Human Readable Barcode String + core.String carrier_hrf = 8 [json_name = "carrierHRF"]; + + // barcode | rfid | manual + + message EntryTypeCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/udi-entry-type"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.UDIEntryTypeCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + EntryTypeCode entry_type = 9; + } + UdiCarrier udi_carrier = 12; + + // active | inactive | entered-in-error | unknown message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/diagnostic-report-status"; + "http://hl7.org/fhir/ValueSet/device-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.DiagnosticReportStatusCode.Value value = 1; + core.FHIRDeviceStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 12 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + StatusCode status = 13; - // Service category - repeated core.CodeableConcept category = 13 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // online | paused | standby | offline | not-ready | transduc-discon | + // hw-discon | off + repeated core.CodeableConcept status_reason = 14; - // US Core Report Code - core.CodeableConcept code = 14 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // The distinct identification string + core.String distinct_identifier = 15; - // The subject of the report - usually, but not always, the patient - core.Reference subject = 15 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; + // Name of device manufacturer + core.String manufacturer = 16; - // Health care event when test ordered - core.Reference encounter = 16 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + // Date when the device was made + core.DateTime manufacture_date = 17; - // Time of the report or note - message EffectiveX { - option (.google.fhir.proto.is_choice_type) = true; + // Date and time of expiry of this device (if applicable) + core.DateTime expiration_date = 18; - oneof choice { - core.DateTime date_time = 1; - core.Period period = 2; + // Lot number of manufacture + core.String lot_number = 19; + + // Serial number assigned by the manufacturer + core.String serial_number = 20; + + // The name of the device as given by the manufacturer + message DeviceName { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // The name of the device + core.String name = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // udi-label-name | user-friendly-name | patient-reported-name | + // manufacturer-name | model-name | other + message TypeCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/device-nametype"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.DeviceNameTypeCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; } + TypeCode type = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } - EffectiveX effective = 17 + repeated DeviceName device_name = 21; + + // The model number for the device + core.String model_number = 22; + + // The part number of the device + core.String part_number = 23; + + // The kind or type of device + core.CodeableConcept type = 24 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // DateTime this version was made - core.Instant issued = 18; + // The capabilities supported on a device, the standards to which the device + // conforms for a particular purpose, and used for the communication + message Specialization { + // Unique id for inter-element referencing + core.String id = 1; - // Responsible Diagnostic Service - repeated core.Reference performer = 19 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Primary result interpreter - repeated core.Reference results_interpreter = 20 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam" - ]; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - // Specimens this report is based on - repeated core.Reference specimen = 21 - [(.google.fhir.proto.valid_reference_type) = "Specimen"]; + // The standard that is used to operate and communicate + core.CodeableConcept system_type = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Observations - repeated core.Reference result = 22 - [(.google.fhir.proto.valid_reference_type) = "Observation"]; + // The version of the standard that is used to operate and communicate + core.String version = 5; + } + repeated Specialization specialization = 25; - // Reference to full details of imaging associated with the diagnostic report - repeated core.Reference imaging_study = 23 - [(.google.fhir.proto.valid_reference_type) = "ImagingStudy"]; + // The actual design of the device or software version running on the device + message Version { + // Unique id for inter-element referencing + core.String id = 1; - // Key images associated with this report - message Media { + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // The type of the device version + core.CodeableConcept type = 4; + + // A single component of the device version + core.Identifier component = 5; + + // The version text + core.String value = 6 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + } + repeated Version version = 26; + + // The actual configuration settings of a device as it actually operates, + // e.g., regulation status, time properties + message Property { // Unique id for inter-element referencing core.String id = 1; @@ -3055,25 +3260,47 @@ message USCoreDiagnosticReportProfileNoteExchange { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Comment about the image (e.g. explanation) - core.String comment = 4; + // Code that specifies the property DeviceDefinitionPropetyCode (Extensible) + core.CodeableConcept type = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Reference to the image source - core.Reference link = 5 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Media" - ]; + // Property value as a quantity + repeated core.Quantity value_quantity = 5; + + // Property value as a code, e.g., NTP4 (synced to NTP) + repeated core.CodeableConcept value_code = 6; } - repeated Media media = 24; + repeated Property property = 27; + + // Patient to whom Device is affixed + core.Reference patient = 28 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; + + // Organization responsible for device + core.Reference owner = 29 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // Details for human/organization for support + repeated core.ContactPoint contact = 30; + + // Where the device is found + core.Reference location = 31 + [(.google.fhir.proto.valid_reference_type) = "Location"]; - // Clinical conclusion (interpretation) of test results - core.String conclusion = 25; + // Network address to contact device + core.Uri url = 32; - // Codes for the clinical conclusion of test results - repeated core.CodeableConcept conclusion_code = 26; + // Device notes and comments + repeated core.Annotation note = 33; - // Entire report as issued - repeated core.Attachment presented_form = 27; + // Safety Characteristics of Device + repeated core.CodeableConcept safety = 34; + + // The parent device + core.Reference parent = 35 + [(.google.fhir.proto.valid_reference_type) = "Device"]; } // Auto-generated from StructureDefinition for @@ -3826,102 +4053,239 @@ message USCoreLocation { [(.google.fhir.proto.valid_reference_type) = "Endpoint"]; } -// Auto-generated from StructureDefinition for USCoreCondition. -// Detailed information about conditions, problems or diagnoses. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition -message UsCoreCondition { +// Auto-generated from StructureDefinition for USCoreMedicationProfile. +// Definition of a Medication. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication +message USCoreMedicationProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Condition"; + "http://hl7.org/fhir/StructureDefinition/Medication"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()"; - option (.google.fhir.proto.fhir_path_message_warning_constraint) = - "clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()"; - option (.google.fhir.proto.fhir_path_message_warning_constraint) = - "where(category in 'http://hl7.org/fhir/us/core/ValueSet/us-core-condition-category').exists()"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication"; option (.google.fhir.proto.search_parameter) = { - name: "Example Search Parameter" - type: REFERENCE - expression: "Condition.subject" + name: "code" + type: TOKEN + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; option (.google.fhir.proto.search_parameter) = { - name: "abatement-age" - type: QUANTITY - expression: "Condition.abatement.as(Age) | Condition.abatement.as(Range)" + name: "expiration-date" + type: DATE + expression: "Medication.batch.expirationDate" }; option (.google.fhir.proto.search_parameter) = { - name: "abatement-date" - type: DATE - expression: "Condition.abatement.as(dateTime) | Condition.abatement.as(Period)" + name: "form" + type: TOKEN + expression: "Medication.form" }; option (.google.fhir.proto.search_parameter) = { - name: "abatement-string" - type: STRING - expression: "Condition.abatement.as(string)" + name: "identifier" + type: TOKEN + expression: "Medication.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "asserter" + name: "ingredient" type: REFERENCE - expression: "Condition.asserter" + expression: "(Medication.ingredient.item as Reference)" }; option (.google.fhir.proto.search_parameter) = { - name: "body-site" + name: "ingredient-code" type: TOKEN - expression: "Condition.bodySite" + expression: "(Medication.ingredient.item as CodeableConcept)" }; option (.google.fhir.proto.search_parameter) = { - name: "category" + name: "lot-number" type: TOKEN - expression: "Condition.category" + expression: "Medication.batch.lotNumber" }; option (.google.fhir.proto.search_parameter) = { - name: "clinical-status" + name: "manufacturer" + type: REFERENCE + expression: "Medication.manufacturer" + }; + option (.google.fhir.proto.search_parameter) = { + name: "status" type: TOKEN - expression: "Condition.clinicalStatus" + expression: "Medication.status" + }; + + // Logical id of this artifact + core.Id id = 1; + + // Metadata about the resource + core.Meta meta = 2; + + // A set of rules under which this content was created + core.Uri implicit_rules = 3; + + // Language of the resource content + core.Code language = 4; + + // Text summary of the resource, for human interpretation + core.Narrative text = 5; + + // Contained, inline Resources + repeated protobuf.Any contained = 6; + + // Field 7 reserved for strongly-typed ContainedResource for id: + // Medication.contained + reserved 7; + + // Additional content defined by implementations + repeated core.Extension extension = 8; + + // Extensions that cannot be ignored + repeated core.Extension modifier_extension = 9; + + // Business identifier for this medication + repeated core.Identifier identifier = 10; + + // Codes that identify this medication + core.CodeableConcept code = 11 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // active | inactive | entered-in-error + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/medication-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.MedicationStatusCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + StatusCode status = 12; + + // Manufacturer of the item + core.Reference manufacturer = 13 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // powder | tablets | capsule + + core.CodeableConcept form = 14; + + // Amount of drug in package + core.Ratio amount = 15; + + // Active or inactive ingredient + message Ingredient { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // The actual ingredient or content + message ItemX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.CodeableConcept codeable_concept = 1; + core.Reference reference = 2 [ + (.google.fhir.proto.valid_reference_type) = "Substance", + (.google.fhir.proto.valid_reference_type) = "Medication" + ]; + } + } + ItemX item = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Active ingredient indicator + core.Boolean is_active = 5; + + // Quantity of ingredient present + core.Ratio strength = 6; + } + repeated Ingredient ingredient = 16; + + // Details about packaged medications + message Batch { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // Identifier assigned to batch + core.String lot_number = 4; + + // When batch will expire + core.DateTime expiration_date = 5; + } + Batch batch = 17; +} + +// Auto-generated from StructureDefinition for USCoreMedicationRequestProfile. +// Ordering of medication for patient or group. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest +message USCoreMedicationRequestProfile { + option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/MedicationRequest"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest"; + option (.google.fhir.proto.search_parameter) = { + name: "authoredon" + type: DATE + expression: "MedicationRequest.authoredOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "category" + type: TOKEN + expression: "MedicationRequest.category" }; option (.google.fhir.proto.search_parameter) = { name: "code" type: TOKEN expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; + option (.google.fhir.proto.search_parameter) = { + name: "date" + type: DATE + expression: "MedicationRequest.dosageInstruction.timing.event" + }; option (.google.fhir.proto.search_parameter) = { name: "encounter" type: REFERENCE - expression: "Condition.encounter" + expression: "MedicationRequest.encounter" }; option (.google.fhir.proto.search_parameter) = { - name: "evidence" + name: "identifier" type: TOKEN - expression: "Condition.evidence.code" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "evidence-detail" + name: "intended-dispenser" type: REFERENCE - expression: "Condition.evidence.detail" + expression: "MedicationRequest.dispenseRequest.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + name: "intended-performer" + type: REFERENCE + expression: "MedicationRequest.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "onset-age" - type: QUANTITY - expression: "Condition.onset.as(Age) | Condition.onset.as(Range)" + name: "intended-performertype" + type: TOKEN + expression: "MedicationRequest.performerType" }; option (.google.fhir.proto.search_parameter) = { - name: "onset-date" - type: DATE - expression: "Condition.onset.as(dateTime) | Condition.onset.as(Period)" + name: "intent" + type: TOKEN + expression: "MedicationRequest.intent" }; - option (.google.fhir.proto.search_parameter) = { - name: "onset-info" - type: STRING - expression: "Condition.onset.as(string)" + option (.google.fhir.proto.search_parameter) = { + name: "medication" + type: REFERENCE + expression: "(MedicationAdministration.medication as Reference) | (MedicationDispense.medication as Reference) | (MedicationRequest.medication as Reference) | (MedicationStatement.medication as Reference)" }; option (.google.fhir.proto.search_parameter) = { name: "patient" @@ -3929,29 +4293,24 @@ message UsCoreCondition { expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "recorded-date" - type: DATE - expression: "Condition.recordedDate" + name: "priority" + type: TOKEN + expression: "MedicationRequest.priority" }; option (.google.fhir.proto.search_parameter) = { - name: "severity" - type: TOKEN - expression: "Condition.severity" + name: "requester" + type: REFERENCE + expression: "MedicationRequest.requester" }; option (.google.fhir.proto.search_parameter) = { - name: "stage" + name: "status" type: TOKEN - expression: "Condition.stage.summary" + expression: "MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationStatement.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "Condition.subject" - }; - option (.google.fhir.proto.search_parameter) = { - name: "verification-status" - type: TOKEN - expression: "Condition.verificationStatus" + expression: "MedicationRequest.subject" }; // Logical id of this artifact @@ -3973,7 +4332,7 @@ message UsCoreCondition { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Condition.contained + // MedicationRequest.contained reserved 7; // Additional content defined by implementations @@ -3982,121 +4341,244 @@ message UsCoreCondition { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // External Ids for this condition + // External ids for this request repeated core.Identifier identifier = 10; - // active | recurrence | relapse | inactive | remission | resolved - core.CodeableConcept clinical_status = 11; + // active | on-hold | cancelled | completed | entered-in-error | stopped | + // draft | unknown + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/medicationrequest-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // unconfirmed | provisional | differential | confirmed | refuted | - // entered-in-error - core.CodeableConcept verification_status = 12; + core.MedicationrequestStatusCode.Value value = 1; - // problem-list-item | encounter-diagnosis | health-concern - repeated core.CodeableConcept category = 13 + core.String id = 2; + + repeated core.Extension extension = 3; + } + StatusCode status = 11 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Subjective severity of condition - core.CodeableConcept severity = 14; + // Reason for current status + core.CodeableConcept status_reason = 12; - // Identification of the condition, problem or diagnosis - core.CodeableConcept code = 15 + // proposal | plan | order | original-order | reflex-order | filler-order | + // instance-order | option + message IntentCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/medicationrequest-intent"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.MedicationRequestIntentCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + IntentCode intent = 13 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Anatomical location, if relevant - repeated core.CodeableConcept body_site = 16; + // Type of medication usage + repeated core.CodeableConcept category = 14; - // Who has the condition? - core.Reference subject = 17 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; + // routine | urgent | asap | stat + message PriorityCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/request-priority"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Encounter created as part of - core.Reference encounter = 18 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + core.RequestPriorityCode.Value value = 1; - // Estimated or actual date, date-time, or age - message OnsetX { + core.String id = 2; + + repeated core.Extension extension = 3; + } + PriorityCode priority = 15; + + // True if request is prohibiting action + core.Boolean do_not_perform = 16; + + // Reported rather than primary record + message ReportedX { option (.google.fhir.proto.is_choice_type) = true; oneof choice { - core.DateTime date_time = 1; - core.Age age = 2; - core.Period period = 3; - core.Range range = 4; - core.String string_value = 5 [json_name = "string"]; + core.Boolean boolean = 1; + core.Reference reference = 2 [ + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; } } - OnsetX onset = 19; + ReportedX reported = 17; - // When in resolution/remission - message AbatementX { + // Medication to be taken + message MedicationX { option (.google.fhir.proto.is_choice_type) = true; oneof choice { - core.DateTime date_time = 1; - core.Age age = 2; - core.Period period = 3; - core.Range range = 4; - core.String string_value = 5 [json_name = "string"]; + core.CodeableConcept codeable_concept = 1; + core.Reference reference = 2 + [(.google.fhir.proto.valid_reference_type) = "Medication"]; } } - AbatementX abatement = 20; + MedicationX medication = 18 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Date record was first recorded - core.DateTime recorded_date = 21; + // Who or group medication request is for + core.Reference subject = 19 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; - // Who recorded the condition - core.Reference recorder = 22 [ + // Encounter created as part of encounter/admission/stay + core.Reference encounter = 20 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + + // Information to support ordering of the medication + repeated core.Reference supporting_information = 21 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; + + // When request was initially authored + core.DateTime authored_on = 22 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Who/What requested the Request + core.Reference requester = 23 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, (.google.fhir.proto.valid_reference_type) = "Practitioner", (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Device", (.google.fhir.proto.valid_reference_type) = "RelatedPerson" ]; - // Person who asserts this condition - core.Reference asserter = 23 [ + // Intended performer of administration + core.Reference performer = 24 [ (.google.fhir.proto.valid_reference_type) = "Practitioner", (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "CareTeam" ]; - // Stage/grade, usually assessed formally - message Stage { - option (.google.fhir.proto.fhir_path_message_constraint) = - "summary.exists() or assessment.exists()"; + // Desired kind of performer of the medication administration + core.CodeableConcept performer_type = 25; + + // Person who entered the request + core.Reference recorder = 26 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole" + ]; + + // Reason or indication for ordering or not ordering the medication + repeated core.CodeableConcept reason_code = 27; + + // Condition or observation that supports why the prescription is being + // written + repeated core.Reference reason_reference = 28 [ + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; + + // Instantiates FHIR protocol or definition + repeated core.Canonical instantiates_canonical = 29; + + // Instantiates external protocol or definition + repeated core.Uri instantiates_uri = 30; + + // What request fulfills + repeated core.Reference based_on = 31 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" + ]; + + // Composite request this is part of + core.Identifier group_identifier = 32; + + // Overall pattern of medication administration + core.CodeableConcept course_of_therapy_type = 33; + + // Associated insurance coverage + repeated core.Reference insurance = 34 [ + (.google.fhir.proto.valid_reference_type) = "Coverage", + (.google.fhir.proto.valid_reference_type) = "ClaimResponse" + ]; + + // Information about the prescription + repeated core.Annotation note = 35; + + // How the medication should be taken + repeated core.Dosage dosage_instruction = 36; + + // Medication supply authorization + message DispenseRequest { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // First fill details + message InitialFill { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // First fill quantity + core.SimpleQuantity quantity = 4; + + // First fill duration + core.Duration duration = 5; + } + InitialFill initial_fill = 4; - // Unique id for inter-element referencing - core.String id = 1; + // Minimum period of time between dispenses + core.Duration dispense_interval = 5; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // Time period supply is authorized for + core.Period validity_period = 6; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Number of refills authorized + core.UnsignedInt number_of_repeats_allowed = 7; - // Simple summary (disease specific) - core.CodeableConcept summary = 4; + // Amount of medication to supply per dispense + core.SimpleQuantity quantity = 8; - // Formal record of assessment - repeated core.Reference assessment = 5 [ - (.google.fhir.proto.valid_reference_type) = "ClinicalImpression", - (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; + // Number of days supply per dispense + core.Duration expected_supply_duration = 9; - // Kind of staging - core.CodeableConcept type = 6; + // Intended dispenser + core.Reference performer = 10 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; } - repeated Stage stage = 24; - - // Supporting evidence - message Evidence { - option (.google.fhir.proto.fhir_path_message_constraint) = - "code.exists() or detail.exists()"; + DispenseRequest dispense_request = 37; + // Any restrictions on medication substitution + message Substitution { // Unique id for inter-element referencing core.String id = 1; @@ -4106,252 +4588,111 @@ message UsCoreCondition { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Manifestation/symptom - repeated core.CodeableConcept code = 4; + // Whether substitution is allowed or not + message AllowedX { + option (.google.fhir.proto.is_choice_type) = true; - // Supporting information found elsewhere - repeated core.Reference detail = 5 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; + oneof choice { + core.Boolean boolean = 1; + core.CodeableConcept codeable_concept = 2; + } + } + AllowedX allowed = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Why should (not) substitution be made + core.CodeableConcept reason = 5; } - repeated Evidence evidence = 25; + Substitution substitution = 38; - // Additional information about the Condition - repeated core.Annotation note = 26; + // An order/prescription that is being replaced + core.Reference prior_prescription = 39 + [(.google.fhir.proto.valid_reference_type) = "MedicationRequest"]; + + // Clinical Issue with action + repeated core.Reference detected_issue = 40 + [(.google.fhir.proto.valid_reference_type) = "DetectedIssue"]; + + // A list of events of interest in the lifecycle + repeated core.Reference event_history = 41 + [(.google.fhir.proto.valid_reference_type) = "Provenance"]; } -// Auto-generated from StructureDefinition for USCorePulseOximetryProfile. -// FHIR Oxygen Saturation Profile. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry -message USCorePulseOximetryProfile { +// Auto-generated from StructureDefinition for USCoreOrganizationProfile. +// A grouping of people or organizations with a common purpose. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization +message USCoreOrganizationProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/oxygensat"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/vitalsigns"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Observation"; + "http://hl7.org/fhir/StructureDefinition/Organization"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "dataAbsentReason.empty() or value.empty()"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization"; option (.google.fhir.proto.fhir_path_message_constraint) = - "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())"; - option (.google.fhir.proto.search_parameter) = { - name: "amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "Observation.basedOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "Observation.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code" - type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-concept" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-date" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-quantity" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-string" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-code" - type: TOKEN - expression: "Observation.code | Observation.component.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-concept" - type: COMPOSITE - expression: "Observation | Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-quantity" - type: COMPOSITE - expression: "Observation | Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-data-absent-reason" - type: TOKEN - expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-value-concept" - type: TOKEN - expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-code" - type: TOKEN - expression: "Observation.component.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-concept" - type: COMPOSITE - expression: "Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-quantity" - type: COMPOSITE - expression: "Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-data-absent-reason" - type: TOKEN - expression: "Observation.component.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-value-concept" - type: TOKEN - expression: "(Observation.component.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-value-quantity" - type: QUANTITY - expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "data-absent-reason" - type: TOKEN - expression: "Observation.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "derived-from" - type: REFERENCE - expression: "Observation.derivedFrom" - }; - option (.google.fhir.proto.search_parameter) = { - name: "device" - type: REFERENCE - expression: "Observation.device" - }; - option (.google.fhir.proto.search_parameter) = { - name: "dna-variant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "encounter" - type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" - }; - option (.google.fhir.proto.search_parameter) = { - name: "focus" - type: REFERENCE - expression: "Observation.focus" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-dnavariant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-identifier" - type: TOKEN - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "has-member" - type: REFERENCE - expression: "Observation.hasMember" - }; + "(identifier.count() + name.count()) > 0"; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "active" type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + expression: "Organization.active" }; option (.google.fhir.proto.search_parameter) = { - name: "method" - type: TOKEN - expression: "Observation.method" + name: "address" + type: STRING + expression: "Organization.address" }; option (.google.fhir.proto.search_parameter) = { - name: "part-of" - type: REFERENCE - expression: "Observation.partOf" + name: "address-city" + type: STRING + expression: "Organization.address.city" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" - type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + name: "address-country" + type: STRING + expression: "Organization.address.country" }; option (.google.fhir.proto.search_parameter) = { - name: "performer" - type: REFERENCE - expression: "Observation.performer" + name: "address-postalcode" + type: STRING + expression: "Organization.address.postalCode" }; option (.google.fhir.proto.search_parameter) = { - name: "specimen" - type: REFERENCE - expression: "Observation.specimen" + name: "address-state" + type: STRING + expression: "Organization.address.state" }; option (.google.fhir.proto.search_parameter) = { - name: "status" + name: "address-use" type: TOKEN - expression: "Observation.status" + expression: "Organization.address.use" }; option (.google.fhir.proto.search_parameter) = { - name: "subject" + name: "endpoint" type: REFERENCE - expression: "Observation.subject" + expression: "Organization.endpoint" }; option (.google.fhir.proto.search_parameter) = { - name: "value-concept" + name: "identifier" type: TOKEN - expression: "(Observation.value as CodeableConcept)" + expression: "Organization.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "value-date" - type: DATE - expression: "(Observation.value as dateTime) | (Observation.value as Period)" + name: "name" + type: STRING + expression: "Organization.name | Organization.alias" }; option (.google.fhir.proto.search_parameter) = { - name: "value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" + name: "partof" + type: REFERENCE + expression: "Organization.partOf" }; option (.google.fhir.proto.search_parameter) = { - name: "value-string" + name: "phonetic" type: STRING - expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" + expression: "Organization.name" + }; + option (.google.fhir.proto.search_parameter) = { + name: "type" + type: TOKEN + expression: "Organization.type" }; // Logical id of this artifact @@ -4373,7 +4714,7 @@ message USCorePulseOximetryProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Observation.contained + // Organization.contained reserved 7; // Additional content defined by implementations @@ -4382,216 +4723,40 @@ message USCorePulseOximetryProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business Identifier for observation + // Identifies this organization across multiple systems repeated core.Identifier identifier = 10; - // Fulfills plan, proposal or order - repeated core.Reference based_on = 11 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "DeviceRequest", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest" - ]; - - // Part of referenced event - repeated core.Reference part_of = 12 [ - (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", - (.google.fhir.proto.valid_reference_type) = "MedicationDispense", - (.google.fhir.proto.valid_reference_type) = "MedicationStatement", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Immunization", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy" - ]; - - // registered | preliminary | final | amended + - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/observation-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.ObservationStatusCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - StatusCode status = 13 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Classification of type of observation - repeated core.CodeableConcept category = 14 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Oxygen Saturation by Pulse Oximetry - message CodeableConceptForCode { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Code defined by a terminology system - repeated core.Coding coding = 3; - - // Plain text representation of the concept - core.String text = 4; - - core.CodingWithFixedCode oxygen_sat_code = 5 [ - (.google.fhir.proto.fhir_inlined_coding_system) = "http://loinc.org", - (.google.fhir.proto.fhir_inlined_coding_code) = "2708-6", - json_name = "OxygenSatCode" - ]; - - core.CodingWithFixedCode pulse_ox = 6 [ - (.google.fhir.proto.fhir_inlined_coding_system) = "http://loinc.org", - (.google.fhir.proto.fhir_inlined_coding_code) = "59408-5", - json_name = "PulseOx" - ]; - } - CodeableConceptForCode code = 15 + // Whether the organization's record is still in active use + core.Boolean active = 11 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who and/or what the observation is about - core.Reference subject = 16 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; - - // What the observation is about, when it is not about the subject of record - repeated core.Reference focus = 17 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; - - // Healthcare event during which this observation is made - core.Reference encounter = 18 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - - // Often just a dateTime for Vital Signs - message EffectiveX { - option (.google.fhir.proto.fhir_path_message_constraint) = - "($this as dateTime).toString().length() >= 8"; - option (.google.fhir.proto.is_choice_type) = true; + // Kind of organization + repeated core.CodeableConcept type = 12; - oneof choice { - core.DateTime date_time = 1; - core.Period period = 2; - } - } - EffectiveX effective = 19 + // Name used for the organization + core.String name = 13 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Date/Time this version was made available - core.Instant issued = 20; - - // Who is responsible for the observation - repeated core.Reference performer = 21 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; - - // Vital Signs value are recorded using the Quantity data type. For supporting - // observations such as Cuff size could use other datatypes such as - // CodeableConcept. - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Quantity quantity = 1; - } - } - ValueX value = 22; - - // Why the result is missing - core.CodeableConcept data_absent_reason = 23; - - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 24; - - // Comments about the observation - repeated core.Annotation note = 25; - - // Observed body part - core.CodeableConcept body_site = 26; - - // How it was done - core.CodeableConcept method = 27; - - // Specimen used for this observation - core.Reference specimen = 28 - [(.google.fhir.proto.valid_reference_type) = "Specimen"]; - - // (Measurement) Device - core.Reference device = 29 [ - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "DeviceMetric" - ]; - - // Provides guide for interpretation - message ReferenceRange { - option (.google.fhir.proto.fhir_path_message_constraint) = - "low.exists() or high.exists() or text.exists()"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // Low Range, if relevant - core.SimpleQuantity low = 4; - - // High Range, if relevant - core.SimpleQuantity high = 5; - - // Reference range qualifier - core.CodeableConcept type = 6; - - // Reference range population - repeated core.CodeableConcept applies_to = 7; - - // Applicable age range, if relevant - core.Range age = 8; - - // Text based reference range in an observation - core.String text = 9; - } - repeated ReferenceRange reference_range = 30; - - // Used when reporting vital signs panel components - repeated core.Reference has_member = 31 [ - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; + // A list of alternate names that the organization is known as, or was known + // as in the past + repeated core.String alias = 14; - // Related measurements the observation is made from - repeated core.Reference derived_from = 32 [ - (.google.fhir.proto.valid_reference_type) = "DocumentReference", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy", - (.google.fhir.proto.valid_reference_type) = "Media", - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; + // A contact detail for the organization + repeated core.ContactPoint telecom = 15 + [(.google.fhir.proto.fhir_path_constraint) = + "where(use = 'home').empty()"]; - // Used when reporting systolic and diastolic blood pressure. - message Component { - option (.google.fhir.proto.fhir_path_message_constraint) = - "value.exists() or dataAbsentReason.exists()"; + // An address for the organization + repeated core.Address address = 16 + [(.google.fhir.proto.fhir_path_constraint) = + "where(use = 'home').empty()"]; + + // The organization of which this organization forms a part + core.Reference part_of = 17 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + // Contact for the organization for a certain purpose + message Contact { // Unique id for inter-element referencing core.String id = 1; @@ -4601,127 +4766,162 @@ message USCorePulseOximetryProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Type of component observation (code / type) - core.CodeableConcept code = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Vital Sign Value recorded with UCUM - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Quantity quantity = 1; - core.CodeableConcept codeable_concept = 2; - core.String string_value = 3 [json_name = "string"]; - core.Boolean boolean = 4; - core.Integer integer = 5; - core.Range range = 6; - core.Ratio ratio = 7; - core.SampledData sampled_data = 8; - core.Time time = 9; - core.DateTime date_time = 10; - core.Period period = 11; - } - } - ValueX value = 5; + // The type of contact + core.CodeableConcept purpose = 4; - // Why the component result is missing - core.CodeableConcept data_absent_reason = 6; + // A name associated with the contact + core.HumanName name = 5; - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 7; + // Contact details (telephone, email, etc.) for a contact + repeated core.ContactPoint telecom = 6; - // Provides guide for interpretation of component result - repeated ReferenceRange reference_range = 8; + // Visiting or postal addresses for the contact + core.Address address = 7; } - repeated Component component = 33; + repeated Contact contact = 18; - // field 34 reserved for Observation.category:VSCat which uses an unsupported - // slicing on CodeableConcept - reserved 34; + // Technical endpoints providing access to services operated for the + // organization + repeated core.Reference endpoint = 19 + [(.google.fhir.proto.valid_reference_type) = "Endpoint"]; - // field 35 reserved for Observation.component:FlowRate which uses an - // unsupported slicing on BackboneElement - reserved 35; + // field 20 reserved for Organization.identifier:NPI which uses an unsupported + // slicing on Identifier + reserved 20; - // field 36 reserved for Observation.component:Concentration which uses an - // unsupported slicing on BackboneElement - reserved 36; + // field 21 reserved for Organization.identifier:CLIA which uses an + // unsupported slicing on Identifier + reserved 21; } -// Auto-generated from StructureDefinition for USCoreImplantableDeviceProfile. -// Item used in healthcare. -// See -// http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device -message USCoreImplantableDeviceProfile { +// Auto-generated from StructureDefinition for USCorePatientProfile. +// Information about an individual or animal receiving health care services. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient +message USCorePatientProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Device"; + "http://hl7.org/fhir/StructureDefinition/Patient"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "udiCarrier.empty() or (udiCarrier.carrierAIDC.exists() or udiCarrier.carrierHRF.exists())"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "udiCarrier.empty() or (manufactureDate.exists() or expirationDate.exists() or lotNumber.exists() or serialNumber.exists() or distinctIdentifier.exists())"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"; option (.google.fhir.proto.search_parameter) = { - name: "device-name" - type: STRING - expression: "Device.deviceName.name | Device.type.coding.display | Device.type.text" + name: "Example Search Parameter on an extension" + type: REFERENCE + expression: "DocumentReference.extension('http://example.org/fhir/StructureDefinition/participation-agreement')" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "active" type: TOKEN - expression: "Device.identifier" + expression: "Patient.active" }; option (.google.fhir.proto.search_parameter) = { - name: "location" - type: REFERENCE - expression: "Device.location" + name: "address" + type: STRING + expression: "Patient.address | Person.address | Practitioner.address | RelatedPerson.address" }; option (.google.fhir.proto.search_parameter) = { - name: "manufacturer" + name: "address-city" type: STRING - expression: "Device.manufacturer" + expression: "Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city" }; option (.google.fhir.proto.search_parameter) = { - name: "model" + name: "address-country" type: STRING - expression: "Device.modelNumber" + expression: "Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country" }; option (.google.fhir.proto.search_parameter) = { - name: "organization" - type: REFERENCE - expression: "Device.owner" + name: "address-postalcode" + type: STRING + expression: "Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" + name: "address-state" + type: STRING + expression: "Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state" + }; + option (.google.fhir.proto.search_parameter) = { + name: "address-use" + type: TOKEN + expression: "Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use" + }; + option (.google.fhir.proto.search_parameter) = { + name: "birthdate" + type: DATE + expression: "Patient.birthDate | Person.birthDate | RelatedPerson.birthDate" + }; + option (.google.fhir.proto.search_parameter) = { + name: "death-date" + type: DATE + expression: "(Patient.deceased as dateTime)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "deceased" + type: TOKEN + expression: "Patient.deceased.exists() and Patient.deceased != false" + }; + option (.google.fhir.proto.search_parameter) = { + name: "email" + type: TOKEN + expression: "Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "family" + type: STRING + expression: "Patient.name.family | Practitioner.name.family" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gender" + type: TOKEN + expression: "Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender" + }; + option (.google.fhir.proto.search_parameter) = { + name: "general-practitioner" type: REFERENCE - expression: "Device.patient" + expression: "Patient.generalPractitioner" }; option (.google.fhir.proto.search_parameter) = { - name: "status" + name: "given" + type: STRING + expression: "Patient.name.given | Practitioner.name.given" + }; + option (.google.fhir.proto.search_parameter) = { + name: "identifier" type: TOKEN - expression: "Device.status" + expression: "Patient.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "type" + name: "language" type: TOKEN - expression: "Device.type" + expression: "Patient.communication.language" }; option (.google.fhir.proto.search_parameter) = { - name: "udi-carrier" + name: "link" + type: REFERENCE + expression: "Patient.link.other" + }; + option (.google.fhir.proto.search_parameter) = { + name: "name" type: STRING - expression: "Device.udiCarrier.carrierHRF" + expression: "Patient.name" }; option (.google.fhir.proto.search_parameter) = { - name: "udi-di" + name: "organization" + type: REFERENCE + expression: "Patient.managingOrganization" + }; + option (.google.fhir.proto.search_parameter) = { + name: "phone" + type: TOKEN + expression: "Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "phonetic" type: STRING - expression: "Device.udiCarrier.deviceIdentifier" + expression: "Patient.name | Person.name | Practitioner.name | RelatedPerson.name" }; option (.google.fhir.proto.search_parameter) = { - name: "url" - type: URI - expression: "Device.url" + name: "telecom" + type: TOKEN + expression: "Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom" }; // Logical id of this artifact @@ -4737,114 +4937,94 @@ message USCoreImplantableDeviceProfile { core.Code language = 4; // Text summary of the resource, for human interpretation - core.Narrative text = 5; - - // Contained, inline Resources - repeated protobuf.Any contained = 6; - - // Field 7 reserved for strongly-typed ContainedResource for id: - // Device.contained - reserved 7; - - // Additional content defined by implementations - repeated core.Extension extension = 8; - - // Extensions that cannot be ignored - repeated core.Extension modifier_extension = 9; - - // Instance identifier - repeated core.Identifier identifier = 10; - - // The reference to the definition for the device - core.Reference definition = 11 - [(.google.fhir.proto.valid_reference_type) = "DeviceDefinition"]; - - // Unique Device Identifier (UDI) Barcode string - message UdiCarrier { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // Mandatory fixed portion of UDI - core.String device_identifier = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + core.Narrative text = 5; - // UDI Issuing Organization - core.Uri issuer = 5; + // Contained, inline Resources + repeated protobuf.Any contained = 6; - // Regional UDI authority - core.Uri jurisdiction = 6; + // Field 7 reserved for strongly-typed ContainedResource for id: + // Patient.contained + reserved 7; - // UDI Machine Readable Barcode String - core.Base64Binary carrier_aidc = 7 [json_name = "carrierAIDC"]; + // Extension + repeated core.Extension extension = 8; - // UDI Human Readable Barcode String - core.String carrier_hrf = 8 [json_name = "carrierHRF"]; + // Extensions that cannot be ignored + repeated core.Extension modifier_extension = 9; - // barcode | rfid | manual + - message EntryTypeCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/udi-entry-type"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // An identifier for this patient + repeated core.Identifier identifier = 10 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - core.UDIEntryTypeCode.Value value = 1; + // Whether this patient's record is in active use + core.Boolean active = 11; - core.String id = 2; + // A name associated with the patient + repeated core.HumanName name = 12 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.fhir_path_constraint) = + "family.exists() or given.exists()" + ]; - repeated core.Extension extension = 3; - } - EntryTypeCode entry_type = 9; - } - UdiCarrier udi_carrier = 12; + // A contact detail for the individual + repeated core.ContactPoint telecom = 13; - // active | inactive | entered-in-error | unknown - message StatusCode { + // male | female | other | unknown + message GenderCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/device-status"; + "http://hl7.org/fhir/ValueSet/administrative-gender"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.FHIRDeviceStatusCode.Value value = 1; + core.AdministrativeGenderCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 13; + GenderCode gender = 14 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // online | paused | standby | offline | not-ready | transduc-discon | - // hw-discon | off - repeated core.CodeableConcept status_reason = 14; + // The date of birth for the individual + core.Date birth_date = 15; - // The distinct identification string - core.String distinct_identifier = 15; + // Indicates if the individual is deceased or not + message DeceasedX { + option (.google.fhir.proto.is_choice_type) = true; - // Name of device manufacturer - core.String manufacturer = 16; + oneof choice { + core.Boolean boolean = 1; + core.DateTime date_time = 2; + } + } + DeceasedX deceased = 16; - // Date when the device was made - core.DateTime manufacture_date = 17; + // An address for the individual + repeated core.Address address = 17; - // Date and time of expiry of this device (if applicable) - core.DateTime expiration_date = 18; + // Marital (civil) status of a patient + core.CodeableConcept marital_status = 18; - // Lot number of manufacture - core.String lot_number = 19; + // Whether patient is part of a multiple birth + message MultipleBirthX { + option (.google.fhir.proto.is_choice_type) = true; - // Serial number assigned by the manufacturer - core.String serial_number = 20; + oneof choice { + core.Boolean boolean = 1; + core.Integer integer = 2; + } + } + MultipleBirthX multiple_birth = 19; + + // Image of the patient + repeated core.Attachment photo = 20; + + // A contact party (e.g. guardian, partner, friend) for the patient + message Contact { + option (.google.fhir.proto.fhir_path_message_constraint) = + "name.exists() or telecom.exists() or address.exists() or organization.exists()"; - // The name of the device as given by the manufacturer - message DeviceName { // Unique id for inter-element referencing core.String id = 1; @@ -4854,44 +5034,48 @@ message USCoreImplantableDeviceProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // The name of the device - core.String name = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // The kind of relationship + repeated core.CodeableConcept relationship = 4; - // udi-label-name | user-friendly-name | patient-reported-name | - // manufacturer-name | model-name | other - message TypeCode { + // A name associated with the contact person + core.HumanName name = 5; + + // A contact detail for the person + repeated core.ContactPoint telecom = 6; + + // Address for the contact person + core.Address address = 7; + + // male | female | other | unknown + message GenderCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/device-nametype"; + "http://hl7.org/fhir/ValueSet/administrative-gender"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.DeviceNameTypeCode.Value value = 1; + core.AdministrativeGenderCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - TypeCode type = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - } - repeated DeviceName device_name = 21; - - // The model number for the device - core.String model_number = 22; + GenderCode gender = 8; - // The part number of the device - core.String part_number = 23; + // Organization that is associated with the contact + core.Reference organization = 9 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; - // The kind or type of device - core.CodeableConcept type = 24 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // The period during which this contact person or organization is valid to + // be contacted relating to this patient + core.Period period = 10; + } + repeated Contact contact = 21; - // The capabilities supported on a device, the standards to which the device - // conforms for a particular purpose, and used for the communication - message Specialization { + // A language which may be used to communicate with the patient about his or + // her health + message Communication { // Unique id for inter-element referencing core.String id = 1; @@ -4901,41 +5085,29 @@ message USCoreImplantableDeviceProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // The standard that is used to operate and communicate - core.CodeableConcept system_type = 4 + // The language which can be used to communicate with the patient about his + // or her health + core.CodeableConcept language = 4 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // The version of the standard that is used to operate and communicate - core.String version = 5; + // Language preference indicator + core.Boolean preferred = 5; } - repeated Specialization specialization = 25; - - // The actual design of the device or software version running on the device - message Version { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // The type of the device version - core.CodeableConcept type = 4; + repeated Communication communication = 22; - // A single component of the device version - core.Identifier component = 5; + // Patient's nominated primary care provider + repeated core.Reference general_practitioner = 23 [ + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole" + ]; - // The version text - core.String value = 6 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - } - repeated Version version = 26; + // Organization that is the custodian of the patient record + core.Reference managing_organization = 24 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; - // The actual configuration settings of a device as it actually operates, - // e.g., regulation status, time properties - message Property { + // Link to another patient resource that concerns the same actual person + message Link { // Unique id for inter-element referencing core.String id = 1; @@ -4945,112 +5117,235 @@ message USCoreImplantableDeviceProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Code that specifies the property DeviceDefinitionPropetyCode (Extensible) - core.CodeableConcept type = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Property value as a quantity - repeated core.Quantity value_quantity = 5; - - // Property value as a code, e.g., NTP4 (synced to NTP) - repeated core.CodeableConcept value_code = 6; - } - repeated Property property = 27; - - // Patient to whom Device is affixed - core.Reference patient = 28 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; + // The other patient or related person resource that the link refers to + core.Reference other = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; - // Organization responsible for device - core.Reference owner = 29 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + // replaced-by | replaces | refer | seealso + message TypeCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/link-type"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Details for human/organization for support - repeated core.ContactPoint contact = 30; + core.LinkTypeCode.Value value = 1; - // Where the device is found - core.Reference location = 31 - [(.google.fhir.proto.valid_reference_type) = "Location"]; + core.String id = 2; - // Network address to contact device - core.Uri url = 32; + repeated core.Extension extension = 3; + } + TypeCode type = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + } + repeated Link link = 25; - // Device notes and comments - repeated core.Annotation note = 33; + // US Core Race Extension + PatientUSCoreRaceExtension race = 26 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"]; - // Safety Characteristics of Device - repeated core.CodeableConcept safety = 34; + // US Core ethnicity Extension + PatientUSCoreEthnicityExtension ethnicity = 27 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"]; - // The parent device - core.Reference parent = 35 - [(.google.fhir.proto.valid_reference_type) = "Device"]; + // Extension + PatientUSCoreBirthSexExtension.ValueCode birthsex = 28 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"]; } -// Auto-generated from StructureDefinition for USCoreMedicationRequestProfile. -// Ordering of medication for patient or group. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest -message USCoreMedicationRequestProfile { +// Auto-generated from StructureDefinition for +// USCorePediatricBMIforAgeObservationProfile. FHIR Vital Signs Profile. See +// http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age +message USCorePediatricBMIforAgeObservationProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/MedicationRequest"; + "http://hl7.org/fhir/StructureDefinition/vitalsigns"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Observation"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest"; + "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "dataAbsentReason.empty() or value.empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())"; option (.google.fhir.proto.search_parameter) = { - name: "authoredon" - type: DATE - expression: "MedicationRequest.authoredOn" + name: "amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "based-on" + type: REFERENCE + expression: "Observation.basedOn" }; option (.google.fhir.proto.search_parameter) = { name: "category" type: TOKEN - expression: "MedicationRequest.category" + expression: "Observation.category" }; option (.google.fhir.proto.search_parameter) = { name: "code" type: TOKEN expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-concept" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-date" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-quantity" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-string" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code" + type: TOKEN + expression: "Observation.code | Observation.component.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code-value-concept" + type: COMPOSITE + expression: "Observation | Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code-value-quantity" + type: COMPOSITE + expression: "Observation | Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-data-absent-reason" + type: TOKEN + expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-value-concept" + type: TOKEN + expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code" + type: TOKEN + expression: "Observation.component.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code-value-concept" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code-value-quantity" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-data-absent-reason" + type: TOKEN + expression: "Observation.component.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-value-concept" + type: TOKEN + expression: "(Observation.component.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-value-quantity" + type: QUANTITY + expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "data-absent-reason" + type: TOKEN + expression: "Observation.dataAbsentReason" + }; option (.google.fhir.proto.search_parameter) = { name: "date" type: DATE - expression: "MedicationRequest.dosageInstruction.timing.event" + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "encounter" + name: "derived-from" type: REFERENCE - expression: "MedicationRequest.encounter" + expression: "Observation.derivedFrom" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + name: "device" + type: REFERENCE + expression: "Observation.device" }; option (.google.fhir.proto.search_parameter) = { - name: "intended-dispenser" + name: "dna-variant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "encounter" type: REFERENCE - expression: "MedicationRequest.dispenseRequest.performer" + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" }; option (.google.fhir.proto.search_parameter) = { - name: "intended-performer" + name: "focus" type: REFERENCE - expression: "MedicationRequest.performer" + expression: "Observation.focus" }; option (.google.fhir.proto.search_parameter) = { - name: "intended-performertype" + name: "gene-amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-dnavariant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-identifier" type: TOKEN - expression: "MedicationRequest.performerType" + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" }; option (.google.fhir.proto.search_parameter) = { - name: "intent" + name: "has-member" + type: REFERENCE + expression: "Observation.hasMember" + }; + option (.google.fhir.proto.search_parameter) = { + name: "identifier" type: TOKEN - expression: "MedicationRequest.intent" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "medication" + name: "method" + type: TOKEN + expression: "Observation.method" + }; + option (.google.fhir.proto.search_parameter) = { + name: "part-of" type: REFERENCE - expression: "(MedicationAdministration.medication as Reference) | (MedicationDispense.medication as Reference) | (MedicationRequest.medication as Reference) | (MedicationStatement.medication as Reference)" + expression: "Observation.partOf" }; option (.google.fhir.proto.search_parameter) = { name: "patient" @@ -5058,24 +5353,44 @@ message USCoreMedicationRequestProfile { expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "priority" - type: TOKEN - expression: "MedicationRequest.priority" + name: "performer" + type: REFERENCE + expression: "Observation.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "requester" + name: "specimen" type: REFERENCE - expression: "MedicationRequest.requester" + expression: "Observation.specimen" }; option (.google.fhir.proto.search_parameter) = { name: "status" type: TOKEN - expression: "MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationStatement.status" + expression: "Observation.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "MedicationRequest.subject" + expression: "Observation.subject" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-concept" + type: TOKEN + expression: "(Observation.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-date" + type: DATE + expression: "(Observation.value as dateTime) | (Observation.value as Period)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-string" + type: STRING + expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" }; // Logical id of this artifact @@ -5097,202 +5412,147 @@ message USCoreMedicationRequestProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // MedicationRequest.contained - reserved 7; - - // Additional content defined by implementations - repeated core.Extension extension = 8; - - // Extensions that cannot be ignored - repeated core.Extension modifier_extension = 9; - - // External ids for this request - repeated core.Identifier identifier = 10; - - // active | on-hold | cancelled | completed | entered-in-error | stopped | - // draft | unknown - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/medicationrequest-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.MedicationrequestStatusCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - StatusCode status = 11 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Reason for current status - core.CodeableConcept status_reason = 12; + // Observation.contained + reserved 7; - // proposal | plan | order | original-order | reflex-order | filler-order | - // instance-order | option - message IntentCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/medicationrequest-intent"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Additional content defined by implementations + repeated core.Extension extension = 8; - core.MedicationRequestIntentCode.Value value = 1; + // Extensions that cannot be ignored + repeated core.Extension modifier_extension = 9; - core.String id = 2; + // Business Identifier for observation + repeated core.Identifier identifier = 10; - repeated core.Extension extension = 3; - } - IntentCode intent = 13 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Fulfills plan, proposal or order + repeated core.Reference based_on = 11 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "DeviceRequest", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest" + ]; - // Type of medication usage - repeated core.CodeableConcept category = 14; + // Part of referenced event + repeated core.Reference part_of = 12 [ + (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", + (.google.fhir.proto.valid_reference_type) = "MedicationDispense", + (.google.fhir.proto.valid_reference_type) = "MedicationStatement", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Immunization", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy" + ]; - // routine | urgent | asap | stat - message PriorityCode { + // registered | preliminary | final | amended + + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/request-priority"; + "http://hl7.org/fhir/ValueSet/observation-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.RequestPriorityCode.Value value = 1; + core.ObservationStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - PriorityCode priority = 15; - - // True if request is prohibiting action - core.Boolean do_not_perform = 16; - - // Reported rather than primary record - message ReportedX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Boolean boolean = 1; - core.Reference reference = 2 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; - } - } - ReportedX reported = 17; + StatusCode status = 13 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Medication to be taken - message MedicationX { - option (.google.fhir.proto.is_choice_type) = true; + // Classification of type of observation + repeated core.CodeableConcept category = 14 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - oneof choice { - core.CodeableConcept codeable_concept = 1; - core.Reference reference = 2 - [(.google.fhir.proto.valid_reference_type) = "Medication"]; - } - } - MedicationX medication = 18 + // BMI percentile per age and sex for youth 2-20 + core.CodeableConcept code = 15 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who or group medication request is for - core.Reference subject = 19 [ + // Who and/or what the observation is about + core.Reference subject = 16 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, (.google.fhir.proto.valid_reference_type) = "Patient" ]; - // Encounter created as part of encounter/admission/stay - core.Reference encounter = 20 + // What the observation is about, when it is not about the subject of record + repeated core.Reference focus = 17 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; + + // Healthcare event during which this observation is made + core.Reference encounter = 18 [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // Information to support ordering of the medication - repeated core.Reference supporting_information = 21 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; + // Often just a dateTime for Vital Signs + message EffectiveX { + option (.google.fhir.proto.fhir_path_message_constraint) = + "($this as dateTime).toString().length() >= 8"; + option (.google.fhir.proto.is_choice_type) = true; - // When request was initially authored - core.DateTime authored_on = 22 + oneof choice { + core.DateTime date_time = 1; + core.Period period = 2; + } + } + EffectiveX effective = 19 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who/What requested the Request - core.Reference requester = 23 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; + // Date/Time this version was made available + core.Instant issued = 20; - // Intended performer of administration - core.Reference performer = 24 [ + // Who is responsible for the observation + repeated core.Reference performer = 21 [ (.google.fhir.proto.valid_reference_type) = "Practitioner", (.google.fhir.proto.valid_reference_type) = "PractitionerRole", (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "CareTeam", (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "CareTeam" + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" ]; - // Desired kind of performer of the medication administration - core.CodeableConcept performer_type = 25; - - // Person who entered the request - core.Reference recorder = 26 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole" - ]; + // Vital Signs value are recorded using the Quantity data type. For supporting + // observations such as Cuff size could use other datatypes such as + // CodeableConcept. + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; - // Reason or indication for ordering or not ordering the medication - repeated core.CodeableConcept reason_code = 27; + oneof choice { + core.Quantity quantity = 1; + } + } + ValueX value = 22 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Condition or observation that supports why the prescription is being - // written - repeated core.Reference reason_reference = 28 [ - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; + // Why the result is missing + core.CodeableConcept data_absent_reason = 23; - // Instantiates FHIR protocol or definition - repeated core.Canonical instantiates_canonical = 29; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 24; - // Instantiates external protocol or definition - repeated core.Uri instantiates_uri = 30; + // Comments about the observation + repeated core.Annotation note = 25; - // What request fulfills - repeated core.Reference based_on = 31 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" - ]; + // Observed body part + core.CodeableConcept body_site = 26; - // Composite request this is part of - core.Identifier group_identifier = 32; + // How it was done + core.CodeableConcept method = 27; - // Overall pattern of medication administration - core.CodeableConcept course_of_therapy_type = 33; + // Specimen used for this observation + core.Reference specimen = 28 + [(.google.fhir.proto.valid_reference_type) = "Specimen"]; - // Associated insurance coverage - repeated core.Reference insurance = 34 [ - (.google.fhir.proto.valid_reference_type) = "Coverage", - (.google.fhir.proto.valid_reference_type) = "ClaimResponse" + // (Measurement) Device + core.Reference device = 29 [ + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "DeviceMetric" ]; - // Information about the prescription - repeated core.Annotation note = 35; - - // How the medication should be taken - repeated core.Dosage dosage_instruction = 36; + // Provides guide for interpretation + message ReferenceRange { + option (.google.fhir.proto.fhir_path_message_constraint) = + "low.exists() or high.exists() or text.exists()"; - // Medication supply authorization - message DispenseRequest { // Unique id for inter-element referencing core.String id = 1; @@ -5302,48 +5562,48 @@ message USCoreMedicationRequestProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // First fill details - message InitialFill { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Low Range, if relevant + core.SimpleQuantity low = 4; - // First fill quantity - core.SimpleQuantity quantity = 4; + // High Range, if relevant + core.SimpleQuantity high = 5; - // First fill duration - core.Duration duration = 5; - } - InitialFill initial_fill = 4; + // Reference range qualifier + core.CodeableConcept type = 6; - // Minimum period of time between dispenses - core.Duration dispense_interval = 5; + // Reference range population + repeated core.CodeableConcept applies_to = 7; - // Time period supply is authorized for - core.Period validity_period = 6; + // Applicable age range, if relevant + core.Range age = 8; - // Number of refills authorized - core.UnsignedInt number_of_repeats_allowed = 7; + // Text based reference range in an observation + core.String text = 9; + } + repeated ReferenceRange reference_range = 30; - // Amount of medication to supply per dispense - core.SimpleQuantity quantity = 8; + // Used when reporting vital signs panel components + repeated core.Reference has_member = 31 [ + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; - // Number of days supply per dispense - core.Duration expected_supply_duration = 9; + // Related measurements the observation is made from + repeated core.Reference derived_from = 32 [ + (.google.fhir.proto.valid_reference_type) = "DocumentReference", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy", + (.google.fhir.proto.valid_reference_type) = "Media", + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; - // Intended dispenser - core.Reference performer = 10 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - } - DispenseRequest dispense_request = 37; + // Used when reporting systolic and diastolic blood pressure. + message Component { + option (.google.fhir.proto.fhir_path_message_constraint) = + "value.exists() or dataAbsentReason.exists()"; - // Any restrictions on medication substitution - message Substitution { // Unique id for inter-element referencing core.String id = 1; @@ -5353,89 +5613,278 @@ message USCoreMedicationRequestProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Whether substitution is allowed or not - message AllowedX { + // Type of component observation (code / type) + core.CodeableConcept code = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Vital Sign Value recorded with UCUM + message ValueX { option (.google.fhir.proto.is_choice_type) = true; oneof choice { - core.Boolean boolean = 1; + core.Quantity quantity = 1; core.CodeableConcept codeable_concept = 2; + core.String string_value = 3 [json_name = "string"]; + core.Boolean boolean = 4; + core.Integer integer = 5; + core.Range range = 6; + core.Ratio ratio = 7; + core.SampledData sampled_data = 8; + core.Time time = 9; + core.DateTime date_time = 10; + core.Period period = 11; } } - AllowedX allowed = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + ValueX value = 5; - // Why should (not) substitution be made - core.CodeableConcept reason = 5; - } - Substitution substitution = 38; + // Why the component result is missing + core.CodeableConcept data_absent_reason = 6; - // An order/prescription that is being replaced - core.Reference prior_prescription = 39 - [(.google.fhir.proto.valid_reference_type) = "MedicationRequest"]; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 7; - // Clinical Issue with action - repeated core.Reference detected_issue = 40 - [(.google.fhir.proto.valid_reference_type) = "DetectedIssue"]; + // Provides guide for interpretation of component result + repeated ReferenceRange reference_range = 8; + } + repeated Component component = 33; - // A list of events of interest in the lifecycle - repeated core.Reference event_history = 41 - [(.google.fhir.proto.valid_reference_type) = "Provenance"]; + // field 34 reserved for Observation.category:VSCat which uses an unsupported + // slicing on CodeableConcept + reserved 34; } -// Auto-generated from StructureDefinition for USCoreMedicationProfile. -// Definition of a Medication. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication -message USCoreMedicationProfile { +// Auto-generated from StructureDefinition for +// USCorePediatricWeightForHeightObservationProfile. FHIR Vital Signs Profile. +// See +// http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height +message USCorePediatricWeightForHeightObservationProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Medication"; + "http://hl7.org/fhir/StructureDefinition/vitalsigns"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Observation"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication"; + "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "dataAbsentReason.empty() or value.empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())"; + option (.google.fhir.proto.search_parameter) = { + name: "amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "based-on" + type: REFERENCE + expression: "Observation.basedOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "category" + type: TOKEN + expression: "Observation.category" + }; option (.google.fhir.proto.search_parameter) = { name: "code" type: TOKEN expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; option (.google.fhir.proto.search_parameter) = { - name: "expiration-date" + name: "code-value-concept" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-date" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-quantity" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-string" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code" + type: TOKEN + expression: "Observation.code | Observation.component.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code-value-concept" + type: COMPOSITE + expression: "Observation | Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code-value-quantity" + type: COMPOSITE + expression: "Observation | Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-data-absent-reason" + type: TOKEN + expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-value-concept" + type: TOKEN + expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code" + type: TOKEN + expression: "Observation.component.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code-value-concept" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code-value-quantity" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-data-absent-reason" + type: TOKEN + expression: "Observation.component.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-value-concept" + type: TOKEN + expression: "(Observation.component.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-value-quantity" + type: QUANTITY + expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "data-absent-reason" + type: TOKEN + expression: "Observation.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "date" type: DATE - expression: "Medication.batch.expirationDate" + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "derived-from" + type: REFERENCE + expression: "Observation.derivedFrom" + }; + option (.google.fhir.proto.search_parameter) = { + name: "device" + type: REFERENCE + expression: "Observation.device" + }; + option (.google.fhir.proto.search_parameter) = { + name: "dna-variant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "encounter" + type: REFERENCE + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" + }; + option (.google.fhir.proto.search_parameter) = { + name: "focus" + type: REFERENCE + expression: "Observation.focus" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-dnavariant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-identifier" + type: TOKEN + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "has-member" + type: REFERENCE + expression: "Observation.hasMember" + }; + option (.google.fhir.proto.search_parameter) = { + name: "identifier" + type: TOKEN + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + }; + option (.google.fhir.proto.search_parameter) = { + name: "method" + type: TOKEN + expression: "Observation.method" + }; + option (.google.fhir.proto.search_parameter) = { + name: "part-of" + type: REFERENCE + expression: "Observation.partOf" + }; + option (.google.fhir.proto.search_parameter) = { + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "form" - type: TOKEN - expression: "Medication.form" + name: "performer" + type: REFERENCE + expression: "Observation.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "specimen" + type: REFERENCE + expression: "Observation.specimen" + }; + option (.google.fhir.proto.search_parameter) = { + name: "status" type: TOKEN - expression: "Medication.identifier" + expression: "Observation.status" }; option (.google.fhir.proto.search_parameter) = { - name: "ingredient" + name: "subject" type: REFERENCE - expression: "(Medication.ingredient.item as Reference)" + expression: "Observation.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "ingredient-code" + name: "value-concept" type: TOKEN - expression: "(Medication.ingredient.item as CodeableConcept)" + expression: "(Observation.value as CodeableConcept)" }; option (.google.fhir.proto.search_parameter) = { - name: "lot-number" - type: TOKEN - expression: "Medication.batch.lotNumber" + name: "value-date" + type: DATE + expression: "(Observation.value as dateTime) | (Observation.value as Period)" }; option (.google.fhir.proto.search_parameter) = { - name: "manufacturer" - type: REFERENCE - expression: "Medication.manufacturer" + name: "value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" }; option (.google.fhir.proto.search_parameter) = { - name: "status" - type: TOKEN - expression: "Medication.status" + name: "value-string" + type: STRING + expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" }; // Logical id of this artifact @@ -5457,7 +5906,7 @@ message USCoreMedicationProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Medication.contained + // Observation.contained reserved 7; // Additional content defined by implementations @@ -5466,227 +5915,188 @@ message USCoreMedicationProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business identifier for this medication + // Business Identifier for observation repeated core.Identifier identifier = 10; - // Codes that identify this medication - core.CodeableConcept code = 11 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Fulfills plan, proposal or order + repeated core.Reference based_on = 11 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "DeviceRequest", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest" + ]; - // active | inactive | entered-in-error + // Part of referenced event + repeated core.Reference part_of = 12 [ + (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", + (.google.fhir.proto.valid_reference_type) = "MedicationDispense", + (.google.fhir.proto.valid_reference_type) = "MedicationStatement", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Immunization", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy" + ]; + + // registered | preliminary | final | amended + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/medication-status"; + "http://hl7.org/fhir/ValueSet/observation-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.MedicationStatusCode.Value value = 1; + core.ObservationStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 12; - - // Manufacturer of the item - core.Reference manufacturer = 13 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + StatusCode status = 13 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // powder | tablets | capsule + - core.CodeableConcept form = 14; + // Classification of type of observation + repeated core.CodeableConcept category = 14 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Amount of drug in package - core.Ratio amount = 15; + // Weight-for-length per age and gender + core.CodeableConcept code = 15 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Active or inactive ingredient - message Ingredient { - // Unique id for inter-element referencing - core.String id = 1; + // Who and/or what the observation is about + core.Reference subject = 16 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" + ]; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // What the observation is about, when it is not about the subject of record + repeated core.Reference focus = 17 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Healthcare event during which this observation is made + core.Reference encounter = 18 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // The actual ingredient or content - message ItemX { - option (.google.fhir.proto.is_choice_type) = true; + // Often just a dateTime for Vital Signs + message EffectiveX { + option (.google.fhir.proto.fhir_path_message_constraint) = + "($this as dateTime).toString().length() >= 8"; + option (.google.fhir.proto.is_choice_type) = true; - oneof choice { - core.CodeableConcept codeable_concept = 1; - core.Reference reference = 2 [ - (.google.fhir.proto.valid_reference_type) = "Substance", - (.google.fhir.proto.valid_reference_type) = "Medication" - ]; - } + oneof choice { + core.DateTime date_time = 1; + core.Period period = 2; } - ItemX item = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Active ingredient indicator - core.Boolean is_active = 5; - - // Quantity of ingredient present - core.Ratio strength = 6; } - repeated Ingredient ingredient = 16; - - // Details about packaged medications - message Batch { - // Unique id for inter-element referencing - core.String id = 1; + EffectiveX effective = 19 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // Date/Time this version was made available + core.Instant issued = 20; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Who is responsible for the observation + repeated core.Reference performer = 21 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "CareTeam", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; - // Identifier assigned to batch - core.String lot_number = 4; + // Vital Signs value are recorded using the Quantity data type. For supporting + // observations such as Cuff size could use other datatypes such as + // CodeableConcept. + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; - // When batch will expire - core.DateTime expiration_date = 5; + oneof choice { + core.Quantity quantity = 1; + } } - Batch batch = 17; -} - -// Auto-generated from StructureDefinition for USCoreGoalProfile. -// Describes the intended objective(s) for a patient, group or organization. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal -message USCoreGoalProfile { - option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Goal"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal"; - option (.google.fhir.proto.search_parameter) = { - name: "achievement-status" - type: TOKEN - expression: "Goal.achievementStatus" - }; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "Goal.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" - }; - option (.google.fhir.proto.search_parameter) = { - name: "lifecycle-status" - type: TOKEN - expression: "Goal.lifecycleStatus" - }; - option (.google.fhir.proto.search_parameter) = { - name: "patient" - type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" - }; - option (.google.fhir.proto.search_parameter) = { - name: "start-date" - type: DATE - expression: "(Goal.start as date)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "subject" - type: REFERENCE - expression: "Goal.subject" - }; - option (.google.fhir.proto.search_parameter) = { - name: "target-date" - type: DATE - expression: "(Goal.target.due as date)" - }; - - // Logical id of this artifact - core.Id id = 1; - - // Metadata about the resource - core.Meta meta = 2; + ValueX value = 22 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // A set of rules under which this content was created - core.Uri implicit_rules = 3; + // Why the result is missing + core.CodeableConcept data_absent_reason = 23; - // Language of the resource content - core.Code language = 4; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 24; - // Text summary of the resource, for human interpretation - core.Narrative text = 5; + // Comments about the observation + repeated core.Annotation note = 25; - // Contained, inline Resources - repeated protobuf.Any contained = 6; + // Observed body part + core.CodeableConcept body_site = 26; - // Field 7 reserved for strongly-typed ContainedResource for id: - // Goal.contained - reserved 7; + // How it was done + core.CodeableConcept method = 27; - // Additional content defined by implementations - repeated core.Extension extension = 8; + // Specimen used for this observation + core.Reference specimen = 28 + [(.google.fhir.proto.valid_reference_type) = "Specimen"]; - // Extensions that cannot be ignored - repeated core.Extension modifier_extension = 9; + // (Measurement) Device + core.Reference device = 29 [ + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "DeviceMetric" + ]; - // External Ids for this goal - repeated core.Identifier identifier = 10; + // Provides guide for interpretation + message ReferenceRange { + option (.google.fhir.proto.fhir_path_message_constraint) = + "low.exists() or high.exists() or text.exists()"; - // proposed | planned | accepted | active | on-hold | completed | cancelled | - // entered-in-error | rejected - message LifecycleStatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/goal-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Unique id for inter-element referencing + core.String id = 1; - core.GoalLifecycleStatusCode.Value value = 1; + // Additional content defined by implementations + repeated core.Extension extension = 2; - core.String id = 2; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - repeated core.Extension extension = 3; - } - LifecycleStatusCode lifecycle_status = 11 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Low Range, if relevant + core.SimpleQuantity low = 4; - // in-progress | improving | worsening | no-change | achieved | sustaining | - // not-achieved | no-progress | not-attainable - core.CodeableConcept achievement_status = 12; + // High Range, if relevant + core.SimpleQuantity high = 5; - // E.g. Treatment, dietary, behavioral, etc. - repeated core.CodeableConcept category = 13; + // Reference range qualifier + core.CodeableConcept type = 6; - // high-priority | medium-priority | low-priority - core.CodeableConcept priority = 14; + // Reference range population + repeated core.CodeableConcept applies_to = 7; - // Code or text describing goal - core.CodeableConcept description = 15 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Applicable age range, if relevant + core.Range age = 8; - // Who this goal is intended for - core.Reference subject = 16 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; + // Text based reference range in an observation + core.String text = 9; + } + repeated ReferenceRange reference_range = 30; - // When goal pursuit begins - message StartX { - option (.google.fhir.proto.is_choice_type) = true; + // Used when reporting vital signs panel components + repeated core.Reference has_member = 31 [ + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; - oneof choice { - core.Date date = 1; - core.CodeableConcept codeable_concept = 2; - } - } - StartX start = 17; + // Related measurements the observation is made from + repeated core.Reference derived_from = 32 [ + (.google.fhir.proto.valid_reference_type) = "DocumentReference", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy", + (.google.fhir.proto.valid_reference_type) = "Media", + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; - // Target outcome for the goal - message Target { + // Used when reporting systolic and diastolic blood pressure. + message Component { option (.google.fhir.proto.fhir_path_message_constraint) = - "(detail.exists() and measure.exists()) or detail.exists().not()"; + "value.exists() or dataAbsentReason.exists()"; // Unique id for inter-element referencing core.String id = 1; @@ -5697,158 +6107,243 @@ message USCoreGoalProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // The parameter whose value is being tracked - core.CodeableConcept measure = 4; + // Type of component observation (code / type) + core.CodeableConcept code = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // The target value to be achieved - message DetailX { + // Vital Sign Value recorded with UCUM + message ValueX { option (.google.fhir.proto.is_choice_type) = true; oneof choice { core.Quantity quantity = 1; - core.Range range = 2; - core.CodeableConcept codeable_concept = 3; - core.String string_value = 4 [json_name = "string"]; - core.Boolean boolean = 5; - core.Integer integer = 6; + core.CodeableConcept codeable_concept = 2; + core.String string_value = 3 [json_name = "string"]; + core.Boolean boolean = 4; + core.Integer integer = 5; + core.Range range = 6; core.Ratio ratio = 7; + core.SampledData sampled_data = 8; + core.Time time = 9; + core.DateTime date_time = 10; + core.Period period = 11; } } - DetailX detail = 5; + ValueX value = 5; - // Reach goal on or before - message DueX { - option (.google.fhir.proto.is_choice_type) = true; + // Why the component result is missing + core.CodeableConcept data_absent_reason = 6; - oneof choice { - core.Date date = 1; - } - } - DueX due = 6; - } - repeated Target target = 18; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 7; - // When goal status took effect - core.Date status_date = 19; + // Provides guide for interpretation of component result + repeated ReferenceRange reference_range = 8; + } + repeated Component component = 33; - // Reason for current status - core.String status_reason = 20; + // field 34 reserved for Observation.category:VSCat which uses an unsupported + // slicing on CodeableConcept + reserved 34; +} - // Who's responsible for creating Goal? - core.Reference expressed_by = 21 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; +// Auto-generated from StructureDefinition for USCorePractitionerProfile. +// A person with a formal responsibility in the provisioning of healthcare or +// related services. See +// http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner +message USCorePractitionerProfile { + option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Practitioner"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"; + option (.google.fhir.proto.search_parameter) = { + name: "active" + type: TOKEN + expression: "Practitioner.active" + }; + option (.google.fhir.proto.search_parameter) = { + name: "address" + type: STRING + expression: "Patient.address | Person.address | Practitioner.address | RelatedPerson.address" + }; + option (.google.fhir.proto.search_parameter) = { + name: "address-city" + type: STRING + expression: "Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city" + }; + option (.google.fhir.proto.search_parameter) = { + name: "address-country" + type: STRING + expression: "Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country" + }; + option (.google.fhir.proto.search_parameter) = { + name: "address-postalcode" + type: STRING + expression: "Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode" + }; + option (.google.fhir.proto.search_parameter) = { + name: "address-state" + type: STRING + expression: "Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state" + }; + option (.google.fhir.proto.search_parameter) = { + name: "address-use" + type: TOKEN + expression: "Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use" + }; + option (.google.fhir.proto.search_parameter) = { + name: "communication" + type: TOKEN + expression: "Practitioner.communication" + }; + option (.google.fhir.proto.search_parameter) = { + name: "email" + type: TOKEN + expression: "Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "family" + type: STRING + expression: "Patient.name.family | Practitioner.name.family" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gender" + type: TOKEN + expression: "Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender" + }; + option (.google.fhir.proto.search_parameter) = { + name: "given" + type: STRING + expression: "Patient.name.given | Practitioner.name.given" + }; + option (.google.fhir.proto.search_parameter) = { + name: "identifier" + type: TOKEN + expression: "Practitioner.identifier" + }; + option (.google.fhir.proto.search_parameter) = { + name: "name" + type: STRING + expression: "Practitioner.name" + }; + option (.google.fhir.proto.search_parameter) = { + name: "phone" + type: TOKEN + expression: "Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "phonetic" + type: STRING + expression: "Patient.name | Person.name | Practitioner.name | RelatedPerson.name" + }; + option (.google.fhir.proto.search_parameter) = { + name: "telecom" + type: TOKEN + expression: "Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom" + }; - // Issues addressed by this goal - repeated core.Reference addresses = 22 [ - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "MedicationStatement", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest", - (.google.fhir.proto.valid_reference_type) = "RiskAssessment" - ]; + // Logical id of this artifact + core.Id id = 1; - // Comments about the goal - repeated core.Annotation note = 23; + // Metadata about the resource + core.Meta meta = 2; - // What result was achieved regarding the goal? - repeated core.CodeableConcept outcome_code = 24; + // A set of rules under which this content was created + core.Uri implicit_rules = 3; - // Observation that resulted from goal - repeated core.Reference outcome_reference = 25 - [(.google.fhir.proto.valid_reference_type) = "Observation"]; -} + // Language of the resource content + core.Code language = 4; -// Auto-generated from StructureDefinition for USCoreRaceExtension. -// US Core Race Extension. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-race -message PatientUSCoreRaceExtension { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"; + // Text summary of the resource, for human interpretation + core.Narrative text = 5; - // Unique id for inter-element referencing - core.String id = 1; + // Contained, inline Resources + repeated protobuf.Any contained = 6; + + // Field 7 reserved for strongly-typed ContainedResource for id: + // Practitioner.contained + reserved 7; // Additional content defined by implementations - repeated core.Extension extension = 2; + repeated core.Extension extension = 8; - // American Indian or Alaska Native|Asian|Black or African American|Native - // Hawaiian or Other Pacific Islander|White - message OmbCategoryCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + // Extensions that cannot be ignored + repeated core.Extension modifier_extension = 9; - core.String id = 1; + // An identifier for the person as this agent + repeated core.Identifier identifier = 10 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - repeated core.Extension extension = 2; + // Whether this practitioner's record is in active use + core.Boolean active = 11; - core.String version = 4; + // The name(s) associated with the practitioner + repeated core.HumanName name = 12 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - message BoundCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/us/core/ValueSet/omb-race-category"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // A contact detail for the practitioner (that apply to all roles) + repeated core.ContactPoint telecom = 13; - OmbRaceCategoriesValueSet.Value value = 1; + // Address(es) of the practitioner that are not role specific (typically home + // address) + repeated core.Address address = 14; - core.String id = 2; + // male | female | other | unknown + message GenderCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/administrative-gender"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - repeated core.Extension extension = 3; - } - BoundCode code = 5; + core.AdministrativeGenderCode.Value value = 1; - core.String display = 6; + core.String id = 2; - core.Boolean user_selected = 7; + repeated core.Extension extension = 3; } - repeated OmbCategoryCoding omb_category = 4; + GenderCode gender = 15; - // Extended race codes - message DetailedCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + // The date on which the practitioner was born + core.Date birth_date = 16; + + // Image of the person + repeated core.Attachment photo = 17; + // Certification, licenses, or training pertaining to the provision of care + message Qualification { + // Unique id for inter-element referencing core.String id = 1; + // Additional content defined by implementations repeated core.Extension extension = 2; - core.String version = 4; - - message BoundCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/us/core/ValueSet/detailed-race"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - DetailedRaceValueSet.Value value = 1; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - core.String id = 2; + // An identifier for this qualification for the practitioner + repeated core.Identifier identifier = 4; - repeated core.Extension extension = 3; - } - BoundCode code = 5; + // Coded representation of the qualification + core.CodeableConcept code = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - core.String display = 6; + // Period during which the qualification is valid + core.Period period = 6; - core.Boolean user_selected = 7; + // Organization that regulates and issues the qualification + core.Reference issuer = 7 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; } - repeated DetailedCoding detailed = 5; + repeated Qualification qualification = 18; - // Race Text - core.String text = 6 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // A language the practitioner can use in patient communication + repeated core.CodeableConcept communication = 19; + + // field 20 reserved for Practitioner.identifier:NPI which uses an unsupported + // slicing on Identifier + reserved 20; } // Auto-generated from StructureDefinition for USCorePractitionerRoleProfile. @@ -6063,69 +6558,64 @@ message USCorePractitionerRoleProfile { [(.google.fhir.proto.valid_reference_type) = "Endpoint"]; } -// Auto-generated from StructureDefinition for USCoreAllergyIntolerance. -// Allergy or Intolerance (generally: Risk of adverse reaction to a substance). -// See -// http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance -message USCoreAllergyIntolerance { +// Auto-generated from StructureDefinition for USCoreProcedureProfile. +// An action that is being or was performed on a patient. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure +message USCoreProcedureProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"; + "http://hl7.org/fhir/StructureDefinition/Procedure"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure"; option (.google.fhir.proto.search_parameter) = { - name: "asserter" + name: "based-on" type: REFERENCE - expression: "AllergyIntolerance.asserter" + expression: "Procedure.basedOn" }; option (.google.fhir.proto.search_parameter) = { name: "category" type: TOKEN - expression: "AllergyIntolerance.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "clinical-status" - type: TOKEN - expression: "AllergyIntolerance.clinicalStatus" + expression: "Procedure.category" }; option (.google.fhir.proto.search_parameter) = { name: "code" type: TOKEN expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; - option (.google.fhir.proto.search_parameter) = { - name: "criticality" - type: TOKEN - expression: "AllergyIntolerance.criticality" - }; option (.google.fhir.proto.search_parameter) = { name: "date" type: DATE expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; + option (.google.fhir.proto.search_parameter) = { + name: "encounter" + type: REFERENCE + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" + }; option (.google.fhir.proto.search_parameter) = { name: "identifier" type: TOKEN expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "last-date" - type: DATE - expression: "AllergyIntolerance.lastOccurrence" + name: "instantiates-canonical" + type: REFERENCE + expression: "Procedure.instantiatesCanonical" }; option (.google.fhir.proto.search_parameter) = { - name: "manifestation" - type: TOKEN - expression: "AllergyIntolerance.reaction.manifestation" + name: "instantiates-uri" + type: URI + expression: "Procedure.instantiatesUri" }; option (.google.fhir.proto.search_parameter) = { - name: "onset" - type: DATE - expression: "AllergyIntolerance.reaction.onset" + name: "location" + type: REFERENCE + expression: "Procedure.location" + }; + option (.google.fhir.proto.search_parameter) = { + name: "part-of" + type: REFERENCE + expression: "Procedure.partOf" }; option (.google.fhir.proto.search_parameter) = { name: "patient" @@ -6133,29 +6623,29 @@ message USCoreAllergyIntolerance { expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "recorder" + name: "performer" type: REFERENCE - expression: "AllergyIntolerance.recorder" + expression: "Procedure.performer.actor" }; option (.google.fhir.proto.search_parameter) = { - name: "route" + name: "reason-code" type: TOKEN - expression: "AllergyIntolerance.reaction.exposureRoute" + expression: "Procedure.reasonCode" }; option (.google.fhir.proto.search_parameter) = { - name: "severity" - type: TOKEN - expression: "AllergyIntolerance.reaction.severity" + name: "reason-reference" + type: REFERENCE + expression: "Procedure.reasonReference" }; option (.google.fhir.proto.search_parameter) = { - name: "type" + name: "status" type: TOKEN - expression: "AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type" + expression: "Procedure.status" }; option (.google.fhir.proto.search_parameter) = { - name: "verification-status" - type: TOKEN - expression: "AllergyIntolerance.verificationStatus" + name: "subject" + type: REFERENCE + expression: "Procedure.subject" }; // Logical id of this artifact @@ -6177,7 +6667,7 @@ message USCoreAllergyIntolerance { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // AllergyIntolerance.contained + // Procedure.contained reserved 7; // Additional content defined by implementations @@ -6186,118 +6676,96 @@ message USCoreAllergyIntolerance { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // External ids for this item + // External Identifiers for this procedure repeated core.Identifier identifier = 10; - // active | inactive | resolved - core.CodeableConcept clinical_status = 11; - - // unconfirmed | confirmed | refuted | entered-in-error - core.CodeableConcept verification_status = 12; - - // allergy | intolerance - Underlying mechanism (if known) - message TypeCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/allergy-intolerance-type"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.AllergyIntoleranceTypeCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - TypeCode type = 13; - - // food | medication | environment | biologic - message CategoryCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/allergy-intolerance-category"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Instantiates FHIR protocol or definition + repeated core.Canonical instantiates_canonical = 11; - core.AllergyIntoleranceCategoryCode.Value value = 1; + // Instantiates external protocol or definition + repeated core.Uri instantiates_uri = 12; - core.String id = 2; + // A request for this procedure + repeated core.Reference based_on = 13 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest" + ]; - repeated core.Extension extension = 3; - } - repeated CategoryCode category = 14; + // Part of referenced event + repeated core.Reference part_of = 14 [ + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "MedicationAdministration" + ]; - // low | high | unable-to-assess - message CriticalityCode { + // preparation | in-progress | not-done | on-hold | stopped | completed | + // entered-in-error | unknown + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality"; + "http://hl7.org/fhir/ValueSet/event-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.AllergyIntoleranceCriticalityCode.Value value = 1; + core.EventStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - CriticalityCode criticality = 15; + StatusCode status = 15 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Code that identifies the allergy or intolerance - core.CodeableConcept code = 16 + // Reason for current status + core.CodeableConcept status_reason = 16; + + // Classification of the procedure + core.CodeableConcept category = 17; + + // Procedure codes from SNOMED CT, CPT, or HCPCS II + core.CodeableConcept code = 18 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who the sensitivity is for - core.Reference patient = 17 [ + // Who the procedure was performed on + core.Reference subject = 19 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, (.google.fhir.proto.valid_reference_type) = "Patient" ]; - // Encounter when the allergy or intolerance was asserted - core.Reference encounter = 18 + // Encounter created as part of + core.Reference encounter = 20 [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // When allergy or intolerance was identified - message OnsetX { + // When the procedure was performed + message PerformedX { option (.google.fhir.proto.is_choice_type) = true; oneof choice { core.DateTime date_time = 1; - core.Age age = 2; - core.Period period = 3; - core.Range range = 4; - core.String string_value = 5 [json_name = "string"]; + core.Period period = 2; } } - OnsetX onset = 19; - - // Date first version of the resource instance was recorded - core.DateTime recorded_date = 20; + PerformedX performed = 21 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who recorded the sensitivity - core.Reference recorder = 21 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + // Who recorded the procedure + core.Reference recorder = 22 [ (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole" ]; - // Source of the information about the allergy - core.Reference asserter = 22 [ + // Person who asserts this procedure + core.Reference asserter = 23 [ (.google.fhir.proto.valid_reference_type) = "Patient", (.google.fhir.proto.valid_reference_type) = "RelatedPerson", (.google.fhir.proto.valid_reference_type) = "Practitioner", (.google.fhir.proto.valid_reference_type) = "PractitionerRole" ]; - // Date(/time) of last known occurrence of a reaction - core.DateTime last_occurrence = 23; - - // Additional text not captured in other fields - repeated core.Annotation note = 24; - - // Adverse Reaction Events linked to exposure to substance - message Reaction { + // The people who performed the procedure + message Performer { // Unique id for inter-element referencing core.String id = 1; @@ -6307,154 +6775,159 @@ message USCoreAllergyIntolerance { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Specific substance or pharmaceutical product considered to be responsible - // for event - core.CodeableConcept substance = 4; + // Type of performance + core.CodeableConcept function = 4; - // Clinical symptoms/signs associated with the Event - repeated core.CodeableConcept manifestation = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // The reference to the practitioner + core.Reference actor = 5 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "Device" + ]; - // Description of the event as a whole - core.String description = 6; + // Organization the device or practitioner was acting for + core.Reference on_behalf_of = 6 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + } + repeated Performer performer = 24; - // Date(/time) when manifestations showed - core.DateTime onset = 7; + // Where the procedure happened + core.Reference location = 25 + [(.google.fhir.proto.valid_reference_type) = "Location"]; - // mild | moderate | severe (of event as a whole) - message SeverityCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/reaction-event-severity"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Coded reason procedure performed + repeated core.CodeableConcept reason_code = 26; - core.AllergyIntoleranceSeverityCode.Value value = 1; + // The justification that the procedure was performed + repeated core.Reference reason_reference = 27 [ + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", + (.google.fhir.proto.valid_reference_type) = "DocumentReference" + ]; - core.String id = 2; + // Target body sites + repeated core.CodeableConcept body_site = 28; - repeated core.Extension extension = 3; - } - SeverityCode severity = 8; + // The result of procedure + core.CodeableConcept outcome = 29; - // How the subject was exposed to the substance - core.CodeableConcept exposure_route = 9; + // Any report resulting from the procedure + repeated core.Reference report = 30 [ + (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", + (.google.fhir.proto.valid_reference_type) = "DocumentReference", + (.google.fhir.proto.valid_reference_type) = "Composition" + ]; - // Text about event not captured in other fields - repeated core.Annotation note = 10; + // Complication following the procedure + repeated core.CodeableConcept complication = 31; + + // A condition that is a result of the procedure + repeated core.Reference complication_detail = 32 + [(.google.fhir.proto.valid_reference_type) = "Condition"]; + + // Instructions for follow up + repeated core.CodeableConcept follow_up = 33; + + // Additional information about the procedure + repeated core.Annotation note = 34; + + // Manipulated, implanted, or removed device + message FocalDevice { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // Kind of change to device + core.CodeableConcept action = 4; + + // Device that was changed + core.Reference manipulated = 5 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Device" + ]; } - repeated Reaction reaction = 25; + repeated FocalDevice focal_device = 35; + + // Items used during procedure + repeated core.Reference used_reference = 36 [ + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "Medication", + (.google.fhir.proto.valid_reference_type) = "Substance" + ]; + + // Coded items used during the procedure + repeated core.CodeableConcept used_code = 37; } -// Auto-generated from StructureDefinition for USCoreCarePlanProfile. -// Healthcare plan for patient or group. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan -message USCoreCarePlanProfile { +// Auto-generated from StructureDefinition for USCoreProvenance. +// US Core Provenance. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance +message USCoreProvenance { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CarePlan"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan"; - option (.google.fhir.proto.search_parameter) = { - name: "activity-code" - type: TOKEN - expression: "CarePlan.activity.detail.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "activity-date" - type: DATE - expression: "CarePlan.activity.detail.scheduled" - }; - option (.google.fhir.proto.search_parameter) = { - name: "activity-reference" - type: REFERENCE - expression: "CarePlan.activity.reference" - }; - option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "CarePlan.basedOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "care-team" - type: REFERENCE - expression: "CarePlan.careTeam" - }; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "CarePlan.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "condition" - type: REFERENCE - expression: "CarePlan.addresses" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "encounter" - type: REFERENCE - expression: "CarePlan.encounter" - }; + "http://hl7.org/fhir/StructureDefinition/Provenance"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance"; option (.google.fhir.proto.search_parameter) = { - name: "goal" + name: "agent" type: REFERENCE - expression: "CarePlan.goal" + expression: "Provenance.agent.who" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "agent-role" type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" - }; - option (.google.fhir.proto.search_parameter) = { - name: "instantiates-canonical" - type: REFERENCE - expression: "CarePlan.instantiatesCanonical" - }; - option (.google.fhir.proto.search_parameter) = { - name: "instantiates-uri" - type: URI - expression: "CarePlan.instantiatesUri" + expression: "Provenance.agent.role" }; option (.google.fhir.proto.search_parameter) = { - name: "intent" + name: "agent-type" type: TOKEN - expression: "CarePlan.intent" + expression: "Provenance.agent.type" }; option (.google.fhir.proto.search_parameter) = { - name: "part-of" + name: "entity" type: REFERENCE - expression: "CarePlan.partOf" + expression: "Provenance.entity.what" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" + name: "location" type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + expression: "Provenance.location" }; option (.google.fhir.proto.search_parameter) = { - name: "performer" + name: "patient" type: REFERENCE - expression: "CarePlan.activity.detail.performer" + expression: "Provenance.target.where(resolve() is Patient)" }; option (.google.fhir.proto.search_parameter) = { - name: "replaces" - type: REFERENCE - expression: "CarePlan.replaces" + name: "recorded" + type: DATE + expression: "Provenance.recorded" }; option (.google.fhir.proto.search_parameter) = { - name: "status" + name: "signature-type" type: TOKEN - expression: "CarePlan.status" + expression: "Provenance.signature.type" }; option (.google.fhir.proto.search_parameter) = { - name: "subject" + name: "target" type: REFERENCE - expression: "CarePlan.subject" + expression: "Provenance.target" + }; + option (.google.fhir.proto.search_parameter) = { + name: "when" + type: DATE + expression: "(Provenance.occurred as dateTime)" }; // Logical id of this artifact @@ -6470,14 +6943,13 @@ message USCoreCarePlanProfile { core.Code language = 4; // Text summary of the resource, for human interpretation - core.Narrative text = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + core.Narrative text = 5; // Contained, inline Resources repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // CarePlan.contained + // Provenance.contained reserved 7; // Additional content defined by implementations @@ -6486,431 +6958,363 @@ message USCoreCarePlanProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // External Ids for this plan - repeated core.Identifier identifier = 10; - - // Instantiates FHIR protocol or definition - repeated core.Canonical instantiates_canonical = 11; - - // Instantiates external protocol or definition - repeated core.Uri instantiates_uri = 12; - - // Fulfills CarePlan - repeated core.Reference based_on = 13 - [(.google.fhir.proto.valid_reference_type) = "CarePlan"]; - - // CarePlan replaced by this CarePlan - repeated core.Reference replaces = 14 - [(.google.fhir.proto.valid_reference_type) = "CarePlan"]; - - // Part of referenced CarePlan - repeated core.Reference part_of = 15 - [(.google.fhir.proto.valid_reference_type) = "CarePlan"]; - - // draft | active | on-hold | revoked | completed | entered-in-error | unknown - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/request-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.RequestStatusCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - StatusCode status = 16 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // proposal | plan | order | option - message IntentCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-plan-intent"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.CarePlanIntentValueSet.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - IntentCode intent = 17 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Type of plan - repeated core.CodeableConcept category = 18 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Human-friendly name for the care plan - core.String title = 19; - - // Summary of nature of plan - core.String description = 20; - - // Who the care plan is for - core.Reference subject = 21 [ + // The Resource this Provenance record supports + repeated core.Reference target = 10 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient" - ]; - - // Encounter created as part of - core.Reference encounter = 22 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - - // Time period plan covers - core.Period period = 23; - - // Date record was first recorded - core.DateTime created = 24; - - // Who is the designated responsible party - core.Reference author = 25 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam" - ]; - - // Who provided the content of the care plan - repeated core.Reference contributor = 26 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam" + (.google.fhir.proto.valid_reference_type) = "Resource" ]; - // Who's involved in plan? - repeated core.Reference care_team = 27 - [(.google.fhir.proto.valid_reference_type) = "CareTeam"]; - - // Health issues this plan addresses - repeated core.Reference addresses = 28 - [(.google.fhir.proto.valid_reference_type) = "Condition"]; - - // Information considered as part of plan - repeated core.Reference supporting_info = 29 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; - - // Desired outcome of plan - repeated core.Reference goal = 30 - [(.google.fhir.proto.valid_reference_type) = "Goal"]; - - // Action to occur as part of plan - message Activity { - option (.google.fhir.proto.fhir_path_message_constraint) = - "detail.empty() or reference.empty()"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // Results of the activity - repeated core.CodeableConcept outcome_codeable_concept = 4; - - // Appointment, Encounter, Procedure, etc. - repeated core.Reference outcome_reference = 5 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; - - // Comments about the activity status/progress - repeated core.Annotation progress = 6; - - // Activity details defined in specific resource - core.Reference reference = 7 [ - (.google.fhir.proto.valid_reference_type) = "Appointment", - (.google.fhir.proto.valid_reference_type) = "CommunicationRequest", - (.google.fhir.proto.valid_reference_type) = "DeviceRequest", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "Task", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest", - (.google.fhir.proto.valid_reference_type) = "VisionPrescription", - (.google.fhir.proto.valid_reference_type) = "RequestGroup" - ]; - - // In-line definition of activity - message Detail { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // Appointment | CommunicationRequest | DeviceRequest | MedicationRequest - // | NutritionOrder | Task | ServiceRequest | VisionPrescription - message KindCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-plan-activity-kind"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.CarePlanActivityKindValueSet.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - KindCode kind = 4; - - // Instantiates FHIR protocol or definition - repeated core.Canonical instantiates_canonical = 5; + // When the activity occurred + message OccurredX { + option (.google.fhir.proto.is_choice_type) = true; - // Instantiates external protocol or definition - repeated core.Uri instantiates_uri = 6; + oneof choice { + core.Period period = 1; + core.DateTime date_time = 2; + } + } + OccurredX occurred = 11; - // Detail type of activity - core.CodeableConcept code = 7; + // Timestamp when the activity was recorded / updated + core.Instant recorded = 12 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Why activity should be done or why activity was prohibited - repeated core.CodeableConcept reason_code = 8; + // Policy or plan the activity was defined by + repeated core.Uri policy = 13; - // Why activity is needed - repeated core.Reference reason_reference = 9 [ - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", - (.google.fhir.proto.valid_reference_type) = "DocumentReference" - ]; + // Where the activity occurred, if relevant + core.Reference location = 14 + [(.google.fhir.proto.valid_reference_type) = "Location"]; - // Goals this activity relates to - repeated core.Reference goal = 10 - [(.google.fhir.proto.valid_reference_type) = "Goal"]; + // Reason the activity is occurring + repeated core.CodeableConcept reason = 15; - // not-started | scheduled | in-progress | on-hold | completed | cancelled - // | stopped | unknown | entered-in-error - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Activity that occurred + core.CodeableConcept activity = 16; - core.CarePlanActivityStatusCode.Value value = 1; + // Actor involved + message Agent { + // Unique id for inter-element referencing + core.String id = 1; - core.String id = 2; + // Additional content defined by implementations + repeated core.Extension extension = 2; - repeated core.Extension extension = 3; - } - StatusCode status = 11 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - // Reason for current status - core.CodeableConcept status_reason = 12; + // How the agent participated + core.CodeableConcept type = 4; - // If true, activity is prohibiting action - core.Boolean do_not_perform = 13; + // What the agents role was + repeated core.CodeableConcept role = 5; - // When activity is to occur - message ScheduledX { - option (.google.fhir.proto.is_choice_type) = true; + // Who participated + core.Reference who = 6 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; - oneof choice { - core.Timing timing = 1; - core.Period period = 2; - core.String string_value = 3 [json_name = "string"]; - } - } - ScheduledX scheduled = 14; + // Who the agent is representing + core.Reference on_behalf_of = 7 [ + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.fhir_path_constraint) = + "($this.agent.who.resolve().is Practitioner or Device) implies exists()" + ]; + } + repeated Agent agent = 17 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Where it should happen - core.Reference location = 15 - [(.google.fhir.proto.valid_reference_type) = "Location"]; + // An entity used in this activity + message Entity { + // Unique id for inter-element referencing + core.String id = 1; - // Who will be responsible? - repeated core.Reference performer = 16 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "CareTeam", - (.google.fhir.proto.valid_reference_type) = "HealthcareService", - (.google.fhir.proto.valid_reference_type) = "Device" - ]; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // What is to be administered/supplied - message ProductX { - option (.google.fhir.proto.is_choice_type) = true; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - oneof choice { - core.CodeableConcept codeable_concept = 1; - core.Reference reference = 2 [ - (.google.fhir.proto.valid_reference_type) = "Medication", - (.google.fhir.proto.valid_reference_type) = "Substance" - ]; - } - } - ProductX product = 17; + // derivation | revision | quotation | source | removal + message RoleCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/provenance-entity-role"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // How to consume/day? - core.SimpleQuantity daily_amount = 18; + core.ProvenanceEntityRoleCode.Value value = 1; - // How much to administer/supply/consume - core.SimpleQuantity quantity = 19; + core.String id = 2; - // Extra info describing activity to perform - core.String description = 20; + repeated core.Extension extension = 3; } - Detail detail = 8; + RoleCode role = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Identity of entity + core.Reference what = 5 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Resource" + ]; + + // Entity is attributed to this agent + repeated Agent agent = 6; } - repeated Activity activity = 31; + repeated Entity entity = 18; - // Comments about the plan - repeated core.Annotation note = 32; + // Signature on target + repeated core.Signature signature = 19; - // field 33 reserved for CarePlan.category:AssessPlan which uses an - // unsupported slicing on CodeableConcept - reserved 33; + // field 20 reserved for Provenance.agent:ProvenanceAuthor which uses an + // unsupported slicing on BackboneElement + reserved 20; + + // field 21 reserved for Provenance.agent:ProvenanceTransmitter which uses an + // unsupported slicing on BackboneElement + reserved 21; } -// Auto-generated from StructureDefinition for USCorePatientProfile. -// Information about an individual or animal receiving health care services. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient -message USCorePatientProfile { +// Auto-generated from StructureDefinition for USCorePulseOximetryProfile. +// FHIR Oxygen Saturation Profile. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry +message USCorePulseOximetryProfile { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Patient"; + "http://hl7.org/fhir/StructureDefinition/oxygensat"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/vitalsigns"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Observation"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "dataAbsentReason.empty() or value.empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())"; option (.google.fhir.proto.search_parameter) = { - name: "Example Search Parameter on an extension" + name: "amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "based-on" type: REFERENCE - expression: "DocumentReference.extension('http://example.org/fhir/StructureDefinition/participation-agreement')" + expression: "Observation.basedOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "category" + type: TOKEN + expression: "Observation.category" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code" + type: TOKEN + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-concept" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-date" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-quantity" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-string" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code" + type: TOKEN + expression: "Observation.code | Observation.component.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code-value-concept" + type: COMPOSITE + expression: "Observation | Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-code-value-quantity" + type: COMPOSITE + expression: "Observation | Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-data-absent-reason" + type: TOKEN + expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-value-concept" + type: TOKEN + expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" }; option (.google.fhir.proto.search_parameter) = { - name: "active" + name: "component-code" type: TOKEN - expression: "Patient.active" + expression: "Observation.component.code" }; option (.google.fhir.proto.search_parameter) = { - name: "address" - type: STRING - expression: "Patient.address | Person.address | Practitioner.address | RelatedPerson.address" + name: "component-code-value-concept" + type: COMPOSITE + expression: "Observation.component" }; option (.google.fhir.proto.search_parameter) = { - name: "address-city" - type: STRING - expression: "Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city" + name: "component-code-value-quantity" + type: COMPOSITE + expression: "Observation.component" }; option (.google.fhir.proto.search_parameter) = { - name: "address-country" - type: STRING - expression: "Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country" + name: "component-data-absent-reason" + type: TOKEN + expression: "Observation.component.dataAbsentReason" }; option (.google.fhir.proto.search_parameter) = { - name: "address-postalcode" - type: STRING - expression: "Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode" + name: "component-value-concept" + type: TOKEN + expression: "(Observation.component.value as CodeableConcept)" }; option (.google.fhir.proto.search_parameter) = { - name: "address-state" - type: STRING - expression: "Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state" + name: "component-value-quantity" + type: QUANTITY + expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" }; option (.google.fhir.proto.search_parameter) = { - name: "address-use" + name: "data-absent-reason" type: TOKEN - expression: "Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use" - }; - option (.google.fhir.proto.search_parameter) = { - name: "birthdate" - type: DATE - expression: "Patient.birthDate | Person.birthDate | RelatedPerson.birthDate" + expression: "Observation.dataAbsentReason" }; option (.google.fhir.proto.search_parameter) = { - name: "death-date" + name: "date" type: DATE - expression: "(Patient.deceased as dateTime)" + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "deceased" - type: TOKEN - expression: "Patient.deceased.exists() and Patient.deceased != false" + name: "derived-from" + type: REFERENCE + expression: "Observation.derivedFrom" }; option (.google.fhir.proto.search_parameter) = { - name: "email" - type: TOKEN - expression: "Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')" + name: "device" + type: REFERENCE + expression: "Observation.device" }; option (.google.fhir.proto.search_parameter) = { - name: "family" + name: "dna-variant" type: STRING - expression: "Patient.name.family | Practitioner.name.family" + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" }; option (.google.fhir.proto.search_parameter) = { - name: "gender" - type: TOKEN - expression: "Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender" + name: "encounter" + type: REFERENCE + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" }; option (.google.fhir.proto.search_parameter) = { - name: "general-practitioner" + name: "focus" type: REFERENCE - expression: "Patient.generalPractitioner" + expression: "Observation.focus" }; option (.google.fhir.proto.search_parameter) = { - name: "given" + name: "gene-amino-acid-change" type: STRING - expression: "Patient.name.given | Practitioner.name.given" + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-dnavariant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-identifier" + type: TOKEN + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "has-member" + type: REFERENCE + expression: "Observation.hasMember" }; option (.google.fhir.proto.search_parameter) = { name: "identifier" type: TOKEN - expression: "Patient.identifier" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "language" + name: "method" type: TOKEN - expression: "Patient.communication.language" + expression: "Observation.method" }; option (.google.fhir.proto.search_parameter) = { - name: "link" + name: "part-of" type: REFERENCE - expression: "Patient.link.other" + expression: "Observation.partOf" }; option (.google.fhir.proto.search_parameter) = { - name: "name" - type: STRING - expression: "Patient.name" + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "organization" + name: "performer" type: REFERENCE - expression: "Patient.managingOrganization" + expression: "Observation.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "phone" + name: "specimen" + type: REFERENCE + expression: "Observation.specimen" + }; + option (.google.fhir.proto.search_parameter) = { + name: "status" type: TOKEN - expression: "Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')" + expression: "Observation.status" }; option (.google.fhir.proto.search_parameter) = { - name: "phonetic" - type: STRING - expression: "Patient.name | Person.name | Practitioner.name | RelatedPerson.name" + name: "subject" + type: REFERENCE + expression: "Observation.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "telecom" + name: "value-concept" type: TOKEN - expression: "Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom" + expression: "(Observation.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-date" + type: DATE + expression: "(Observation.value as dateTime) | (Observation.value as Period)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-string" + type: STRING + expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" }; // Logical id of this artifact @@ -6932,328 +7336,280 @@ message USCorePatientProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Patient.contained + // Observation.contained reserved 7; - // Extension + // Additional content defined by implementations repeated core.Extension extension = 8; // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // An identifier for this patient - repeated core.Identifier identifier = 10 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Whether this patient's record is in active use - core.Boolean active = 11; - - // A name associated with the patient - repeated core.HumanName name = 12 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.fhir_path_constraint) = - "family.exists() or given.exists()" - ]; - - // A contact detail for the individual - repeated core.ContactPoint telecom = 13; - - // male | female | other | unknown - message GenderCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/administrative-gender"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.AdministrativeGenderCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - GenderCode gender = 14 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // The date of birth for the individual - core.Date birth_date = 15; - - // Indicates if the individual is deceased or not - message DeceasedX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Boolean boolean = 1; - core.DateTime date_time = 2; - } - } - DeceasedX deceased = 16; - - // An address for the individual - repeated core.Address address = 17; - - // Marital (civil) status of a patient - core.CodeableConcept marital_status = 18; - - // Whether patient is part of a multiple birth - message MultipleBirthX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Boolean boolean = 1; - core.Integer integer = 2; - } - } - MultipleBirthX multiple_birth = 19; - - // Image of the patient - repeated core.Attachment photo = 20; - - // A contact party (e.g. guardian, partner, friend) for the patient - message Contact { - option (.google.fhir.proto.fhir_path_message_constraint) = - "name.exists() or telecom.exists() or address.exists() or organization.exists()"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // The kind of relationship - repeated core.CodeableConcept relationship = 4; - - // A name associated with the contact person - core.HumanName name = 5; - - // A contact detail for the person - repeated core.ContactPoint telecom = 6; - - // Address for the contact person - core.Address address = 7; + // Business Identifier for observation + repeated core.Identifier identifier = 10; - // male | female | other | unknown - message GenderCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/administrative-gender"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Fulfills plan, proposal or order + repeated core.Reference based_on = 11 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "DeviceRequest", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest" + ]; - core.AdministrativeGenderCode.Value value = 1; + // Part of referenced event + repeated core.Reference part_of = 12 [ + (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", + (.google.fhir.proto.valid_reference_type) = "MedicationDispense", + (.google.fhir.proto.valid_reference_type) = "MedicationStatement", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Immunization", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy" + ]; - core.String id = 2; + // registered | preliminary | final | amended + + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/observation-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - repeated core.Extension extension = 3; - } - GenderCode gender = 8; + core.ObservationStatusCode.Value value = 1; - // Organization that is associated with the contact - core.Reference organization = 9 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + core.String id = 2; - // The period during which this contact person or organization is valid to - // be contacted relating to this patient - core.Period period = 10; + repeated core.Extension extension = 3; } - repeated Contact contact = 21; + StatusCode status = 13 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Classification of type of observation + repeated core.CodeableConcept category = 14 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Oxygen Saturation by Pulse Oximetry + message CodeableConceptForCode { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - // A language which may be used to communicate with the patient about his or - // her health - message Communication { // Unique id for inter-element referencing core.String id = 1; // Additional content defined by implementations repeated core.Extension extension = 2; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Code defined by a terminology system + repeated core.Coding coding = 3; - // The language which can be used to communicate with the patient about his - // or her health - core.CodeableConcept language = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Plain text representation of the concept + core.String text = 4; - // Language preference indicator - core.Boolean preferred = 5; + core.CodingWithFixedCode oxygen_sat_code = 5 [ + (.google.fhir.proto.fhir_inlined_coding_system) = "http://loinc.org", + (.google.fhir.proto.fhir_inlined_coding_code) = "2708-6", + json_name = "OxygenSatCode" + ]; + + core.CodingWithFixedCode pulse_ox = 6 [ + (.google.fhir.proto.fhir_inlined_coding_system) = "http://loinc.org", + (.google.fhir.proto.fhir_inlined_coding_code) = "59408-5", + json_name = "PulseOx" + ]; } - repeated Communication communication = 22; + CodeableConceptForCode code = 15 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Patient's nominated primary care provider - repeated core.Reference general_practitioner = 23 [ - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole" + // Who and/or what the observation is about + core.Reference subject = 16 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Patient" ]; - // Organization that is the custodian of the patient record - core.Reference managing_organization = 24 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - - // Link to another patient resource that concerns the same actual person - message Link { - // Unique id for inter-element referencing - core.String id = 1; + // What the observation is about, when it is not about the subject of record + repeated core.Reference focus = 17 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // Healthcare event during which this observation is made + core.Reference encounter = 18 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Often just a dateTime for Vital Signs + message EffectiveX { + option (.google.fhir.proto.fhir_path_message_constraint) = + "($this as dateTime).toString().length() >= 8"; + option (.google.fhir.proto.is_choice_type) = true; - // The other patient or related person resource that the link refers to - core.Reference other = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; + oneof choice { + core.DateTime date_time = 1; + core.Period period = 2; + } + } + EffectiveX effective = 19 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // replaced-by | replaces | refer | seealso - message TypeCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/link-type"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Date/Time this version was made available + core.Instant issued = 20; - core.LinkTypeCode.Value value = 1; + // Who is responsible for the observation + repeated core.Reference performer = 21 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "CareTeam", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; - core.String id = 2; + // Vital Signs value are recorded using the Quantity data type. For supporting + // observations such as Cuff size could use other datatypes such as + // CodeableConcept. + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; - repeated core.Extension extension = 3; + oneof choice { + core.Quantity quantity = 1; } - TypeCode type = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } - repeated Link link = 25; + ValueX value = 22; - // US Core Race Extension - PatientUSCoreRaceExtension race = 26 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"]; + // Why the result is missing + core.CodeableConcept data_absent_reason = 23; - // US Core ethnicity Extension - PatientUSCoreEthnicityExtension ethnicity = 27 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"]; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 24; - // Extension - PatientUSCoreBirthSexExtension.ValueCode birthsex = 28 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"]; -} + // Comments about the observation + repeated core.Annotation note = 25; -// Auto-generated from StructureDefinition for USCoreEthnicityExtension. -// US Core ethnicity Extension. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity -message PatientUSCoreEthnicityExtension { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"; + // Observed body part + core.CodeableConcept body_site = 26; - // Unique id for inter-element referencing - core.String id = 1; + // How it was done + core.CodeableConcept method = 27; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // Specimen used for this observation + core.Reference specimen = 28 + [(.google.fhir.proto.valid_reference_type) = "Specimen"]; - // Hispanic or Latino|Not Hispanic or Latino - message OmbCategoryCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + // (Measurement) Device + core.Reference device = 29 [ + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "DeviceMetric" + ]; + + // Provides guide for interpretation + message ReferenceRange { + option (.google.fhir.proto.fhir_path_message_constraint) = + "low.exists() or high.exists() or text.exists()"; + // Unique id for inter-element referencing core.String id = 1; + // Additional content defined by implementations repeated core.Extension extension = 2; - core.String version = 4; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - message BoundCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/us/core/ValueSet/omb-ethnicity-category"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Low Range, if relevant + core.SimpleQuantity low = 4; - OmbEthnicityCategoriesValueSet.Value value = 1; + // High Range, if relevant + core.SimpleQuantity high = 5; - core.String id = 2; + // Reference range qualifier + core.CodeableConcept type = 6; - repeated core.Extension extension = 3; - } - BoundCode code = 5; + // Reference range population + repeated core.CodeableConcept applies_to = 7; - core.String display = 6; + // Applicable age range, if relevant + core.Range age = 8; - core.Boolean user_selected = 7; + // Text based reference range in an observation + core.String text = 9; } - OmbCategoryCoding omb_category = 4; + repeated ReferenceRange reference_range = 30; + + // Used when reporting vital signs panel components + repeated core.Reference has_member = 31 [ + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; + + // Related measurements the observation is made from + repeated core.Reference derived_from = 32 [ + (.google.fhir.proto.valid_reference_type) = "DocumentReference", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy", + (.google.fhir.proto.valid_reference_type) = "Media", + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; - // Extended ethnicity codes - message DetailedCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + // Used when reporting systolic and diastolic blood pressure. + message Component { + option (.google.fhir.proto.fhir_path_message_constraint) = + "value.exists() or dataAbsentReason.exists()"; + // Unique id for inter-element referencing core.String id = 1; + // Additional content defined by implementations repeated core.Extension extension = 2; - core.String version = 4; - - message BoundCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/us/core/ValueSet/detailed-ethnicity"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - DetailedEthnicityValueSet.Value value = 1; + // Type of component observation (code / type) + core.CodeableConcept code = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - core.String id = 2; + // Vital Sign Value recorded with UCUM + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; - repeated core.Extension extension = 3; + oneof choice { + core.Quantity quantity = 1; + core.CodeableConcept codeable_concept = 2; + core.String string_value = 3 [json_name = "string"]; + core.Boolean boolean = 4; + core.Integer integer = 5; + core.Range range = 6; + core.Ratio ratio = 7; + core.SampledData sampled_data = 8; + core.Time time = 9; + core.DateTime date_time = 10; + core.Period period = 11; + } } - BoundCode code = 5; - - core.String display = 6; + ValueX value = 5; - core.Boolean user_selected = 7; - } - repeated DetailedCoding detailed = 5; + // Why the component result is missing + core.CodeableConcept data_absent_reason = 6; - // ethnicity Text - core.String text = 6 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; -} + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 7; -// Auto-generated from StructureDefinition for USCoreDirectEmailExtension. -// Email is a "direct" email. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct -message UsCoreDirectEmail { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct"; + // Provides guide for interpretation of component result + repeated ReferenceRange reference_range = 8; + } + repeated Component component = 33; - // Unique id for inter-element referencing - core.String id = 1; + // field 34 reserved for Observation.category:VSCat which uses an unsupported + // slicing on CodeableConcept + reserved 34; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // field 35 reserved for Observation.component:FlowRate which uses an + // unsupported slicing on BackboneElement + reserved 35; - // Value of extension - core.Boolean value_boolean = 3; + // field 36 reserved for Observation.component:Concentration which uses an + // unsupported slicing on BackboneElement + reserved 36; } // Auto-generated from StructureDefinition for USCoreSmokingStatusProfile. @@ -7719,369 +8075,98 @@ message USCoreSmokingStatusProfile { core.Time time = 9; core.DateTime date_time = 10; core.Period period = 11; - } - } - ValueX value = 5; - - // Why the component result is missing - core.CodeableConcept data_absent_reason = 6; - - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 7; - - // Provides guide for interpretation of component result - repeated ReferenceRange reference_range = 8; - } - repeated Component component = 33; -} - -// Auto-generated from StructureDefinition for USCoreOrganizationProfile. -// A grouping of people or organizations with a common purpose. -// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization -message USCoreOrganizationProfile { - option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Organization"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "(identifier.count() + name.count()) > 0"; - option (.google.fhir.proto.search_parameter) = { - name: "active" - type: TOKEN - expression: "Organization.active" - }; - option (.google.fhir.proto.search_parameter) = { - name: "address" - type: STRING - expression: "Organization.address" - }; - option (.google.fhir.proto.search_parameter) = { - name: "address-city" - type: STRING - expression: "Organization.address.city" - }; - option (.google.fhir.proto.search_parameter) = { - name: "address-country" - type: STRING - expression: "Organization.address.country" - }; - option (.google.fhir.proto.search_parameter) = { - name: "address-postalcode" - type: STRING - expression: "Organization.address.postalCode" - }; - option (.google.fhir.proto.search_parameter) = { - name: "address-state" - type: STRING - expression: "Organization.address.state" - }; - option (.google.fhir.proto.search_parameter) = { - name: "address-use" - type: TOKEN - expression: "Organization.address.use" - }; - option (.google.fhir.proto.search_parameter) = { - name: "endpoint" - type: REFERENCE - expression: "Organization.endpoint" - }; - option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "Organization.identifier" - }; - option (.google.fhir.proto.search_parameter) = { - name: "name" - type: STRING - expression: "Organization.name | Organization.alias" - }; - option (.google.fhir.proto.search_parameter) = { - name: "partof" - type: REFERENCE - expression: "Organization.partOf" - }; - option (.google.fhir.proto.search_parameter) = { - name: "phonetic" - type: STRING - expression: "Organization.name" - }; - option (.google.fhir.proto.search_parameter) = { - name: "type" - type: TOKEN - expression: "Organization.type" - }; - - // Logical id of this artifact - core.Id id = 1; - - // Metadata about the resource - core.Meta meta = 2; - - // A set of rules under which this content was created - core.Uri implicit_rules = 3; - - // Language of the resource content - core.Code language = 4; - - // Text summary of the resource, for human interpretation - core.Narrative text = 5; - - // Contained, inline Resources - repeated protobuf.Any contained = 6; - - // Field 7 reserved for strongly-typed ContainedResource for id: - // Organization.contained - reserved 7; - - // Additional content defined by implementations - repeated core.Extension extension = 8; - - // Extensions that cannot be ignored - repeated core.Extension modifier_extension = 9; - - // Identifies this organization across multiple systems - repeated core.Identifier identifier = 10; - - // Whether the organization's record is still in active use - core.Boolean active = 11 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Kind of organization - repeated core.CodeableConcept type = 12; - - // Name used for the organization - core.String name = 13 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // A list of alternate names that the organization is known as, or was known - // as in the past - repeated core.String alias = 14; - - // A contact detail for the organization - repeated core.ContactPoint telecom = 15 - [(.google.fhir.proto.fhir_path_constraint) = - "where(use = 'home').empty()"]; - - // An address for the organization - repeated core.Address address = 16 - [(.google.fhir.proto.fhir_path_constraint) = - "where(use = 'home').empty()"]; - - // The organization of which this organization forms a part - core.Reference part_of = 17 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - - // Contact for the organization for a certain purpose - message Contact { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // The type of contact - core.CodeableConcept purpose = 4; + } + } + ValueX value = 5; - // A name associated with the contact - core.HumanName name = 5; + // Why the component result is missing + core.CodeableConcept data_absent_reason = 6; - // Contact details (telephone, email, etc.) for a contact - repeated core.ContactPoint telecom = 6; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 7; - // Visiting or postal addresses for the contact - core.Address address = 7; + // Provides guide for interpretation of component result + repeated ReferenceRange reference_range = 8; } - repeated Contact contact = 18; - - // Technical endpoints providing access to services operated for the - // organization - repeated core.Reference endpoint = 19 - [(.google.fhir.proto.valid_reference_type) = "Endpoint"]; - - // field 20 reserved for Organization.identifier:NPI which uses an unsupported - // slicing on Identifier - reserved 20; - - // field 21 reserved for Organization.identifier:CLIA which uses an - // unsupported slicing on Identifier - reserved 21; + repeated Component component = 33; } -// Auto-generated from StructureDefinition for -// USCorePediatricBMIforAgeObservationProfile. FHIR Vital Signs Profile. See -// http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age -message USCorePediatricBMIforAgeObservationProfile { +// Auto-generated from StructureDefinition for USCoreCondition. +// Detailed information about conditions, problems or diagnoses. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition +message UsCoreCondition { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/vitalsigns"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Observation"; + "http://hl7.org/fhir/StructureDefinition/Condition"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "dataAbsentReason.empty() or value.empty()"; + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"; option (.google.fhir.proto.fhir_path_message_constraint) = - "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + "abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()"; option (.google.fhir.proto.fhir_path_message_constraint) = - "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())"; - option (.google.fhir.proto.search_parameter) = { - name: "amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; + "verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()"; + option (.google.fhir.proto.fhir_path_message_warning_constraint) = + "clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()"; + option (.google.fhir.proto.fhir_path_message_warning_constraint) = + "where(category in 'http://hl7.org/fhir/us/core/ValueSet/us-core-condition-category').exists()"; option (.google.fhir.proto.search_parameter) = { - name: "based-on" + name: "Example Search Parameter" type: REFERENCE - expression: "Observation.basedOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "Observation.category" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code" - type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-concept" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-date" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-quantity" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-string" - type: COMPOSITE - expression: "Observation" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-code" - type: TOKEN - expression: "Observation.code | Observation.component.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-concept" - type: COMPOSITE - expression: "Observation | Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-quantity" - type: COMPOSITE - expression: "Observation | Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-data-absent-reason" - type: TOKEN - expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "combo-value-concept" - type: TOKEN - expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" + expression: "Condition.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-value-quantity" + name: "abatement-age" type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + expression: "Condition.abatement.as(Age) | Condition.abatement.as(Range)" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code" - type: TOKEN - expression: "Observation.component.code" + name: "abatement-date" + type: DATE + expression: "Condition.abatement.as(dateTime) | Condition.abatement.as(Period)" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-concept" - type: COMPOSITE - expression: "Observation.component" + name: "abatement-string" + type: STRING + expression: "Condition.abatement.as(string)" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-quantity" - type: COMPOSITE - expression: "Observation.component" + name: "asserter" + type: REFERENCE + expression: "Condition.asserter" }; option (.google.fhir.proto.search_parameter) = { - name: "component-data-absent-reason" + name: "body-site" type: TOKEN - expression: "Observation.component.dataAbsentReason" + expression: "Condition.bodySite" }; option (.google.fhir.proto.search_parameter) = { - name: "component-value-concept" + name: "category" type: TOKEN - expression: "(Observation.component.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-value-quantity" - type: QUANTITY - expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + expression: "Condition.category" }; option (.google.fhir.proto.search_parameter) = { - name: "data-absent-reason" + name: "clinical-status" type: TOKEN - expression: "Observation.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "derived-from" - type: REFERENCE - expression: "Observation.derivedFrom" - }; - option (.google.fhir.proto.search_parameter) = { - name: "device" - type: REFERENCE - expression: "Observation.device" + expression: "Condition.clinicalStatus" }; option (.google.fhir.proto.search_parameter) = { - name: "dna-variant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + name: "code" + type: TOKEN + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; option (.google.fhir.proto.search_parameter) = { name: "encounter" type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" - }; - option (.google.fhir.proto.search_parameter) = { - name: "focus" - type: REFERENCE - expression: "Observation.focus" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-dnavariant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + expression: "Condition.encounter" }; option (.google.fhir.proto.search_parameter) = { - name: "gene-identifier" + name: "evidence" type: TOKEN - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" + expression: "Condition.evidence.code" }; option (.google.fhir.proto.search_parameter) = { - name: "has-member" + name: "evidence-detail" type: REFERENCE - expression: "Observation.hasMember" + expression: "Condition.evidence.detail" }; option (.google.fhir.proto.search_parameter) = { name: "identifier" @@ -8089,14 +8174,19 @@ message USCorePediatricBMIforAgeObservationProfile { expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "method" - type: TOKEN - expression: "Observation.method" + name: "onset-age" + type: QUANTITY + expression: "Condition.onset.as(Age) | Condition.onset.as(Range)" }; option (.google.fhir.proto.search_parameter) = { - name: "part-of" - type: REFERENCE - expression: "Observation.partOf" + name: "onset-date" + type: DATE + expression: "Condition.onset.as(dateTime) | Condition.onset.as(Period)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "onset-info" + type: STRING + expression: "Condition.onset.as(string)" }; option (.google.fhir.proto.search_parameter) = { name: "patient" @@ -8104,44 +8194,29 @@ message USCorePediatricBMIforAgeObservationProfile { expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "performer" - type: REFERENCE - expression: "Observation.performer" + name: "recorded-date" + type: DATE + expression: "Condition.recordedDate" }; option (.google.fhir.proto.search_parameter) = { - name: "specimen" - type: REFERENCE - expression: "Observation.specimen" + name: "severity" + type: TOKEN + expression: "Condition.severity" }; option (.google.fhir.proto.search_parameter) = { - name: "status" + name: "stage" type: TOKEN - expression: "Observation.status" + expression: "Condition.stage.summary" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "Observation.subject" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-concept" - type: TOKEN - expression: "(Observation.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-date" - type: DATE - expression: "(Observation.value as dateTime) | (Observation.value as Period)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" + expression: "Condition.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "value-string" - type: STRING - expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" + name: "verification-status" + type: TOKEN + expression: "Condition.verificationStatus" }; // Logical id of this artifact @@ -8163,7 +8238,7 @@ message USCorePediatricBMIforAgeObservationProfile { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Observation.contained + // Condition.contained reserved 7; // Additional content defined by implementations @@ -8172,137 +8247,91 @@ message USCorePediatricBMIforAgeObservationProfile { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business Identifier for observation + // External Ids for this condition repeated core.Identifier identifier = 10; - // Fulfills plan, proposal or order - repeated core.Reference based_on = 11 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "DeviceRequest", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest" - ]; - - // Part of referenced event - repeated core.Reference part_of = 12 [ - (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", - (.google.fhir.proto.valid_reference_type) = "MedicationDispense", - (.google.fhir.proto.valid_reference_type) = "MedicationStatement", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Immunization", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy" - ]; - - // registered | preliminary | final | amended + - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/observation-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.ObservationStatusCode.Value value = 1; + // active | recurrence | relapse | inactive | remission | resolved + core.CodeableConcept clinical_status = 11; - core.String id = 2; + // unconfirmed | provisional | differential | confirmed | refuted | + // entered-in-error + core.CodeableConcept verification_status = 12; - repeated core.Extension extension = 3; - } - StatusCode status = 13 + // problem-list-item | encounter-diagnosis | health-concern + repeated core.CodeableConcept category = 13 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Classification of type of observation - repeated core.CodeableConcept category = 14 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Subjective severity of condition + core.CodeableConcept severity = 14; - // BMI percentile per age and sex for youth 2-20 + // Identification of the condition, problem or diagnosis core.CodeableConcept code = 15 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Who and/or what the observation is about - core.Reference subject = 16 [ + // Anatomical location, if relevant + repeated core.CodeableConcept body_site = 16; + + // Who has the condition? + core.Reference subject = 17 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, (.google.fhir.proto.valid_reference_type) = "Patient" ]; - // What the observation is about, when it is not about the subject of record - repeated core.Reference focus = 17 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; - - // Healthcare event during which this observation is made + // Encounter created as part of core.Reference encounter = 18 [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - // Often just a dateTime for Vital Signs - message EffectiveX { - option (.google.fhir.proto.fhir_path_message_constraint) = - "($this as dateTime).toString().length() >= 8"; + // Estimated or actual date, date-time, or age + message OnsetX { option (.google.fhir.proto.is_choice_type) = true; oneof choice { core.DateTime date_time = 1; - core.Period period = 2; + core.Age age = 2; + core.Period period = 3; + core.Range range = 4; + core.String string_value = 5 [json_name = "string"]; } } - EffectiveX effective = 19 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Date/Time this version was made available - core.Instant issued = 20; - - // Who is responsible for the observation - repeated core.Reference performer = 21 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; + OnsetX onset = 19; - // Vital Signs value are recorded using the Quantity data type. For supporting - // observations such as Cuff size could use other datatypes such as - // CodeableConcept. - message ValueX { + // When in resolution/remission + message AbatementX { option (.google.fhir.proto.is_choice_type) = true; oneof choice { - core.Quantity quantity = 1; + core.DateTime date_time = 1; + core.Age age = 2; + core.Period period = 3; + core.Range range = 4; + core.String string_value = 5 [json_name = "string"]; } } - ValueX value = 22 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Why the result is missing - core.CodeableConcept data_absent_reason = 23; - - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 24; - - // Comments about the observation - repeated core.Annotation note = 25; - - // Observed body part - core.CodeableConcept body_site = 26; + AbatementX abatement = 20; - // How it was done - core.CodeableConcept method = 27; + // Date record was first recorded + core.DateTime recorded_date = 21; - // Specimen used for this observation - core.Reference specimen = 28 - [(.google.fhir.proto.valid_reference_type) = "Specimen"]; + // Who recorded the condition + core.Reference recorder = 22 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; - // (Measurement) Device - core.Reference device = 29 [ - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "DeviceMetric" + // Person who asserts this condition + core.Reference asserter = 23 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" ]; - // Provides guide for interpretation - message ReferenceRange { + // Stage/grade, usually assessed formally + message Stage { option (.google.fhir.proto.fhir_path_message_constraint) = - "low.exists() or high.exists() or text.exists()"; + "summary.exists() or assessment.exists()"; // Unique id for inter-element referencing core.String id = 1; @@ -8313,47 +8342,25 @@ message USCorePediatricBMIforAgeObservationProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Low Range, if relevant - core.SimpleQuantity low = 4; + // Simple summary (disease specific) + core.CodeableConcept summary = 4; - // High Range, if relevant - core.SimpleQuantity high = 5; + // Formal record of assessment + repeated core.Reference assessment = 5 [ + (.google.fhir.proto.valid_reference_type) = "ClinicalImpression", + (.google.fhir.proto.valid_reference_type) = "DiagnosticReport", + (.google.fhir.proto.valid_reference_type) = "Observation" + ]; - // Reference range qualifier + // Kind of staging core.CodeableConcept type = 6; - - // Reference range population - repeated core.CodeableConcept applies_to = 7; - - // Applicable age range, if relevant - core.Range age = 8; - - // Text based reference range in an observation - core.String text = 9; } - repeated ReferenceRange reference_range = 30; - - // Used when reporting vital signs panel components - repeated core.Reference has_member = 31 [ - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; - - // Related measurements the observation is made from - repeated core.Reference derived_from = 32 [ - (.google.fhir.proto.valid_reference_type) = "DocumentReference", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy", - (.google.fhir.proto.valid_reference_type) = "Media", - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence", - (.google.fhir.proto.valid_reference_type) = "Observation" - ]; + repeated Stage stage = 24; - // Used when reporting systolic and diastolic blood pressure. - message Component { + // Supporting evidence + message Evidence { option (.google.fhir.proto.fhir_path_message_constraint) = - "value.exists() or dataAbsentReason.exists()"; + "code.exists() or detail.exists()"; // Unique id for inter-element referencing core.String id = 1; @@ -8364,42 +8371,35 @@ message USCorePediatricBMIforAgeObservationProfile { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Type of component observation (code / type) - core.CodeableConcept code = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Manifestation/symptom + repeated core.CodeableConcept code = 4; - // Vital Sign Value recorded with UCUM - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; + // Supporting information found elsewhere + repeated core.Reference detail = 5 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; + } + repeated Evidence evidence = 25; - oneof choice { - core.Quantity quantity = 1; - core.CodeableConcept codeable_concept = 2; - core.String string_value = 3 [json_name = "string"]; - core.Boolean boolean = 4; - core.Integer integer = 5; - core.Range range = 6; - core.Ratio ratio = 7; - core.SampledData sampled_data = 8; - core.Time time = 9; - core.DateTime date_time = 10; - core.Period period = 11; - } - } - ValueX value = 5; + // Additional information about the Condition + repeated core.Annotation note = 26; +} - // Why the component result is missing - core.CodeableConcept data_absent_reason = 6; +// Auto-generated from StructureDefinition for USCoreDirectEmailExtension. +// Email is a "direct" email. +// See http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct +message UsCoreDirectEmail { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct"; - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 7; + // Unique id for inter-element referencing + core.String id = 1; - // Provides guide for interpretation of component result - repeated ReferenceRange reference_range = 8; - } - repeated Component component = 33; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // field 34 reserved for Observation.category:VSCat which uses an unsupported - // slicing on CodeableConcept - reserved 34; + // Value of extension + core.Boolean value_boolean = 3; } diff --git a/proto/google/fhir/proto/r4/uscore_codes.proto b/proto/google/fhir/proto/r4/uscore_codes.proto index 6b60830b0..0b1737696 100644 --- a/proto/google/fhir/proto/r4/uscore_codes.proto +++ b/proto/google/fhir/proto/r4/uscore_codes.proto @@ -21,1173 +21,13 @@ import "proto/google/fhir/proto/annotations.proto"; option java_multiple_files = true; option java_package = "com.google.fhir.r4.uscore"; -// The U.S. Centers for Disease Control and Prevention (CDC) has prepared a -// code set for use in codingrace and ethnicity data. This code set is based on -// current federal standards for classifying data onrace and ethnicity, -// specifically the minimum race and ethnicity categories defined by the U.S. -// Office ofManagement and Budget (OMB) and a more detailed set of race and -// ethnicity categories maintainedby the U.S. Bureau of the Census (BC). The -// main purpose of the code set is to facilitate use of federalstandards for -// classifying data on race and ethnicity when these data are exchanged, -// stored, retrieved,or analyzed in electronic form. At the same time, the code -// set can be applied to paper-based recordsystems to the extent that these -// systems are used to collect, maintain, and report data on race andethnicity -// in accordance with current federal standards. Source: [Race and Ethnicity -// Code Set -// Version 1.0](https://www.cdc.gov/phin/resources/vocabulary/documents/cdc-race--ethnicity-background-and-purpose.pdf). -// See urn:oid:2.16.840.1.113883.6.238 -message RaceAndEthnicityCDCCode { +// Codes for assigning sex at birth as specified by the [Office of the National +// Coordinator for Health IT (ONC)](https://www.healthit.gov/newsroom/about-onc) +// See http://hl7.org/fhir/us/core/ValueSet/birthsex +message BirthSexValueSet { enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "urn:oid:2.16.840.1.113883.6.238"; - - INVALID_UNINITIALIZED = 0; - RACE = 1 [(.google.fhir.proto.fhir_original_code) = "1000-9"]; - AMERICAN_INDIAN_OR_ALASKA_NATIVE = 2 - [(.google.fhir.proto.fhir_original_code) = "1002-5"]; - AMERICAN_INDIAN = 3 [(.google.fhir.proto.fhir_original_code) = "1004-1"]; - ALASKA_NATIVE = 4 [(.google.fhir.proto.fhir_original_code) = "1735-0"]; - ABENAKI = 5 [(.google.fhir.proto.fhir_original_code) = "1006-6"]; - ALGONQUIAN = 6 [(.google.fhir.proto.fhir_original_code) = "1008-2"]; - APACHE = 7 [(.google.fhir.proto.fhir_original_code) = "1010-8"]; - ARAPAHO = 8 [(.google.fhir.proto.fhir_original_code) = "1021-5"]; - ARIKARA = 9 [(.google.fhir.proto.fhir_original_code) = "1026-4"]; - ASSINIBOINE = 10 [(.google.fhir.proto.fhir_original_code) = "1028-0"]; - ASSINIBOINE_SIOUX = 11 [(.google.fhir.proto.fhir_original_code) = "1030-6"]; - BANNOCK = 12 [(.google.fhir.proto.fhir_original_code) = "1033-0"]; - BLACKFEET = 13 [(.google.fhir.proto.fhir_original_code) = "1035-5"]; - BROTHERTON = 14 [(.google.fhir.proto.fhir_original_code) = "1037-1"]; - BURT_LAKE_BAND = 15 [(.google.fhir.proto.fhir_original_code) = "1039-7"]; - CADDO = 16 [(.google.fhir.proto.fhir_original_code) = "1041-3"]; - CAHUILLA = 17 [(.google.fhir.proto.fhir_original_code) = "1044-7"]; - CALIFORNIA_TRIBES = 18 [(.google.fhir.proto.fhir_original_code) = "1053-8"]; - CANADIAN_AND_LATIN_AMERICAN_INDIAN = 19 - [(.google.fhir.proto.fhir_original_code) = "1068-6"]; - CATAWBA = 20 [(.google.fhir.proto.fhir_original_code) = "1076-9"]; - CAYUSE = 21 [(.google.fhir.proto.fhir_original_code) = "1078-5"]; - CHEHALIS = 22 [(.google.fhir.proto.fhir_original_code) = "1080-1"]; - CHEMAKUAN = 23 [(.google.fhir.proto.fhir_original_code) = "1082-7"]; - CHEMEHUEVI = 24 [(.google.fhir.proto.fhir_original_code) = "1086-8"]; - CHEROKEE = 25 [(.google.fhir.proto.fhir_original_code) = "1088-4"]; - CHEROKEE_SHAWNEE = 26 [(.google.fhir.proto.fhir_original_code) = "1100-7"]; - CHEYENNE = 27 [(.google.fhir.proto.fhir_original_code) = "1102-3"]; - CHEYENNE_ARAPAHO = 28 [(.google.fhir.proto.fhir_original_code) = "1106-4"]; - CHICKAHOMINY = 29 [(.google.fhir.proto.fhir_original_code) = "1108-0"]; - CHICKASAW = 30 [(.google.fhir.proto.fhir_original_code) = "1112-2"]; - CHINOOK = 31 [(.google.fhir.proto.fhir_original_code) = "1114-8"]; - CHIPPEWA = 32 [(.google.fhir.proto.fhir_original_code) = "1123-9"]; - CHIPPEWA_CREE = 33 [(.google.fhir.proto.fhir_original_code) = "1150-2"]; - CHITIMACHA = 34 [(.google.fhir.proto.fhir_original_code) = "1153-6"]; - CHOCTAW = 35 [(.google.fhir.proto.fhir_original_code) = "1155-1"]; - CHUMASH = 36 [(.google.fhir.proto.fhir_original_code) = "1162-7"]; - CLEAR_LAKE = 37 [(.google.fhir.proto.fhir_original_code) = "1165-0"]; - COEUR_D_ALENE = 38 [(.google.fhir.proto.fhir_original_code) = "1167-6"]; - COHARIE = 39 [(.google.fhir.proto.fhir_original_code) = "1169-2"]; - COLORADO_RIVER = 40 [(.google.fhir.proto.fhir_original_code) = "1171-8"]; - COLVILLE = 41 [(.google.fhir.proto.fhir_original_code) = "1173-4"]; - COMANCHE = 42 [(.google.fhir.proto.fhir_original_code) = "1175-9"]; - COOS_LOWER_UMPQUA_SIUSLAW = 43 - [(.google.fhir.proto.fhir_original_code) = "1178-3"]; - COOS = 44 [(.google.fhir.proto.fhir_original_code) = "1180-9"]; - COQUILLES = 45 [(.google.fhir.proto.fhir_original_code) = "1182-5"]; - COSTANOAN = 46 [(.google.fhir.proto.fhir_original_code) = "1184-1"]; - COUSHATTA = 47 [(.google.fhir.proto.fhir_original_code) = "1186-6"]; - COWLITZ = 48 [(.google.fhir.proto.fhir_original_code) = "1189-0"]; - CREE = 49 [(.google.fhir.proto.fhir_original_code) = "1191-6"]; - CREEK = 50 [(.google.fhir.proto.fhir_original_code) = "1193-2"]; - CROATAN = 51 [(.google.fhir.proto.fhir_original_code) = "1207-0"]; - CROW = 52 [(.google.fhir.proto.fhir_original_code) = "1209-6"]; - CUPENO = 53 [(.google.fhir.proto.fhir_original_code) = "1211-2"]; - DELAWARE = 54 [(.google.fhir.proto.fhir_original_code) = "1214-6"]; - DIEGUENO = 55 [(.google.fhir.proto.fhir_original_code) = "1222-9"]; - EASTERN_TRIBES = 56 [(.google.fhir.proto.fhir_original_code) = "1233-6"]; - ESSELEN = 57 [(.google.fhir.proto.fhir_original_code) = "1250-0"]; - FORT_BELKNAP = 58 [(.google.fhir.proto.fhir_original_code) = "1252-6"]; - FORT_BERTHOLD = 59 [(.google.fhir.proto.fhir_original_code) = "1254-2"]; - FORT_MCDOWELL = 60 [(.google.fhir.proto.fhir_original_code) = "1256-7"]; - FORT_HALL = 61 [(.google.fhir.proto.fhir_original_code) = "1258-3"]; - GABRIELENO = 62 [(.google.fhir.proto.fhir_original_code) = "1260-9"]; - GRAND_RONDE = 63 [(.google.fhir.proto.fhir_original_code) = "1262-5"]; - GROS_VENTRES = 64 [(.google.fhir.proto.fhir_original_code) = "1264-1"]; - HALIWA = 65 [(.google.fhir.proto.fhir_original_code) = "1267-4"]; - HIDATSA = 66 [(.google.fhir.proto.fhir_original_code) = "1269-0"]; - HOOPA = 67 [(.google.fhir.proto.fhir_original_code) = "1271-6"]; - HOOPA_EXTENSION = 68 [(.google.fhir.proto.fhir_original_code) = "1275-7"]; - HOUMA = 69 [(.google.fhir.proto.fhir_original_code) = "1277-3"]; - INAJA_COSMIT = 70 [(.google.fhir.proto.fhir_original_code) = "1279-9"]; - IOWA = 71 [(.google.fhir.proto.fhir_original_code) = "1281-5"]; - IROQUOIS = 72 [(.google.fhir.proto.fhir_original_code) = "1285-6"]; - JUANENO = 73 [(.google.fhir.proto.fhir_original_code) = "1297-1"]; - KALISPEL = 74 [(.google.fhir.proto.fhir_original_code) = "1299-7"]; - KARUK = 75 [(.google.fhir.proto.fhir_original_code) = "1301-1"]; - KAW = 76 [(.google.fhir.proto.fhir_original_code) = "1303-7"]; - KICKAPOO = 77 [(.google.fhir.proto.fhir_original_code) = "1305-2"]; - KIOWA = 78 [(.google.fhir.proto.fhir_original_code) = "1309-4"]; - KLALLAM = 79 [(.google.fhir.proto.fhir_original_code) = "1312-8"]; - KLAMATH = 80 [(.google.fhir.proto.fhir_original_code) = "1317-7"]; - KONKOW = 81 [(.google.fhir.proto.fhir_original_code) = "1319-3"]; - KOOTENAI = 82 [(.google.fhir.proto.fhir_original_code) = "1321-9"]; - LASSIK = 83 [(.google.fhir.proto.fhir_original_code) = "1323-5"]; - LONG_ISLAND = 84 [(.google.fhir.proto.fhir_original_code) = "1325-0"]; - LUISENO = 85 [(.google.fhir.proto.fhir_original_code) = "1331-8"]; - LUMBEE = 86 [(.google.fhir.proto.fhir_original_code) = "1340-9"]; - LUMMI = 87 [(.google.fhir.proto.fhir_original_code) = "1342-5"]; - MAIDU = 88 [(.google.fhir.proto.fhir_original_code) = "1344-1"]; - MAKAH = 89 [(.google.fhir.proto.fhir_original_code) = "1348-2"]; - MALISEET = 90 [(.google.fhir.proto.fhir_original_code) = "1350-8"]; - MANDAN = 91 [(.google.fhir.proto.fhir_original_code) = "1352-4"]; - MATTAPONI = 92 [(.google.fhir.proto.fhir_original_code) = "1354-0"]; - MENOMINEE = 93 [(.google.fhir.proto.fhir_original_code) = "1356-5"]; - MIAMI = 94 [(.google.fhir.proto.fhir_original_code) = "1358-1"]; - MICCOSUKEE = 95 [(.google.fhir.proto.fhir_original_code) = "1363-1"]; - MICMAC = 96 [(.google.fhir.proto.fhir_original_code) = "1365-6"]; - MISSION_INDIANS = 97 [(.google.fhir.proto.fhir_original_code) = "1368-0"]; - MIWOK = 98 [(.google.fhir.proto.fhir_original_code) = "1370-6"]; - MODOC = 99 [(.google.fhir.proto.fhir_original_code) = "1372-2"]; - MOHEGAN = 100 [(.google.fhir.proto.fhir_original_code) = "1374-8"]; - MONO = 101 [(.google.fhir.proto.fhir_original_code) = "1376-3"]; - NANTICOKE = 102 [(.google.fhir.proto.fhir_original_code) = "1378-9"]; - NARRAGANSETT = 103 [(.google.fhir.proto.fhir_original_code) = "1380-5"]; - NAVAJO = 104 [(.google.fhir.proto.fhir_original_code) = "1382-1"]; - NEZ_PERCE = 105 [(.google.fhir.proto.fhir_original_code) = "1387-0"]; - NOMALAKI = 106 [(.google.fhir.proto.fhir_original_code) = "1389-6"]; - NORTHWEST_TRIBES = 107 [(.google.fhir.proto.fhir_original_code) = "1391-2"]; - OMAHA = 108 [(.google.fhir.proto.fhir_original_code) = "1403-5"]; - OREGON_ATHABASKAN = 109 - [(.google.fhir.proto.fhir_original_code) = "1405-0"]; - OSAGE = 110 [(.google.fhir.proto.fhir_original_code) = "1407-6"]; - OTOE_MISSOURIA = 111 [(.google.fhir.proto.fhir_original_code) = "1409-2"]; - OTTAWA = 112 [(.google.fhir.proto.fhir_original_code) = "1411-8"]; - PAIUTE = 113 [(.google.fhir.proto.fhir_original_code) = "1416-7"]; - PAMUNKEY = 114 [(.google.fhir.proto.fhir_original_code) = "1439-9"]; - PASSAMAQUODDY = 115 [(.google.fhir.proto.fhir_original_code) = "1441-5"]; - PAWNEE = 116 [(.google.fhir.proto.fhir_original_code) = "1445-6"]; - PENOBSCOT = 117 [(.google.fhir.proto.fhir_original_code) = "1448-0"]; - PEORIA = 118 [(.google.fhir.proto.fhir_original_code) = "1450-6"]; - PEQUOT = 119 [(.google.fhir.proto.fhir_original_code) = "1453-0"]; - PIMA = 120 [(.google.fhir.proto.fhir_original_code) = "1456-3"]; - PISCATAWAY = 121 [(.google.fhir.proto.fhir_original_code) = "1460-5"]; - PIT_RIVER = 122 [(.google.fhir.proto.fhir_original_code) = "1462-1"]; - POMO = 123 [(.google.fhir.proto.fhir_original_code) = "1464-7"]; - PONCA = 124 [(.google.fhir.proto.fhir_original_code) = "1474-6"]; - POTAWATOMI = 125 [(.google.fhir.proto.fhir_original_code) = "1478-7"]; - POWHATAN = 126 [(.google.fhir.proto.fhir_original_code) = "1487-8"]; - PUEBLO = 127 [(.google.fhir.proto.fhir_original_code) = "1489-4"]; - PUGET_SOUND_SALISH = 128 - [(.google.fhir.proto.fhir_original_code) = "1518-0"]; - QUAPAW = 129 [(.google.fhir.proto.fhir_original_code) = "1541-2"]; - QUINAULT = 130 [(.google.fhir.proto.fhir_original_code) = "1543-8"]; - RAPPAHANNOCK = 131 [(.google.fhir.proto.fhir_original_code) = "1545-3"]; - RENO_SPARKS = 132 [(.google.fhir.proto.fhir_original_code) = "1547-9"]; - ROUND_VALLEY = 133 [(.google.fhir.proto.fhir_original_code) = "1549-5"]; - SAC_AND_FOX = 134 [(.google.fhir.proto.fhir_original_code) = "1551-1"]; - SALINAN = 135 [(.google.fhir.proto.fhir_original_code) = "1556-0"]; - SALISH = 136 [(.google.fhir.proto.fhir_original_code) = "1558-6"]; - SALISH_AND_KOOTENAI = 137 - [(.google.fhir.proto.fhir_original_code) = "1560-2"]; - SCHAGHTICOKE = 138 [(.google.fhir.proto.fhir_original_code) = "1562-8"]; - SCOTT_VALLEY = 139 [(.google.fhir.proto.fhir_original_code) = "1564-4"]; - SEMINOLE = 140 [(.google.fhir.proto.fhir_original_code) = "1566-9"]; - SERRANO = 141 [(.google.fhir.proto.fhir_original_code) = "1573-5"]; - SHASTA = 142 [(.google.fhir.proto.fhir_original_code) = "1576-8"]; - SHAWNEE = 143 [(.google.fhir.proto.fhir_original_code) = "1578-4"]; - SHINNECOCK = 144 [(.google.fhir.proto.fhir_original_code) = "1582-6"]; - SHOALWATER_BAY = 145 [(.google.fhir.proto.fhir_original_code) = "1584-2"]; - SHOSHONE = 146 [(.google.fhir.proto.fhir_original_code) = "1586-7"]; - SHOSHONE_PAIUTE = 147 [(.google.fhir.proto.fhir_original_code) = "1602-2"]; - SILETZ = 148 [(.google.fhir.proto.fhir_original_code) = "1607-1"]; - SIOUX = 149 [(.google.fhir.proto.fhir_original_code) = "1609-7"]; - SIUSLAW = 150 [(.google.fhir.proto.fhir_original_code) = "1643-6"]; - SPOKANE = 151 [(.google.fhir.proto.fhir_original_code) = "1645-1"]; - STEWART = 152 [(.google.fhir.proto.fhir_original_code) = "1647-7"]; - STOCKBRIDGE = 153 [(.google.fhir.proto.fhir_original_code) = "1649-3"]; - SUSANVILLE = 154 [(.google.fhir.proto.fhir_original_code) = "1651-9"]; - TOHONO_O_ODHAM = 155 [(.google.fhir.proto.fhir_original_code) = "1653-5"]; - TOLOWA = 156 [(.google.fhir.proto.fhir_original_code) = "1659-2"]; - TONKAWA = 157 [(.google.fhir.proto.fhir_original_code) = "1661-8"]; - TYGH = 158 [(.google.fhir.proto.fhir_original_code) = "1663-4"]; - UMATILLA = 159 [(.google.fhir.proto.fhir_original_code) = "1665-9"]; - UMPQUA = 160 [(.google.fhir.proto.fhir_original_code) = "1667-5"]; - UTE = 161 [(.google.fhir.proto.fhir_original_code) = "1670-9"]; - WAILAKI = 162 [(.google.fhir.proto.fhir_original_code) = "1675-8"]; - WALLA_WALLA = 163 [(.google.fhir.proto.fhir_original_code) = "1677-4"]; - WAMPANOAG = 164 [(.google.fhir.proto.fhir_original_code) = "1679-0"]; - WARM_SPRINGS = 165 [(.google.fhir.proto.fhir_original_code) = "1683-2"]; - WASCOPUM = 166 [(.google.fhir.proto.fhir_original_code) = "1685-7"]; - WASHOE = 167 [(.google.fhir.proto.fhir_original_code) = "1687-3"]; - WICHITA = 168 [(.google.fhir.proto.fhir_original_code) = "1692-3"]; - WIND_RIVER = 169 [(.google.fhir.proto.fhir_original_code) = "1694-9"]; - WINNEBAGO = 170 [(.google.fhir.proto.fhir_original_code) = "1696-4"]; - WINNEMUCCA = 171 [(.google.fhir.proto.fhir_original_code) = "1700-4"]; - WINTUN = 172 [(.google.fhir.proto.fhir_original_code) = "1702-0"]; - WIYOT = 173 [(.google.fhir.proto.fhir_original_code) = "1704-6"]; - YAKAMA = 174 [(.google.fhir.proto.fhir_original_code) = "1707-9"]; - YAKAMA_COWLITZ = 175 [(.google.fhir.proto.fhir_original_code) = "1709-5"]; - YAQUI = 176 [(.google.fhir.proto.fhir_original_code) = "1711-1"]; - YAVAPAI_APACHE = 177 [(.google.fhir.proto.fhir_original_code) = "1715-2"]; - YOKUTS = 178 [(.google.fhir.proto.fhir_original_code) = "1717-8"]; - YUCHI = 179 [(.google.fhir.proto.fhir_original_code) = "1722-8"]; - YUMAN = 180 [(.google.fhir.proto.fhir_original_code) = "1724-4"]; - YUROK = 181 [(.google.fhir.proto.fhir_original_code) = "1732-7"]; - CHIRICAHUA = 182 [(.google.fhir.proto.fhir_original_code) = "1011-6"]; - FORT_SILL_APACHE = 183 [(.google.fhir.proto.fhir_original_code) = "1012-4"]; - JICARILLA_APACHE = 184 [(.google.fhir.proto.fhir_original_code) = "1013-2"]; - LIPAN_APACHE = 185 [(.google.fhir.proto.fhir_original_code) = "1014-0"]; - MESCALERO_APACHE = 186 [(.google.fhir.proto.fhir_original_code) = "1015-7"]; - OKLAHOMA_APACHE = 187 [(.google.fhir.proto.fhir_original_code) = "1016-5"]; - PAYSON_APACHE = 188 [(.google.fhir.proto.fhir_original_code) = "1017-3"]; - SAN_CARLOS_APACHE = 189 - [(.google.fhir.proto.fhir_original_code) = "1018-1"]; - WHITE_MOUNTAIN_APACHE = 190 - [(.google.fhir.proto.fhir_original_code) = "1019-9"]; - NORTHERN_ARAPAHO = 191 [(.google.fhir.proto.fhir_original_code) = "1022-3"]; - SOUTHERN_ARAPAHO = 192 [(.google.fhir.proto.fhir_original_code) = "1023-1"]; - WIND_RIVER_ARAPAHO = 193 - [(.google.fhir.proto.fhir_original_code) = "1024-9"]; - FORT_PECK_ASSINIBOINE_SIOUX = 194 - [(.google.fhir.proto.fhir_original_code) = "1031-4"]; - OKLAHOMA_CADO = 195 [(.google.fhir.proto.fhir_original_code) = "1042-1"]; - AGUA_CALIENTE_CAHUILLA = 196 - [(.google.fhir.proto.fhir_original_code) = "1045-4"]; - AUGUSTINE = 197 [(.google.fhir.proto.fhir_original_code) = "1046-2"]; - CABAZON = 198 [(.google.fhir.proto.fhir_original_code) = "1047-0"]; - LOS_COYOTES = 199 [(.google.fhir.proto.fhir_original_code) = "1048-8"]; - MORONGO = 200 [(.google.fhir.proto.fhir_original_code) = "1049-6"]; - SANTA_ROSA_CAHUILLA = 201 - [(.google.fhir.proto.fhir_original_code) = "1050-4"]; - TORRES_MARTINEZ = 202 [(.google.fhir.proto.fhir_original_code) = "1051-2"]; - CAHTO = 203 [(.google.fhir.proto.fhir_original_code) = "1054-6"]; - CHIMARIKO = 204 [(.google.fhir.proto.fhir_original_code) = "1055-3"]; - COAST_MIWOK = 205 [(.google.fhir.proto.fhir_original_code) = "1056-1"]; - DIGGER = 206 [(.google.fhir.proto.fhir_original_code) = "1057-9"]; - KAWAIISU = 207 [(.google.fhir.proto.fhir_original_code) = "1058-7"]; - KERN_RIVER = 208 [(.google.fhir.proto.fhir_original_code) = "1059-5"]; - MATTOLE = 209 [(.google.fhir.proto.fhir_original_code) = "1060-3"]; - RED_WOOD = 210 [(.google.fhir.proto.fhir_original_code) = "1061-1"]; - SANTA_ROSA = 211 [(.google.fhir.proto.fhir_original_code) = "1062-9"]; - TAKELMA = 212 [(.google.fhir.proto.fhir_original_code) = "1063-7"]; - WAPPO = 213 [(.google.fhir.proto.fhir_original_code) = "1064-5"]; - YANA = 214 [(.google.fhir.proto.fhir_original_code) = "1065-2"]; - YUKI = 215 [(.google.fhir.proto.fhir_original_code) = "1066-0"]; - CANADIAN_INDIAN = 216 [(.google.fhir.proto.fhir_original_code) = "1069-4"]; - CENTRAL_AMERICAN_INDIAN_1070_2 = 217 - [(.google.fhir.proto.fhir_original_code) = "1070-2"]; - FRENCH_AMERICAN_INDIAN = 218 - [(.google.fhir.proto.fhir_original_code) = "1071-0"]; - MEXICAN_AMERICAN_INDIAN_1072_8 = 219 - [(.google.fhir.proto.fhir_original_code) = "1072-8"]; - SOUTH_AMERICAN_INDIAN_1073_6 = 220 - [(.google.fhir.proto.fhir_original_code) = "1073-6"]; - SPANISH_AMERICAN_INDIAN = 221 - [(.google.fhir.proto.fhir_original_code) = "1074-4"]; - HOH = 222 [(.google.fhir.proto.fhir_original_code) = "1083-5"]; - QUILEUTE = 223 [(.google.fhir.proto.fhir_original_code) = "1084-3"]; - CHEROKEE_ALABAMA = 224 [(.google.fhir.proto.fhir_original_code) = "1089-2"]; - CHEROKEES_OF_NORTHEAST_ALABAMA = 225 - [(.google.fhir.proto.fhir_original_code) = "1090-0"]; - CHEROKEES_OF_SOUTHEAST_ALABAMA = 226 - [(.google.fhir.proto.fhir_original_code) = "1091-8"]; - EASTERN_CHEROKEE = 227 [(.google.fhir.proto.fhir_original_code) = "1092-6"]; - ECHOTA_CHEROKEE = 228 [(.google.fhir.proto.fhir_original_code) = "1093-4"]; - ETOWAH_CHEROKEE = 229 [(.google.fhir.proto.fhir_original_code) = "1094-2"]; - NORTHERN_CHEROKEE = 230 - [(.google.fhir.proto.fhir_original_code) = "1095-9"]; - TUSCOLA = 231 [(.google.fhir.proto.fhir_original_code) = "1096-7"]; - UNITED_KEETOWAH_BAND_OF_CHEROKEE = 232 - [(.google.fhir.proto.fhir_original_code) = "1097-5"]; - WESTERN_CHEROKEE = 233 [(.google.fhir.proto.fhir_original_code) = "1098-3"]; - NORTHERN_CHEYENNE = 234 - [(.google.fhir.proto.fhir_original_code) = "1103-1"]; - SOUTHERN_CHEYENNE = 235 - [(.google.fhir.proto.fhir_original_code) = "1104-9"]; - EASTERN_CHICKAHOMINY = 236 - [(.google.fhir.proto.fhir_original_code) = "1109-8"]; - WESTERN_CHICKAHOMINY = 237 - [(.google.fhir.proto.fhir_original_code) = "1110-6"]; - CLATSOP = 238 [(.google.fhir.proto.fhir_original_code) = "1115-5"]; - COLUMBIA_RIVER_CHINOOK = 239 - [(.google.fhir.proto.fhir_original_code) = "1116-3"]; - KATHLAMET = 240 [(.google.fhir.proto.fhir_original_code) = "1117-1"]; - UPPER_CHINOOK = 241 [(.google.fhir.proto.fhir_original_code) = "1118-9"]; - WAKIAKUM_CHINOOK = 242 [(.google.fhir.proto.fhir_original_code) = "1119-7"]; - WILLAPA_CHINOOK = 243 [(.google.fhir.proto.fhir_original_code) = "1120-5"]; - WISHRAM = 244 [(.google.fhir.proto.fhir_original_code) = "1121-3"]; - BAD_RIVER = 245 [(.google.fhir.proto.fhir_original_code) = "1124-7"]; - BAY_MILLS_CHIPPEWA = 246 - [(.google.fhir.proto.fhir_original_code) = "1125-4"]; - BOIS_FORTE = 247 [(.google.fhir.proto.fhir_original_code) = "1126-2"]; - BURT_LAKE_CHIPPEWA = 248 - [(.google.fhir.proto.fhir_original_code) = "1127-0"]; - FOND_DU_LAC = 249 [(.google.fhir.proto.fhir_original_code) = "1128-8"]; - GRAND_PORTAGE = 250 [(.google.fhir.proto.fhir_original_code) = "1129-6"]; - GRAND_TRAVERSE_BAND_OF_OTTAWA_CHIPPEWA = 251 - [(.google.fhir.proto.fhir_original_code) = "1130-4"]; - KEWEENAW = 252 [(.google.fhir.proto.fhir_original_code) = "1131-2"]; - LAC_COURTE_OREILLES = 253 - [(.google.fhir.proto.fhir_original_code) = "1132-0"]; - LAC_DU_FLAMBEAU = 254 [(.google.fhir.proto.fhir_original_code) = "1133-8"]; - LAC_VIEUX_DESERT_CHIPPEWA = 255 - [(.google.fhir.proto.fhir_original_code) = "1134-6"]; - LAKE_SUPERIOR = 256 [(.google.fhir.proto.fhir_original_code) = "1135-3"]; - LEECH_LAKE = 257 [(.google.fhir.proto.fhir_original_code) = "1136-1"]; - LITTLE_SHELL_CHIPPEWA = 258 - [(.google.fhir.proto.fhir_original_code) = "1137-9"]; - MILLE_LACS = 259 [(.google.fhir.proto.fhir_original_code) = "1138-7"]; - MINNESOTA_CHIPPEWA = 260 - [(.google.fhir.proto.fhir_original_code) = "1139-5"]; - ONTONAGON = 261 [(.google.fhir.proto.fhir_original_code) = "1140-3"]; - RED_CLIFF_CHIPPEWA = 262 - [(.google.fhir.proto.fhir_original_code) = "1141-1"]; - RED_LAKE_CHIPPEWA = 263 - [(.google.fhir.proto.fhir_original_code) = "1142-9"]; - SAGINAW_CHIPPEWA = 264 [(.google.fhir.proto.fhir_original_code) = "1143-7"]; - ST_CROIX_CHIPPEWA = 265 - [(.google.fhir.proto.fhir_original_code) = "1144-5"]; - SAULT_STE_MARIE_CHIPPEWA = 266 - [(.google.fhir.proto.fhir_original_code) = "1145-2"]; - SOKOAGON_CHIPPEWA = 267 - [(.google.fhir.proto.fhir_original_code) = "1146-0"]; - TURTLE_MOUNTAIN = 268 [(.google.fhir.proto.fhir_original_code) = "1147-8"]; - WHITE_EARTH = 269 [(.google.fhir.proto.fhir_original_code) = "1148-6"]; - ROCKY_BOYS_CHIPPEWA_CREE = 270 - [(.google.fhir.proto.fhir_original_code) = "1151-0"]; - CLIFTON_CHOCTAW = 271 [(.google.fhir.proto.fhir_original_code) = "1156-9"]; - JENA_CHOCTAW = 272 [(.google.fhir.proto.fhir_original_code) = "1157-7"]; - MISSISSIPPI_CHOCTAW = 273 - [(.google.fhir.proto.fhir_original_code) = "1158-5"]; - MOWA_BAND_OF_CHOCTAW = 274 - [(.google.fhir.proto.fhir_original_code) = "1159-3"]; - OKLAHOMA_CHOCTAW = 275 [(.google.fhir.proto.fhir_original_code) = "1160-1"]; - SANTA_YNEZ = 276 [(.google.fhir.proto.fhir_original_code) = "1163-5"]; - OKLAHOMA_COMANCHE = 277 - [(.google.fhir.proto.fhir_original_code) = "1176-7"]; - ALABAMA_COUSHATTA = 278 - [(.google.fhir.proto.fhir_original_code) = "1187-4"]; - ALABAMA_CREEK = 279 [(.google.fhir.proto.fhir_original_code) = "1194-0"]; - ALABAMA_QUASSARTE = 280 - [(.google.fhir.proto.fhir_original_code) = "1195-7"]; - EASTERN_CREEK = 281 [(.google.fhir.proto.fhir_original_code) = "1196-5"]; - EASTERN_MUSCOGEE = 282 [(.google.fhir.proto.fhir_original_code) = "1197-3"]; - KIALEGEE = 283 [(.google.fhir.proto.fhir_original_code) = "1198-1"]; - LOWER_MUSCOGEE = 284 [(.google.fhir.proto.fhir_original_code) = "1199-9"]; - MACHIS_LOWER_CREEK_INDIAN = 285 - [(.google.fhir.proto.fhir_original_code) = "1200-5"]; - POARCH_BAND = 286 [(.google.fhir.proto.fhir_original_code) = "1201-3"]; - PRINCIPAL_CREEK_INDIAN_NATION = 287 - [(.google.fhir.proto.fhir_original_code) = "1202-1"]; - STAR_CLAN_OF_MUSCOGEE_CREEKS = 288 - [(.google.fhir.proto.fhir_original_code) = "1203-9"]; - THLOPTHLOCCO = 289 [(.google.fhir.proto.fhir_original_code) = "1204-7"]; - TUCKABACHEE = 290 [(.google.fhir.proto.fhir_original_code) = "1205-4"]; - AGUA_CALIENTE = 291 [(.google.fhir.proto.fhir_original_code) = "1212-0"]; - EASTERN_DELAWARE = 292 [(.google.fhir.proto.fhir_original_code) = "1215-3"]; - LENNI_LENAPE = 293 [(.google.fhir.proto.fhir_original_code) = "1216-1"]; - MUNSEE = 294 [(.google.fhir.proto.fhir_original_code) = "1217-9"]; - OKLAHOMA_DELAWARE = 295 - [(.google.fhir.proto.fhir_original_code) = "1218-7"]; - RAMPOUGH_MOUNTAIN = 296 - [(.google.fhir.proto.fhir_original_code) = "1219-5"]; - SAND_HILL = 297 [(.google.fhir.proto.fhir_original_code) = "1220-3"]; - CAMPO = 298 [(.google.fhir.proto.fhir_original_code) = "1223-7"]; - CAPITAN_GRANDE = 299 [(.google.fhir.proto.fhir_original_code) = "1224-5"]; - CUYAPAIPE = 300 [(.google.fhir.proto.fhir_original_code) = "1225-2"]; - LA_POSTA = 301 [(.google.fhir.proto.fhir_original_code) = "1226-0"]; - MANZANITA = 302 [(.google.fhir.proto.fhir_original_code) = "1227-8"]; - MESA_GRANDE = 303 [(.google.fhir.proto.fhir_original_code) = "1228-6"]; - SAN_PASQUAL = 304 [(.google.fhir.proto.fhir_original_code) = "1229-4"]; - SANTA_YSABEL = 305 [(.google.fhir.proto.fhir_original_code) = "1230-2"]; - SYCUAN = 306 [(.google.fhir.proto.fhir_original_code) = "1231-0"]; - ATTACAPA = 307 [(.google.fhir.proto.fhir_original_code) = "1234-4"]; - BILOXI = 308 [(.google.fhir.proto.fhir_original_code) = "1235-1"]; - GEORGETOWN_EASTERN_TRIBES = 309 - [(.google.fhir.proto.fhir_original_code) = "1236-9"]; - MOOR = 310 [(.google.fhir.proto.fhir_original_code) = "1237-7"]; - NANSEMOND = 311 [(.google.fhir.proto.fhir_original_code) = "1238-5"]; - NATCHEZ = 312 [(.google.fhir.proto.fhir_original_code) = "1239-3"]; - NAUSU_WAIWASH = 313 [(.google.fhir.proto.fhir_original_code) = "1240-1"]; - NIPMUC = 314 [(.google.fhir.proto.fhir_original_code) = "1241-9"]; - PAUGUSSETT = 315 [(.google.fhir.proto.fhir_original_code) = "1242-7"]; - POCOMOKE_ACOHONOCK = 316 - [(.google.fhir.proto.fhir_original_code) = "1243-5"]; - SOUTHEASTERN_INDIANS = 317 - [(.google.fhir.proto.fhir_original_code) = "1244-3"]; - SUSQUEHANOCK = 318 [(.google.fhir.proto.fhir_original_code) = "1245-0"]; - TUNICA_BILOXI = 319 [(.google.fhir.proto.fhir_original_code) = "1246-8"]; - WACCAMAW_SIOUSAN = 320 [(.google.fhir.proto.fhir_original_code) = "1247-6"]; - WICOMICO = 321 [(.google.fhir.proto.fhir_original_code) = "1248-4"]; - ATSINA = 322 [(.google.fhir.proto.fhir_original_code) = "1265-8"]; - TRINITY = 323 [(.google.fhir.proto.fhir_original_code) = "1272-4"]; - WHILKUT = 324 [(.google.fhir.proto.fhir_original_code) = "1273-2"]; - IOWA_OF_KANSAS_NEBRASKA = 325 - [(.google.fhir.proto.fhir_original_code) = "1282-3"]; - IOWA_OF_OKLAHOMA = 326 [(.google.fhir.proto.fhir_original_code) = "1283-1"]; - CAYUGA = 327 [(.google.fhir.proto.fhir_original_code) = "1286-4"]; - MOHAWK = 328 [(.google.fhir.proto.fhir_original_code) = "1287-2"]; - ONEIDA = 329 [(.google.fhir.proto.fhir_original_code) = "1288-0"]; - ONONDAGA = 330 [(.google.fhir.proto.fhir_original_code) = "1289-8"]; - SENECA = 331 [(.google.fhir.proto.fhir_original_code) = "1290-6"]; - SENECA_NATION = 332 [(.google.fhir.proto.fhir_original_code) = "1291-4"]; - SENECA_CAYUGA = 333 [(.google.fhir.proto.fhir_original_code) = "1292-2"]; - TONAWANDA_SENECA = 334 [(.google.fhir.proto.fhir_original_code) = "1293-0"]; - TUSCARORA = 335 [(.google.fhir.proto.fhir_original_code) = "1294-8"]; - WYANDOTTE = 336 [(.google.fhir.proto.fhir_original_code) = "1295-5"]; - OKLAHOMA_KICKAPOO = 337 - [(.google.fhir.proto.fhir_original_code) = "1306-0"]; - TEXAS_KICKAPOO = 338 [(.google.fhir.proto.fhir_original_code) = "1307-8"]; - OKLAHOMA_KIOWA = 339 [(.google.fhir.proto.fhir_original_code) = "1310-2"]; - JAMESTOWN = 340 [(.google.fhir.proto.fhir_original_code) = "1313-6"]; - LOWER_ELWHA = 341 [(.google.fhir.proto.fhir_original_code) = "1314-4"]; - PORT_GAMBLE_KLALLAM = 342 - [(.google.fhir.proto.fhir_original_code) = "1315-1"]; - MATINECOCK = 343 [(.google.fhir.proto.fhir_original_code) = "1326-8"]; - MONTAUK = 344 [(.google.fhir.proto.fhir_original_code) = "1327-6"]; - POOSPATUCK = 345 [(.google.fhir.proto.fhir_original_code) = "1328-4"]; - SETAUKET = 346 [(.google.fhir.proto.fhir_original_code) = "1329-2"]; - LA_JOLLA = 347 [(.google.fhir.proto.fhir_original_code) = "1332-6"]; - PALA = 348 [(.google.fhir.proto.fhir_original_code) = "1333-4"]; - PAUMA = 349 [(.google.fhir.proto.fhir_original_code) = "1334-2"]; - PECHANGA = 350 [(.google.fhir.proto.fhir_original_code) = "1335-9"]; - SOBOBA = 351 [(.google.fhir.proto.fhir_original_code) = "1336-7"]; - TWENTY_NINE_PALMS = 352 - [(.google.fhir.proto.fhir_original_code) = "1337-5"]; - TEMECULA = 353 [(.google.fhir.proto.fhir_original_code) = "1338-3"]; - MOUNTAIN_MAIDU = 354 [(.google.fhir.proto.fhir_original_code) = "1345-8"]; - NISHINAM = 355 [(.google.fhir.proto.fhir_original_code) = "1346-6"]; - ILLINOIS_MIAMI = 356 [(.google.fhir.proto.fhir_original_code) = "1359-9"]; - INDIANA_MIAMI = 357 [(.google.fhir.proto.fhir_original_code) = "1360-7"]; - OKLAHOMA_MIAMI = 358 [(.google.fhir.proto.fhir_original_code) = "1361-5"]; - AROOSTOOK = 359 [(.google.fhir.proto.fhir_original_code) = "1366-4"]; - ALAMO_NAVAJO = 360 [(.google.fhir.proto.fhir_original_code) = "1383-9"]; - CANONCITO_NAVAJO = 361 [(.google.fhir.proto.fhir_original_code) = "1384-7"]; - RAMAH_NAVAJO = 362 [(.google.fhir.proto.fhir_original_code) = "1385-4"]; - ALSEA = 363 [(.google.fhir.proto.fhir_original_code) = "1392-0"]; - CELILO = 364 [(.google.fhir.proto.fhir_original_code) = "1393-8"]; - COLUMBIA = 365 [(.google.fhir.proto.fhir_original_code) = "1394-6"]; - KALAPUYA = 366 [(.google.fhir.proto.fhir_original_code) = "1395-3"]; - MOLALA = 367 [(.google.fhir.proto.fhir_original_code) = "1396-1"]; - TALAKAMISH = 368 [(.google.fhir.proto.fhir_original_code) = "1397-9"]; - TENINO = 369 [(.google.fhir.proto.fhir_original_code) = "1398-7"]; - TILLAMOOK = 370 [(.google.fhir.proto.fhir_original_code) = "1399-5"]; - WENATCHEE = 371 [(.google.fhir.proto.fhir_original_code) = "1400-1"]; - YAHOOSKIN = 372 [(.google.fhir.proto.fhir_original_code) = "1401-9"]; - BURT_LAKE_OTTAWA = 373 [(.google.fhir.proto.fhir_original_code) = "1412-6"]; - MICHIGAN_OTTAWA = 374 [(.google.fhir.proto.fhir_original_code) = "1413-4"]; - OKLAHOMA_OTTAWA = 375 [(.google.fhir.proto.fhir_original_code) = "1414-2"]; - BISHOP = 376 [(.google.fhir.proto.fhir_original_code) = "1417-5"]; - BRIDGEPORT = 377 [(.google.fhir.proto.fhir_original_code) = "1418-3"]; - BURNS_PAIUTE = 378 [(.google.fhir.proto.fhir_original_code) = "1419-1"]; - CEDARVILLE = 379 [(.google.fhir.proto.fhir_original_code) = "1420-9"]; - FORT_BIDWELL = 380 [(.google.fhir.proto.fhir_original_code) = "1421-7"]; - FORT_INDEPENDENCE = 381 - [(.google.fhir.proto.fhir_original_code) = "1422-5"]; - KAIBAB = 382 [(.google.fhir.proto.fhir_original_code) = "1423-3"]; - LAS_VEGAS = 383 [(.google.fhir.proto.fhir_original_code) = "1424-1"]; - LONE_PINE = 384 [(.google.fhir.proto.fhir_original_code) = "1425-8"]; - LOVELOCK = 385 [(.google.fhir.proto.fhir_original_code) = "1426-6"]; - MALHEUR_PAIUTE = 386 [(.google.fhir.proto.fhir_original_code) = "1427-4"]; - MOAPA = 387 [(.google.fhir.proto.fhir_original_code) = "1428-2"]; - NORTHERN_PAIUTE = 388 [(.google.fhir.proto.fhir_original_code) = "1429-0"]; - OWENS_VALLEY = 389 [(.google.fhir.proto.fhir_original_code) = "1430-8"]; - PYRAMID_LAKE = 390 [(.google.fhir.proto.fhir_original_code) = "1431-6"]; - SAN_JUAN_SOUTHERN_PAIUTE = 391 - [(.google.fhir.proto.fhir_original_code) = "1432-4"]; - SOUTHERN_PAIUTE = 392 [(.google.fhir.proto.fhir_original_code) = "1433-2"]; - SUMMIT_LAKE = 393 [(.google.fhir.proto.fhir_original_code) = "1434-0"]; - UTU_UTU_GWAITU_PAIUTE = 394 - [(.google.fhir.proto.fhir_original_code) = "1435-7"]; - WALKER_RIVER = 395 [(.google.fhir.proto.fhir_original_code) = "1436-5"]; - YERINGTON_PAIUTE = 396 [(.google.fhir.proto.fhir_original_code) = "1437-3"]; - INDIAN_TOWNSHIP = 397 [(.google.fhir.proto.fhir_original_code) = "1442-3"]; - PLEASANT_POINT_PASSAMAQUODDY = 398 - [(.google.fhir.proto.fhir_original_code) = "1443-1"]; - OKLAHOMA_PAWNEE = 399 [(.google.fhir.proto.fhir_original_code) = "1446-4"]; - OKLAHOMA_PEORIA = 400 [(.google.fhir.proto.fhir_original_code) = "1451-4"]; - MARSHANTUCKET_PEQUOT = 401 - [(.google.fhir.proto.fhir_original_code) = "1454-8"]; - GILA_RIVER_PIMA_MARICOPA = 402 - [(.google.fhir.proto.fhir_original_code) = "1457-1"]; - SALT_RIVER_PIMA_MARICOPA = 403 - [(.google.fhir.proto.fhir_original_code) = "1458-9"]; - CENTRAL_POMO = 404 [(.google.fhir.proto.fhir_original_code) = "1465-4"]; - DRY_CREEK = 405 [(.google.fhir.proto.fhir_original_code) = "1466-2"]; - EASTERN_POMO = 406 [(.google.fhir.proto.fhir_original_code) = "1467-0"]; - KASHIA = 407 [(.google.fhir.proto.fhir_original_code) = "1468-8"]; - NORTHERN_POMO = 408 [(.google.fhir.proto.fhir_original_code) = "1469-6"]; - SCOTTS_VALLEY = 409 [(.google.fhir.proto.fhir_original_code) = "1470-4"]; - STONYFORD = 410 [(.google.fhir.proto.fhir_original_code) = "1471-2"]; - SULPHUR_BANK = 411 [(.google.fhir.proto.fhir_original_code) = "1472-0"]; - NEBRASKA_PONCA = 412 [(.google.fhir.proto.fhir_original_code) = "1475-3"]; - OKLAHOMA_PONCA = 413 [(.google.fhir.proto.fhir_original_code) = "1476-1"]; - CITIZEN_BAND_POTAWATOMI = 414 - [(.google.fhir.proto.fhir_original_code) = "1479-5"]; - FOREST_COUNTY = 415 [(.google.fhir.proto.fhir_original_code) = "1480-3"]; - HANNAHVILLE = 416 [(.google.fhir.proto.fhir_original_code) = "1481-1"]; - HURON_POTAWATOMI = 417 [(.google.fhir.proto.fhir_original_code) = "1482-9"]; - POKAGON_POTAWATOMI = 418 - [(.google.fhir.proto.fhir_original_code) = "1483-7"]; - PRAIRIE_BAND = 419 [(.google.fhir.proto.fhir_original_code) = "1484-5"]; - WISCONSIN_POTAWATOMI = 420 - [(.google.fhir.proto.fhir_original_code) = "1485-2"]; - ACOMA = 421 [(.google.fhir.proto.fhir_original_code) = "1490-2"]; - ARIZONA_TEWA = 422 [(.google.fhir.proto.fhir_original_code) = "1491-0"]; - COCHITI = 423 [(.google.fhir.proto.fhir_original_code) = "1492-8"]; - HOPI = 424 [(.google.fhir.proto.fhir_original_code) = "1493-6"]; - ISLETA = 425 [(.google.fhir.proto.fhir_original_code) = "1494-4"]; - JEMEZ = 426 [(.google.fhir.proto.fhir_original_code) = "1495-1"]; - KERES = 427 [(.google.fhir.proto.fhir_original_code) = "1496-9"]; - LAGUNA = 428 [(.google.fhir.proto.fhir_original_code) = "1497-7"]; - NAMBE = 429 [(.google.fhir.proto.fhir_original_code) = "1498-5"]; - PICURIS = 430 [(.google.fhir.proto.fhir_original_code) = "1499-3"]; - PIRO = 431 [(.google.fhir.proto.fhir_original_code) = "1500-8"]; - POJOAQUE = 432 [(.google.fhir.proto.fhir_original_code) = "1501-6"]; - SAN_FELIPE = 433 [(.google.fhir.proto.fhir_original_code) = "1502-4"]; - SAN_ILDEFONSO = 434 [(.google.fhir.proto.fhir_original_code) = "1503-2"]; - SAN_JUAN_PUEBLO = 435 [(.google.fhir.proto.fhir_original_code) = "1504-0"]; - SAN_JUAN_DE = 436 [(.google.fhir.proto.fhir_original_code) = "1505-7"]; - SAN_JUAN = 437 [(.google.fhir.proto.fhir_original_code) = "1506-5"]; - SANDIA = 438 [(.google.fhir.proto.fhir_original_code) = "1507-3"]; - SANTA_ANA = 439 [(.google.fhir.proto.fhir_original_code) = "1508-1"]; - SANTA_CLARA = 440 [(.google.fhir.proto.fhir_original_code) = "1509-9"]; - SANTO_DOMINGO = 441 [(.google.fhir.proto.fhir_original_code) = "1510-7"]; - TAOS = 442 [(.google.fhir.proto.fhir_original_code) = "1511-5"]; - TESUQUE = 443 [(.google.fhir.proto.fhir_original_code) = "1512-3"]; - TEWA = 444 [(.google.fhir.proto.fhir_original_code) = "1513-1"]; - TIGUA = 445 [(.google.fhir.proto.fhir_original_code) = "1514-9"]; - ZIA = 446 [(.google.fhir.proto.fhir_original_code) = "1515-6"]; - ZUNI = 447 [(.google.fhir.proto.fhir_original_code) = "1516-4"]; - DUWAMISH = 448 [(.google.fhir.proto.fhir_original_code) = "1519-8"]; - KIKIALLUS = 449 [(.google.fhir.proto.fhir_original_code) = "1520-6"]; - LOWER_SKAGIT = 450 [(.google.fhir.proto.fhir_original_code) = "1521-4"]; - MUCKLESHOOT = 451 [(.google.fhir.proto.fhir_original_code) = "1522-2"]; - NISQUALLY = 452 [(.google.fhir.proto.fhir_original_code) = "1523-0"]; - NOOKSACK = 453 [(.google.fhir.proto.fhir_original_code) = "1524-8"]; - PORT_MADISON = 454 [(.google.fhir.proto.fhir_original_code) = "1525-5"]; - PUYALLUP = 455 [(.google.fhir.proto.fhir_original_code) = "1526-3"]; - SAMISH = 456 [(.google.fhir.proto.fhir_original_code) = "1527-1"]; - SAUK_SUIATTLE = 457 [(.google.fhir.proto.fhir_original_code) = "1528-9"]; - SKOKOMISH = 458 [(.google.fhir.proto.fhir_original_code) = "1529-7"]; - SKYKOMISH = 459 [(.google.fhir.proto.fhir_original_code) = "1530-5"]; - SNOHOMISH = 460 [(.google.fhir.proto.fhir_original_code) = "1531-3"]; - SNOQUALMIE = 461 [(.google.fhir.proto.fhir_original_code) = "1532-1"]; - SQUAXIN_ISLAND = 462 [(.google.fhir.proto.fhir_original_code) = "1533-9"]; - STEILACOOM = 463 [(.google.fhir.proto.fhir_original_code) = "1534-7"]; - STILLAGUAMISH = 464 [(.google.fhir.proto.fhir_original_code) = "1535-4"]; - SUQUAMISH = 465 [(.google.fhir.proto.fhir_original_code) = "1536-2"]; - SWINOMISH = 466 [(.google.fhir.proto.fhir_original_code) = "1537-0"]; - TULALIP = 467 [(.google.fhir.proto.fhir_original_code) = "1538-8"]; - UPPER_SKAGIT = 468 [(.google.fhir.proto.fhir_original_code) = "1539-6"]; - IOWA_SAC_AND_FOX = 469 [(.google.fhir.proto.fhir_original_code) = "1552-9"]; - MISSOURI_SAC_AND_FOX = 470 - [(.google.fhir.proto.fhir_original_code) = "1553-7"]; - OKLAHOMA_SAC_AND_FOX = 471 - [(.google.fhir.proto.fhir_original_code) = "1554-5"]; - BIG_CYPRESS = 472 [(.google.fhir.proto.fhir_original_code) = "1567-7"]; - BRIGHTON = 473 [(.google.fhir.proto.fhir_original_code) = "1568-5"]; - FLORIDA_SEMINOLE = 474 [(.google.fhir.proto.fhir_original_code) = "1569-3"]; - HOLLYWOOD_SEMINOLE = 475 - [(.google.fhir.proto.fhir_original_code) = "1570-1"]; - OKLAHOMA_SEMINOLE = 476 - [(.google.fhir.proto.fhir_original_code) = "1571-9"]; - SAN_MANUAL = 477 [(.google.fhir.proto.fhir_original_code) = "1574-3"]; - ABSENTEE_SHAWNEE = 478 [(.google.fhir.proto.fhir_original_code) = "1579-2"]; - EASTERN_SHAWNEE = 479 [(.google.fhir.proto.fhir_original_code) = "1580-0"]; - BATTLE_MOUNTAIN = 480 [(.google.fhir.proto.fhir_original_code) = "1587-5"]; - DUCKWATER = 481 [(.google.fhir.proto.fhir_original_code) = "1588-3"]; - ELKO = 482 [(.google.fhir.proto.fhir_original_code) = "1589-1"]; - ELY = 483 [(.google.fhir.proto.fhir_original_code) = "1590-9"]; - GOSHUTE = 484 [(.google.fhir.proto.fhir_original_code) = "1591-7"]; - PANAMINT = 485 [(.google.fhir.proto.fhir_original_code) = "1592-5"]; - RUBY_VALLEY = 486 [(.google.fhir.proto.fhir_original_code) = "1593-3"]; - SKULL_VALLEY = 487 [(.google.fhir.proto.fhir_original_code) = "1594-1"]; - SOUTH_FORK_SHOSHONE = 488 - [(.google.fhir.proto.fhir_original_code) = "1595-8"]; - TE_MOAK_WESTERN_SHOSHONE = 489 - [(.google.fhir.proto.fhir_original_code) = "1596-6"]; - TIMBI_SHA_SHOSHONE = 490 - [(.google.fhir.proto.fhir_original_code) = "1597-4"]; - WASHAKIE = 491 [(.google.fhir.proto.fhir_original_code) = "1598-2"]; - WIND_RIVER_SHOSHONE = 492 - [(.google.fhir.proto.fhir_original_code) = "1599-0"]; - YOMBA = 493 [(.google.fhir.proto.fhir_original_code) = "1600-6"]; - DUCK_VALLEY = 494 [(.google.fhir.proto.fhir_original_code) = "1603-0"]; - FALLON = 495 [(.google.fhir.proto.fhir_original_code) = "1604-8"]; - FORT_MC_DERMITT = 496 [(.google.fhir.proto.fhir_original_code) = "1605-5"]; - BLACKFOOT_SIOUX = 497 [(.google.fhir.proto.fhir_original_code) = "1610-5"]; - BRULE_SIOUX = 498 [(.google.fhir.proto.fhir_original_code) = "1611-3"]; - CHEYENNE_RIVER_SIOUX = 499 - [(.google.fhir.proto.fhir_original_code) = "1612-1"]; - CROW_CREEK_SIOUX = 500 [(.google.fhir.proto.fhir_original_code) = "1613-9"]; - DAKOTA_SIOUX = 501 [(.google.fhir.proto.fhir_original_code) = "1614-7"]; - FLANDREAU_SANTEE = 502 [(.google.fhir.proto.fhir_original_code) = "1615-4"]; - FORT_PECK = 503 [(.google.fhir.proto.fhir_original_code) = "1616-2"]; - LAKE_TRAVERSE_SIOUX = 504 - [(.google.fhir.proto.fhir_original_code) = "1617-0"]; - LOWER_BRULE_SIOUX = 505 - [(.google.fhir.proto.fhir_original_code) = "1618-8"]; - LOWER_SIOUX = 506 [(.google.fhir.proto.fhir_original_code) = "1619-6"]; - MDEWAKANTON_SIOUX = 507 - [(.google.fhir.proto.fhir_original_code) = "1620-4"]; - MINICONJOU = 508 [(.google.fhir.proto.fhir_original_code) = "1621-2"]; - OGLALA_SIOUX = 509 [(.google.fhir.proto.fhir_original_code) = "1622-0"]; - PINE_RIDGE_SIOUX = 510 [(.google.fhir.proto.fhir_original_code) = "1623-8"]; - PIPESTONE_SIOUX = 511 [(.google.fhir.proto.fhir_original_code) = "1624-6"]; - PRAIRIE_ISLAND_SIOUX = 512 - [(.google.fhir.proto.fhir_original_code) = "1625-3"]; - PRIOR_LAKE_SIOUX = 513 [(.google.fhir.proto.fhir_original_code) = "1626-1"]; - ROSEBUD_SIOUX = 514 [(.google.fhir.proto.fhir_original_code) = "1627-9"]; - SANS_ARC_SIOUX = 515 [(.google.fhir.proto.fhir_original_code) = "1628-7"]; - SANTEE_SIOUX = 516 [(.google.fhir.proto.fhir_original_code) = "1629-5"]; - SISSETON_WAHPETON = 517 - [(.google.fhir.proto.fhir_original_code) = "1630-3"]; - SISSETON_SIOUX = 518 [(.google.fhir.proto.fhir_original_code) = "1631-1"]; - SPIRIT_LAKE_SIOUX = 519 - [(.google.fhir.proto.fhir_original_code) = "1632-9"]; - STANDING_ROCK_SIOUX = 520 - [(.google.fhir.proto.fhir_original_code) = "1633-7"]; - TETON_SIOUX = 521 [(.google.fhir.proto.fhir_original_code) = "1634-5"]; - TWO_KETTLE_SIOUX = 522 [(.google.fhir.proto.fhir_original_code) = "1635-2"]; - UPPER_SIOUX = 523 [(.google.fhir.proto.fhir_original_code) = "1636-0"]; - WAHPEKUTE_SIOUX = 524 [(.google.fhir.proto.fhir_original_code) = "1637-8"]; - WAHPETON_SIOUX = 525 [(.google.fhir.proto.fhir_original_code) = "1638-6"]; - WAZHAZA_SIOUX = 526 [(.google.fhir.proto.fhir_original_code) = "1639-4"]; - YANKTON_SIOUX = 527 [(.google.fhir.proto.fhir_original_code) = "1640-2"]; - YANKTONAI_SIOUX = 528 [(.google.fhir.proto.fhir_original_code) = "1641-0"]; - AK_CHIN = 529 [(.google.fhir.proto.fhir_original_code) = "1654-3"]; - GILA_BEND = 530 [(.google.fhir.proto.fhir_original_code) = "1655-0"]; - SAN_XAVIER = 531 [(.google.fhir.proto.fhir_original_code) = "1656-8"]; - SELLS = 532 [(.google.fhir.proto.fhir_original_code) = "1657-6"]; - COW_CREEK_UMPQUA = 533 [(.google.fhir.proto.fhir_original_code) = "1668-3"]; - ALLEN_CANYON = 534 [(.google.fhir.proto.fhir_original_code) = "1671-7"]; - UINTAH_UTE = 535 [(.google.fhir.proto.fhir_original_code) = "1672-5"]; - UTE_MOUNTAIN_UTE = 536 [(.google.fhir.proto.fhir_original_code) = "1673-3"]; - GAY_HEAD_WAMPANOAG = 537 - [(.google.fhir.proto.fhir_original_code) = "1680-8"]; - MASHPEE_WAMPANOAG = 538 - [(.google.fhir.proto.fhir_original_code) = "1681-6"]; - ALPINE = 539 [(.google.fhir.proto.fhir_original_code) = "1688-1"]; - CARSON = 540 [(.google.fhir.proto.fhir_original_code) = "1689-9"]; - DRESSLERVILLE = 541 [(.google.fhir.proto.fhir_original_code) = "1690-7"]; - HO_CHUNK = 542 [(.google.fhir.proto.fhir_original_code) = "1697-2"]; - NEBRASKA_WINNEBAGO = 543 - [(.google.fhir.proto.fhir_original_code) = "1698-0"]; - TABLE_BLUFF = 544 [(.google.fhir.proto.fhir_original_code) = "1705-3"]; - BARRIO_LIBRE = 545 [(.google.fhir.proto.fhir_original_code) = "1712-9"]; - PASCUA_YAQUI = 546 [(.google.fhir.proto.fhir_original_code) = "1713-7"]; - CHUKCHANSI = 547 [(.google.fhir.proto.fhir_original_code) = "1718-6"]; - TACHI = 548 [(.google.fhir.proto.fhir_original_code) = "1719-4"]; - TULE_RIVER = 549 [(.google.fhir.proto.fhir_original_code) = "1720-2"]; - COCOPAH = 550 [(.google.fhir.proto.fhir_original_code) = "1725-1"]; - HAVASUPAI = 551 [(.google.fhir.proto.fhir_original_code) = "1726-9"]; - HUALAPAI = 552 [(.google.fhir.proto.fhir_original_code) = "1727-7"]; - MARICOPA = 553 [(.google.fhir.proto.fhir_original_code) = "1728-5"]; - MOHAVE = 554 [(.google.fhir.proto.fhir_original_code) = "1729-3"]; - QUECHAN = 555 [(.google.fhir.proto.fhir_original_code) = "1730-1"]; - YAVAPAI = 556 [(.google.fhir.proto.fhir_original_code) = "1731-9"]; - COAST_YUROK = 557 [(.google.fhir.proto.fhir_original_code) = "1733-5"]; - ALASKA_INDIAN = 558 [(.google.fhir.proto.fhir_original_code) = "1737-6"]; - ESKIMO = 559 [(.google.fhir.proto.fhir_original_code) = "1840-8"]; - ALEUT = 560 [(.google.fhir.proto.fhir_original_code) = "1966-1"]; - ALASKAN_ATHABASCAN = 561 - [(.google.fhir.proto.fhir_original_code) = "1739-2"]; - SOUTHEAST_ALASKA = 562 [(.google.fhir.proto.fhir_original_code) = "1811-9"]; - AHTNA = 563 [(.google.fhir.proto.fhir_original_code) = "1740-0"]; - ALATNA = 564 [(.google.fhir.proto.fhir_original_code) = "1741-8"]; - ALEXANDER = 565 [(.google.fhir.proto.fhir_original_code) = "1742-6"]; - ALLAKAKET = 566 [(.google.fhir.proto.fhir_original_code) = "1743-4"]; - ALANVIK = 567 [(.google.fhir.proto.fhir_original_code) = "1744-2"]; - ANVIK = 568 [(.google.fhir.proto.fhir_original_code) = "1745-9"]; - ARCTIC = 569 [(.google.fhir.proto.fhir_original_code) = "1746-7"]; - BEAVER = 570 [(.google.fhir.proto.fhir_original_code) = "1747-5"]; - BIRCH_CREEK = 571 [(.google.fhir.proto.fhir_original_code) = "1748-3"]; - CANTWELL = 572 [(.google.fhir.proto.fhir_original_code) = "1749-1"]; - CHALKYITSIK = 573 [(.google.fhir.proto.fhir_original_code) = "1750-9"]; - CHICKALOON = 574 [(.google.fhir.proto.fhir_original_code) = "1751-7"]; - CHISTOCHINA = 575 [(.google.fhir.proto.fhir_original_code) = "1752-5"]; - CHITINA = 576 [(.google.fhir.proto.fhir_original_code) = "1753-3"]; - CIRCLE = 577 [(.google.fhir.proto.fhir_original_code) = "1754-1"]; - COOK_INLET = 578 [(.google.fhir.proto.fhir_original_code) = "1755-8"]; - COPPER_CENTER = 579 [(.google.fhir.proto.fhir_original_code) = "1756-6"]; - COPPER_RIVER = 580 [(.google.fhir.proto.fhir_original_code) = "1757-4"]; - DOT_LAKE = 581 [(.google.fhir.proto.fhir_original_code) = "1758-2"]; - DOYON = 582 [(.google.fhir.proto.fhir_original_code) = "1759-0"]; - EAGLE = 583 [(.google.fhir.proto.fhir_original_code) = "1760-8"]; - EKLUTNA = 584 [(.google.fhir.proto.fhir_original_code) = "1761-6"]; - EVANSVILLE = 585 [(.google.fhir.proto.fhir_original_code) = "1762-4"]; - FORT_YUKON = 586 [(.google.fhir.proto.fhir_original_code) = "1763-2"]; - GAKONA = 587 [(.google.fhir.proto.fhir_original_code) = "1764-0"]; - GALENA = 588 [(.google.fhir.proto.fhir_original_code) = "1765-7"]; - GRAYLING = 589 [(.google.fhir.proto.fhir_original_code) = "1766-5"]; - GULKANA = 590 [(.google.fhir.proto.fhir_original_code) = "1767-3"]; - HEALY_LAKE = 591 [(.google.fhir.proto.fhir_original_code) = "1768-1"]; - HOLY_CROSS = 592 [(.google.fhir.proto.fhir_original_code) = "1769-9"]; - HUGHES = 593 [(.google.fhir.proto.fhir_original_code) = "1770-7"]; - HUSLIA = 594 [(.google.fhir.proto.fhir_original_code) = "1771-5"]; - ILIAMNA = 595 [(.google.fhir.proto.fhir_original_code) = "1772-3"]; - KALTAG = 596 [(.google.fhir.proto.fhir_original_code) = "1773-1"]; - KLUTI_KAAH = 597 [(.google.fhir.proto.fhir_original_code) = "1774-9"]; - KNIK = 598 [(.google.fhir.proto.fhir_original_code) = "1775-6"]; - KOYUKUK = 599 [(.google.fhir.proto.fhir_original_code) = "1776-4"]; - LAKE_MINCHUMINA = 600 [(.google.fhir.proto.fhir_original_code) = "1777-2"]; - LIME = 601 [(.google.fhir.proto.fhir_original_code) = "1778-0"]; - MCGRATH = 602 [(.google.fhir.proto.fhir_original_code) = "1779-8"]; - MANLEY_HOT_SPRINGS = 603 - [(.google.fhir.proto.fhir_original_code) = "1780-6"]; - MENTASTA_LAKE = 604 [(.google.fhir.proto.fhir_original_code) = "1781-4"]; - MINTO = 605 [(.google.fhir.proto.fhir_original_code) = "1782-2"]; - NENANA = 606 [(.google.fhir.proto.fhir_original_code) = "1783-0"]; - NIKOLAI = 607 [(.google.fhir.proto.fhir_original_code) = "1784-8"]; - NINILCHIK = 608 [(.google.fhir.proto.fhir_original_code) = "1785-5"]; - NONDALTON = 609 [(.google.fhir.proto.fhir_original_code) = "1786-3"]; - NORTHWAY = 610 [(.google.fhir.proto.fhir_original_code) = "1787-1"]; - NULATO = 611 [(.google.fhir.proto.fhir_original_code) = "1788-9"]; - PEDRO_BAY = 612 [(.google.fhir.proto.fhir_original_code) = "1789-7"]; - RAMPART = 613 [(.google.fhir.proto.fhir_original_code) = "1790-5"]; - RUBY = 614 [(.google.fhir.proto.fhir_original_code) = "1791-3"]; - SALAMATOF = 615 [(.google.fhir.proto.fhir_original_code) = "1792-1"]; - SELDOVIA = 616 [(.google.fhir.proto.fhir_original_code) = "1793-9"]; - SLANA = 617 [(.google.fhir.proto.fhir_original_code) = "1794-7"]; - SHAGELUK = 618 [(.google.fhir.proto.fhir_original_code) = "1795-4"]; - STEVENS = 619 [(.google.fhir.proto.fhir_original_code) = "1796-2"]; - STONY_RIVER = 620 [(.google.fhir.proto.fhir_original_code) = "1797-0"]; - TAKOTNA = 621 [(.google.fhir.proto.fhir_original_code) = "1798-8"]; - TANACROSS = 622 [(.google.fhir.proto.fhir_original_code) = "1799-6"]; - TANAINA = 623 [(.google.fhir.proto.fhir_original_code) = "1800-2"]; - TANANA = 624 [(.google.fhir.proto.fhir_original_code) = "1801-0"]; - TANANA_CHIEFS = 625 [(.google.fhir.proto.fhir_original_code) = "1802-8"]; - TAZLINA = 626 [(.google.fhir.proto.fhir_original_code) = "1803-6"]; - TELIDA = 627 [(.google.fhir.proto.fhir_original_code) = "1804-4"]; - TETLIN = 628 [(.google.fhir.proto.fhir_original_code) = "1805-1"]; - TOK = 629 [(.google.fhir.proto.fhir_original_code) = "1806-9"]; - TYONEK = 630 [(.google.fhir.proto.fhir_original_code) = "1807-7"]; - VENETIE = 631 [(.google.fhir.proto.fhir_original_code) = "1808-5"]; - WISEMAN = 632 [(.google.fhir.proto.fhir_original_code) = "1809-3"]; - TLINGIT_HAIDA = 633 [(.google.fhir.proto.fhir_original_code) = "1813-5"]; - TSIMSHIAN = 634 [(.google.fhir.proto.fhir_original_code) = "1837-4"]; - ANGOON = 635 [(.google.fhir.proto.fhir_original_code) = "1814-3"]; - CENTRAL_COUNCIL_OF_TLINGIT_AND_HAIDA_TRIBES = 636 - [(.google.fhir.proto.fhir_original_code) = "1815-0"]; - CHILKAT = 637 [(.google.fhir.proto.fhir_original_code) = "1816-8"]; - CHILKOOT = 638 [(.google.fhir.proto.fhir_original_code) = "1817-6"]; - CRAIG = 639 [(.google.fhir.proto.fhir_original_code) = "1818-4"]; - DOUGLAS = 640 [(.google.fhir.proto.fhir_original_code) = "1819-2"]; - HAIDA = 641 [(.google.fhir.proto.fhir_original_code) = "1820-0"]; - HOONAH = 642 [(.google.fhir.proto.fhir_original_code) = "1821-8"]; - HYDABURG = 643 [(.google.fhir.proto.fhir_original_code) = "1822-6"]; - KAKE = 644 [(.google.fhir.proto.fhir_original_code) = "1823-4"]; - KASAAN = 645 [(.google.fhir.proto.fhir_original_code) = "1824-2"]; - KENAITZE = 646 [(.google.fhir.proto.fhir_original_code) = "1825-9"]; - KETCHIKAN = 647 [(.google.fhir.proto.fhir_original_code) = "1826-7"]; - KLAWOCK = 648 [(.google.fhir.proto.fhir_original_code) = "1827-5"]; - PELICAN = 649 [(.google.fhir.proto.fhir_original_code) = "1828-3"]; - PETERSBURG = 650 [(.google.fhir.proto.fhir_original_code) = "1829-1"]; - SAXMAN = 651 [(.google.fhir.proto.fhir_original_code) = "1830-9"]; - SITKA = 652 [(.google.fhir.proto.fhir_original_code) = "1831-7"]; - TENAKEE_SPRINGS = 653 [(.google.fhir.proto.fhir_original_code) = "1832-5"]; - TLINGIT = 654 [(.google.fhir.proto.fhir_original_code) = "1833-3"]; - WRANGELL = 655 [(.google.fhir.proto.fhir_original_code) = "1834-1"]; - YAKUTAT = 656 [(.google.fhir.proto.fhir_original_code) = "1835-8"]; - METLAKATLA = 657 [(.google.fhir.proto.fhir_original_code) = "1838-2"]; - GREENLAND_ESKIMO = 658 [(.google.fhir.proto.fhir_original_code) = "1842-4"]; - INUPIAT_ESKIMO = 659 [(.google.fhir.proto.fhir_original_code) = "1844-0"]; - SIBERIAN_ESKIMO = 660 [(.google.fhir.proto.fhir_original_code) = "1891-1"]; - YUPIK_ESKIMO = 661 [(.google.fhir.proto.fhir_original_code) = "1896-0"]; - AMBLER = 662 [(.google.fhir.proto.fhir_original_code) = "1845-7"]; - ANAKTUVUK = 663 [(.google.fhir.proto.fhir_original_code) = "1846-5"]; - ANAKTUVUK_PASS = 664 [(.google.fhir.proto.fhir_original_code) = "1847-3"]; - ARCTIC_SLOPE_INUPIAT = 665 - [(.google.fhir.proto.fhir_original_code) = "1848-1"]; - ARCTIC_SLOPE_CORPORATION = 666 - [(.google.fhir.proto.fhir_original_code) = "1849-9"]; - ATQASUK = 667 [(.google.fhir.proto.fhir_original_code) = "1850-7"]; - BARROW = 668 [(.google.fhir.proto.fhir_original_code) = "1851-5"]; - BERING_STRAITS_INUPIAT = 669 - [(.google.fhir.proto.fhir_original_code) = "1852-3"]; - BREVIG_MISSION = 670 [(.google.fhir.proto.fhir_original_code) = "1853-1"]; - BUCKLAND = 671 [(.google.fhir.proto.fhir_original_code) = "1854-9"]; - CHINIK = 672 [(.google.fhir.proto.fhir_original_code) = "1855-6"]; - COUNCIL = 673 [(.google.fhir.proto.fhir_original_code) = "1856-4"]; - DEERING = 674 [(.google.fhir.proto.fhir_original_code) = "1857-2"]; - ELIM = 675 [(.google.fhir.proto.fhir_original_code) = "1858-0"]; - GOLOVIN = 676 [(.google.fhir.proto.fhir_original_code) = "1859-8"]; - INALIK_DIOMEDE = 677 [(.google.fhir.proto.fhir_original_code) = "1860-6"]; - INUPIAQ = 678 [(.google.fhir.proto.fhir_original_code) = "1861-4"]; - KAKTOVIK = 679 [(.google.fhir.proto.fhir_original_code) = "1862-2"]; - KAWERAK = 680 [(.google.fhir.proto.fhir_original_code) = "1863-0"]; - KIANA = 681 [(.google.fhir.proto.fhir_original_code) = "1864-8"]; - KIVALINA = 682 [(.google.fhir.proto.fhir_original_code) = "1865-5"]; - KOBUK = 683 [(.google.fhir.proto.fhir_original_code) = "1866-3"]; - KOTZEBUE = 684 [(.google.fhir.proto.fhir_original_code) = "1867-1"]; - KOYUK = 685 [(.google.fhir.proto.fhir_original_code) = "1868-9"]; - KWIGUK = 686 [(.google.fhir.proto.fhir_original_code) = "1869-7"]; - MAUNELUK_INUPIAT = 687 [(.google.fhir.proto.fhir_original_code) = "1870-5"]; - NANA_INUPIAT = 688 [(.google.fhir.proto.fhir_original_code) = "1871-3"]; - NOATAK = 689 [(.google.fhir.proto.fhir_original_code) = "1872-1"]; - NOME = 690 [(.google.fhir.proto.fhir_original_code) = "1873-9"]; - NOORVIK = 691 [(.google.fhir.proto.fhir_original_code) = "1874-7"]; - NUIQSUT = 692 [(.google.fhir.proto.fhir_original_code) = "1875-4"]; - POINT_HOPE = 693 [(.google.fhir.proto.fhir_original_code) = "1876-2"]; - POINT_LAY = 694 [(.google.fhir.proto.fhir_original_code) = "1877-0"]; - SELAWIK = 695 [(.google.fhir.proto.fhir_original_code) = "1878-8"]; - SHAKTOOLIK = 696 [(.google.fhir.proto.fhir_original_code) = "1879-6"]; - SHISHMAREF = 697 [(.google.fhir.proto.fhir_original_code) = "1880-4"]; - SHUNGNAK = 698 [(.google.fhir.proto.fhir_original_code) = "1881-2"]; - SOLOMON = 699 [(.google.fhir.proto.fhir_original_code) = "1882-0"]; - TELLER = 700 [(.google.fhir.proto.fhir_original_code) = "1883-8"]; - UNALAKLEET = 701 [(.google.fhir.proto.fhir_original_code) = "1884-6"]; - WAINWRIGHT = 702 [(.google.fhir.proto.fhir_original_code) = "1885-3"]; - WALES = 703 [(.google.fhir.proto.fhir_original_code) = "1886-1"]; - WHITE_MOUNTAIN = 704 [(.google.fhir.proto.fhir_original_code) = "1887-9"]; - WHITE_MOUNTAIN_INUPIAT = 705 - [(.google.fhir.proto.fhir_original_code) = "1888-7"]; - MARYS_IGLOO = 706 [(.google.fhir.proto.fhir_original_code) = "1889-5"]; - GAMBELL = 707 [(.google.fhir.proto.fhir_original_code) = "1892-9"]; - SAVOONGA = 708 [(.google.fhir.proto.fhir_original_code) = "1893-7"]; - SIBERIAN_YUPIK = 709 [(.google.fhir.proto.fhir_original_code) = "1894-5"]; - AKIACHAK = 710 [(.google.fhir.proto.fhir_original_code) = "1897-8"]; - AKIAK = 711 [(.google.fhir.proto.fhir_original_code) = "1898-6"]; - ALAKANUK = 712 [(.google.fhir.proto.fhir_original_code) = "1899-4"]; - ALEKNAGIK = 713 [(.google.fhir.proto.fhir_original_code) = "1900-0"]; - ANDREAFSKY = 714 [(.google.fhir.proto.fhir_original_code) = "1901-8"]; - ANIAK = 715 [(.google.fhir.proto.fhir_original_code) = "1902-6"]; - ATMAUTLUAK = 716 [(.google.fhir.proto.fhir_original_code) = "1903-4"]; - BETHEL = 717 [(.google.fhir.proto.fhir_original_code) = "1904-2"]; - BILL_MOORES_SLOUGH = 718 - [(.google.fhir.proto.fhir_original_code) = "1905-9"]; - BRISTOL_BAY_YUPIK = 719 - [(.google.fhir.proto.fhir_original_code) = "1906-7"]; - CALISTA_YUPIK = 720 [(.google.fhir.proto.fhir_original_code) = "1907-5"]; - CHEFORNAK = 721 [(.google.fhir.proto.fhir_original_code) = "1908-3"]; - CHEVAK = 722 [(.google.fhir.proto.fhir_original_code) = "1909-1"]; - CHUATHBALUK = 723 [(.google.fhir.proto.fhir_original_code) = "1910-9"]; - CLARKS_POINT = 724 [(.google.fhir.proto.fhir_original_code) = "1911-7"]; - CROOKED_CREEK = 725 [(.google.fhir.proto.fhir_original_code) = "1912-5"]; - DILLINGHAM = 726 [(.google.fhir.proto.fhir_original_code) = "1913-3"]; - EEK = 727 [(.google.fhir.proto.fhir_original_code) = "1914-1"]; - EKUK = 728 [(.google.fhir.proto.fhir_original_code) = "1915-8"]; - EKWOK = 729 [(.google.fhir.proto.fhir_original_code) = "1916-6"]; - EMMONAK = 730 [(.google.fhir.proto.fhir_original_code) = "1917-4"]; - GOODNEWS_BAY = 731 [(.google.fhir.proto.fhir_original_code) = "1918-2"]; - HOOPER_BAY = 732 [(.google.fhir.proto.fhir_original_code) = "1919-0"]; - IQURMUIT_RUSSIAN_MISSION = 733 - [(.google.fhir.proto.fhir_original_code) = "1920-8"]; - KALSKAG = 734 [(.google.fhir.proto.fhir_original_code) = "1921-6"]; - KASIGLUK = 735 [(.google.fhir.proto.fhir_original_code) = "1922-4"]; - KIPNUK = 736 [(.google.fhir.proto.fhir_original_code) = "1923-2"]; - KOLIGANEK = 737 [(.google.fhir.proto.fhir_original_code) = "1924-0"]; - KONGIGANAK = 738 [(.google.fhir.proto.fhir_original_code) = "1925-7"]; - KOTLIK = 739 [(.google.fhir.proto.fhir_original_code) = "1926-5"]; - KWETHLUK = 740 [(.google.fhir.proto.fhir_original_code) = "1927-3"]; - KWIGILLINGOK = 741 [(.google.fhir.proto.fhir_original_code) = "1928-1"]; - LEVELOCK = 742 [(.google.fhir.proto.fhir_original_code) = "1929-9"]; - LOWER_KALSKAG = 743 [(.google.fhir.proto.fhir_original_code) = "1930-7"]; - MANOKOTAK = 744 [(.google.fhir.proto.fhir_original_code) = "1931-5"]; - MARSHALL = 745 [(.google.fhir.proto.fhir_original_code) = "1932-3"]; - MEKORYUK = 746 [(.google.fhir.proto.fhir_original_code) = "1933-1"]; - MOUNTAIN_VILLAGE = 747 [(.google.fhir.proto.fhir_original_code) = "1934-9"]; - NAKNEK = 748 [(.google.fhir.proto.fhir_original_code) = "1935-6"]; - NAPAUMUTE = 749 [(.google.fhir.proto.fhir_original_code) = "1936-4"]; - NAPAKIAK = 750 [(.google.fhir.proto.fhir_original_code) = "1937-2"]; - NAPASKIAK = 751 [(.google.fhir.proto.fhir_original_code) = "1938-0"]; - NEWHALEN = 752 [(.google.fhir.proto.fhir_original_code) = "1939-8"]; - NEW_STUYAHOK = 753 [(.google.fhir.proto.fhir_original_code) = "1940-6"]; - NEWTOK = 754 [(.google.fhir.proto.fhir_original_code) = "1941-4"]; - NIGHTMUTE = 755 [(.google.fhir.proto.fhir_original_code) = "1942-2"]; - NUNAPITCHUKV = 756 [(.google.fhir.proto.fhir_original_code) = "1943-0"]; - OSCARVILLE = 757 [(.google.fhir.proto.fhir_original_code) = "1944-8"]; - PILOT_STATION = 758 [(.google.fhir.proto.fhir_original_code) = "1945-5"]; - PITKAS_POINT = 759 [(.google.fhir.proto.fhir_original_code) = "1946-3"]; - PLATINUM = 760 [(.google.fhir.proto.fhir_original_code) = "1947-1"]; - PORTAGE_CREEK = 761 [(.google.fhir.proto.fhir_original_code) = "1948-9"]; - QUINHAGAK = 762 [(.google.fhir.proto.fhir_original_code) = "1949-7"]; - RED_DEVIL = 763 [(.google.fhir.proto.fhir_original_code) = "1950-5"]; - ST_MICHAEL = 764 [(.google.fhir.proto.fhir_original_code) = "1951-3"]; - SCAMMON_BAY = 765 [(.google.fhir.proto.fhir_original_code) = "1952-1"]; - SHELDONS_POINT = 766 [(.google.fhir.proto.fhir_original_code) = "1953-9"]; - SLEETMUTE = 767 [(.google.fhir.proto.fhir_original_code) = "1954-7"]; - STEBBINS = 768 [(.google.fhir.proto.fhir_original_code) = "1955-4"]; - TOGIAK = 769 [(.google.fhir.proto.fhir_original_code) = "1956-2"]; - TOKSOOK = 770 [(.google.fhir.proto.fhir_original_code) = "1957-0"]; - TULUKSKAK = 771 [(.google.fhir.proto.fhir_original_code) = "1958-8"]; - TUNTUTULIAK = 772 [(.google.fhir.proto.fhir_original_code) = "1959-6"]; - TUNUNAK = 773 [(.google.fhir.proto.fhir_original_code) = "1960-4"]; - TWIN_HILLS = 774 [(.google.fhir.proto.fhir_original_code) = "1961-2"]; - GEORGETOWN_YUPIK_ESKIMO = 775 - [(.google.fhir.proto.fhir_original_code) = "1962-0"]; - ST_MARYS = 776 [(.google.fhir.proto.fhir_original_code) = "1963-8"]; - UMKUMIATE = 777 [(.google.fhir.proto.fhir_original_code) = "1964-6"]; - ALUTIIQ_ALEUT = 778 [(.google.fhir.proto.fhir_original_code) = "1968-7"]; - BRISTOL_BAY_ALEUT = 779 - [(.google.fhir.proto.fhir_original_code) = "1972-9"]; - CHUGACH_ALEUT = 780 [(.google.fhir.proto.fhir_original_code) = "1984-4"]; - EYAK = 781 [(.google.fhir.proto.fhir_original_code) = "1990-1"]; - KONIAG_ALEUT = 782 [(.google.fhir.proto.fhir_original_code) = "1992-7"]; - SUGPIAQ = 783 [(.google.fhir.proto.fhir_original_code) = "2002-4"]; - SUQPIGAQ = 784 [(.google.fhir.proto.fhir_original_code) = "2004-0"]; - UNANGAN_ALEUT = 785 [(.google.fhir.proto.fhir_original_code) = "2006-5"]; - TATITLEK = 786 [(.google.fhir.proto.fhir_original_code) = "1969-5"]; - UGASHIK = 787 [(.google.fhir.proto.fhir_original_code) = "1970-3"]; - CHIGNIK = 788 [(.google.fhir.proto.fhir_original_code) = "1973-7"]; - CHIGNIK_LAKE = 789 [(.google.fhir.proto.fhir_original_code) = "1974-5"]; - EGEGIK = 790 [(.google.fhir.proto.fhir_original_code) = "1975-2"]; - IGIUGIG = 791 [(.google.fhir.proto.fhir_original_code) = "1976-0"]; - IVANOF_BAY = 792 [(.google.fhir.proto.fhir_original_code) = "1977-8"]; - KING_SALMON = 793 [(.google.fhir.proto.fhir_original_code) = "1978-6"]; - KOKHANOK = 794 [(.google.fhir.proto.fhir_original_code) = "1979-4"]; - PERRYVILLE = 795 [(.google.fhir.proto.fhir_original_code) = "1980-2"]; - PILOT_POINT = 796 [(.google.fhir.proto.fhir_original_code) = "1981-0"]; - PORT_HEIDEN = 797 [(.google.fhir.proto.fhir_original_code) = "1982-8"]; - CHENEGA = 798 [(.google.fhir.proto.fhir_original_code) = "1985-1"]; - CHUGACH_CORPORATION = 799 - [(.google.fhir.proto.fhir_original_code) = "1986-9"]; - ENGLISH_BAY = 800 [(.google.fhir.proto.fhir_original_code) = "1987-7"]; - PORT_GRAHAM = 801 [(.google.fhir.proto.fhir_original_code) = "1988-5"]; - AKHIOK = 802 [(.google.fhir.proto.fhir_original_code) = "1993-5"]; - AGDAAGUX = 803 [(.google.fhir.proto.fhir_original_code) = "1994-3"]; - KARLUK = 804 [(.google.fhir.proto.fhir_original_code) = "1995-0"]; - KODIAK = 805 [(.google.fhir.proto.fhir_original_code) = "1996-8"]; - LARSEN_BAY = 806 [(.google.fhir.proto.fhir_original_code) = "1997-6"]; - OLD_HARBOR = 807 [(.google.fhir.proto.fhir_original_code) = "1998-4"]; - OUZINKIE = 808 [(.google.fhir.proto.fhir_original_code) = "1999-2"]; - PORT_LIONS = 809 [(.google.fhir.proto.fhir_original_code) = "2000-8"]; - AKUTAN = 810 [(.google.fhir.proto.fhir_original_code) = "2007-3"]; - ALEUT_CORPORATION = 811 - [(.google.fhir.proto.fhir_original_code) = "2008-1"]; - ALEUTIAN = 812 [(.google.fhir.proto.fhir_original_code) = "2009-9"]; - ALEUTIAN_ISLANDER = 813 - [(.google.fhir.proto.fhir_original_code) = "2010-7"]; - ATKA = 814 [(.google.fhir.proto.fhir_original_code) = "2011-5"]; - BELKOFSKI = 815 [(.google.fhir.proto.fhir_original_code) = "2012-3"]; - CHIGNIK_LAGOON = 816 [(.google.fhir.proto.fhir_original_code) = "2013-1"]; - KING_COVE = 817 [(.google.fhir.proto.fhir_original_code) = "2014-9"]; - FALSE_PASS = 818 [(.google.fhir.proto.fhir_original_code) = "2015-6"]; - NELSON_LAGOON = 819 [(.google.fhir.proto.fhir_original_code) = "2016-4"]; - NIKOLSKI = 820 [(.google.fhir.proto.fhir_original_code) = "2017-2"]; - PAULOFF_HARBOR = 821 [(.google.fhir.proto.fhir_original_code) = "2018-0"]; - QAGAN_TOYAGUNGIN = 822 [(.google.fhir.proto.fhir_original_code) = "2019-8"]; - QAWALANGIN = 823 [(.google.fhir.proto.fhir_original_code) = "2020-6"]; - ST_GEORGE = 824 [(.google.fhir.proto.fhir_original_code) = "2021-4"]; - ST_PAUL = 825 [(.google.fhir.proto.fhir_original_code) = "2022-2"]; - SAND_POINT = 826 [(.google.fhir.proto.fhir_original_code) = "2023-0"]; - SOUTH_NAKNEK = 827 [(.google.fhir.proto.fhir_original_code) = "2024-8"]; - UNALASKA = 828 [(.google.fhir.proto.fhir_original_code) = "2025-5"]; - UNGA = 829 [(.google.fhir.proto.fhir_original_code) = "2026-3"]; - ASIAN = 830 [(.google.fhir.proto.fhir_original_code) = "2028-9"]; - ASIAN_INDIAN = 831 [(.google.fhir.proto.fhir_original_code) = "2029-7"]; - BANGLADESHI = 832 [(.google.fhir.proto.fhir_original_code) = "2030-5"]; - BHUTANESE = 833 [(.google.fhir.proto.fhir_original_code) = "2031-3"]; - BURMESE = 834 [(.google.fhir.proto.fhir_original_code) = "2032-1"]; - CAMBODIAN = 835 [(.google.fhir.proto.fhir_original_code) = "2033-9"]; - CHINESE = 836 [(.google.fhir.proto.fhir_original_code) = "2034-7"]; - TAIWANESE = 837 [(.google.fhir.proto.fhir_original_code) = "2035-4"]; - FILIPINO = 838 [(.google.fhir.proto.fhir_original_code) = "2036-2"]; - HMONG = 839 [(.google.fhir.proto.fhir_original_code) = "2037-0"]; - INDONESIAN = 840 [(.google.fhir.proto.fhir_original_code) = "2038-8"]; - JAPANESE = 841 [(.google.fhir.proto.fhir_original_code) = "2039-6"]; - KOREAN = 842 [(.google.fhir.proto.fhir_original_code) = "2040-4"]; - LAOTIAN = 843 [(.google.fhir.proto.fhir_original_code) = "2041-2"]; - MALAYSIAN = 844 [(.google.fhir.proto.fhir_original_code) = "2042-0"]; - OKINAWAN = 845 [(.google.fhir.proto.fhir_original_code) = "2043-8"]; - PAKISTANI = 846 [(.google.fhir.proto.fhir_original_code) = "2044-6"]; - SRI_LANKAN = 847 [(.google.fhir.proto.fhir_original_code) = "2045-3"]; - THAI = 848 [(.google.fhir.proto.fhir_original_code) = "2046-1"]; - VIETNAMESE = 849 [(.google.fhir.proto.fhir_original_code) = "2047-9"]; - IWO_JIMAN = 850 [(.google.fhir.proto.fhir_original_code) = "2048-7"]; - MALDIVIAN = 851 [(.google.fhir.proto.fhir_original_code) = "2049-5"]; - NEPALESE = 852 [(.google.fhir.proto.fhir_original_code) = "2050-3"]; - SINGAPOREAN = 853 [(.google.fhir.proto.fhir_original_code) = "2051-1"]; - MADAGASCAR = 854 [(.google.fhir.proto.fhir_original_code) = "2052-9"]; - BLACK_OR_AFRICAN_AMERICAN = 855 - [(.google.fhir.proto.fhir_original_code) = "2054-5"]; - BLACK = 856 [(.google.fhir.proto.fhir_original_code) = "2056-0"]; - AFRICAN_AMERICAN = 857 [(.google.fhir.proto.fhir_original_code) = "2058-6"]; - AFRICAN = 858 [(.google.fhir.proto.fhir_original_code) = "2060-2"]; - BAHAMIAN = 859 [(.google.fhir.proto.fhir_original_code) = "2067-7"]; - BARBADIAN = 860 [(.google.fhir.proto.fhir_original_code) = "2068-5"]; - DOMINICAN_2069_3 = 861 [(.google.fhir.proto.fhir_original_code) = "2069-3"]; - DOMINICA_ISLANDER = 862 - [(.google.fhir.proto.fhir_original_code) = "2070-1"]; - HAITIAN = 863 [(.google.fhir.proto.fhir_original_code) = "2071-9"]; - JAMAICAN = 864 [(.google.fhir.proto.fhir_original_code) = "2072-7"]; - TOBAGOAN = 865 [(.google.fhir.proto.fhir_original_code) = "2073-5"]; - TRINIDADIAN = 866 [(.google.fhir.proto.fhir_original_code) = "2074-3"]; - WEST_INDIAN = 867 [(.google.fhir.proto.fhir_original_code) = "2075-0"]; - BOTSWANAN = 868 [(.google.fhir.proto.fhir_original_code) = "2061-0"]; - ETHIOPIAN = 869 [(.google.fhir.proto.fhir_original_code) = "2062-8"]; - LIBERIAN = 870 [(.google.fhir.proto.fhir_original_code) = "2063-6"]; - NAMIBIAN = 871 [(.google.fhir.proto.fhir_original_code) = "2064-4"]; - NIGERIAN = 872 [(.google.fhir.proto.fhir_original_code) = "2065-1"]; - ZAIREAN = 873 [(.google.fhir.proto.fhir_original_code) = "2066-9"]; - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER = 874 - [(.google.fhir.proto.fhir_original_code) = "2076-8"]; - POLYNESIAN = 875 [(.google.fhir.proto.fhir_original_code) = "2078-4"]; - MICRONESIAN = 876 [(.google.fhir.proto.fhir_original_code) = "2085-9"]; - MELANESIAN = 877 [(.google.fhir.proto.fhir_original_code) = "2100-6"]; - OTHER_PACIFIC_ISLANDER = 878 - [(.google.fhir.proto.fhir_original_code) = "2500-7"]; - NATIVE_HAWAIIAN = 879 [(.google.fhir.proto.fhir_original_code) = "2079-2"]; - SAMOAN = 880 [(.google.fhir.proto.fhir_original_code) = "2080-0"]; - TAHITIAN = 881 [(.google.fhir.proto.fhir_original_code) = "2081-8"]; - TONGAN = 882 [(.google.fhir.proto.fhir_original_code) = "2082-6"]; - TOKELAUAN = 883 [(.google.fhir.proto.fhir_original_code) = "2083-4"]; - GUAMANIAN_OR_CHAMORRO = 884 - [(.google.fhir.proto.fhir_original_code) = "2086-7"]; - GUAMANIAN = 885 [(.google.fhir.proto.fhir_original_code) = "2087-5"]; - CHAMORRO = 886 [(.google.fhir.proto.fhir_original_code) = "2088-3"]; - MARIANA_ISLANDER = 887 [(.google.fhir.proto.fhir_original_code) = "2089-1"]; - MARSHALLESE = 888 [(.google.fhir.proto.fhir_original_code) = "2090-9"]; - PALAUAN = 889 [(.google.fhir.proto.fhir_original_code) = "2091-7"]; - CAROLINIAN = 890 [(.google.fhir.proto.fhir_original_code) = "2092-5"]; - KOSRAEAN = 891 [(.google.fhir.proto.fhir_original_code) = "2093-3"]; - POHNPEIAN = 892 [(.google.fhir.proto.fhir_original_code) = "2094-1"]; - SAIPANESE = 893 [(.google.fhir.proto.fhir_original_code) = "2095-8"]; - KIRIBATI = 894 [(.google.fhir.proto.fhir_original_code) = "2096-6"]; - CHUUKESE = 895 [(.google.fhir.proto.fhir_original_code) = "2097-4"]; - YAPESE = 896 [(.google.fhir.proto.fhir_original_code) = "2098-2"]; - FIJIAN = 897 [(.google.fhir.proto.fhir_original_code) = "2101-4"]; - PAPUA_NEW_GUINEAN = 898 - [(.google.fhir.proto.fhir_original_code) = "2102-2"]; - SOLOMON_ISLANDER = 899 [(.google.fhir.proto.fhir_original_code) = "2103-0"]; - NEW_HEBRIDES = 900 [(.google.fhir.proto.fhir_original_code) = "2104-8"]; - WHITE = 901 [(.google.fhir.proto.fhir_original_code) = "2106-3"]; - EUROPEAN = 902 [(.google.fhir.proto.fhir_original_code) = "2108-9"]; - MIDDLE_EASTERN_OR_NORTH_AFRICAN = 903 - [(.google.fhir.proto.fhir_original_code) = "2118-8"]; - ARAB = 904 [(.google.fhir.proto.fhir_original_code) = "2129-5"]; - ARMENIAN = 905 [(.google.fhir.proto.fhir_original_code) = "2109-7"]; - ENGLISH = 906 [(.google.fhir.proto.fhir_original_code) = "2110-5"]; - FRENCH = 907 [(.google.fhir.proto.fhir_original_code) = "2111-3"]; - GERMAN = 908 [(.google.fhir.proto.fhir_original_code) = "2112-1"]; - IRISH = 909 [(.google.fhir.proto.fhir_original_code) = "2113-9"]; - ITALIAN = 910 [(.google.fhir.proto.fhir_original_code) = "2114-7"]; - POLISH = 911 [(.google.fhir.proto.fhir_original_code) = "2115-4"]; - SCOTTISH = 912 [(.google.fhir.proto.fhir_original_code) = "2116-2"]; - ASSYRIAN = 913 [(.google.fhir.proto.fhir_original_code) = "2119-6"]; - EGYPTIAN = 914 [(.google.fhir.proto.fhir_original_code) = "2120-4"]; - IRANIAN = 915 [(.google.fhir.proto.fhir_original_code) = "2121-2"]; - IRAQI = 916 [(.google.fhir.proto.fhir_original_code) = "2122-0"]; - LEBANESE = 917 [(.google.fhir.proto.fhir_original_code) = "2123-8"]; - PALESTINIAN = 918 [(.google.fhir.proto.fhir_original_code) = "2124-6"]; - SYRIAN = 919 [(.google.fhir.proto.fhir_original_code) = "2125-3"]; - AFGHANISTANI = 920 [(.google.fhir.proto.fhir_original_code) = "2126-1"]; - ISRAEILI = 921 [(.google.fhir.proto.fhir_original_code) = "2127-9"]; - OTHER_RACE = 922 [(.google.fhir.proto.fhir_original_code) = "2131-1"]; - ETHNICITY = 923 [(.google.fhir.proto.fhir_original_code) = "2133-7"]; - HISPANIC_OR_LATINO = 924 - [(.google.fhir.proto.fhir_original_code) = "2135-2"]; - SPANIARD = 925 [(.google.fhir.proto.fhir_original_code) = "2137-8"]; - MEXICAN = 926 [(.google.fhir.proto.fhir_original_code) = "2148-5"]; - CENTRAL_AMERICAN = 927 [(.google.fhir.proto.fhir_original_code) = "2155-0"]; - SOUTH_AMERICAN = 928 [(.google.fhir.proto.fhir_original_code) = "2165-9"]; - LATIN_AMERICAN = 929 [(.google.fhir.proto.fhir_original_code) = "2178-2"]; - PUERTO_RICAN = 930 [(.google.fhir.proto.fhir_original_code) = "2180-8"]; - CUBAN = 931 [(.google.fhir.proto.fhir_original_code) = "2182-4"]; - DOMINICAN_2184_0 = 932 [(.google.fhir.proto.fhir_original_code) = "2184-0"]; - ANDALUSIAN = 933 [(.google.fhir.proto.fhir_original_code) = "2138-6"]; - ASTURIAN = 934 [(.google.fhir.proto.fhir_original_code) = "2139-4"]; - CASTILLIAN = 935 [(.google.fhir.proto.fhir_original_code) = "2140-2"]; - CATALONIAN = 936 [(.google.fhir.proto.fhir_original_code) = "2141-0"]; - BELEARIC_ISLANDER = 937 - [(.google.fhir.proto.fhir_original_code) = "2142-8"]; - GALLEGO = 938 [(.google.fhir.proto.fhir_original_code) = "2143-6"]; - VALENCIAN = 939 [(.google.fhir.proto.fhir_original_code) = "2144-4"]; - CANARIAN = 940 [(.google.fhir.proto.fhir_original_code) = "2145-1"]; - SPANISH_BASQUE = 941 [(.google.fhir.proto.fhir_original_code) = "2146-9"]; - MEXICAN_AMERICAN = 942 [(.google.fhir.proto.fhir_original_code) = "2149-3"]; - MEXICANO = 943 [(.google.fhir.proto.fhir_original_code) = "2150-1"]; - CHICANO = 944 [(.google.fhir.proto.fhir_original_code) = "2151-9"]; - LA_RAZA = 945 [(.google.fhir.proto.fhir_original_code) = "2152-7"]; - MEXICAN_AMERICAN_INDIAN_2153_5 = 946 - [(.google.fhir.proto.fhir_original_code) = "2153-5"]; - COSTA_RICAN = 947 [(.google.fhir.proto.fhir_original_code) = "2156-8"]; - GUATEMALAN = 948 [(.google.fhir.proto.fhir_original_code) = "2157-6"]; - HONDURAN = 949 [(.google.fhir.proto.fhir_original_code) = "2158-4"]; - NICARAGUAN = 950 [(.google.fhir.proto.fhir_original_code) = "2159-2"]; - PANAMANIAN = 951 [(.google.fhir.proto.fhir_original_code) = "2160-0"]; - SALVADORAN = 952 [(.google.fhir.proto.fhir_original_code) = "2161-8"]; - CENTRAL_AMERICAN_INDIAN_2162_6 = 953 - [(.google.fhir.proto.fhir_original_code) = "2162-6"]; - CANAL_ZONE = 954 [(.google.fhir.proto.fhir_original_code) = "2163-4"]; - ARGENTINEAN = 955 [(.google.fhir.proto.fhir_original_code) = "2166-7"]; - BOLIVIAN = 956 [(.google.fhir.proto.fhir_original_code) = "2167-5"]; - CHILEAN = 957 [(.google.fhir.proto.fhir_original_code) = "2168-3"]; - COLOMBIAN = 958 [(.google.fhir.proto.fhir_original_code) = "2169-1"]; - ECUADORIAN = 959 [(.google.fhir.proto.fhir_original_code) = "2170-9"]; - PARAGUAYAN = 960 [(.google.fhir.proto.fhir_original_code) = "2171-7"]; - PERUVIAN = 961 [(.google.fhir.proto.fhir_original_code) = "2172-5"]; - URUGUAYAN = 962 [(.google.fhir.proto.fhir_original_code) = "2173-3"]; - VENEZUELAN = 963 [(.google.fhir.proto.fhir_original_code) = "2174-1"]; - SOUTH_AMERICAN_INDIAN_2175_8 = 964 - [(.google.fhir.proto.fhir_original_code) = "2175-8"]; - CRIOLLO = 965 [(.google.fhir.proto.fhir_original_code) = "2176-6"]; - NOT_HISPANIC_OR_LATINO = 966 - [(.google.fhir.proto.fhir_original_code) = "2186-5"]; - } -} - -// Set of codes that are needed for implementation of the US-Core profiles. -// These codes are used as extensions to the FHIR and US Core value sets. -// -// See http://hl7.org/fhir/us/core/CodeSystem/careplan-category -message USCoreCarePlanCategoryExtensionCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://hl7.org/fhir/us/core/CodeSystem/careplan-category"; - - INVALID_UNINITIALIZED = 0; - ASSESS_PLAN = 1; - } -} - -// Set of codes that are needed for implementation of the US-Core profiles. -// These codes are used as extensions to the FHIR and US Core value sets. -// -// See http://hl7.org/fhir/us/core/CodeSystem/condition-category -message USCoreConditionCategoryExtensionCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://hl7.org/fhir/us/core/CodeSystem/condition-category"; - - INVALID_UNINITIALIZED = 0; - PROBLEM = 1 [(.google.fhir.proto.deprecated_code) = true]; - HEALTH_CONCERN = 2; - } -} - -// The US Core DocumentReferences Type Code System is a 'starter set' of -// categories supported for fetching and storing DocumentReference Resources. -// See http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category -message USCoreDocumentReferencesCategoryCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category"; - - INVALID_UNINITIALIZED = 0; - CLINICAL_NOTE = 1; - } -} - -// Set of codes that are needed for implementation of the US-Core profiles. -// These codes are used as extensions to the FHIR and US Core value sets. -// -// See -// http://hl7.org/fhir/us/core/CodeSystem/us-core-provenance-participant-type -message USCoreProvenancePaticipantTypeExtensionCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://hl7.org/fhir/us/core/CodeSystem/us-core-provenance-participant-type"; - - INVALID_UNINITIALIZED = 0; - TRANSMITTER = 1; - } -} - -// Codes for assigning sex at birth as specified by the [Office of the National -// Coordinator for Health IT (ONC)](https://www.healthit.gov/newsroom/about-onc) -// See http://hl7.org/fhir/us/core/ValueSet/birthsex -message BirthSexValueSet { - enum Value { - option (.google.fhir.proto.enum_valueset_url) = - "http://hl7.org/fhir/us/core/ValueSet/birthsex"; + option (.google.fhir.proto.enum_valueset_url) = + "http://hl7.org/fhir/us/core/ValueSet/birthsex"; INVALID_UNINITIALIZED = 0; F = 1 [ @@ -6122,6 +4962,1109 @@ message OmbRaceCategoriesValueSet { } } +// The U.S. Centers for Disease Control and Prevention (CDC) has prepared a +// code set for use in codingrace and ethnicity data. This code set is based on +// current federal standards for classifying data onrace and ethnicity, +// specifically the minimum race and ethnicity categories defined by the U.S. +// Office ofManagement and Budget (OMB) and a more detailed set of race and +// ethnicity categories maintainedby the U.S. Bureau of the Census (BC). The +// main purpose of the code set is to facilitate use of federalstandards for +// classifying data on race and ethnicity when these data are exchanged, +// stored, retrieved,or analyzed in electronic form. At the same time, the code +// set can be applied to paper-based recordsystems to the extent that these +// systems are used to collect, maintain, and report data on race andethnicity +// in accordance with current federal standards. Source: [Race and Ethnicity +// Code Set +// Version 1.0](https://www.cdc.gov/phin/resources/vocabulary/documents/cdc-race--ethnicity-background-and-purpose.pdf). +// See urn:oid:2.16.840.1.113883.6.238 +message RaceAndEthnicityCDCCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "urn:oid:2.16.840.1.113883.6.238"; + + INVALID_UNINITIALIZED = 0; + RACE = 1 [(.google.fhir.proto.fhir_original_code) = "1000-9"]; + AMERICAN_INDIAN_OR_ALASKA_NATIVE = 2 + [(.google.fhir.proto.fhir_original_code) = "1002-5"]; + AMERICAN_INDIAN = 3 [(.google.fhir.proto.fhir_original_code) = "1004-1"]; + ALASKA_NATIVE = 4 [(.google.fhir.proto.fhir_original_code) = "1735-0"]; + ABENAKI = 5 [(.google.fhir.proto.fhir_original_code) = "1006-6"]; + ALGONQUIAN = 6 [(.google.fhir.proto.fhir_original_code) = "1008-2"]; + APACHE = 7 [(.google.fhir.proto.fhir_original_code) = "1010-8"]; + ARAPAHO = 8 [(.google.fhir.proto.fhir_original_code) = "1021-5"]; + ARIKARA = 9 [(.google.fhir.proto.fhir_original_code) = "1026-4"]; + ASSINIBOINE = 10 [(.google.fhir.proto.fhir_original_code) = "1028-0"]; + ASSINIBOINE_SIOUX = 11 [(.google.fhir.proto.fhir_original_code) = "1030-6"]; + BANNOCK = 12 [(.google.fhir.proto.fhir_original_code) = "1033-0"]; + BLACKFEET = 13 [(.google.fhir.proto.fhir_original_code) = "1035-5"]; + BROTHERTON = 14 [(.google.fhir.proto.fhir_original_code) = "1037-1"]; + BURT_LAKE_BAND = 15 [(.google.fhir.proto.fhir_original_code) = "1039-7"]; + CADDO = 16 [(.google.fhir.proto.fhir_original_code) = "1041-3"]; + CAHUILLA = 17 [(.google.fhir.proto.fhir_original_code) = "1044-7"]; + CALIFORNIA_TRIBES = 18 [(.google.fhir.proto.fhir_original_code) = "1053-8"]; + CANADIAN_AND_LATIN_AMERICAN_INDIAN = 19 + [(.google.fhir.proto.fhir_original_code) = "1068-6"]; + CATAWBA = 20 [(.google.fhir.proto.fhir_original_code) = "1076-9"]; + CAYUSE = 21 [(.google.fhir.proto.fhir_original_code) = "1078-5"]; + CHEHALIS = 22 [(.google.fhir.proto.fhir_original_code) = "1080-1"]; + CHEMAKUAN = 23 [(.google.fhir.proto.fhir_original_code) = "1082-7"]; + CHEMEHUEVI = 24 [(.google.fhir.proto.fhir_original_code) = "1086-8"]; + CHEROKEE = 25 [(.google.fhir.proto.fhir_original_code) = "1088-4"]; + CHEROKEE_SHAWNEE = 26 [(.google.fhir.proto.fhir_original_code) = "1100-7"]; + CHEYENNE = 27 [(.google.fhir.proto.fhir_original_code) = "1102-3"]; + CHEYENNE_ARAPAHO = 28 [(.google.fhir.proto.fhir_original_code) = "1106-4"]; + CHICKAHOMINY = 29 [(.google.fhir.proto.fhir_original_code) = "1108-0"]; + CHICKASAW = 30 [(.google.fhir.proto.fhir_original_code) = "1112-2"]; + CHINOOK = 31 [(.google.fhir.proto.fhir_original_code) = "1114-8"]; + CHIPPEWA = 32 [(.google.fhir.proto.fhir_original_code) = "1123-9"]; + CHIPPEWA_CREE = 33 [(.google.fhir.proto.fhir_original_code) = "1150-2"]; + CHITIMACHA = 34 [(.google.fhir.proto.fhir_original_code) = "1153-6"]; + CHOCTAW = 35 [(.google.fhir.proto.fhir_original_code) = "1155-1"]; + CHUMASH = 36 [(.google.fhir.proto.fhir_original_code) = "1162-7"]; + CLEAR_LAKE = 37 [(.google.fhir.proto.fhir_original_code) = "1165-0"]; + COEUR_D_ALENE = 38 [(.google.fhir.proto.fhir_original_code) = "1167-6"]; + COHARIE = 39 [(.google.fhir.proto.fhir_original_code) = "1169-2"]; + COLORADO_RIVER = 40 [(.google.fhir.proto.fhir_original_code) = "1171-8"]; + COLVILLE = 41 [(.google.fhir.proto.fhir_original_code) = "1173-4"]; + COMANCHE = 42 [(.google.fhir.proto.fhir_original_code) = "1175-9"]; + COOS_LOWER_UMPQUA_SIUSLAW = 43 + [(.google.fhir.proto.fhir_original_code) = "1178-3"]; + COOS = 44 [(.google.fhir.proto.fhir_original_code) = "1180-9"]; + COQUILLES = 45 [(.google.fhir.proto.fhir_original_code) = "1182-5"]; + COSTANOAN = 46 [(.google.fhir.proto.fhir_original_code) = "1184-1"]; + COUSHATTA = 47 [(.google.fhir.proto.fhir_original_code) = "1186-6"]; + COWLITZ = 48 [(.google.fhir.proto.fhir_original_code) = "1189-0"]; + CREE = 49 [(.google.fhir.proto.fhir_original_code) = "1191-6"]; + CREEK = 50 [(.google.fhir.proto.fhir_original_code) = "1193-2"]; + CROATAN = 51 [(.google.fhir.proto.fhir_original_code) = "1207-0"]; + CROW = 52 [(.google.fhir.proto.fhir_original_code) = "1209-6"]; + CUPENO = 53 [(.google.fhir.proto.fhir_original_code) = "1211-2"]; + DELAWARE = 54 [(.google.fhir.proto.fhir_original_code) = "1214-6"]; + DIEGUENO = 55 [(.google.fhir.proto.fhir_original_code) = "1222-9"]; + EASTERN_TRIBES = 56 [(.google.fhir.proto.fhir_original_code) = "1233-6"]; + ESSELEN = 57 [(.google.fhir.proto.fhir_original_code) = "1250-0"]; + FORT_BELKNAP = 58 [(.google.fhir.proto.fhir_original_code) = "1252-6"]; + FORT_BERTHOLD = 59 [(.google.fhir.proto.fhir_original_code) = "1254-2"]; + FORT_MCDOWELL = 60 [(.google.fhir.proto.fhir_original_code) = "1256-7"]; + FORT_HALL = 61 [(.google.fhir.proto.fhir_original_code) = "1258-3"]; + GABRIELENO = 62 [(.google.fhir.proto.fhir_original_code) = "1260-9"]; + GRAND_RONDE = 63 [(.google.fhir.proto.fhir_original_code) = "1262-5"]; + GROS_VENTRES = 64 [(.google.fhir.proto.fhir_original_code) = "1264-1"]; + HALIWA = 65 [(.google.fhir.proto.fhir_original_code) = "1267-4"]; + HIDATSA = 66 [(.google.fhir.proto.fhir_original_code) = "1269-0"]; + HOOPA = 67 [(.google.fhir.proto.fhir_original_code) = "1271-6"]; + HOOPA_EXTENSION = 68 [(.google.fhir.proto.fhir_original_code) = "1275-7"]; + HOUMA = 69 [(.google.fhir.proto.fhir_original_code) = "1277-3"]; + INAJA_COSMIT = 70 [(.google.fhir.proto.fhir_original_code) = "1279-9"]; + IOWA = 71 [(.google.fhir.proto.fhir_original_code) = "1281-5"]; + IROQUOIS = 72 [(.google.fhir.proto.fhir_original_code) = "1285-6"]; + JUANENO = 73 [(.google.fhir.proto.fhir_original_code) = "1297-1"]; + KALISPEL = 74 [(.google.fhir.proto.fhir_original_code) = "1299-7"]; + KARUK = 75 [(.google.fhir.proto.fhir_original_code) = "1301-1"]; + KAW = 76 [(.google.fhir.proto.fhir_original_code) = "1303-7"]; + KICKAPOO = 77 [(.google.fhir.proto.fhir_original_code) = "1305-2"]; + KIOWA = 78 [(.google.fhir.proto.fhir_original_code) = "1309-4"]; + KLALLAM = 79 [(.google.fhir.proto.fhir_original_code) = "1312-8"]; + KLAMATH = 80 [(.google.fhir.proto.fhir_original_code) = "1317-7"]; + KONKOW = 81 [(.google.fhir.proto.fhir_original_code) = "1319-3"]; + KOOTENAI = 82 [(.google.fhir.proto.fhir_original_code) = "1321-9"]; + LASSIK = 83 [(.google.fhir.proto.fhir_original_code) = "1323-5"]; + LONG_ISLAND = 84 [(.google.fhir.proto.fhir_original_code) = "1325-0"]; + LUISENO = 85 [(.google.fhir.proto.fhir_original_code) = "1331-8"]; + LUMBEE = 86 [(.google.fhir.proto.fhir_original_code) = "1340-9"]; + LUMMI = 87 [(.google.fhir.proto.fhir_original_code) = "1342-5"]; + MAIDU = 88 [(.google.fhir.proto.fhir_original_code) = "1344-1"]; + MAKAH = 89 [(.google.fhir.proto.fhir_original_code) = "1348-2"]; + MALISEET = 90 [(.google.fhir.proto.fhir_original_code) = "1350-8"]; + MANDAN = 91 [(.google.fhir.proto.fhir_original_code) = "1352-4"]; + MATTAPONI = 92 [(.google.fhir.proto.fhir_original_code) = "1354-0"]; + MENOMINEE = 93 [(.google.fhir.proto.fhir_original_code) = "1356-5"]; + MIAMI = 94 [(.google.fhir.proto.fhir_original_code) = "1358-1"]; + MICCOSUKEE = 95 [(.google.fhir.proto.fhir_original_code) = "1363-1"]; + MICMAC = 96 [(.google.fhir.proto.fhir_original_code) = "1365-6"]; + MISSION_INDIANS = 97 [(.google.fhir.proto.fhir_original_code) = "1368-0"]; + MIWOK = 98 [(.google.fhir.proto.fhir_original_code) = "1370-6"]; + MODOC = 99 [(.google.fhir.proto.fhir_original_code) = "1372-2"]; + MOHEGAN = 100 [(.google.fhir.proto.fhir_original_code) = "1374-8"]; + MONO = 101 [(.google.fhir.proto.fhir_original_code) = "1376-3"]; + NANTICOKE = 102 [(.google.fhir.proto.fhir_original_code) = "1378-9"]; + NARRAGANSETT = 103 [(.google.fhir.proto.fhir_original_code) = "1380-5"]; + NAVAJO = 104 [(.google.fhir.proto.fhir_original_code) = "1382-1"]; + NEZ_PERCE = 105 [(.google.fhir.proto.fhir_original_code) = "1387-0"]; + NOMALAKI = 106 [(.google.fhir.proto.fhir_original_code) = "1389-6"]; + NORTHWEST_TRIBES = 107 [(.google.fhir.proto.fhir_original_code) = "1391-2"]; + OMAHA = 108 [(.google.fhir.proto.fhir_original_code) = "1403-5"]; + OREGON_ATHABASKAN = 109 + [(.google.fhir.proto.fhir_original_code) = "1405-0"]; + OSAGE = 110 [(.google.fhir.proto.fhir_original_code) = "1407-6"]; + OTOE_MISSOURIA = 111 [(.google.fhir.proto.fhir_original_code) = "1409-2"]; + OTTAWA = 112 [(.google.fhir.proto.fhir_original_code) = "1411-8"]; + PAIUTE = 113 [(.google.fhir.proto.fhir_original_code) = "1416-7"]; + PAMUNKEY = 114 [(.google.fhir.proto.fhir_original_code) = "1439-9"]; + PASSAMAQUODDY = 115 [(.google.fhir.proto.fhir_original_code) = "1441-5"]; + PAWNEE = 116 [(.google.fhir.proto.fhir_original_code) = "1445-6"]; + PENOBSCOT = 117 [(.google.fhir.proto.fhir_original_code) = "1448-0"]; + PEORIA = 118 [(.google.fhir.proto.fhir_original_code) = "1450-6"]; + PEQUOT = 119 [(.google.fhir.proto.fhir_original_code) = "1453-0"]; + PIMA = 120 [(.google.fhir.proto.fhir_original_code) = "1456-3"]; + PISCATAWAY = 121 [(.google.fhir.proto.fhir_original_code) = "1460-5"]; + PIT_RIVER = 122 [(.google.fhir.proto.fhir_original_code) = "1462-1"]; + POMO = 123 [(.google.fhir.proto.fhir_original_code) = "1464-7"]; + PONCA = 124 [(.google.fhir.proto.fhir_original_code) = "1474-6"]; + POTAWATOMI = 125 [(.google.fhir.proto.fhir_original_code) = "1478-7"]; + POWHATAN = 126 [(.google.fhir.proto.fhir_original_code) = "1487-8"]; + PUEBLO = 127 [(.google.fhir.proto.fhir_original_code) = "1489-4"]; + PUGET_SOUND_SALISH = 128 + [(.google.fhir.proto.fhir_original_code) = "1518-0"]; + QUAPAW = 129 [(.google.fhir.proto.fhir_original_code) = "1541-2"]; + QUINAULT = 130 [(.google.fhir.proto.fhir_original_code) = "1543-8"]; + RAPPAHANNOCK = 131 [(.google.fhir.proto.fhir_original_code) = "1545-3"]; + RENO_SPARKS = 132 [(.google.fhir.proto.fhir_original_code) = "1547-9"]; + ROUND_VALLEY = 133 [(.google.fhir.proto.fhir_original_code) = "1549-5"]; + SAC_AND_FOX = 134 [(.google.fhir.proto.fhir_original_code) = "1551-1"]; + SALINAN = 135 [(.google.fhir.proto.fhir_original_code) = "1556-0"]; + SALISH = 136 [(.google.fhir.proto.fhir_original_code) = "1558-6"]; + SALISH_AND_KOOTENAI = 137 + [(.google.fhir.proto.fhir_original_code) = "1560-2"]; + SCHAGHTICOKE = 138 [(.google.fhir.proto.fhir_original_code) = "1562-8"]; + SCOTT_VALLEY = 139 [(.google.fhir.proto.fhir_original_code) = "1564-4"]; + SEMINOLE = 140 [(.google.fhir.proto.fhir_original_code) = "1566-9"]; + SERRANO = 141 [(.google.fhir.proto.fhir_original_code) = "1573-5"]; + SHASTA = 142 [(.google.fhir.proto.fhir_original_code) = "1576-8"]; + SHAWNEE = 143 [(.google.fhir.proto.fhir_original_code) = "1578-4"]; + SHINNECOCK = 144 [(.google.fhir.proto.fhir_original_code) = "1582-6"]; + SHOALWATER_BAY = 145 [(.google.fhir.proto.fhir_original_code) = "1584-2"]; + SHOSHONE = 146 [(.google.fhir.proto.fhir_original_code) = "1586-7"]; + SHOSHONE_PAIUTE = 147 [(.google.fhir.proto.fhir_original_code) = "1602-2"]; + SILETZ = 148 [(.google.fhir.proto.fhir_original_code) = "1607-1"]; + SIOUX = 149 [(.google.fhir.proto.fhir_original_code) = "1609-7"]; + SIUSLAW = 150 [(.google.fhir.proto.fhir_original_code) = "1643-6"]; + SPOKANE = 151 [(.google.fhir.proto.fhir_original_code) = "1645-1"]; + STEWART = 152 [(.google.fhir.proto.fhir_original_code) = "1647-7"]; + STOCKBRIDGE = 153 [(.google.fhir.proto.fhir_original_code) = "1649-3"]; + SUSANVILLE = 154 [(.google.fhir.proto.fhir_original_code) = "1651-9"]; + TOHONO_O_ODHAM = 155 [(.google.fhir.proto.fhir_original_code) = "1653-5"]; + TOLOWA = 156 [(.google.fhir.proto.fhir_original_code) = "1659-2"]; + TONKAWA = 157 [(.google.fhir.proto.fhir_original_code) = "1661-8"]; + TYGH = 158 [(.google.fhir.proto.fhir_original_code) = "1663-4"]; + UMATILLA = 159 [(.google.fhir.proto.fhir_original_code) = "1665-9"]; + UMPQUA = 160 [(.google.fhir.proto.fhir_original_code) = "1667-5"]; + UTE = 161 [(.google.fhir.proto.fhir_original_code) = "1670-9"]; + WAILAKI = 162 [(.google.fhir.proto.fhir_original_code) = "1675-8"]; + WALLA_WALLA = 163 [(.google.fhir.proto.fhir_original_code) = "1677-4"]; + WAMPANOAG = 164 [(.google.fhir.proto.fhir_original_code) = "1679-0"]; + WARM_SPRINGS = 165 [(.google.fhir.proto.fhir_original_code) = "1683-2"]; + WASCOPUM = 166 [(.google.fhir.proto.fhir_original_code) = "1685-7"]; + WASHOE = 167 [(.google.fhir.proto.fhir_original_code) = "1687-3"]; + WICHITA = 168 [(.google.fhir.proto.fhir_original_code) = "1692-3"]; + WIND_RIVER = 169 [(.google.fhir.proto.fhir_original_code) = "1694-9"]; + WINNEBAGO = 170 [(.google.fhir.proto.fhir_original_code) = "1696-4"]; + WINNEMUCCA = 171 [(.google.fhir.proto.fhir_original_code) = "1700-4"]; + WINTUN = 172 [(.google.fhir.proto.fhir_original_code) = "1702-0"]; + WIYOT = 173 [(.google.fhir.proto.fhir_original_code) = "1704-6"]; + YAKAMA = 174 [(.google.fhir.proto.fhir_original_code) = "1707-9"]; + YAKAMA_COWLITZ = 175 [(.google.fhir.proto.fhir_original_code) = "1709-5"]; + YAQUI = 176 [(.google.fhir.proto.fhir_original_code) = "1711-1"]; + YAVAPAI_APACHE = 177 [(.google.fhir.proto.fhir_original_code) = "1715-2"]; + YOKUTS = 178 [(.google.fhir.proto.fhir_original_code) = "1717-8"]; + YUCHI = 179 [(.google.fhir.proto.fhir_original_code) = "1722-8"]; + YUMAN = 180 [(.google.fhir.proto.fhir_original_code) = "1724-4"]; + YUROK = 181 [(.google.fhir.proto.fhir_original_code) = "1732-7"]; + CHIRICAHUA = 182 [(.google.fhir.proto.fhir_original_code) = "1011-6"]; + FORT_SILL_APACHE = 183 [(.google.fhir.proto.fhir_original_code) = "1012-4"]; + JICARILLA_APACHE = 184 [(.google.fhir.proto.fhir_original_code) = "1013-2"]; + LIPAN_APACHE = 185 [(.google.fhir.proto.fhir_original_code) = "1014-0"]; + MESCALERO_APACHE = 186 [(.google.fhir.proto.fhir_original_code) = "1015-7"]; + OKLAHOMA_APACHE = 187 [(.google.fhir.proto.fhir_original_code) = "1016-5"]; + PAYSON_APACHE = 188 [(.google.fhir.proto.fhir_original_code) = "1017-3"]; + SAN_CARLOS_APACHE = 189 + [(.google.fhir.proto.fhir_original_code) = "1018-1"]; + WHITE_MOUNTAIN_APACHE = 190 + [(.google.fhir.proto.fhir_original_code) = "1019-9"]; + NORTHERN_ARAPAHO = 191 [(.google.fhir.proto.fhir_original_code) = "1022-3"]; + SOUTHERN_ARAPAHO = 192 [(.google.fhir.proto.fhir_original_code) = "1023-1"]; + WIND_RIVER_ARAPAHO = 193 + [(.google.fhir.proto.fhir_original_code) = "1024-9"]; + FORT_PECK_ASSINIBOINE_SIOUX = 194 + [(.google.fhir.proto.fhir_original_code) = "1031-4"]; + OKLAHOMA_CADO = 195 [(.google.fhir.proto.fhir_original_code) = "1042-1"]; + AGUA_CALIENTE_CAHUILLA = 196 + [(.google.fhir.proto.fhir_original_code) = "1045-4"]; + AUGUSTINE = 197 [(.google.fhir.proto.fhir_original_code) = "1046-2"]; + CABAZON = 198 [(.google.fhir.proto.fhir_original_code) = "1047-0"]; + LOS_COYOTES = 199 [(.google.fhir.proto.fhir_original_code) = "1048-8"]; + MORONGO = 200 [(.google.fhir.proto.fhir_original_code) = "1049-6"]; + SANTA_ROSA_CAHUILLA = 201 + [(.google.fhir.proto.fhir_original_code) = "1050-4"]; + TORRES_MARTINEZ = 202 [(.google.fhir.proto.fhir_original_code) = "1051-2"]; + CAHTO = 203 [(.google.fhir.proto.fhir_original_code) = "1054-6"]; + CHIMARIKO = 204 [(.google.fhir.proto.fhir_original_code) = "1055-3"]; + COAST_MIWOK = 205 [(.google.fhir.proto.fhir_original_code) = "1056-1"]; + DIGGER = 206 [(.google.fhir.proto.fhir_original_code) = "1057-9"]; + KAWAIISU = 207 [(.google.fhir.proto.fhir_original_code) = "1058-7"]; + KERN_RIVER = 208 [(.google.fhir.proto.fhir_original_code) = "1059-5"]; + MATTOLE = 209 [(.google.fhir.proto.fhir_original_code) = "1060-3"]; + RED_WOOD = 210 [(.google.fhir.proto.fhir_original_code) = "1061-1"]; + SANTA_ROSA = 211 [(.google.fhir.proto.fhir_original_code) = "1062-9"]; + TAKELMA = 212 [(.google.fhir.proto.fhir_original_code) = "1063-7"]; + WAPPO = 213 [(.google.fhir.proto.fhir_original_code) = "1064-5"]; + YANA = 214 [(.google.fhir.proto.fhir_original_code) = "1065-2"]; + YUKI = 215 [(.google.fhir.proto.fhir_original_code) = "1066-0"]; + CANADIAN_INDIAN = 216 [(.google.fhir.proto.fhir_original_code) = "1069-4"]; + CENTRAL_AMERICAN_INDIAN_1070_2 = 217 + [(.google.fhir.proto.fhir_original_code) = "1070-2"]; + FRENCH_AMERICAN_INDIAN = 218 + [(.google.fhir.proto.fhir_original_code) = "1071-0"]; + MEXICAN_AMERICAN_INDIAN_1072_8 = 219 + [(.google.fhir.proto.fhir_original_code) = "1072-8"]; + SOUTH_AMERICAN_INDIAN_1073_6 = 220 + [(.google.fhir.proto.fhir_original_code) = "1073-6"]; + SPANISH_AMERICAN_INDIAN = 221 + [(.google.fhir.proto.fhir_original_code) = "1074-4"]; + HOH = 222 [(.google.fhir.proto.fhir_original_code) = "1083-5"]; + QUILEUTE = 223 [(.google.fhir.proto.fhir_original_code) = "1084-3"]; + CHEROKEE_ALABAMA = 224 [(.google.fhir.proto.fhir_original_code) = "1089-2"]; + CHEROKEES_OF_NORTHEAST_ALABAMA = 225 + [(.google.fhir.proto.fhir_original_code) = "1090-0"]; + CHEROKEES_OF_SOUTHEAST_ALABAMA = 226 + [(.google.fhir.proto.fhir_original_code) = "1091-8"]; + EASTERN_CHEROKEE = 227 [(.google.fhir.proto.fhir_original_code) = "1092-6"]; + ECHOTA_CHEROKEE = 228 [(.google.fhir.proto.fhir_original_code) = "1093-4"]; + ETOWAH_CHEROKEE = 229 [(.google.fhir.proto.fhir_original_code) = "1094-2"]; + NORTHERN_CHEROKEE = 230 + [(.google.fhir.proto.fhir_original_code) = "1095-9"]; + TUSCOLA = 231 [(.google.fhir.proto.fhir_original_code) = "1096-7"]; + UNITED_KEETOWAH_BAND_OF_CHEROKEE = 232 + [(.google.fhir.proto.fhir_original_code) = "1097-5"]; + WESTERN_CHEROKEE = 233 [(.google.fhir.proto.fhir_original_code) = "1098-3"]; + NORTHERN_CHEYENNE = 234 + [(.google.fhir.proto.fhir_original_code) = "1103-1"]; + SOUTHERN_CHEYENNE = 235 + [(.google.fhir.proto.fhir_original_code) = "1104-9"]; + EASTERN_CHICKAHOMINY = 236 + [(.google.fhir.proto.fhir_original_code) = "1109-8"]; + WESTERN_CHICKAHOMINY = 237 + [(.google.fhir.proto.fhir_original_code) = "1110-6"]; + CLATSOP = 238 [(.google.fhir.proto.fhir_original_code) = "1115-5"]; + COLUMBIA_RIVER_CHINOOK = 239 + [(.google.fhir.proto.fhir_original_code) = "1116-3"]; + KATHLAMET = 240 [(.google.fhir.proto.fhir_original_code) = "1117-1"]; + UPPER_CHINOOK = 241 [(.google.fhir.proto.fhir_original_code) = "1118-9"]; + WAKIAKUM_CHINOOK = 242 [(.google.fhir.proto.fhir_original_code) = "1119-7"]; + WILLAPA_CHINOOK = 243 [(.google.fhir.proto.fhir_original_code) = "1120-5"]; + WISHRAM = 244 [(.google.fhir.proto.fhir_original_code) = "1121-3"]; + BAD_RIVER = 245 [(.google.fhir.proto.fhir_original_code) = "1124-7"]; + BAY_MILLS_CHIPPEWA = 246 + [(.google.fhir.proto.fhir_original_code) = "1125-4"]; + BOIS_FORTE = 247 [(.google.fhir.proto.fhir_original_code) = "1126-2"]; + BURT_LAKE_CHIPPEWA = 248 + [(.google.fhir.proto.fhir_original_code) = "1127-0"]; + FOND_DU_LAC = 249 [(.google.fhir.proto.fhir_original_code) = "1128-8"]; + GRAND_PORTAGE = 250 [(.google.fhir.proto.fhir_original_code) = "1129-6"]; + GRAND_TRAVERSE_BAND_OF_OTTAWA_CHIPPEWA = 251 + [(.google.fhir.proto.fhir_original_code) = "1130-4"]; + KEWEENAW = 252 [(.google.fhir.proto.fhir_original_code) = "1131-2"]; + LAC_COURTE_OREILLES = 253 + [(.google.fhir.proto.fhir_original_code) = "1132-0"]; + LAC_DU_FLAMBEAU = 254 [(.google.fhir.proto.fhir_original_code) = "1133-8"]; + LAC_VIEUX_DESERT_CHIPPEWA = 255 + [(.google.fhir.proto.fhir_original_code) = "1134-6"]; + LAKE_SUPERIOR = 256 [(.google.fhir.proto.fhir_original_code) = "1135-3"]; + LEECH_LAKE = 257 [(.google.fhir.proto.fhir_original_code) = "1136-1"]; + LITTLE_SHELL_CHIPPEWA = 258 + [(.google.fhir.proto.fhir_original_code) = "1137-9"]; + MILLE_LACS = 259 [(.google.fhir.proto.fhir_original_code) = "1138-7"]; + MINNESOTA_CHIPPEWA = 260 + [(.google.fhir.proto.fhir_original_code) = "1139-5"]; + ONTONAGON = 261 [(.google.fhir.proto.fhir_original_code) = "1140-3"]; + RED_CLIFF_CHIPPEWA = 262 + [(.google.fhir.proto.fhir_original_code) = "1141-1"]; + RED_LAKE_CHIPPEWA = 263 + [(.google.fhir.proto.fhir_original_code) = "1142-9"]; + SAGINAW_CHIPPEWA = 264 [(.google.fhir.proto.fhir_original_code) = "1143-7"]; + ST_CROIX_CHIPPEWA = 265 + [(.google.fhir.proto.fhir_original_code) = "1144-5"]; + SAULT_STE_MARIE_CHIPPEWA = 266 + [(.google.fhir.proto.fhir_original_code) = "1145-2"]; + SOKOAGON_CHIPPEWA = 267 + [(.google.fhir.proto.fhir_original_code) = "1146-0"]; + TURTLE_MOUNTAIN = 268 [(.google.fhir.proto.fhir_original_code) = "1147-8"]; + WHITE_EARTH = 269 [(.google.fhir.proto.fhir_original_code) = "1148-6"]; + ROCKY_BOYS_CHIPPEWA_CREE = 270 + [(.google.fhir.proto.fhir_original_code) = "1151-0"]; + CLIFTON_CHOCTAW = 271 [(.google.fhir.proto.fhir_original_code) = "1156-9"]; + JENA_CHOCTAW = 272 [(.google.fhir.proto.fhir_original_code) = "1157-7"]; + MISSISSIPPI_CHOCTAW = 273 + [(.google.fhir.proto.fhir_original_code) = "1158-5"]; + MOWA_BAND_OF_CHOCTAW = 274 + [(.google.fhir.proto.fhir_original_code) = "1159-3"]; + OKLAHOMA_CHOCTAW = 275 [(.google.fhir.proto.fhir_original_code) = "1160-1"]; + SANTA_YNEZ = 276 [(.google.fhir.proto.fhir_original_code) = "1163-5"]; + OKLAHOMA_COMANCHE = 277 + [(.google.fhir.proto.fhir_original_code) = "1176-7"]; + ALABAMA_COUSHATTA = 278 + [(.google.fhir.proto.fhir_original_code) = "1187-4"]; + ALABAMA_CREEK = 279 [(.google.fhir.proto.fhir_original_code) = "1194-0"]; + ALABAMA_QUASSARTE = 280 + [(.google.fhir.proto.fhir_original_code) = "1195-7"]; + EASTERN_CREEK = 281 [(.google.fhir.proto.fhir_original_code) = "1196-5"]; + EASTERN_MUSCOGEE = 282 [(.google.fhir.proto.fhir_original_code) = "1197-3"]; + KIALEGEE = 283 [(.google.fhir.proto.fhir_original_code) = "1198-1"]; + LOWER_MUSCOGEE = 284 [(.google.fhir.proto.fhir_original_code) = "1199-9"]; + MACHIS_LOWER_CREEK_INDIAN = 285 + [(.google.fhir.proto.fhir_original_code) = "1200-5"]; + POARCH_BAND = 286 [(.google.fhir.proto.fhir_original_code) = "1201-3"]; + PRINCIPAL_CREEK_INDIAN_NATION = 287 + [(.google.fhir.proto.fhir_original_code) = "1202-1"]; + STAR_CLAN_OF_MUSCOGEE_CREEKS = 288 + [(.google.fhir.proto.fhir_original_code) = "1203-9"]; + THLOPTHLOCCO = 289 [(.google.fhir.proto.fhir_original_code) = "1204-7"]; + TUCKABACHEE = 290 [(.google.fhir.proto.fhir_original_code) = "1205-4"]; + AGUA_CALIENTE = 291 [(.google.fhir.proto.fhir_original_code) = "1212-0"]; + EASTERN_DELAWARE = 292 [(.google.fhir.proto.fhir_original_code) = "1215-3"]; + LENNI_LENAPE = 293 [(.google.fhir.proto.fhir_original_code) = "1216-1"]; + MUNSEE = 294 [(.google.fhir.proto.fhir_original_code) = "1217-9"]; + OKLAHOMA_DELAWARE = 295 + [(.google.fhir.proto.fhir_original_code) = "1218-7"]; + RAMPOUGH_MOUNTAIN = 296 + [(.google.fhir.proto.fhir_original_code) = "1219-5"]; + SAND_HILL = 297 [(.google.fhir.proto.fhir_original_code) = "1220-3"]; + CAMPO = 298 [(.google.fhir.proto.fhir_original_code) = "1223-7"]; + CAPITAN_GRANDE = 299 [(.google.fhir.proto.fhir_original_code) = "1224-5"]; + CUYAPAIPE = 300 [(.google.fhir.proto.fhir_original_code) = "1225-2"]; + LA_POSTA = 301 [(.google.fhir.proto.fhir_original_code) = "1226-0"]; + MANZANITA = 302 [(.google.fhir.proto.fhir_original_code) = "1227-8"]; + MESA_GRANDE = 303 [(.google.fhir.proto.fhir_original_code) = "1228-6"]; + SAN_PASQUAL = 304 [(.google.fhir.proto.fhir_original_code) = "1229-4"]; + SANTA_YSABEL = 305 [(.google.fhir.proto.fhir_original_code) = "1230-2"]; + SYCUAN = 306 [(.google.fhir.proto.fhir_original_code) = "1231-0"]; + ATTACAPA = 307 [(.google.fhir.proto.fhir_original_code) = "1234-4"]; + BILOXI = 308 [(.google.fhir.proto.fhir_original_code) = "1235-1"]; + GEORGETOWN_EASTERN_TRIBES = 309 + [(.google.fhir.proto.fhir_original_code) = "1236-9"]; + MOOR = 310 [(.google.fhir.proto.fhir_original_code) = "1237-7"]; + NANSEMOND = 311 [(.google.fhir.proto.fhir_original_code) = "1238-5"]; + NATCHEZ = 312 [(.google.fhir.proto.fhir_original_code) = "1239-3"]; + NAUSU_WAIWASH = 313 [(.google.fhir.proto.fhir_original_code) = "1240-1"]; + NIPMUC = 314 [(.google.fhir.proto.fhir_original_code) = "1241-9"]; + PAUGUSSETT = 315 [(.google.fhir.proto.fhir_original_code) = "1242-7"]; + POCOMOKE_ACOHONOCK = 316 + [(.google.fhir.proto.fhir_original_code) = "1243-5"]; + SOUTHEASTERN_INDIANS = 317 + [(.google.fhir.proto.fhir_original_code) = "1244-3"]; + SUSQUEHANOCK = 318 [(.google.fhir.proto.fhir_original_code) = "1245-0"]; + TUNICA_BILOXI = 319 [(.google.fhir.proto.fhir_original_code) = "1246-8"]; + WACCAMAW_SIOUSAN = 320 [(.google.fhir.proto.fhir_original_code) = "1247-6"]; + WICOMICO = 321 [(.google.fhir.proto.fhir_original_code) = "1248-4"]; + ATSINA = 322 [(.google.fhir.proto.fhir_original_code) = "1265-8"]; + TRINITY = 323 [(.google.fhir.proto.fhir_original_code) = "1272-4"]; + WHILKUT = 324 [(.google.fhir.proto.fhir_original_code) = "1273-2"]; + IOWA_OF_KANSAS_NEBRASKA = 325 + [(.google.fhir.proto.fhir_original_code) = "1282-3"]; + IOWA_OF_OKLAHOMA = 326 [(.google.fhir.proto.fhir_original_code) = "1283-1"]; + CAYUGA = 327 [(.google.fhir.proto.fhir_original_code) = "1286-4"]; + MOHAWK = 328 [(.google.fhir.proto.fhir_original_code) = "1287-2"]; + ONEIDA = 329 [(.google.fhir.proto.fhir_original_code) = "1288-0"]; + ONONDAGA = 330 [(.google.fhir.proto.fhir_original_code) = "1289-8"]; + SENECA = 331 [(.google.fhir.proto.fhir_original_code) = "1290-6"]; + SENECA_NATION = 332 [(.google.fhir.proto.fhir_original_code) = "1291-4"]; + SENECA_CAYUGA = 333 [(.google.fhir.proto.fhir_original_code) = "1292-2"]; + TONAWANDA_SENECA = 334 [(.google.fhir.proto.fhir_original_code) = "1293-0"]; + TUSCARORA = 335 [(.google.fhir.proto.fhir_original_code) = "1294-8"]; + WYANDOTTE = 336 [(.google.fhir.proto.fhir_original_code) = "1295-5"]; + OKLAHOMA_KICKAPOO = 337 + [(.google.fhir.proto.fhir_original_code) = "1306-0"]; + TEXAS_KICKAPOO = 338 [(.google.fhir.proto.fhir_original_code) = "1307-8"]; + OKLAHOMA_KIOWA = 339 [(.google.fhir.proto.fhir_original_code) = "1310-2"]; + JAMESTOWN = 340 [(.google.fhir.proto.fhir_original_code) = "1313-6"]; + LOWER_ELWHA = 341 [(.google.fhir.proto.fhir_original_code) = "1314-4"]; + PORT_GAMBLE_KLALLAM = 342 + [(.google.fhir.proto.fhir_original_code) = "1315-1"]; + MATINECOCK = 343 [(.google.fhir.proto.fhir_original_code) = "1326-8"]; + MONTAUK = 344 [(.google.fhir.proto.fhir_original_code) = "1327-6"]; + POOSPATUCK = 345 [(.google.fhir.proto.fhir_original_code) = "1328-4"]; + SETAUKET = 346 [(.google.fhir.proto.fhir_original_code) = "1329-2"]; + LA_JOLLA = 347 [(.google.fhir.proto.fhir_original_code) = "1332-6"]; + PALA = 348 [(.google.fhir.proto.fhir_original_code) = "1333-4"]; + PAUMA = 349 [(.google.fhir.proto.fhir_original_code) = "1334-2"]; + PECHANGA = 350 [(.google.fhir.proto.fhir_original_code) = "1335-9"]; + SOBOBA = 351 [(.google.fhir.proto.fhir_original_code) = "1336-7"]; + TWENTY_NINE_PALMS = 352 + [(.google.fhir.proto.fhir_original_code) = "1337-5"]; + TEMECULA = 353 [(.google.fhir.proto.fhir_original_code) = "1338-3"]; + MOUNTAIN_MAIDU = 354 [(.google.fhir.proto.fhir_original_code) = "1345-8"]; + NISHINAM = 355 [(.google.fhir.proto.fhir_original_code) = "1346-6"]; + ILLINOIS_MIAMI = 356 [(.google.fhir.proto.fhir_original_code) = "1359-9"]; + INDIANA_MIAMI = 357 [(.google.fhir.proto.fhir_original_code) = "1360-7"]; + OKLAHOMA_MIAMI = 358 [(.google.fhir.proto.fhir_original_code) = "1361-5"]; + AROOSTOOK = 359 [(.google.fhir.proto.fhir_original_code) = "1366-4"]; + ALAMO_NAVAJO = 360 [(.google.fhir.proto.fhir_original_code) = "1383-9"]; + CANONCITO_NAVAJO = 361 [(.google.fhir.proto.fhir_original_code) = "1384-7"]; + RAMAH_NAVAJO = 362 [(.google.fhir.proto.fhir_original_code) = "1385-4"]; + ALSEA = 363 [(.google.fhir.proto.fhir_original_code) = "1392-0"]; + CELILO = 364 [(.google.fhir.proto.fhir_original_code) = "1393-8"]; + COLUMBIA = 365 [(.google.fhir.proto.fhir_original_code) = "1394-6"]; + KALAPUYA = 366 [(.google.fhir.proto.fhir_original_code) = "1395-3"]; + MOLALA = 367 [(.google.fhir.proto.fhir_original_code) = "1396-1"]; + TALAKAMISH = 368 [(.google.fhir.proto.fhir_original_code) = "1397-9"]; + TENINO = 369 [(.google.fhir.proto.fhir_original_code) = "1398-7"]; + TILLAMOOK = 370 [(.google.fhir.proto.fhir_original_code) = "1399-5"]; + WENATCHEE = 371 [(.google.fhir.proto.fhir_original_code) = "1400-1"]; + YAHOOSKIN = 372 [(.google.fhir.proto.fhir_original_code) = "1401-9"]; + BURT_LAKE_OTTAWA = 373 [(.google.fhir.proto.fhir_original_code) = "1412-6"]; + MICHIGAN_OTTAWA = 374 [(.google.fhir.proto.fhir_original_code) = "1413-4"]; + OKLAHOMA_OTTAWA = 375 [(.google.fhir.proto.fhir_original_code) = "1414-2"]; + BISHOP = 376 [(.google.fhir.proto.fhir_original_code) = "1417-5"]; + BRIDGEPORT = 377 [(.google.fhir.proto.fhir_original_code) = "1418-3"]; + BURNS_PAIUTE = 378 [(.google.fhir.proto.fhir_original_code) = "1419-1"]; + CEDARVILLE = 379 [(.google.fhir.proto.fhir_original_code) = "1420-9"]; + FORT_BIDWELL = 380 [(.google.fhir.proto.fhir_original_code) = "1421-7"]; + FORT_INDEPENDENCE = 381 + [(.google.fhir.proto.fhir_original_code) = "1422-5"]; + KAIBAB = 382 [(.google.fhir.proto.fhir_original_code) = "1423-3"]; + LAS_VEGAS = 383 [(.google.fhir.proto.fhir_original_code) = "1424-1"]; + LONE_PINE = 384 [(.google.fhir.proto.fhir_original_code) = "1425-8"]; + LOVELOCK = 385 [(.google.fhir.proto.fhir_original_code) = "1426-6"]; + MALHEUR_PAIUTE = 386 [(.google.fhir.proto.fhir_original_code) = "1427-4"]; + MOAPA = 387 [(.google.fhir.proto.fhir_original_code) = "1428-2"]; + NORTHERN_PAIUTE = 388 [(.google.fhir.proto.fhir_original_code) = "1429-0"]; + OWENS_VALLEY = 389 [(.google.fhir.proto.fhir_original_code) = "1430-8"]; + PYRAMID_LAKE = 390 [(.google.fhir.proto.fhir_original_code) = "1431-6"]; + SAN_JUAN_SOUTHERN_PAIUTE = 391 + [(.google.fhir.proto.fhir_original_code) = "1432-4"]; + SOUTHERN_PAIUTE = 392 [(.google.fhir.proto.fhir_original_code) = "1433-2"]; + SUMMIT_LAKE = 393 [(.google.fhir.proto.fhir_original_code) = "1434-0"]; + UTU_UTU_GWAITU_PAIUTE = 394 + [(.google.fhir.proto.fhir_original_code) = "1435-7"]; + WALKER_RIVER = 395 [(.google.fhir.proto.fhir_original_code) = "1436-5"]; + YERINGTON_PAIUTE = 396 [(.google.fhir.proto.fhir_original_code) = "1437-3"]; + INDIAN_TOWNSHIP = 397 [(.google.fhir.proto.fhir_original_code) = "1442-3"]; + PLEASANT_POINT_PASSAMAQUODDY = 398 + [(.google.fhir.proto.fhir_original_code) = "1443-1"]; + OKLAHOMA_PAWNEE = 399 [(.google.fhir.proto.fhir_original_code) = "1446-4"]; + OKLAHOMA_PEORIA = 400 [(.google.fhir.proto.fhir_original_code) = "1451-4"]; + MARSHANTUCKET_PEQUOT = 401 + [(.google.fhir.proto.fhir_original_code) = "1454-8"]; + GILA_RIVER_PIMA_MARICOPA = 402 + [(.google.fhir.proto.fhir_original_code) = "1457-1"]; + SALT_RIVER_PIMA_MARICOPA = 403 + [(.google.fhir.proto.fhir_original_code) = "1458-9"]; + CENTRAL_POMO = 404 [(.google.fhir.proto.fhir_original_code) = "1465-4"]; + DRY_CREEK = 405 [(.google.fhir.proto.fhir_original_code) = "1466-2"]; + EASTERN_POMO = 406 [(.google.fhir.proto.fhir_original_code) = "1467-0"]; + KASHIA = 407 [(.google.fhir.proto.fhir_original_code) = "1468-8"]; + NORTHERN_POMO = 408 [(.google.fhir.proto.fhir_original_code) = "1469-6"]; + SCOTTS_VALLEY = 409 [(.google.fhir.proto.fhir_original_code) = "1470-4"]; + STONYFORD = 410 [(.google.fhir.proto.fhir_original_code) = "1471-2"]; + SULPHUR_BANK = 411 [(.google.fhir.proto.fhir_original_code) = "1472-0"]; + NEBRASKA_PONCA = 412 [(.google.fhir.proto.fhir_original_code) = "1475-3"]; + OKLAHOMA_PONCA = 413 [(.google.fhir.proto.fhir_original_code) = "1476-1"]; + CITIZEN_BAND_POTAWATOMI = 414 + [(.google.fhir.proto.fhir_original_code) = "1479-5"]; + FOREST_COUNTY = 415 [(.google.fhir.proto.fhir_original_code) = "1480-3"]; + HANNAHVILLE = 416 [(.google.fhir.proto.fhir_original_code) = "1481-1"]; + HURON_POTAWATOMI = 417 [(.google.fhir.proto.fhir_original_code) = "1482-9"]; + POKAGON_POTAWATOMI = 418 + [(.google.fhir.proto.fhir_original_code) = "1483-7"]; + PRAIRIE_BAND = 419 [(.google.fhir.proto.fhir_original_code) = "1484-5"]; + WISCONSIN_POTAWATOMI = 420 + [(.google.fhir.proto.fhir_original_code) = "1485-2"]; + ACOMA = 421 [(.google.fhir.proto.fhir_original_code) = "1490-2"]; + ARIZONA_TEWA = 422 [(.google.fhir.proto.fhir_original_code) = "1491-0"]; + COCHITI = 423 [(.google.fhir.proto.fhir_original_code) = "1492-8"]; + HOPI = 424 [(.google.fhir.proto.fhir_original_code) = "1493-6"]; + ISLETA = 425 [(.google.fhir.proto.fhir_original_code) = "1494-4"]; + JEMEZ = 426 [(.google.fhir.proto.fhir_original_code) = "1495-1"]; + KERES = 427 [(.google.fhir.proto.fhir_original_code) = "1496-9"]; + LAGUNA = 428 [(.google.fhir.proto.fhir_original_code) = "1497-7"]; + NAMBE = 429 [(.google.fhir.proto.fhir_original_code) = "1498-5"]; + PICURIS = 430 [(.google.fhir.proto.fhir_original_code) = "1499-3"]; + PIRO = 431 [(.google.fhir.proto.fhir_original_code) = "1500-8"]; + POJOAQUE = 432 [(.google.fhir.proto.fhir_original_code) = "1501-6"]; + SAN_FELIPE = 433 [(.google.fhir.proto.fhir_original_code) = "1502-4"]; + SAN_ILDEFONSO = 434 [(.google.fhir.proto.fhir_original_code) = "1503-2"]; + SAN_JUAN_PUEBLO = 435 [(.google.fhir.proto.fhir_original_code) = "1504-0"]; + SAN_JUAN_DE = 436 [(.google.fhir.proto.fhir_original_code) = "1505-7"]; + SAN_JUAN = 437 [(.google.fhir.proto.fhir_original_code) = "1506-5"]; + SANDIA = 438 [(.google.fhir.proto.fhir_original_code) = "1507-3"]; + SANTA_ANA = 439 [(.google.fhir.proto.fhir_original_code) = "1508-1"]; + SANTA_CLARA = 440 [(.google.fhir.proto.fhir_original_code) = "1509-9"]; + SANTO_DOMINGO = 441 [(.google.fhir.proto.fhir_original_code) = "1510-7"]; + TAOS = 442 [(.google.fhir.proto.fhir_original_code) = "1511-5"]; + TESUQUE = 443 [(.google.fhir.proto.fhir_original_code) = "1512-3"]; + TEWA = 444 [(.google.fhir.proto.fhir_original_code) = "1513-1"]; + TIGUA = 445 [(.google.fhir.proto.fhir_original_code) = "1514-9"]; + ZIA = 446 [(.google.fhir.proto.fhir_original_code) = "1515-6"]; + ZUNI = 447 [(.google.fhir.proto.fhir_original_code) = "1516-4"]; + DUWAMISH = 448 [(.google.fhir.proto.fhir_original_code) = "1519-8"]; + KIKIALLUS = 449 [(.google.fhir.proto.fhir_original_code) = "1520-6"]; + LOWER_SKAGIT = 450 [(.google.fhir.proto.fhir_original_code) = "1521-4"]; + MUCKLESHOOT = 451 [(.google.fhir.proto.fhir_original_code) = "1522-2"]; + NISQUALLY = 452 [(.google.fhir.proto.fhir_original_code) = "1523-0"]; + NOOKSACK = 453 [(.google.fhir.proto.fhir_original_code) = "1524-8"]; + PORT_MADISON = 454 [(.google.fhir.proto.fhir_original_code) = "1525-5"]; + PUYALLUP = 455 [(.google.fhir.proto.fhir_original_code) = "1526-3"]; + SAMISH = 456 [(.google.fhir.proto.fhir_original_code) = "1527-1"]; + SAUK_SUIATTLE = 457 [(.google.fhir.proto.fhir_original_code) = "1528-9"]; + SKOKOMISH = 458 [(.google.fhir.proto.fhir_original_code) = "1529-7"]; + SKYKOMISH = 459 [(.google.fhir.proto.fhir_original_code) = "1530-5"]; + SNOHOMISH = 460 [(.google.fhir.proto.fhir_original_code) = "1531-3"]; + SNOQUALMIE = 461 [(.google.fhir.proto.fhir_original_code) = "1532-1"]; + SQUAXIN_ISLAND = 462 [(.google.fhir.proto.fhir_original_code) = "1533-9"]; + STEILACOOM = 463 [(.google.fhir.proto.fhir_original_code) = "1534-7"]; + STILLAGUAMISH = 464 [(.google.fhir.proto.fhir_original_code) = "1535-4"]; + SUQUAMISH = 465 [(.google.fhir.proto.fhir_original_code) = "1536-2"]; + SWINOMISH = 466 [(.google.fhir.proto.fhir_original_code) = "1537-0"]; + TULALIP = 467 [(.google.fhir.proto.fhir_original_code) = "1538-8"]; + UPPER_SKAGIT = 468 [(.google.fhir.proto.fhir_original_code) = "1539-6"]; + IOWA_SAC_AND_FOX = 469 [(.google.fhir.proto.fhir_original_code) = "1552-9"]; + MISSOURI_SAC_AND_FOX = 470 + [(.google.fhir.proto.fhir_original_code) = "1553-7"]; + OKLAHOMA_SAC_AND_FOX = 471 + [(.google.fhir.proto.fhir_original_code) = "1554-5"]; + BIG_CYPRESS = 472 [(.google.fhir.proto.fhir_original_code) = "1567-7"]; + BRIGHTON = 473 [(.google.fhir.proto.fhir_original_code) = "1568-5"]; + FLORIDA_SEMINOLE = 474 [(.google.fhir.proto.fhir_original_code) = "1569-3"]; + HOLLYWOOD_SEMINOLE = 475 + [(.google.fhir.proto.fhir_original_code) = "1570-1"]; + OKLAHOMA_SEMINOLE = 476 + [(.google.fhir.proto.fhir_original_code) = "1571-9"]; + SAN_MANUAL = 477 [(.google.fhir.proto.fhir_original_code) = "1574-3"]; + ABSENTEE_SHAWNEE = 478 [(.google.fhir.proto.fhir_original_code) = "1579-2"]; + EASTERN_SHAWNEE = 479 [(.google.fhir.proto.fhir_original_code) = "1580-0"]; + BATTLE_MOUNTAIN = 480 [(.google.fhir.proto.fhir_original_code) = "1587-5"]; + DUCKWATER = 481 [(.google.fhir.proto.fhir_original_code) = "1588-3"]; + ELKO = 482 [(.google.fhir.proto.fhir_original_code) = "1589-1"]; + ELY = 483 [(.google.fhir.proto.fhir_original_code) = "1590-9"]; + GOSHUTE = 484 [(.google.fhir.proto.fhir_original_code) = "1591-7"]; + PANAMINT = 485 [(.google.fhir.proto.fhir_original_code) = "1592-5"]; + RUBY_VALLEY = 486 [(.google.fhir.proto.fhir_original_code) = "1593-3"]; + SKULL_VALLEY = 487 [(.google.fhir.proto.fhir_original_code) = "1594-1"]; + SOUTH_FORK_SHOSHONE = 488 + [(.google.fhir.proto.fhir_original_code) = "1595-8"]; + TE_MOAK_WESTERN_SHOSHONE = 489 + [(.google.fhir.proto.fhir_original_code) = "1596-6"]; + TIMBI_SHA_SHOSHONE = 490 + [(.google.fhir.proto.fhir_original_code) = "1597-4"]; + WASHAKIE = 491 [(.google.fhir.proto.fhir_original_code) = "1598-2"]; + WIND_RIVER_SHOSHONE = 492 + [(.google.fhir.proto.fhir_original_code) = "1599-0"]; + YOMBA = 493 [(.google.fhir.proto.fhir_original_code) = "1600-6"]; + DUCK_VALLEY = 494 [(.google.fhir.proto.fhir_original_code) = "1603-0"]; + FALLON = 495 [(.google.fhir.proto.fhir_original_code) = "1604-8"]; + FORT_MC_DERMITT = 496 [(.google.fhir.proto.fhir_original_code) = "1605-5"]; + BLACKFOOT_SIOUX = 497 [(.google.fhir.proto.fhir_original_code) = "1610-5"]; + BRULE_SIOUX = 498 [(.google.fhir.proto.fhir_original_code) = "1611-3"]; + CHEYENNE_RIVER_SIOUX = 499 + [(.google.fhir.proto.fhir_original_code) = "1612-1"]; + CROW_CREEK_SIOUX = 500 [(.google.fhir.proto.fhir_original_code) = "1613-9"]; + DAKOTA_SIOUX = 501 [(.google.fhir.proto.fhir_original_code) = "1614-7"]; + FLANDREAU_SANTEE = 502 [(.google.fhir.proto.fhir_original_code) = "1615-4"]; + FORT_PECK = 503 [(.google.fhir.proto.fhir_original_code) = "1616-2"]; + LAKE_TRAVERSE_SIOUX = 504 + [(.google.fhir.proto.fhir_original_code) = "1617-0"]; + LOWER_BRULE_SIOUX = 505 + [(.google.fhir.proto.fhir_original_code) = "1618-8"]; + LOWER_SIOUX = 506 [(.google.fhir.proto.fhir_original_code) = "1619-6"]; + MDEWAKANTON_SIOUX = 507 + [(.google.fhir.proto.fhir_original_code) = "1620-4"]; + MINICONJOU = 508 [(.google.fhir.proto.fhir_original_code) = "1621-2"]; + OGLALA_SIOUX = 509 [(.google.fhir.proto.fhir_original_code) = "1622-0"]; + PINE_RIDGE_SIOUX = 510 [(.google.fhir.proto.fhir_original_code) = "1623-8"]; + PIPESTONE_SIOUX = 511 [(.google.fhir.proto.fhir_original_code) = "1624-6"]; + PRAIRIE_ISLAND_SIOUX = 512 + [(.google.fhir.proto.fhir_original_code) = "1625-3"]; + PRIOR_LAKE_SIOUX = 513 [(.google.fhir.proto.fhir_original_code) = "1626-1"]; + ROSEBUD_SIOUX = 514 [(.google.fhir.proto.fhir_original_code) = "1627-9"]; + SANS_ARC_SIOUX = 515 [(.google.fhir.proto.fhir_original_code) = "1628-7"]; + SANTEE_SIOUX = 516 [(.google.fhir.proto.fhir_original_code) = "1629-5"]; + SISSETON_WAHPETON = 517 + [(.google.fhir.proto.fhir_original_code) = "1630-3"]; + SISSETON_SIOUX = 518 [(.google.fhir.proto.fhir_original_code) = "1631-1"]; + SPIRIT_LAKE_SIOUX = 519 + [(.google.fhir.proto.fhir_original_code) = "1632-9"]; + STANDING_ROCK_SIOUX = 520 + [(.google.fhir.proto.fhir_original_code) = "1633-7"]; + TETON_SIOUX = 521 [(.google.fhir.proto.fhir_original_code) = "1634-5"]; + TWO_KETTLE_SIOUX = 522 [(.google.fhir.proto.fhir_original_code) = "1635-2"]; + UPPER_SIOUX = 523 [(.google.fhir.proto.fhir_original_code) = "1636-0"]; + WAHPEKUTE_SIOUX = 524 [(.google.fhir.proto.fhir_original_code) = "1637-8"]; + WAHPETON_SIOUX = 525 [(.google.fhir.proto.fhir_original_code) = "1638-6"]; + WAZHAZA_SIOUX = 526 [(.google.fhir.proto.fhir_original_code) = "1639-4"]; + YANKTON_SIOUX = 527 [(.google.fhir.proto.fhir_original_code) = "1640-2"]; + YANKTONAI_SIOUX = 528 [(.google.fhir.proto.fhir_original_code) = "1641-0"]; + AK_CHIN = 529 [(.google.fhir.proto.fhir_original_code) = "1654-3"]; + GILA_BEND = 530 [(.google.fhir.proto.fhir_original_code) = "1655-0"]; + SAN_XAVIER = 531 [(.google.fhir.proto.fhir_original_code) = "1656-8"]; + SELLS = 532 [(.google.fhir.proto.fhir_original_code) = "1657-6"]; + COW_CREEK_UMPQUA = 533 [(.google.fhir.proto.fhir_original_code) = "1668-3"]; + ALLEN_CANYON = 534 [(.google.fhir.proto.fhir_original_code) = "1671-7"]; + UINTAH_UTE = 535 [(.google.fhir.proto.fhir_original_code) = "1672-5"]; + UTE_MOUNTAIN_UTE = 536 [(.google.fhir.proto.fhir_original_code) = "1673-3"]; + GAY_HEAD_WAMPANOAG = 537 + [(.google.fhir.proto.fhir_original_code) = "1680-8"]; + MASHPEE_WAMPANOAG = 538 + [(.google.fhir.proto.fhir_original_code) = "1681-6"]; + ALPINE = 539 [(.google.fhir.proto.fhir_original_code) = "1688-1"]; + CARSON = 540 [(.google.fhir.proto.fhir_original_code) = "1689-9"]; + DRESSLERVILLE = 541 [(.google.fhir.proto.fhir_original_code) = "1690-7"]; + HO_CHUNK = 542 [(.google.fhir.proto.fhir_original_code) = "1697-2"]; + NEBRASKA_WINNEBAGO = 543 + [(.google.fhir.proto.fhir_original_code) = "1698-0"]; + TABLE_BLUFF = 544 [(.google.fhir.proto.fhir_original_code) = "1705-3"]; + BARRIO_LIBRE = 545 [(.google.fhir.proto.fhir_original_code) = "1712-9"]; + PASCUA_YAQUI = 546 [(.google.fhir.proto.fhir_original_code) = "1713-7"]; + CHUKCHANSI = 547 [(.google.fhir.proto.fhir_original_code) = "1718-6"]; + TACHI = 548 [(.google.fhir.proto.fhir_original_code) = "1719-4"]; + TULE_RIVER = 549 [(.google.fhir.proto.fhir_original_code) = "1720-2"]; + COCOPAH = 550 [(.google.fhir.proto.fhir_original_code) = "1725-1"]; + HAVASUPAI = 551 [(.google.fhir.proto.fhir_original_code) = "1726-9"]; + HUALAPAI = 552 [(.google.fhir.proto.fhir_original_code) = "1727-7"]; + MARICOPA = 553 [(.google.fhir.proto.fhir_original_code) = "1728-5"]; + MOHAVE = 554 [(.google.fhir.proto.fhir_original_code) = "1729-3"]; + QUECHAN = 555 [(.google.fhir.proto.fhir_original_code) = "1730-1"]; + YAVAPAI = 556 [(.google.fhir.proto.fhir_original_code) = "1731-9"]; + COAST_YUROK = 557 [(.google.fhir.proto.fhir_original_code) = "1733-5"]; + ALASKA_INDIAN = 558 [(.google.fhir.proto.fhir_original_code) = "1737-6"]; + ESKIMO = 559 [(.google.fhir.proto.fhir_original_code) = "1840-8"]; + ALEUT = 560 [(.google.fhir.proto.fhir_original_code) = "1966-1"]; + ALASKAN_ATHABASCAN = 561 + [(.google.fhir.proto.fhir_original_code) = "1739-2"]; + SOUTHEAST_ALASKA = 562 [(.google.fhir.proto.fhir_original_code) = "1811-9"]; + AHTNA = 563 [(.google.fhir.proto.fhir_original_code) = "1740-0"]; + ALATNA = 564 [(.google.fhir.proto.fhir_original_code) = "1741-8"]; + ALEXANDER = 565 [(.google.fhir.proto.fhir_original_code) = "1742-6"]; + ALLAKAKET = 566 [(.google.fhir.proto.fhir_original_code) = "1743-4"]; + ALANVIK = 567 [(.google.fhir.proto.fhir_original_code) = "1744-2"]; + ANVIK = 568 [(.google.fhir.proto.fhir_original_code) = "1745-9"]; + ARCTIC = 569 [(.google.fhir.proto.fhir_original_code) = "1746-7"]; + BEAVER = 570 [(.google.fhir.proto.fhir_original_code) = "1747-5"]; + BIRCH_CREEK = 571 [(.google.fhir.proto.fhir_original_code) = "1748-3"]; + CANTWELL = 572 [(.google.fhir.proto.fhir_original_code) = "1749-1"]; + CHALKYITSIK = 573 [(.google.fhir.proto.fhir_original_code) = "1750-9"]; + CHICKALOON = 574 [(.google.fhir.proto.fhir_original_code) = "1751-7"]; + CHISTOCHINA = 575 [(.google.fhir.proto.fhir_original_code) = "1752-5"]; + CHITINA = 576 [(.google.fhir.proto.fhir_original_code) = "1753-3"]; + CIRCLE = 577 [(.google.fhir.proto.fhir_original_code) = "1754-1"]; + COOK_INLET = 578 [(.google.fhir.proto.fhir_original_code) = "1755-8"]; + COPPER_CENTER = 579 [(.google.fhir.proto.fhir_original_code) = "1756-6"]; + COPPER_RIVER = 580 [(.google.fhir.proto.fhir_original_code) = "1757-4"]; + DOT_LAKE = 581 [(.google.fhir.proto.fhir_original_code) = "1758-2"]; + DOYON = 582 [(.google.fhir.proto.fhir_original_code) = "1759-0"]; + EAGLE = 583 [(.google.fhir.proto.fhir_original_code) = "1760-8"]; + EKLUTNA = 584 [(.google.fhir.proto.fhir_original_code) = "1761-6"]; + EVANSVILLE = 585 [(.google.fhir.proto.fhir_original_code) = "1762-4"]; + FORT_YUKON = 586 [(.google.fhir.proto.fhir_original_code) = "1763-2"]; + GAKONA = 587 [(.google.fhir.proto.fhir_original_code) = "1764-0"]; + GALENA = 588 [(.google.fhir.proto.fhir_original_code) = "1765-7"]; + GRAYLING = 589 [(.google.fhir.proto.fhir_original_code) = "1766-5"]; + GULKANA = 590 [(.google.fhir.proto.fhir_original_code) = "1767-3"]; + HEALY_LAKE = 591 [(.google.fhir.proto.fhir_original_code) = "1768-1"]; + HOLY_CROSS = 592 [(.google.fhir.proto.fhir_original_code) = "1769-9"]; + HUGHES = 593 [(.google.fhir.proto.fhir_original_code) = "1770-7"]; + HUSLIA = 594 [(.google.fhir.proto.fhir_original_code) = "1771-5"]; + ILIAMNA = 595 [(.google.fhir.proto.fhir_original_code) = "1772-3"]; + KALTAG = 596 [(.google.fhir.proto.fhir_original_code) = "1773-1"]; + KLUTI_KAAH = 597 [(.google.fhir.proto.fhir_original_code) = "1774-9"]; + KNIK = 598 [(.google.fhir.proto.fhir_original_code) = "1775-6"]; + KOYUKUK = 599 [(.google.fhir.proto.fhir_original_code) = "1776-4"]; + LAKE_MINCHUMINA = 600 [(.google.fhir.proto.fhir_original_code) = "1777-2"]; + LIME = 601 [(.google.fhir.proto.fhir_original_code) = "1778-0"]; + MCGRATH = 602 [(.google.fhir.proto.fhir_original_code) = "1779-8"]; + MANLEY_HOT_SPRINGS = 603 + [(.google.fhir.proto.fhir_original_code) = "1780-6"]; + MENTASTA_LAKE = 604 [(.google.fhir.proto.fhir_original_code) = "1781-4"]; + MINTO = 605 [(.google.fhir.proto.fhir_original_code) = "1782-2"]; + NENANA = 606 [(.google.fhir.proto.fhir_original_code) = "1783-0"]; + NIKOLAI = 607 [(.google.fhir.proto.fhir_original_code) = "1784-8"]; + NINILCHIK = 608 [(.google.fhir.proto.fhir_original_code) = "1785-5"]; + NONDALTON = 609 [(.google.fhir.proto.fhir_original_code) = "1786-3"]; + NORTHWAY = 610 [(.google.fhir.proto.fhir_original_code) = "1787-1"]; + NULATO = 611 [(.google.fhir.proto.fhir_original_code) = "1788-9"]; + PEDRO_BAY = 612 [(.google.fhir.proto.fhir_original_code) = "1789-7"]; + RAMPART = 613 [(.google.fhir.proto.fhir_original_code) = "1790-5"]; + RUBY = 614 [(.google.fhir.proto.fhir_original_code) = "1791-3"]; + SALAMATOF = 615 [(.google.fhir.proto.fhir_original_code) = "1792-1"]; + SELDOVIA = 616 [(.google.fhir.proto.fhir_original_code) = "1793-9"]; + SLANA = 617 [(.google.fhir.proto.fhir_original_code) = "1794-7"]; + SHAGELUK = 618 [(.google.fhir.proto.fhir_original_code) = "1795-4"]; + STEVENS = 619 [(.google.fhir.proto.fhir_original_code) = "1796-2"]; + STONY_RIVER = 620 [(.google.fhir.proto.fhir_original_code) = "1797-0"]; + TAKOTNA = 621 [(.google.fhir.proto.fhir_original_code) = "1798-8"]; + TANACROSS = 622 [(.google.fhir.proto.fhir_original_code) = "1799-6"]; + TANAINA = 623 [(.google.fhir.proto.fhir_original_code) = "1800-2"]; + TANANA = 624 [(.google.fhir.proto.fhir_original_code) = "1801-0"]; + TANANA_CHIEFS = 625 [(.google.fhir.proto.fhir_original_code) = "1802-8"]; + TAZLINA = 626 [(.google.fhir.proto.fhir_original_code) = "1803-6"]; + TELIDA = 627 [(.google.fhir.proto.fhir_original_code) = "1804-4"]; + TETLIN = 628 [(.google.fhir.proto.fhir_original_code) = "1805-1"]; + TOK = 629 [(.google.fhir.proto.fhir_original_code) = "1806-9"]; + TYONEK = 630 [(.google.fhir.proto.fhir_original_code) = "1807-7"]; + VENETIE = 631 [(.google.fhir.proto.fhir_original_code) = "1808-5"]; + WISEMAN = 632 [(.google.fhir.proto.fhir_original_code) = "1809-3"]; + TLINGIT_HAIDA = 633 [(.google.fhir.proto.fhir_original_code) = "1813-5"]; + TSIMSHIAN = 634 [(.google.fhir.proto.fhir_original_code) = "1837-4"]; + ANGOON = 635 [(.google.fhir.proto.fhir_original_code) = "1814-3"]; + CENTRAL_COUNCIL_OF_TLINGIT_AND_HAIDA_TRIBES = 636 + [(.google.fhir.proto.fhir_original_code) = "1815-0"]; + CHILKAT = 637 [(.google.fhir.proto.fhir_original_code) = "1816-8"]; + CHILKOOT = 638 [(.google.fhir.proto.fhir_original_code) = "1817-6"]; + CRAIG = 639 [(.google.fhir.proto.fhir_original_code) = "1818-4"]; + DOUGLAS = 640 [(.google.fhir.proto.fhir_original_code) = "1819-2"]; + HAIDA = 641 [(.google.fhir.proto.fhir_original_code) = "1820-0"]; + HOONAH = 642 [(.google.fhir.proto.fhir_original_code) = "1821-8"]; + HYDABURG = 643 [(.google.fhir.proto.fhir_original_code) = "1822-6"]; + KAKE = 644 [(.google.fhir.proto.fhir_original_code) = "1823-4"]; + KASAAN = 645 [(.google.fhir.proto.fhir_original_code) = "1824-2"]; + KENAITZE = 646 [(.google.fhir.proto.fhir_original_code) = "1825-9"]; + KETCHIKAN = 647 [(.google.fhir.proto.fhir_original_code) = "1826-7"]; + KLAWOCK = 648 [(.google.fhir.proto.fhir_original_code) = "1827-5"]; + PELICAN = 649 [(.google.fhir.proto.fhir_original_code) = "1828-3"]; + PETERSBURG = 650 [(.google.fhir.proto.fhir_original_code) = "1829-1"]; + SAXMAN = 651 [(.google.fhir.proto.fhir_original_code) = "1830-9"]; + SITKA = 652 [(.google.fhir.proto.fhir_original_code) = "1831-7"]; + TENAKEE_SPRINGS = 653 [(.google.fhir.proto.fhir_original_code) = "1832-5"]; + TLINGIT = 654 [(.google.fhir.proto.fhir_original_code) = "1833-3"]; + WRANGELL = 655 [(.google.fhir.proto.fhir_original_code) = "1834-1"]; + YAKUTAT = 656 [(.google.fhir.proto.fhir_original_code) = "1835-8"]; + METLAKATLA = 657 [(.google.fhir.proto.fhir_original_code) = "1838-2"]; + GREENLAND_ESKIMO = 658 [(.google.fhir.proto.fhir_original_code) = "1842-4"]; + INUPIAT_ESKIMO = 659 [(.google.fhir.proto.fhir_original_code) = "1844-0"]; + SIBERIAN_ESKIMO = 660 [(.google.fhir.proto.fhir_original_code) = "1891-1"]; + YUPIK_ESKIMO = 661 [(.google.fhir.proto.fhir_original_code) = "1896-0"]; + AMBLER = 662 [(.google.fhir.proto.fhir_original_code) = "1845-7"]; + ANAKTUVUK = 663 [(.google.fhir.proto.fhir_original_code) = "1846-5"]; + ANAKTUVUK_PASS = 664 [(.google.fhir.proto.fhir_original_code) = "1847-3"]; + ARCTIC_SLOPE_INUPIAT = 665 + [(.google.fhir.proto.fhir_original_code) = "1848-1"]; + ARCTIC_SLOPE_CORPORATION = 666 + [(.google.fhir.proto.fhir_original_code) = "1849-9"]; + ATQASUK = 667 [(.google.fhir.proto.fhir_original_code) = "1850-7"]; + BARROW = 668 [(.google.fhir.proto.fhir_original_code) = "1851-5"]; + BERING_STRAITS_INUPIAT = 669 + [(.google.fhir.proto.fhir_original_code) = "1852-3"]; + BREVIG_MISSION = 670 [(.google.fhir.proto.fhir_original_code) = "1853-1"]; + BUCKLAND = 671 [(.google.fhir.proto.fhir_original_code) = "1854-9"]; + CHINIK = 672 [(.google.fhir.proto.fhir_original_code) = "1855-6"]; + COUNCIL = 673 [(.google.fhir.proto.fhir_original_code) = "1856-4"]; + DEERING = 674 [(.google.fhir.proto.fhir_original_code) = "1857-2"]; + ELIM = 675 [(.google.fhir.proto.fhir_original_code) = "1858-0"]; + GOLOVIN = 676 [(.google.fhir.proto.fhir_original_code) = "1859-8"]; + INALIK_DIOMEDE = 677 [(.google.fhir.proto.fhir_original_code) = "1860-6"]; + INUPIAQ = 678 [(.google.fhir.proto.fhir_original_code) = "1861-4"]; + KAKTOVIK = 679 [(.google.fhir.proto.fhir_original_code) = "1862-2"]; + KAWERAK = 680 [(.google.fhir.proto.fhir_original_code) = "1863-0"]; + KIANA = 681 [(.google.fhir.proto.fhir_original_code) = "1864-8"]; + KIVALINA = 682 [(.google.fhir.proto.fhir_original_code) = "1865-5"]; + KOBUK = 683 [(.google.fhir.proto.fhir_original_code) = "1866-3"]; + KOTZEBUE = 684 [(.google.fhir.proto.fhir_original_code) = "1867-1"]; + KOYUK = 685 [(.google.fhir.proto.fhir_original_code) = "1868-9"]; + KWIGUK = 686 [(.google.fhir.proto.fhir_original_code) = "1869-7"]; + MAUNELUK_INUPIAT = 687 [(.google.fhir.proto.fhir_original_code) = "1870-5"]; + NANA_INUPIAT = 688 [(.google.fhir.proto.fhir_original_code) = "1871-3"]; + NOATAK = 689 [(.google.fhir.proto.fhir_original_code) = "1872-1"]; + NOME = 690 [(.google.fhir.proto.fhir_original_code) = "1873-9"]; + NOORVIK = 691 [(.google.fhir.proto.fhir_original_code) = "1874-7"]; + NUIQSUT = 692 [(.google.fhir.proto.fhir_original_code) = "1875-4"]; + POINT_HOPE = 693 [(.google.fhir.proto.fhir_original_code) = "1876-2"]; + POINT_LAY = 694 [(.google.fhir.proto.fhir_original_code) = "1877-0"]; + SELAWIK = 695 [(.google.fhir.proto.fhir_original_code) = "1878-8"]; + SHAKTOOLIK = 696 [(.google.fhir.proto.fhir_original_code) = "1879-6"]; + SHISHMAREF = 697 [(.google.fhir.proto.fhir_original_code) = "1880-4"]; + SHUNGNAK = 698 [(.google.fhir.proto.fhir_original_code) = "1881-2"]; + SOLOMON = 699 [(.google.fhir.proto.fhir_original_code) = "1882-0"]; + TELLER = 700 [(.google.fhir.proto.fhir_original_code) = "1883-8"]; + UNALAKLEET = 701 [(.google.fhir.proto.fhir_original_code) = "1884-6"]; + WAINWRIGHT = 702 [(.google.fhir.proto.fhir_original_code) = "1885-3"]; + WALES = 703 [(.google.fhir.proto.fhir_original_code) = "1886-1"]; + WHITE_MOUNTAIN = 704 [(.google.fhir.proto.fhir_original_code) = "1887-9"]; + WHITE_MOUNTAIN_INUPIAT = 705 + [(.google.fhir.proto.fhir_original_code) = "1888-7"]; + MARYS_IGLOO = 706 [(.google.fhir.proto.fhir_original_code) = "1889-5"]; + GAMBELL = 707 [(.google.fhir.proto.fhir_original_code) = "1892-9"]; + SAVOONGA = 708 [(.google.fhir.proto.fhir_original_code) = "1893-7"]; + SIBERIAN_YUPIK = 709 [(.google.fhir.proto.fhir_original_code) = "1894-5"]; + AKIACHAK = 710 [(.google.fhir.proto.fhir_original_code) = "1897-8"]; + AKIAK = 711 [(.google.fhir.proto.fhir_original_code) = "1898-6"]; + ALAKANUK = 712 [(.google.fhir.proto.fhir_original_code) = "1899-4"]; + ALEKNAGIK = 713 [(.google.fhir.proto.fhir_original_code) = "1900-0"]; + ANDREAFSKY = 714 [(.google.fhir.proto.fhir_original_code) = "1901-8"]; + ANIAK = 715 [(.google.fhir.proto.fhir_original_code) = "1902-6"]; + ATMAUTLUAK = 716 [(.google.fhir.proto.fhir_original_code) = "1903-4"]; + BETHEL = 717 [(.google.fhir.proto.fhir_original_code) = "1904-2"]; + BILL_MOORES_SLOUGH = 718 + [(.google.fhir.proto.fhir_original_code) = "1905-9"]; + BRISTOL_BAY_YUPIK = 719 + [(.google.fhir.proto.fhir_original_code) = "1906-7"]; + CALISTA_YUPIK = 720 [(.google.fhir.proto.fhir_original_code) = "1907-5"]; + CHEFORNAK = 721 [(.google.fhir.proto.fhir_original_code) = "1908-3"]; + CHEVAK = 722 [(.google.fhir.proto.fhir_original_code) = "1909-1"]; + CHUATHBALUK = 723 [(.google.fhir.proto.fhir_original_code) = "1910-9"]; + CLARKS_POINT = 724 [(.google.fhir.proto.fhir_original_code) = "1911-7"]; + CROOKED_CREEK = 725 [(.google.fhir.proto.fhir_original_code) = "1912-5"]; + DILLINGHAM = 726 [(.google.fhir.proto.fhir_original_code) = "1913-3"]; + EEK = 727 [(.google.fhir.proto.fhir_original_code) = "1914-1"]; + EKUK = 728 [(.google.fhir.proto.fhir_original_code) = "1915-8"]; + EKWOK = 729 [(.google.fhir.proto.fhir_original_code) = "1916-6"]; + EMMONAK = 730 [(.google.fhir.proto.fhir_original_code) = "1917-4"]; + GOODNEWS_BAY = 731 [(.google.fhir.proto.fhir_original_code) = "1918-2"]; + HOOPER_BAY = 732 [(.google.fhir.proto.fhir_original_code) = "1919-0"]; + IQURMUIT_RUSSIAN_MISSION = 733 + [(.google.fhir.proto.fhir_original_code) = "1920-8"]; + KALSKAG = 734 [(.google.fhir.proto.fhir_original_code) = "1921-6"]; + KASIGLUK = 735 [(.google.fhir.proto.fhir_original_code) = "1922-4"]; + KIPNUK = 736 [(.google.fhir.proto.fhir_original_code) = "1923-2"]; + KOLIGANEK = 737 [(.google.fhir.proto.fhir_original_code) = "1924-0"]; + KONGIGANAK = 738 [(.google.fhir.proto.fhir_original_code) = "1925-7"]; + KOTLIK = 739 [(.google.fhir.proto.fhir_original_code) = "1926-5"]; + KWETHLUK = 740 [(.google.fhir.proto.fhir_original_code) = "1927-3"]; + KWIGILLINGOK = 741 [(.google.fhir.proto.fhir_original_code) = "1928-1"]; + LEVELOCK = 742 [(.google.fhir.proto.fhir_original_code) = "1929-9"]; + LOWER_KALSKAG = 743 [(.google.fhir.proto.fhir_original_code) = "1930-7"]; + MANOKOTAK = 744 [(.google.fhir.proto.fhir_original_code) = "1931-5"]; + MARSHALL = 745 [(.google.fhir.proto.fhir_original_code) = "1932-3"]; + MEKORYUK = 746 [(.google.fhir.proto.fhir_original_code) = "1933-1"]; + MOUNTAIN_VILLAGE = 747 [(.google.fhir.proto.fhir_original_code) = "1934-9"]; + NAKNEK = 748 [(.google.fhir.proto.fhir_original_code) = "1935-6"]; + NAPAUMUTE = 749 [(.google.fhir.proto.fhir_original_code) = "1936-4"]; + NAPAKIAK = 750 [(.google.fhir.proto.fhir_original_code) = "1937-2"]; + NAPASKIAK = 751 [(.google.fhir.proto.fhir_original_code) = "1938-0"]; + NEWHALEN = 752 [(.google.fhir.proto.fhir_original_code) = "1939-8"]; + NEW_STUYAHOK = 753 [(.google.fhir.proto.fhir_original_code) = "1940-6"]; + NEWTOK = 754 [(.google.fhir.proto.fhir_original_code) = "1941-4"]; + NIGHTMUTE = 755 [(.google.fhir.proto.fhir_original_code) = "1942-2"]; + NUNAPITCHUKV = 756 [(.google.fhir.proto.fhir_original_code) = "1943-0"]; + OSCARVILLE = 757 [(.google.fhir.proto.fhir_original_code) = "1944-8"]; + PILOT_STATION = 758 [(.google.fhir.proto.fhir_original_code) = "1945-5"]; + PITKAS_POINT = 759 [(.google.fhir.proto.fhir_original_code) = "1946-3"]; + PLATINUM = 760 [(.google.fhir.proto.fhir_original_code) = "1947-1"]; + PORTAGE_CREEK = 761 [(.google.fhir.proto.fhir_original_code) = "1948-9"]; + QUINHAGAK = 762 [(.google.fhir.proto.fhir_original_code) = "1949-7"]; + RED_DEVIL = 763 [(.google.fhir.proto.fhir_original_code) = "1950-5"]; + ST_MICHAEL = 764 [(.google.fhir.proto.fhir_original_code) = "1951-3"]; + SCAMMON_BAY = 765 [(.google.fhir.proto.fhir_original_code) = "1952-1"]; + SHELDONS_POINT = 766 [(.google.fhir.proto.fhir_original_code) = "1953-9"]; + SLEETMUTE = 767 [(.google.fhir.proto.fhir_original_code) = "1954-7"]; + STEBBINS = 768 [(.google.fhir.proto.fhir_original_code) = "1955-4"]; + TOGIAK = 769 [(.google.fhir.proto.fhir_original_code) = "1956-2"]; + TOKSOOK = 770 [(.google.fhir.proto.fhir_original_code) = "1957-0"]; + TULUKSKAK = 771 [(.google.fhir.proto.fhir_original_code) = "1958-8"]; + TUNTUTULIAK = 772 [(.google.fhir.proto.fhir_original_code) = "1959-6"]; + TUNUNAK = 773 [(.google.fhir.proto.fhir_original_code) = "1960-4"]; + TWIN_HILLS = 774 [(.google.fhir.proto.fhir_original_code) = "1961-2"]; + GEORGETOWN_YUPIK_ESKIMO = 775 + [(.google.fhir.proto.fhir_original_code) = "1962-0"]; + ST_MARYS = 776 [(.google.fhir.proto.fhir_original_code) = "1963-8"]; + UMKUMIATE = 777 [(.google.fhir.proto.fhir_original_code) = "1964-6"]; + ALUTIIQ_ALEUT = 778 [(.google.fhir.proto.fhir_original_code) = "1968-7"]; + BRISTOL_BAY_ALEUT = 779 + [(.google.fhir.proto.fhir_original_code) = "1972-9"]; + CHUGACH_ALEUT = 780 [(.google.fhir.proto.fhir_original_code) = "1984-4"]; + EYAK = 781 [(.google.fhir.proto.fhir_original_code) = "1990-1"]; + KONIAG_ALEUT = 782 [(.google.fhir.proto.fhir_original_code) = "1992-7"]; + SUGPIAQ = 783 [(.google.fhir.proto.fhir_original_code) = "2002-4"]; + SUQPIGAQ = 784 [(.google.fhir.proto.fhir_original_code) = "2004-0"]; + UNANGAN_ALEUT = 785 [(.google.fhir.proto.fhir_original_code) = "2006-5"]; + TATITLEK = 786 [(.google.fhir.proto.fhir_original_code) = "1969-5"]; + UGASHIK = 787 [(.google.fhir.proto.fhir_original_code) = "1970-3"]; + CHIGNIK = 788 [(.google.fhir.proto.fhir_original_code) = "1973-7"]; + CHIGNIK_LAKE = 789 [(.google.fhir.proto.fhir_original_code) = "1974-5"]; + EGEGIK = 790 [(.google.fhir.proto.fhir_original_code) = "1975-2"]; + IGIUGIG = 791 [(.google.fhir.proto.fhir_original_code) = "1976-0"]; + IVANOF_BAY = 792 [(.google.fhir.proto.fhir_original_code) = "1977-8"]; + KING_SALMON = 793 [(.google.fhir.proto.fhir_original_code) = "1978-6"]; + KOKHANOK = 794 [(.google.fhir.proto.fhir_original_code) = "1979-4"]; + PERRYVILLE = 795 [(.google.fhir.proto.fhir_original_code) = "1980-2"]; + PILOT_POINT = 796 [(.google.fhir.proto.fhir_original_code) = "1981-0"]; + PORT_HEIDEN = 797 [(.google.fhir.proto.fhir_original_code) = "1982-8"]; + CHENEGA = 798 [(.google.fhir.proto.fhir_original_code) = "1985-1"]; + CHUGACH_CORPORATION = 799 + [(.google.fhir.proto.fhir_original_code) = "1986-9"]; + ENGLISH_BAY = 800 [(.google.fhir.proto.fhir_original_code) = "1987-7"]; + PORT_GRAHAM = 801 [(.google.fhir.proto.fhir_original_code) = "1988-5"]; + AKHIOK = 802 [(.google.fhir.proto.fhir_original_code) = "1993-5"]; + AGDAAGUX = 803 [(.google.fhir.proto.fhir_original_code) = "1994-3"]; + KARLUK = 804 [(.google.fhir.proto.fhir_original_code) = "1995-0"]; + KODIAK = 805 [(.google.fhir.proto.fhir_original_code) = "1996-8"]; + LARSEN_BAY = 806 [(.google.fhir.proto.fhir_original_code) = "1997-6"]; + OLD_HARBOR = 807 [(.google.fhir.proto.fhir_original_code) = "1998-4"]; + OUZINKIE = 808 [(.google.fhir.proto.fhir_original_code) = "1999-2"]; + PORT_LIONS = 809 [(.google.fhir.proto.fhir_original_code) = "2000-8"]; + AKUTAN = 810 [(.google.fhir.proto.fhir_original_code) = "2007-3"]; + ALEUT_CORPORATION = 811 + [(.google.fhir.proto.fhir_original_code) = "2008-1"]; + ALEUTIAN = 812 [(.google.fhir.proto.fhir_original_code) = "2009-9"]; + ALEUTIAN_ISLANDER = 813 + [(.google.fhir.proto.fhir_original_code) = "2010-7"]; + ATKA = 814 [(.google.fhir.proto.fhir_original_code) = "2011-5"]; + BELKOFSKI = 815 [(.google.fhir.proto.fhir_original_code) = "2012-3"]; + CHIGNIK_LAGOON = 816 [(.google.fhir.proto.fhir_original_code) = "2013-1"]; + KING_COVE = 817 [(.google.fhir.proto.fhir_original_code) = "2014-9"]; + FALSE_PASS = 818 [(.google.fhir.proto.fhir_original_code) = "2015-6"]; + NELSON_LAGOON = 819 [(.google.fhir.proto.fhir_original_code) = "2016-4"]; + NIKOLSKI = 820 [(.google.fhir.proto.fhir_original_code) = "2017-2"]; + PAULOFF_HARBOR = 821 [(.google.fhir.proto.fhir_original_code) = "2018-0"]; + QAGAN_TOYAGUNGIN = 822 [(.google.fhir.proto.fhir_original_code) = "2019-8"]; + QAWALANGIN = 823 [(.google.fhir.proto.fhir_original_code) = "2020-6"]; + ST_GEORGE = 824 [(.google.fhir.proto.fhir_original_code) = "2021-4"]; + ST_PAUL = 825 [(.google.fhir.proto.fhir_original_code) = "2022-2"]; + SAND_POINT = 826 [(.google.fhir.proto.fhir_original_code) = "2023-0"]; + SOUTH_NAKNEK = 827 [(.google.fhir.proto.fhir_original_code) = "2024-8"]; + UNALASKA = 828 [(.google.fhir.proto.fhir_original_code) = "2025-5"]; + UNGA = 829 [(.google.fhir.proto.fhir_original_code) = "2026-3"]; + ASIAN = 830 [(.google.fhir.proto.fhir_original_code) = "2028-9"]; + ASIAN_INDIAN = 831 [(.google.fhir.proto.fhir_original_code) = "2029-7"]; + BANGLADESHI = 832 [(.google.fhir.proto.fhir_original_code) = "2030-5"]; + BHUTANESE = 833 [(.google.fhir.proto.fhir_original_code) = "2031-3"]; + BURMESE = 834 [(.google.fhir.proto.fhir_original_code) = "2032-1"]; + CAMBODIAN = 835 [(.google.fhir.proto.fhir_original_code) = "2033-9"]; + CHINESE = 836 [(.google.fhir.proto.fhir_original_code) = "2034-7"]; + TAIWANESE = 837 [(.google.fhir.proto.fhir_original_code) = "2035-4"]; + FILIPINO = 838 [(.google.fhir.proto.fhir_original_code) = "2036-2"]; + HMONG = 839 [(.google.fhir.proto.fhir_original_code) = "2037-0"]; + INDONESIAN = 840 [(.google.fhir.proto.fhir_original_code) = "2038-8"]; + JAPANESE = 841 [(.google.fhir.proto.fhir_original_code) = "2039-6"]; + KOREAN = 842 [(.google.fhir.proto.fhir_original_code) = "2040-4"]; + LAOTIAN = 843 [(.google.fhir.proto.fhir_original_code) = "2041-2"]; + MALAYSIAN = 844 [(.google.fhir.proto.fhir_original_code) = "2042-0"]; + OKINAWAN = 845 [(.google.fhir.proto.fhir_original_code) = "2043-8"]; + PAKISTANI = 846 [(.google.fhir.proto.fhir_original_code) = "2044-6"]; + SRI_LANKAN = 847 [(.google.fhir.proto.fhir_original_code) = "2045-3"]; + THAI = 848 [(.google.fhir.proto.fhir_original_code) = "2046-1"]; + VIETNAMESE = 849 [(.google.fhir.proto.fhir_original_code) = "2047-9"]; + IWO_JIMAN = 850 [(.google.fhir.proto.fhir_original_code) = "2048-7"]; + MALDIVIAN = 851 [(.google.fhir.proto.fhir_original_code) = "2049-5"]; + NEPALESE = 852 [(.google.fhir.proto.fhir_original_code) = "2050-3"]; + SINGAPOREAN = 853 [(.google.fhir.proto.fhir_original_code) = "2051-1"]; + MADAGASCAR = 854 [(.google.fhir.proto.fhir_original_code) = "2052-9"]; + BLACK_OR_AFRICAN_AMERICAN = 855 + [(.google.fhir.proto.fhir_original_code) = "2054-5"]; + BLACK = 856 [(.google.fhir.proto.fhir_original_code) = "2056-0"]; + AFRICAN_AMERICAN = 857 [(.google.fhir.proto.fhir_original_code) = "2058-6"]; + AFRICAN = 858 [(.google.fhir.proto.fhir_original_code) = "2060-2"]; + BAHAMIAN = 859 [(.google.fhir.proto.fhir_original_code) = "2067-7"]; + BARBADIAN = 860 [(.google.fhir.proto.fhir_original_code) = "2068-5"]; + DOMINICAN_2069_3 = 861 [(.google.fhir.proto.fhir_original_code) = "2069-3"]; + DOMINICA_ISLANDER = 862 + [(.google.fhir.proto.fhir_original_code) = "2070-1"]; + HAITIAN = 863 [(.google.fhir.proto.fhir_original_code) = "2071-9"]; + JAMAICAN = 864 [(.google.fhir.proto.fhir_original_code) = "2072-7"]; + TOBAGOAN = 865 [(.google.fhir.proto.fhir_original_code) = "2073-5"]; + TRINIDADIAN = 866 [(.google.fhir.proto.fhir_original_code) = "2074-3"]; + WEST_INDIAN = 867 [(.google.fhir.proto.fhir_original_code) = "2075-0"]; + BOTSWANAN = 868 [(.google.fhir.proto.fhir_original_code) = "2061-0"]; + ETHIOPIAN = 869 [(.google.fhir.proto.fhir_original_code) = "2062-8"]; + LIBERIAN = 870 [(.google.fhir.proto.fhir_original_code) = "2063-6"]; + NAMIBIAN = 871 [(.google.fhir.proto.fhir_original_code) = "2064-4"]; + NIGERIAN = 872 [(.google.fhir.proto.fhir_original_code) = "2065-1"]; + ZAIREAN = 873 [(.google.fhir.proto.fhir_original_code) = "2066-9"]; + NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER = 874 + [(.google.fhir.proto.fhir_original_code) = "2076-8"]; + POLYNESIAN = 875 [(.google.fhir.proto.fhir_original_code) = "2078-4"]; + MICRONESIAN = 876 [(.google.fhir.proto.fhir_original_code) = "2085-9"]; + MELANESIAN = 877 [(.google.fhir.proto.fhir_original_code) = "2100-6"]; + OTHER_PACIFIC_ISLANDER = 878 + [(.google.fhir.proto.fhir_original_code) = "2500-7"]; + NATIVE_HAWAIIAN = 879 [(.google.fhir.proto.fhir_original_code) = "2079-2"]; + SAMOAN = 880 [(.google.fhir.proto.fhir_original_code) = "2080-0"]; + TAHITIAN = 881 [(.google.fhir.proto.fhir_original_code) = "2081-8"]; + TONGAN = 882 [(.google.fhir.proto.fhir_original_code) = "2082-6"]; + TOKELAUAN = 883 [(.google.fhir.proto.fhir_original_code) = "2083-4"]; + GUAMANIAN_OR_CHAMORRO = 884 + [(.google.fhir.proto.fhir_original_code) = "2086-7"]; + GUAMANIAN = 885 [(.google.fhir.proto.fhir_original_code) = "2087-5"]; + CHAMORRO = 886 [(.google.fhir.proto.fhir_original_code) = "2088-3"]; + MARIANA_ISLANDER = 887 [(.google.fhir.proto.fhir_original_code) = "2089-1"]; + MARSHALLESE = 888 [(.google.fhir.proto.fhir_original_code) = "2090-9"]; + PALAUAN = 889 [(.google.fhir.proto.fhir_original_code) = "2091-7"]; + CAROLINIAN = 890 [(.google.fhir.proto.fhir_original_code) = "2092-5"]; + KOSRAEAN = 891 [(.google.fhir.proto.fhir_original_code) = "2093-3"]; + POHNPEIAN = 892 [(.google.fhir.proto.fhir_original_code) = "2094-1"]; + SAIPANESE = 893 [(.google.fhir.proto.fhir_original_code) = "2095-8"]; + KIRIBATI = 894 [(.google.fhir.proto.fhir_original_code) = "2096-6"]; + CHUUKESE = 895 [(.google.fhir.proto.fhir_original_code) = "2097-4"]; + YAPESE = 896 [(.google.fhir.proto.fhir_original_code) = "2098-2"]; + FIJIAN = 897 [(.google.fhir.proto.fhir_original_code) = "2101-4"]; + PAPUA_NEW_GUINEAN = 898 + [(.google.fhir.proto.fhir_original_code) = "2102-2"]; + SOLOMON_ISLANDER = 899 [(.google.fhir.proto.fhir_original_code) = "2103-0"]; + NEW_HEBRIDES = 900 [(.google.fhir.proto.fhir_original_code) = "2104-8"]; + WHITE = 901 [(.google.fhir.proto.fhir_original_code) = "2106-3"]; + EUROPEAN = 902 [(.google.fhir.proto.fhir_original_code) = "2108-9"]; + MIDDLE_EASTERN_OR_NORTH_AFRICAN = 903 + [(.google.fhir.proto.fhir_original_code) = "2118-8"]; + ARAB = 904 [(.google.fhir.proto.fhir_original_code) = "2129-5"]; + ARMENIAN = 905 [(.google.fhir.proto.fhir_original_code) = "2109-7"]; + ENGLISH = 906 [(.google.fhir.proto.fhir_original_code) = "2110-5"]; + FRENCH = 907 [(.google.fhir.proto.fhir_original_code) = "2111-3"]; + GERMAN = 908 [(.google.fhir.proto.fhir_original_code) = "2112-1"]; + IRISH = 909 [(.google.fhir.proto.fhir_original_code) = "2113-9"]; + ITALIAN = 910 [(.google.fhir.proto.fhir_original_code) = "2114-7"]; + POLISH = 911 [(.google.fhir.proto.fhir_original_code) = "2115-4"]; + SCOTTISH = 912 [(.google.fhir.proto.fhir_original_code) = "2116-2"]; + ASSYRIAN = 913 [(.google.fhir.proto.fhir_original_code) = "2119-6"]; + EGYPTIAN = 914 [(.google.fhir.proto.fhir_original_code) = "2120-4"]; + IRANIAN = 915 [(.google.fhir.proto.fhir_original_code) = "2121-2"]; + IRAQI = 916 [(.google.fhir.proto.fhir_original_code) = "2122-0"]; + LEBANESE = 917 [(.google.fhir.proto.fhir_original_code) = "2123-8"]; + PALESTINIAN = 918 [(.google.fhir.proto.fhir_original_code) = "2124-6"]; + SYRIAN = 919 [(.google.fhir.proto.fhir_original_code) = "2125-3"]; + AFGHANISTANI = 920 [(.google.fhir.proto.fhir_original_code) = "2126-1"]; + ISRAEILI = 921 [(.google.fhir.proto.fhir_original_code) = "2127-9"]; + OTHER_RACE = 922 [(.google.fhir.proto.fhir_original_code) = "2131-1"]; + ETHNICITY = 923 [(.google.fhir.proto.fhir_original_code) = "2133-7"]; + HISPANIC_OR_LATINO = 924 + [(.google.fhir.proto.fhir_original_code) = "2135-2"]; + SPANIARD = 925 [(.google.fhir.proto.fhir_original_code) = "2137-8"]; + MEXICAN = 926 [(.google.fhir.proto.fhir_original_code) = "2148-5"]; + CENTRAL_AMERICAN = 927 [(.google.fhir.proto.fhir_original_code) = "2155-0"]; + SOUTH_AMERICAN = 928 [(.google.fhir.proto.fhir_original_code) = "2165-9"]; + LATIN_AMERICAN = 929 [(.google.fhir.proto.fhir_original_code) = "2178-2"]; + PUERTO_RICAN = 930 [(.google.fhir.proto.fhir_original_code) = "2180-8"]; + CUBAN = 931 [(.google.fhir.proto.fhir_original_code) = "2182-4"]; + DOMINICAN_2184_0 = 932 [(.google.fhir.proto.fhir_original_code) = "2184-0"]; + ANDALUSIAN = 933 [(.google.fhir.proto.fhir_original_code) = "2138-6"]; + ASTURIAN = 934 [(.google.fhir.proto.fhir_original_code) = "2139-4"]; + CASTILLIAN = 935 [(.google.fhir.proto.fhir_original_code) = "2140-2"]; + CATALONIAN = 936 [(.google.fhir.proto.fhir_original_code) = "2141-0"]; + BELEARIC_ISLANDER = 937 + [(.google.fhir.proto.fhir_original_code) = "2142-8"]; + GALLEGO = 938 [(.google.fhir.proto.fhir_original_code) = "2143-6"]; + VALENCIAN = 939 [(.google.fhir.proto.fhir_original_code) = "2144-4"]; + CANARIAN = 940 [(.google.fhir.proto.fhir_original_code) = "2145-1"]; + SPANISH_BASQUE = 941 [(.google.fhir.proto.fhir_original_code) = "2146-9"]; + MEXICAN_AMERICAN = 942 [(.google.fhir.proto.fhir_original_code) = "2149-3"]; + MEXICANO = 943 [(.google.fhir.proto.fhir_original_code) = "2150-1"]; + CHICANO = 944 [(.google.fhir.proto.fhir_original_code) = "2151-9"]; + LA_RAZA = 945 [(.google.fhir.proto.fhir_original_code) = "2152-7"]; + MEXICAN_AMERICAN_INDIAN_2153_5 = 946 + [(.google.fhir.proto.fhir_original_code) = "2153-5"]; + COSTA_RICAN = 947 [(.google.fhir.proto.fhir_original_code) = "2156-8"]; + GUATEMALAN = 948 [(.google.fhir.proto.fhir_original_code) = "2157-6"]; + HONDURAN = 949 [(.google.fhir.proto.fhir_original_code) = "2158-4"]; + NICARAGUAN = 950 [(.google.fhir.proto.fhir_original_code) = "2159-2"]; + PANAMANIAN = 951 [(.google.fhir.proto.fhir_original_code) = "2160-0"]; + SALVADORAN = 952 [(.google.fhir.proto.fhir_original_code) = "2161-8"]; + CENTRAL_AMERICAN_INDIAN_2162_6 = 953 + [(.google.fhir.proto.fhir_original_code) = "2162-6"]; + CANAL_ZONE = 954 [(.google.fhir.proto.fhir_original_code) = "2163-4"]; + ARGENTINEAN = 955 [(.google.fhir.proto.fhir_original_code) = "2166-7"]; + BOLIVIAN = 956 [(.google.fhir.proto.fhir_original_code) = "2167-5"]; + CHILEAN = 957 [(.google.fhir.proto.fhir_original_code) = "2168-3"]; + COLOMBIAN = 958 [(.google.fhir.proto.fhir_original_code) = "2169-1"]; + ECUADORIAN = 959 [(.google.fhir.proto.fhir_original_code) = "2170-9"]; + PARAGUAYAN = 960 [(.google.fhir.proto.fhir_original_code) = "2171-7"]; + PERUVIAN = 961 [(.google.fhir.proto.fhir_original_code) = "2172-5"]; + URUGUAYAN = 962 [(.google.fhir.proto.fhir_original_code) = "2173-3"]; + VENEZUELAN = 963 [(.google.fhir.proto.fhir_original_code) = "2174-1"]; + SOUTH_AMERICAN_INDIAN_2175_8 = 964 + [(.google.fhir.proto.fhir_original_code) = "2175-8"]; + CRIOLLO = 965 [(.google.fhir.proto.fhir_original_code) = "2176-6"]; + NOT_HISPANIC_OR_LATINO = 966 + [(.google.fhir.proto.fhir_original_code) = "2186-5"]; + } +} + // Documentation of substances suspected of (or not suspected of) causing an // allergy or intolerance reaction in an individual. **Inclusion Criteria:** // specific or general substances to which a patient may be exposed and which @@ -9782,6 +9725,20 @@ message USCoreAllergySubstanceValueSet { } } +// Set of codes that are needed for implementation of the US-Core profiles. +// These codes are used as extensions to the FHIR and US Core value sets. +// +// See http://hl7.org/fhir/us/core/CodeSystem/careplan-category +message USCoreCarePlanCategoryExtensionCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://hl7.org/fhir/us/core/CodeSystem/careplan-category"; + + INVALID_UNINITIALIZED = 0; + ASSESS_PLAN = 1; + } +} + // The US Core Clinical Note Type Value Set is a 'starter set' of types // supported for fetching and storing clinical notes. See // http://hl7.org/fhir/us/core/ValueSet/us-core-clinical-note-type @@ -9837,6 +9794,21 @@ message USCoreConditionCategoryCodesValueSet { } } +// Set of codes that are needed for implementation of the US-Core profiles. +// These codes are used as extensions to the FHIR and US Core value sets. +// +// See http://hl7.org/fhir/us/core/CodeSystem/condition-category +message USCoreConditionCategoryExtensionCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://hl7.org/fhir/us/core/CodeSystem/condition-category"; + + INVALID_UNINITIALIZED = 0; + PROBLEM = 1 [(.google.fhir.proto.deprecated_code) = true]; + HEALTH_CONCERN = 2; + } +} + // This describes the problem. Diagnosis/Problem List is broadly defined as a // series of brief statements that catalog a patient's medical, nursing, dental, // social, preventative and psychiatric events and issues that are relevant to @@ -9898,6 +9870,19 @@ message USCoreDocumentReferenceTypeValueSet { } } +// The US Core DocumentReferences Type Code System is a 'starter set' of +// categories supported for fetching and storing DocumentReference Resources. +// See http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category +message USCoreDocumentReferencesCategoryCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category"; + + INVALID_UNINITIALIZED = 0; + CLINICAL_NOTE = 1; + } +} + // Codes providing the status of an observation for smoking status. Constrained // to `final`and `entered-in-error`. See // http://hl7.org/fhir/us/core/ValueSet/us-core-observation-smoking-status-status @@ -9969,6 +9954,21 @@ message USCoreProvenancePaticipantTypeCodesValueSet { } } +// Set of codes that are needed for implementation of the US-Core profiles. +// These codes are used as extensions to the FHIR and US Core value sets. +// +// See +// http://hl7.org/fhir/us/core/CodeSystem/us-core-provenance-participant-type +message USCoreProvenancePaticipantTypeExtensionCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://hl7.org/fhir/us/core/CodeSystem/us-core-provenance-participant-type"; + + INVALID_UNINITIALIZED = 0; + TRANSMITTER = 1; + } +} + // Provider roles codes which are composed of the NUCC Health Care Provider // Taxonomy Code Set classification codes for providers. Only concepts with a // classification and no specialization are included. See diff --git a/testdata/r4/profiles/retagging/retagging_test.json b/testdata/r4/profiles/retagging/retagging_test.json index 85015d595..29546b3ce 100755 --- a/testdata/r4/profiles/retagging/retagging_test.json +++ b/testdata/r4/profiles/retagging/retagging_test.json @@ -10,7 +10,7 @@ "name": "Bundle", "title": "Bundle", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -1888,7 +1888,7 @@ "name": "TestPatient", "title": "TestPatient", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -4519,10 +4519,6 @@ ], "isModifier": false, "isSummary": true, - "binding": { - "strength": "required", - "valueSet": "http://hl7.org/fhir/metric-color" - }, "mapping": [ { "identity": "v2", @@ -4673,20 +4669,8 @@ }, { "id": "Patient.extension:favoriteBrewery", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", - "valueCode": "normative" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", - "valueCode": "4.0.0" - } - ], "path": "Patient.extension", "sliceName": "favoriteBrewery", - "short": "Optional Extensions Element", - "definition": "Optional Extension Element - found in all resources.", "max": "1", "type": [ { @@ -4696,9 +4680,6 @@ ] } ], - "condition": [ - "ele-1" - ], "constraint": [ { "key": "ext-1", @@ -4712,16 +4693,6 @@ }, { "id": "Patient.extension:decExt", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", - "valueCode": "normative" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", - "valueCode": "4.0.0" - } - ], "path": "Patient.extension", "sliceName": "decExt", "short": "Decimal Extension", @@ -4736,9 +4707,6 @@ ] } ], - "condition": [ - "ele-1" - ], "constraint": [ { "key": "ext-1", @@ -4770,38 +4738,10 @@ "sliceName": "color", "max": "1" }, - { - "id": "Patient.maritalStatus.coding:color.id", - "path": "Patient.maritalStatus.coding.id" - }, - { - "id": "Patient.maritalStatus.coding:color.extension", - "path": "Patient.maritalStatus.coding.extension" - }, { "id": "Patient.maritalStatus.coding:color.system", "path": "Patient.maritalStatus.coding.system", "fixedUri": "http://hl7.org/fhir/metric-color" - }, - { - "id": "Patient.maritalStatus.coding:color.version", - "path": "Patient.maritalStatus.coding.version" - }, - { - "id": "Patient.maritalStatus.coding:color.code", - "path": "Patient.maritalStatus.coding.code", - "binding": { - "strength": "required", - "valueSet": "http://hl7.org/fhir/metric-color" - } - }, - { - "id": "Patient.maritalStatus.coding:color.display", - "path": "Patient.maritalStatus.coding.display" - }, - { - "id": "Patient.maritalStatus.coding:color.userSelected", - "path": "Patient.maritalStatus.coding.userSelected" } ] } diff --git a/testdata/r4/profiles/retagging/retagging_test.proto b/testdata/r4/profiles/retagging/retagging_test.proto index bbdb67987..9306cdf04 100644 --- a/testdata/r4/profiles/retagging/retagging_test.proto +++ b/testdata/r4/profiles/retagging/retagging_test.proto @@ -20,7 +20,7 @@ import "google/protobuf/any.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 "testdata/r4/profiles/retagging_test_extensions.proto"; +import "testdata/r4/profiles/retagging/retagging_test_extensions.proto"; option java_multiple_files = true; option java_package = "com.google.fhir.r4.testing"; @@ -278,6 +278,13 @@ message Bundle { core.Signature signature = 11; } +message ContainedResource { + oneof oneof_resource { + Bundle bundle = 12; + TestPatient test_patient = 147; + } +} + // Auto-generated from StructureDefinition for TestPatient. // Information about an individual or animal receiving health care services. // See http://test/url/base/StructureDefinition/TestPatient @@ -691,10 +698,3 @@ message TestPatient { // Field 28 reserved to prevent reuse of field that was previously deleted. reserved 28; } - -message ContainedResource { - oneof oneof_resource { - Bundle bundle = 12; - TestPatient test_patient = 147; - } -} diff --git a/testdata/r4/profiles/retagging/retagging_test_codes.proto b/testdata/r4/profiles/retagging/retagging_test_codes.proto index ceca6fa43..273f372ba 100644 --- a/testdata/r4/profiles/retagging/retagging_test_codes.proto +++ b/testdata/r4/profiles/retagging/retagging_test_codes.proto @@ -21,34 +21,6 @@ import "proto/google/fhir/proto/annotations.proto"; option java_multiple_files = true; option java_package = "com.google.fhir.r4.testing"; -// The brewery of origin. -// See http://test/url/base/Brewery -message BreweryCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/Brewery"; - - INVALID_UNINITIALIZED = 0; - SANTE_ADAIRIUS = 1; - TREEHOUSE = 2; - RUSSIAN_RIVER = 3; - CANTILLON = 4; - } -} - -// NFL Football Teams -// See http://test/url/base/FootballTeams -message FootballTeamsCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/FootballTeams"; - - INVALID_UNINITIALIZED = 0; - NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; - EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; - } -} - // ValueSet for Brewery Code System. // See http://test/url/base/ValueSet/AmericanBreweries message AmericanBreweriesValueSet { @@ -66,6 +38,21 @@ message AmericanBreweriesValueSet { } } +// The brewery of origin. +// See http://test/url/base/Brewery +message BreweryCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/Brewery"; + + INVALID_UNINITIALIZED = 0; + SANTE_ADAIRIUS = 1; + TREEHOUSE = 2; + RUSSIAN_RIVER = 3; + CANTILLON = 4; + } +} + // ValueSet for California breweries. // See http://test/url/base/ValueSet/CaliforniaBreweries message CaliforniaBreweriesValueSet { @@ -101,6 +88,19 @@ message CaliforniansValueSet { } } +// NFL Football Teams +// See http://test/url/base/FootballTeams +message FootballTeamsCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/FootballTeams"; + + INVALID_UNINITIALIZED = 0; + NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; + EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; + } +} + // ValueSet with codes from a CodeSystem that has a defining resource but no // defined codes See http://test/url/base/ValueSet/SomeSnomedCodes message SomeSnomedCodesValueSet { diff --git a/testdata/r4/profiles/retagging/retagging_test_extensions.json b/testdata/r4/profiles/retagging/retagging_test_extensions.json index 8a8137056..e65ff1e38 100755 --- a/testdata/r4/profiles/retagging/retagging_test_extensions.json +++ b/testdata/r4/profiles/retagging/retagging_test_extensions.json @@ -10,7 +10,7 @@ "name": "SimpleDecimalExt", "title": "SimpleDecimalExt", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -305,7 +305,7 @@ "name": "SimpleCodeableConceptExtension", "title": "SimpleCodeableConceptExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -614,7 +614,7 @@ "name": "DigitalMediaType", "title": "DigitalMediaType", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -923,7 +923,7 @@ "name": "FavoriteBrewery", "title": "FavoriteBrewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -1229,7 +1229,7 @@ "name": "FavoriteCalifornian", "title": "FavoriteCalifornian", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -1535,7 +1535,7 @@ "name": "ComplexExt", "title": "ComplexExt", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -3023,10 +3023,6 @@ } ] }, - { - "id": "Extension.extension:simpleSubfield.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:simpleSubfield.extension", "path": "Extension.extension.extension", @@ -3078,10 +3074,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:complexSubfield.extension", "path": "Extension.extension.extension", @@ -3128,14 +3120,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.id", - "path": "Extension.extension.extension.id" - }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.extension", - "path": "Extension.extension.extension.extension" - }, { "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.url", "path": "Extension.extension.extension.url", @@ -3186,10 +3170,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldB.id", - "path": "Extension.extension.extension.id" - }, { "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldB.extension", "path": "Extension.extension.extension.extension", @@ -3221,7 +3201,7 @@ "name": "SingleValueComplexExtension", "title": "SingleValueComplexExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -3899,10 +3879,6 @@ } ] }, - { - "id": "Extension.extension:stringField.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:stringField.extension", "path": "Extension.extension.extension", @@ -3934,7 +3910,7 @@ "name": "SingleValueRepeatedComplexExtension", "title": "SingleValueRepeatedComplexExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -4611,10 +4587,6 @@ } ] }, - { - "id": "Extension.extension:stringField.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:stringField.extension", "path": "Extension.extension.extension", diff --git a/testdata/r4/profiles/retagging/retagging_test_extensions.proto b/testdata/r4/profiles/retagging/retagging_test_extensions.proto index f81bf232b..a7079ca4e 100644 --- a/testdata/r4/profiles/retagging/retagging_test_extensions.proto +++ b/testdata/r4/profiles/retagging/retagging_test_extensions.proto @@ -19,60 +19,56 @@ package google.fhir.r4.testing; 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 "testdata/r4/profiles/retagging_test_codes.proto"; +import "testdata/r4/profiles/retagging/retagging_test_codes.proto"; option java_multiple_files = true; option java_package = "com.google.fhir.r4.testing"; option (.google.fhir.proto.fhir_version) = R4; -// Auto-generated from StructureDefinition for SimpleDecimalExt. -// This is the A-Extension. -// See http://test/url/base/StructureDefinition/SimpleDecimalExt -message SimpleDecimalExt { +// Auto-generated from StructureDefinition for ComplexExt. +// complex extension. +// See http://test/url/base/StructureDefinition/ComplexExt +message ComplexExt { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"; + "http://test/url/base/StructureDefinition/ComplexExt"; // Unique id for inter-element referencing core.String id = 1; - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Value of extension - core.Decimal value_decimal = 3; -} + // simple subfield + core.String simple_subfield = 4; -// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. -// SimpleCodeableConcept Extension. -// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension -message SimpleCodeableConceptExtension { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; + // complex subfield + message ComplexSubfield { + // Unique id for inter-element referencing + core.String id = 1; - // Unique id for inter-element referencing - core.String id = 1; + // Extension.extension.extension not present on profile. + reserved 2; - // Value of extension - message ValueCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Extension.extension.value[x] not present on profile. + reserved 3; - core.CarePlanActivityStatusCode.Value value = 1; + // choice type + message SimpleSubSubFieldAX { + option (.google.fhir.proto.is_choice_type) = true; - core.String id = 2; + oneof choice { + core.String string_value = 1 [json_name = "string"]; + core.Decimal decimal = 2; + core.Boolean boolean = 3; + } + } + SimpleSubSubFieldAX simple_sub_sub_field_a = 4; - repeated core.Extension extension = 3; + // simple sub sub field b + repeated core.UnsignedInt simple_sub_sub_field_b = 5; } - ValueCode value_code = 3; + ComplexSubfield complex_subfield = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } // Auto-generated from StructureDefinition for DigitalMediaType. @@ -177,50 +173,54 @@ message FavoriteCalifornian { ValueCode value_code = 3; } -// Auto-generated from StructureDefinition for ComplexExt. -// complex extension. -// See http://test/url/base/StructureDefinition/ComplexExt -message ComplexExt { +// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. +// SimpleCodeableConcept Extension. +// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension +message SimpleCodeableConceptExtension { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/ComplexExt"; + "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; // Unique id for inter-element referencing core.String id = 1; - // simple subfield - core.String simple_subfield = 4; + // Value of extension + message ValueCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // complex subfield - message ComplexSubfield { - // Unique id for inter-element referencing - core.String id = 1; + core.CarePlanActivityStatusCode.Value value = 1; - // Extension.extension.extension not present on profile. - reserved 2; + core.String id = 2; - // Extension.extension.value[x] not present on profile. - reserved 3; + repeated core.Extension extension = 3; + } + ValueCode value_code = 3; +} - // choice type - message SimpleSubSubFieldAX { - option (.google.fhir.proto.is_choice_type) = true; +// Auto-generated from StructureDefinition for SimpleDecimalExt. +// This is the A-Extension. +// See http://test/url/base/StructureDefinition/SimpleDecimalExt +message SimpleDecimalExt { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"; - oneof choice { - core.String string_value = 1 [json_name = "string"]; - core.Decimal decimal = 2; - core.Boolean boolean = 3; - } - } - SimpleSubSubFieldAX simple_sub_sub_field_a = 4; + // Unique id for inter-element referencing + core.String id = 1; - // simple sub sub field b - repeated core.UnsignedInt simple_sub_sub_field_b = 5; - } - ComplexSubfield complex_subfield = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Value of extension + core.Decimal value_decimal = 3; } // Auto-generated from StructureDefinition for SingleValueComplexExtension. diff --git a/testdata/r4/profiles/retagging/retagging_test_terminologies.json b/testdata/r4/profiles/retagging/retagging_test_terminologies.json index 388f771d6..8f021da52 100755 --- a/testdata/r4/profiles/retagging/retagging_test_terminologies.json +++ b/testdata/r4/profiles/retagging/retagging_test_terminologies.json @@ -10,7 +10,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "The brewery of origin.", "content": "complete", @@ -49,7 +49,7 @@ "name": "FootballTeams", "title": "FootballTeams", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "NFL Football Teams", "content": "complete", @@ -78,7 +78,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -98,7 +98,7 @@ "name": "CaliforniaBreweries", "title": "CaliforniaBreweries", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet for California breweries.", "compose": { @@ -126,7 +126,7 @@ "name": "AmericanBreweries", "title": "AmericanBreweries", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -156,7 +156,7 @@ "name": "Californians", "title": "Californians", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "California businesses", "compose": { @@ -192,7 +192,7 @@ "name": "SomeSnomedCodes", "title": "SomeSnomedCodes", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet with codes from a CodeSystem that has a defining resource but no defined codes", "compose": { diff --git a/testdata/r4/profiles/retagging_split/retagging_split_test.json b/testdata/r4/profiles/retagging_split/retagging_split_test.json index dadfce747..f6ef61a0a 100755 --- a/testdata/r4/profiles/retagging_split/retagging_split_test.json +++ b/testdata/r4/profiles/retagging_split/retagging_split_test.json @@ -10,7 +10,7 @@ "name": "Bundle", "title": "Bundle", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -1888,7 +1888,7 @@ "name": "TestPatient", "title": "TestPatient", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -4519,10 +4519,6 @@ ], "isModifier": false, "isSummary": true, - "binding": { - "strength": "required", - "valueSet": "http://hl7.org/fhir/metric-color" - }, "mapping": [ { "identity": "v2", @@ -4673,20 +4669,8 @@ }, { "id": "Patient.extension:favoriteBrewery", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", - "valueCode": "normative" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", - "valueCode": "4.0.0" - } - ], "path": "Patient.extension", "sliceName": "favoriteBrewery", - "short": "Optional Extensions Element", - "definition": "Optional Extension Element - found in all resources.", "max": "1", "type": [ { @@ -4696,9 +4680,6 @@ ] } ], - "condition": [ - "ele-1" - ], "constraint": [ { "key": "ext-1", @@ -4712,16 +4693,6 @@ }, { "id": "Patient.extension:decExt", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", - "valueCode": "normative" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", - "valueCode": "4.0.0" - } - ], "path": "Patient.extension", "sliceName": "decExt", "short": "Decimal Extension", @@ -4736,9 +4707,6 @@ ] } ], - "condition": [ - "ele-1" - ], "constraint": [ { "key": "ext-1", @@ -4770,38 +4738,10 @@ "sliceName": "color", "max": "1" }, - { - "id": "Patient.maritalStatus.coding:color.id", - "path": "Patient.maritalStatus.coding.id" - }, - { - "id": "Patient.maritalStatus.coding:color.extension", - "path": "Patient.maritalStatus.coding.extension" - }, { "id": "Patient.maritalStatus.coding:color.system", "path": "Patient.maritalStatus.coding.system", "fixedUri": "http://hl7.org/fhir/metric-color" - }, - { - "id": "Patient.maritalStatus.coding:color.version", - "path": "Patient.maritalStatus.coding.version" - }, - { - "id": "Patient.maritalStatus.coding:color.code", - "path": "Patient.maritalStatus.coding.code", - "binding": { - "strength": "required", - "valueSet": "http://hl7.org/fhir/metric-color" - } - }, - { - "id": "Patient.maritalStatus.coding:color.display", - "path": "Patient.maritalStatus.coding.display" - }, - { - "id": "Patient.maritalStatus.coding:color.userSelected", - "path": "Patient.maritalStatus.coding.userSelected" } ] } diff --git a/testdata/r4/profiles/retagging_split/retagging_split_test_codes.proto b/testdata/r4/profiles/retagging_split/retagging_split_test_codes.proto index 25b3920eb..bad09066f 100644 --- a/testdata/r4/profiles/retagging_split/retagging_split_test_codes.proto +++ b/testdata/r4/profiles/retagging_split/retagging_split_test_codes.proto @@ -21,34 +21,6 @@ import "proto/google/fhir/proto/annotations.proto"; option java_multiple_files = true; option java_package = "com.google.fhir.r4.splittesting"; -// The brewery of origin. -// See http://test/url/base/Brewery -message BreweryCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/Brewery"; - - INVALID_UNINITIALIZED = 0; - SANTE_ADAIRIUS = 1; - TREEHOUSE = 2; - RUSSIAN_RIVER = 3; - CANTILLON = 4; - } -} - -// NFL Football Teams -// See http://test/url/base/FootballTeams -message FootballTeamsCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/FootballTeams"; - - INVALID_UNINITIALIZED = 0; - NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; - EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; - } -} - // ValueSet for Brewery Code System. // See http://test/url/base/ValueSet/AmericanBreweries message AmericanBreweriesValueSet { @@ -66,6 +38,21 @@ message AmericanBreweriesValueSet { } } +// The brewery of origin. +// See http://test/url/base/Brewery +message BreweryCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/Brewery"; + + INVALID_UNINITIALIZED = 0; + SANTE_ADAIRIUS = 1; + TREEHOUSE = 2; + RUSSIAN_RIVER = 3; + CANTILLON = 4; + } +} + // ValueSet for California breweries. // See http://test/url/base/ValueSet/CaliforniaBreweries message CaliforniaBreweriesValueSet { @@ -101,6 +88,19 @@ message CaliforniansValueSet { } } +// NFL Football Teams +// See http://test/url/base/FootballTeams +message FootballTeamsCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/FootballTeams"; + + INVALID_UNINITIALIZED = 0; + NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; + EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; + } +} + // ValueSet with codes from a CodeSystem that has a defining resource but no // defined codes See http://test/url/base/ValueSet/SomeSnomedCodes message SomeSnomedCodesValueSet { diff --git a/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.json b/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.json index 8a8137056..e65ff1e38 100755 --- a/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.json +++ b/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.json @@ -10,7 +10,7 @@ "name": "SimpleDecimalExt", "title": "SimpleDecimalExt", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -305,7 +305,7 @@ "name": "SimpleCodeableConceptExtension", "title": "SimpleCodeableConceptExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -614,7 +614,7 @@ "name": "DigitalMediaType", "title": "DigitalMediaType", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -923,7 +923,7 @@ "name": "FavoriteBrewery", "title": "FavoriteBrewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -1229,7 +1229,7 @@ "name": "FavoriteCalifornian", "title": "FavoriteCalifornian", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -1535,7 +1535,7 @@ "name": "ComplexExt", "title": "ComplexExt", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -3023,10 +3023,6 @@ } ] }, - { - "id": "Extension.extension:simpleSubfield.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:simpleSubfield.extension", "path": "Extension.extension.extension", @@ -3078,10 +3074,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:complexSubfield.extension", "path": "Extension.extension.extension", @@ -3128,14 +3120,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.id", - "path": "Extension.extension.extension.id" - }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.extension", - "path": "Extension.extension.extension.extension" - }, { "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.url", "path": "Extension.extension.extension.url", @@ -3186,10 +3170,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldB.id", - "path": "Extension.extension.extension.id" - }, { "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldB.extension", "path": "Extension.extension.extension.extension", @@ -3221,7 +3201,7 @@ "name": "SingleValueComplexExtension", "title": "SingleValueComplexExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -3899,10 +3879,6 @@ } ] }, - { - "id": "Extension.extension:stringField.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:stringField.extension", "path": "Extension.extension.extension", @@ -3934,7 +3910,7 @@ "name": "SingleValueRepeatedComplexExtension", "title": "SingleValueRepeatedComplexExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "contact": [ { @@ -4611,10 +4587,6 @@ } ] }, - { - "id": "Extension.extension:stringField.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:stringField.extension", "path": "Extension.extension.extension", diff --git a/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.proto b/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.proto index 535214781..bb446e6bd 100644 --- a/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.proto +++ b/testdata/r4/profiles/retagging_split/retagging_split_test_extensions.proto @@ -25,54 +25,50 @@ option java_multiple_files = true; option java_package = "com.google.fhir.r4.splittesting"; option (.google.fhir.proto.fhir_version) = R4; -// Auto-generated from StructureDefinition for SimpleDecimalExt. -// This is the A-Extension. -// See http://test/url/base/StructureDefinition/SimpleDecimalExt -message SimpleDecimalExt { +// Auto-generated from StructureDefinition for ComplexExt. +// complex extension. +// See http://test/url/base/StructureDefinition/ComplexExt +message ComplexExt { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"; + "http://test/url/base/StructureDefinition/ComplexExt"; // Unique id for inter-element referencing core.String id = 1; - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Value of extension - core.Decimal value_decimal = 3; -} + // simple subfield + core.String simple_subfield = 4; -// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. -// SimpleCodeableConcept Extension. -// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension -message SimpleCodeableConceptExtension { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; + // complex subfield + message ComplexSubfield { + // Unique id for inter-element referencing + core.String id = 1; - // Unique id for inter-element referencing - core.String id = 1; + // Extension.extension.extension not present on profile. + reserved 2; - // Value of extension - message ValueCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Extension.extension.value[x] not present on profile. + reserved 3; - core.CarePlanActivityStatusCode.Value value = 1; + // choice type + message SimpleSubSubFieldAX { + option (.google.fhir.proto.is_choice_type) = true; - core.String id = 2; + oneof choice { + core.String string_value = 1 [json_name = "string"]; + core.Decimal decimal = 2; + core.Boolean boolean = 3; + } + } + SimpleSubSubFieldAX simple_sub_sub_field_a = 4; - repeated core.Extension extension = 3; + // simple sub sub field b + repeated core.UnsignedInt simple_sub_sub_field_b = 5; } - ValueCode value_code = 3; + ComplexSubfield complex_subfield = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } // Auto-generated from StructureDefinition for DigitalMediaType. @@ -177,50 +173,54 @@ message FavoriteCalifornian { ValueCode value_code = 3; } -// Auto-generated from StructureDefinition for ComplexExt. -// complex extension. -// See http://test/url/base/StructureDefinition/ComplexExt -message ComplexExt { +// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. +// SimpleCodeableConcept Extension. +// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension +message SimpleCodeableConceptExtension { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/ComplexExt"; + "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; // Unique id for inter-element referencing core.String id = 1; - // simple subfield - core.String simple_subfield = 4; + // Value of extension + message ValueCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // complex subfield - message ComplexSubfield { - // Unique id for inter-element referencing - core.String id = 1; + core.CarePlanActivityStatusCode.Value value = 1; - // Extension.extension.extension not present on profile. - reserved 2; + core.String id = 2; - // Extension.extension.value[x] not present on profile. - reserved 3; + repeated core.Extension extension = 3; + } + ValueCode value_code = 3; +} - // choice type - message SimpleSubSubFieldAX { - option (.google.fhir.proto.is_choice_type) = true; +// Auto-generated from StructureDefinition for SimpleDecimalExt. +// This is the A-Extension. +// See http://test/url/base/StructureDefinition/SimpleDecimalExt +message SimpleDecimalExt { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"; - oneof choice { - core.String string_value = 1 [json_name = "string"]; - core.Decimal decimal = 2; - core.Boolean boolean = 3; - } - } - SimpleSubSubFieldAX simple_sub_sub_field_a = 4; + // Unique id for inter-element referencing + core.String id = 1; - // simple sub sub field b - repeated core.UnsignedInt simple_sub_sub_field_b = 5; - } - ComplexSubfield complex_subfield = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Value of extension + core.Decimal value_decimal = 3; } // Auto-generated from StructureDefinition for SingleValueComplexExtension. diff --git a/testdata/r4/profiles/retagging_split/retagging_split_test_terminologies.json b/testdata/r4/profiles/retagging_split/retagging_split_test_terminologies.json index 388f771d6..8f021da52 100755 --- a/testdata/r4/profiles/retagging_split/retagging_split_test_terminologies.json +++ b/testdata/r4/profiles/retagging_split/retagging_split_test_terminologies.json @@ -10,7 +10,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "The brewery of origin.", "content": "complete", @@ -49,7 +49,7 @@ "name": "FootballTeams", "title": "FootballTeams", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "NFL Football Teams", "content": "complete", @@ -78,7 +78,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -98,7 +98,7 @@ "name": "CaliforniaBreweries", "title": "CaliforniaBreweries", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet for California breweries.", "compose": { @@ -126,7 +126,7 @@ "name": "AmericanBreweries", "title": "AmericanBreweries", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -156,7 +156,7 @@ "name": "Californians", "title": "Californians", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "California businesses", "compose": { @@ -192,7 +192,7 @@ "name": "SomeSnomedCodes", "title": "SomeSnomedCodes", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-01", "publisher": "Testington Inc.", "description": "ValueSet with codes from a CodeSystem that has a defining resource but no defined codes", "compose": { diff --git a/testdata/r4/profiles/split/bundle_and_contained_resource.proto b/testdata/r4/profiles/split/bundle_and_contained_resource.proto index 465947158..a2cdb2e39 100644 --- a/testdata/r4/profiles/split/bundle_and_contained_resource.proto +++ b/testdata/r4/profiles/split/bundle_and_contained_resource.proto @@ -287,13 +287,13 @@ message Bundle { message ContainedResource { oneof oneof_resource { Bundle bundle = 12; - TestPatient test_patient = 147; - TestObservation test_observation = 148; - TestObservationLvl2 test_observation_lvl2 = 149; - TestEncounter test_encounter = 150; - ProfiledDatatypesObservation profiled_datatypes_observation = 151; + ProfiledDatatypesObservation profiled_datatypes_observation = 147; + TestEncounter test_encounter = 148; TestEncounterWithProfiledIdentifier - test_encounter_with_profiled_identifier = 152; + test_encounter_with_profiled_identifier = 149; + TestObservation test_observation = 150; + TestObservationLvl2 test_observation_lvl2 = 151; + TestPatient test_patient = 152; TestPatientWithWarningAndErrorFhirpath test_patient_with_warning_and_error_fhirpath = 153; } diff --git a/testdata/r4/profiles/split/split_test.json b/testdata/r4/profiles/split/split_test.json index 49f1de5f1..5fb9bdc63 100755 --- a/testdata/r4/profiles/split/split_test.json +++ b/testdata/r4/profiles/split/split_test.json @@ -10,7 +10,7 @@ "name": "Bundle", "title": "Bundle", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -1888,7 +1888,7 @@ "name": "TestPatient", "title": "TestPatient", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -2701,7 +2701,7 @@ "key": "google.fhir.r4.splittesting-2", "severity": "warning", "human": "Postal codes should have at least five characters.", - "expression": "postalCode.all(length() >= 5)" + "expression": "postalCode.length() >= 5" } ], "isModifier": false, @@ -4833,7 +4833,7 @@ "name": "TestObservation", "title": "TestObservation", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -10655,7 +10655,7 @@ "name": "TestObservationLvl2", "title": "TestObservationLvl2", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -16824,7 +16824,7 @@ "name": "TestEncounter", "title": "TestEncounter", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -20755,7 +20755,7 @@ "name": "ProfiledDatatypesObservation", "title": "ProfiledDatatypesObservation", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -23579,7 +23579,7 @@ "name": "TestEncounterWithProfiledIdentifier", "title": "TestEncounterWithProfiledIdentifier", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -27507,7 +27507,7 @@ "name": "TestPatientWithWarningAndErrorFhirpath", "title": "TestPatientWithWarningAndErrorFhirpath", "status": "draft", - "date": "2022-02-28", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -28323,9 +28323,9 @@ }, { "key": "google.fhir.r4.splittesting-2", - "severity": "error", + "severity": "warning", "human": "Postal codes should have at least five characters.", - "expression": "postalCode.length() >= 5" + "expression": "postalCode.all(length() >= 5)" } ], "isModifier": false, @@ -29792,9 +29792,9 @@ }, { "key": "google.fhir.r4.splittesting-2", - "severity": "error", + "severity": "warning", "human": "Postal codes should have at least five characters.", - "expression": "postalCode.length() >= 5" + "expression": "postalCode.all(length() >= 5)" } ] } diff --git a/testdata/r4/profiles/split/split_test_codes.proto b/testdata/r4/profiles/split/split_test_codes.proto index 25b3920eb..bad09066f 100644 --- a/testdata/r4/profiles/split/split_test_codes.proto +++ b/testdata/r4/profiles/split/split_test_codes.proto @@ -21,34 +21,6 @@ import "proto/google/fhir/proto/annotations.proto"; option java_multiple_files = true; option java_package = "com.google.fhir.r4.splittesting"; -// The brewery of origin. -// See http://test/url/base/Brewery -message BreweryCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/Brewery"; - - INVALID_UNINITIALIZED = 0; - SANTE_ADAIRIUS = 1; - TREEHOUSE = 2; - RUSSIAN_RIVER = 3; - CANTILLON = 4; - } -} - -// NFL Football Teams -// See http://test/url/base/FootballTeams -message FootballTeamsCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/FootballTeams"; - - INVALID_UNINITIALIZED = 0; - NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; - EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; - } -} - // ValueSet for Brewery Code System. // See http://test/url/base/ValueSet/AmericanBreweries message AmericanBreweriesValueSet { @@ -66,6 +38,21 @@ message AmericanBreweriesValueSet { } } +// The brewery of origin. +// See http://test/url/base/Brewery +message BreweryCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/Brewery"; + + INVALID_UNINITIALIZED = 0; + SANTE_ADAIRIUS = 1; + TREEHOUSE = 2; + RUSSIAN_RIVER = 3; + CANTILLON = 4; + } +} + // ValueSet for California breweries. // See http://test/url/base/ValueSet/CaliforniaBreweries message CaliforniaBreweriesValueSet { @@ -101,6 +88,19 @@ message CaliforniansValueSet { } } +// NFL Football Teams +// See http://test/url/base/FootballTeams +message FootballTeamsCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/FootballTeams"; + + INVALID_UNINITIALIZED = 0; + NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; + EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; + } +} + // ValueSet with codes from a CodeSystem that has a defining resource but no // defined codes See http://test/url/base/ValueSet/SomeSnomedCodes message SomeSnomedCodesValueSet { diff --git a/testdata/r4/profiles/split/split_test_extensions.json b/testdata/r4/profiles/split/split_test_extensions.json index 8a8137056..4a85984a7 100755 --- a/testdata/r4/profiles/split/split_test_extensions.json +++ b/testdata/r4/profiles/split/split_test_extensions.json @@ -10,7 +10,7 @@ "name": "SimpleDecimalExt", "title": "SimpleDecimalExt", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -305,7 +305,7 @@ "name": "SimpleCodeableConceptExtension", "title": "SimpleCodeableConceptExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -614,7 +614,7 @@ "name": "DigitalMediaType", "title": "DigitalMediaType", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -923,7 +923,7 @@ "name": "FavoriteBrewery", "title": "FavoriteBrewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -1229,7 +1229,7 @@ "name": "FavoriteCalifornian", "title": "FavoriteCalifornian", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -1535,7 +1535,7 @@ "name": "ComplexExt", "title": "ComplexExt", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -3023,10 +3023,6 @@ } ] }, - { - "id": "Extension.extension:simpleSubfield.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:simpleSubfield.extension", "path": "Extension.extension.extension", @@ -3078,10 +3074,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:complexSubfield.extension", "path": "Extension.extension.extension", @@ -3128,14 +3120,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.id", - "path": "Extension.extension.extension.id" - }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.extension", - "path": "Extension.extension.extension.extension" - }, { "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldA.url", "path": "Extension.extension.extension.url", @@ -3186,10 +3170,6 @@ } ] }, - { - "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldB.id", - "path": "Extension.extension.extension.id" - }, { "id": "Extension.extension:complexSubfield.extension:simpleSubSubFieldB.extension", "path": "Extension.extension.extension.extension", @@ -3221,7 +3201,7 @@ "name": "SingleValueComplexExtension", "title": "SingleValueComplexExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -3899,10 +3879,6 @@ } ] }, - { - "id": "Extension.extension:stringField.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:stringField.extension", "path": "Extension.extension.extension", @@ -3934,7 +3910,7 @@ "name": "SingleValueRepeatedComplexExtension", "title": "SingleValueRepeatedComplexExtension", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -4611,10 +4587,6 @@ } ] }, - { - "id": "Extension.extension:stringField.id", - "path": "Extension.extension.id" - }, { "id": "Extension.extension:stringField.extension", "path": "Extension.extension.extension", diff --git a/testdata/r4/profiles/split/split_test_extensions.proto b/testdata/r4/profiles/split/split_test_extensions.proto index 9abb72b1d..1ac3a54d0 100644 --- a/testdata/r4/profiles/split/split_test_extensions.proto +++ b/testdata/r4/profiles/split/split_test_extensions.proto @@ -25,54 +25,50 @@ option java_multiple_files = true; option java_package = "com.google.fhir.r4.splittesting"; option (.google.fhir.proto.fhir_version) = R4; -// Auto-generated from StructureDefinition for SimpleDecimalExt. -// This is the A-Extension. -// See http://test/url/base/StructureDefinition/SimpleDecimalExt -message SimpleDecimalExt { +// Auto-generated from StructureDefinition for ComplexExt. +// complex extension. +// See http://test/url/base/StructureDefinition/ComplexExt +message ComplexExt { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"; + "http://test/url/base/StructureDefinition/ComplexExt"; // Unique id for inter-element referencing core.String id = 1; - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Value of extension - core.Decimal value_decimal = 3; -} + // simple subfield + core.String simple_subfield = 4; -// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. -// SimpleCodeableConcept Extension. -// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension -message SimpleCodeableConceptExtension { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; + // complex subfield + message ComplexSubfield { + // Unique id for inter-element referencing + core.String id = 1; - // Unique id for inter-element referencing - core.String id = 1; + // Extension.extension.extension not present on profile. + reserved 2; - // Value of extension - message ValueCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Extension.extension.value[x] not present on profile. + reserved 3; - core.CarePlanActivityStatusCode.Value value = 1; + // choice type + message SimpleSubSubFieldAX { + option (.google.fhir.proto.is_choice_type) = true; - core.String id = 2; + oneof choice { + core.String string_value = 1 [json_name = "string"]; + core.Decimal decimal = 2; + core.Boolean boolean = 3; + } + } + SimpleSubSubFieldAX simple_sub_sub_field_a = 4; - repeated core.Extension extension = 3; + // simple sub sub field b + repeated core.UnsignedInt simple_sub_sub_field_b = 5; } - ValueCode value_code = 3; + ComplexSubfield complex_subfield = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } // Auto-generated from StructureDefinition for DigitalMediaType. @@ -177,50 +173,54 @@ message FavoriteCalifornian { ValueCode value_code = 3; } -// Auto-generated from StructureDefinition for ComplexExt. -// complex extension. -// See http://test/url/base/StructureDefinition/ComplexExt -message ComplexExt { +// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. +// SimpleCodeableConcept Extension. +// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension +message SimpleCodeableConceptExtension { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/ComplexExt"; + "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; // Unique id for inter-element referencing core.String id = 1; - // simple subfield - core.String simple_subfield = 4; + // Value of extension + message ValueCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // complex subfield - message ComplexSubfield { - // Unique id for inter-element referencing - core.String id = 1; + core.CarePlanActivityStatusCode.Value value = 1; - // Extension.extension.extension not present on profile. - reserved 2; + core.String id = 2; - // Extension.extension.value[x] not present on profile. - reserved 3; + repeated core.Extension extension = 3; + } + ValueCode value_code = 3; +} - // choice type - message SimpleSubSubFieldAX { - option (.google.fhir.proto.is_choice_type) = true; +// Auto-generated from StructureDefinition for SimpleDecimalExt. +// This is the A-Extension. +// See http://test/url/base/StructureDefinition/SimpleDecimalExt +message SimpleDecimalExt { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"; - oneof choice { - core.String string_value = 1 [json_name = "string"]; - core.Decimal decimal = 2; - core.Boolean boolean = 3; - } - } - SimpleSubSubFieldAX simple_sub_sub_field_a = 4; + // Unique id for inter-element referencing + core.String id = 1; - // simple sub sub field b - repeated core.UnsignedInt simple_sub_sub_field_b = 5; - } - ComplexSubfield complex_subfield = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Value of extension + core.Decimal value_decimal = 3; } // Auto-generated from StructureDefinition for SingleValueComplexExtension. diff --git a/testdata/r4/profiles/split/split_test_terminologies.json b/testdata/r4/profiles/split/split_test_terminologies.json index 388f771d6..b073d578f 100755 --- a/testdata/r4/profiles/split/split_test_terminologies.json +++ b/testdata/r4/profiles/split/split_test_terminologies.json @@ -10,7 +10,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "The brewery of origin.", "content": "complete", @@ -49,7 +49,7 @@ "name": "FootballTeams", "title": "FootballTeams", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "NFL Football Teams", "content": "complete", @@ -78,7 +78,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -98,7 +98,7 @@ "name": "CaliforniaBreweries", "title": "CaliforniaBreweries", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet for California breweries.", "compose": { @@ -126,7 +126,7 @@ "name": "AmericanBreweries", "title": "AmericanBreweries", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -156,7 +156,7 @@ "name": "Californians", "title": "Californians", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "California businesses", "compose": { @@ -192,7 +192,7 @@ "name": "SomeSnomedCodes", "title": "SomeSnomedCodes", "status": "draft", - "date": "2021-07-08", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet with codes from a CodeSystem that has a defining resource but no defined codes", "compose": { diff --git a/testdata/r4/profiles/test.json b/testdata/r4/profiles/test.json index 59c5d5825..79b9f3476 100755 --- a/testdata/r4/profiles/test.json +++ b/testdata/r4/profiles/test.json @@ -10,7 +10,7 @@ "name": "Bundle", "title": "Bundle", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -1888,7 +1888,7 @@ "name": "TestPatient", "title": "TestPatient", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -2701,7 +2701,7 @@ "key": "google.fhir.r4.testing-2", "severity": "warning", "human": "Postal codes should have at least five characters.", - "expression": "postalCode.all(length() >= 5)" + "expression": "postalCode.length() >= 5" } ], "isModifier": false, @@ -4833,7 +4833,7 @@ "name": "TestObservation", "title": "TestObservation", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -10655,7 +10655,7 @@ "name": "TestObservationLvl2", "title": "TestObservationLvl2", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -16824,7 +16824,7 @@ "name": "TestEncounter", "title": "TestEncounter", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -20755,7 +20755,7 @@ "name": "ProfiledDatatypesObservation", "title": "ProfiledDatatypesObservation", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -23579,7 +23579,7 @@ "name": "TestEncounterWithProfiledIdentifier", "title": "TestEncounterWithProfiledIdentifier", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -27507,7 +27507,7 @@ "name": "TestPatientWithWarningAndErrorFhirpath", "title": "TestPatientWithWarningAndErrorFhirpath", "status": "draft", - "date": "2022-02-25", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -28323,9 +28323,9 @@ }, { "key": "google.fhir.r4.testing-2", - "severity": "error", + "severity": "warning", "human": "Postal codes should have at least five characters.", - "expression": "postalCode.length() >= 5" + "expression": "postalCode.all(length() >= 5)" } ], "isModifier": false, @@ -29792,9 +29792,9 @@ }, { "key": "google.fhir.r4.testing-2", - "severity": "error", + "severity": "warning", "human": "Postal codes should have at least five characters.", - "expression": "postalCode.length() >= 5" + "expression": "postalCode.all(length() >= 5)" } ] } diff --git a/testdata/r4/profiles/test.proto b/testdata/r4/profiles/test.proto index 59d76342c..49eb368d6 100644 --- a/testdata/r4/profiles/test.proto +++ b/testdata/r4/profiles/test.proto @@ -278,156 +278,304 @@ message Bundle { core.Signature signature = 11; } -// Auto-generated from StructureDefinition for TestPatient. -// Information about an individual or animal receiving health care services. -// See http://test/url/base/StructureDefinition/TestPatient -message TestPatient { +message ContainedResource { + oneof oneof_resource { + Bundle bundle = 12; + ProfiledDatatypesObservation profiled_datatypes_observation = 147; + TestEncounter test_encounter = 148; + TestEncounterWithProfiledIdentifier + test_encounter_with_profiled_identifier = 149; + TestObservation test_observation = 150; + TestObservationLvl2 test_observation_lvl2 = 151; + TestPatient test_patient = 152; + TestPatientWithWarningAndErrorFhirpath + test_patient_with_warning_and_error_fhirpath = 153; + } +} + +// Auto-generated from StructureDefinition for ProfiledDatatypesObservation. +// Measurements and simple assertions. +// See http://test/url/base/StructureDefinition/ProfiledDatatypesObservation +message ProfiledDatatypesObservation { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Patient"; + "http://hl7.org/fhir/StructureDefinition/Observation"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/TestPatient"; + "http://test/url/base/StructureDefinition/ProfiledDatatypesObservation"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "dataAbsentReason.empty() or value.empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; option (.google.fhir.proto.search_parameter) = { - name: "Example Search Parameter on an extension" + name: "amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "based-on" type: REFERENCE - expression: "DocumentReference.extension('http://example.org/fhir/StructureDefinition/participation-agreement')" + expression: "Observation.basedOn" }; option (.google.fhir.proto.search_parameter) = { - name: "active" + name: "category" type: TOKEN - expression: "Patient.active" + expression: "Observation.category" }; option (.google.fhir.proto.search_parameter) = { - name: "address" - type: STRING - expression: "Patient.address | Person.address | Practitioner.address | RelatedPerson.address" + name: "code" + type: TOKEN + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" }; option (.google.fhir.proto.search_parameter) = { - name: "address-city" - type: STRING - expression: "Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city" + name: "code-value-concept" + type: COMPOSITE + expression: "Observation" }; option (.google.fhir.proto.search_parameter) = { - name: "address-country" - type: STRING - expression: "Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country" + name: "code-value-date" + type: COMPOSITE + expression: "Observation" }; option (.google.fhir.proto.search_parameter) = { - name: "address-postalcode" - type: STRING - expression: "Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode" + name: "code-value-quantity" + type: COMPOSITE + expression: "Observation" }; option (.google.fhir.proto.search_parameter) = { - name: "address-state" - type: STRING - expression: "Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state" + name: "code-value-string" + type: COMPOSITE + expression: "Observation" }; option (.google.fhir.proto.search_parameter) = { - name: "address-use" + name: "combo-code" type: TOKEN - expression: "Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use" + expression: "Observation.code | Observation.component.code" }; option (.google.fhir.proto.search_parameter) = { - name: "birthdate" - type: DATE - expression: "Patient.birthDate | Person.birthDate | RelatedPerson.birthDate" + name: "combo-code-value-concept" + type: COMPOSITE + expression: "Observation | Observation.component" }; option (.google.fhir.proto.search_parameter) = { - name: "death-date" - type: DATE - expression: "(Patient.deceased as dateTime)" + name: "combo-code-value-quantity" + type: COMPOSITE + expression: "Observation | Observation.component" }; option (.google.fhir.proto.search_parameter) = { - name: "deceased" + name: "combo-data-absent-reason" type: TOKEN - expression: "Patient.deceased.exists() and Patient.deceased != false" + expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" }; option (.google.fhir.proto.search_parameter) = { - name: "email" + name: "combo-value-concept" type: TOKEN - expression: "Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')" + expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" }; option (.google.fhir.proto.search_parameter) = { - name: "family" - type: STRING - expression: "Patient.name.family | Practitioner.name.family" + name: "combo-value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" }; option (.google.fhir.proto.search_parameter) = { - name: "gender" + name: "component-code" type: TOKEN - expression: "Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender" + expression: "Observation.component.code" }; option (.google.fhir.proto.search_parameter) = { - name: "general-practitioner" + name: "component-code-value-concept" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code-value-quantity" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-data-absent-reason" + type: TOKEN + expression: "Observation.component.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-value-concept" + type: TOKEN + expression: "(Observation.component.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-value-quantity" + type: QUANTITY + expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "data-absent-reason" + type: TOKEN + expression: "Observation.dataAbsentReason" + }; + option (.google.fhir.proto.search_parameter) = { + name: "date" + type: DATE + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "derived-from" type: REFERENCE - expression: "Patient.generalPractitioner" + expression: "Observation.derivedFrom" }; option (.google.fhir.proto.search_parameter) = { - name: "given" + name: "device" + type: REFERENCE + expression: "Observation.device" + }; + option (.google.fhir.proto.search_parameter) = { + name: "dna-variant" type: STRING - expression: "Patient.name.given | Practitioner.name.given" + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "encounter" + type: REFERENCE + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" + }; + option (.google.fhir.proto.search_parameter) = { + name: "focus" + type: REFERENCE + expression: "Observation.focus" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-dnavariant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-identifier" + type: TOKEN + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "has-member" + type: REFERENCE + expression: "Observation.hasMember" }; option (.google.fhir.proto.search_parameter) = { name: "identifier" type: TOKEN - expression: "Patient.identifier" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "language" + name: "method" type: TOKEN - expression: "Patient.communication.language" + expression: "Observation.method" }; option (.google.fhir.proto.search_parameter) = { - name: "link" + name: "part-of" type: REFERENCE - expression: "Patient.link.other" + expression: "Observation.partOf" }; option (.google.fhir.proto.search_parameter) = { - name: "name" - type: STRING - expression: "Patient.name" + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "organization" + name: "performer" type: REFERENCE - expression: "Patient.managingOrganization" + expression: "Observation.performer" }; option (.google.fhir.proto.search_parameter) = { - name: "phone" + name: "specimen" + type: REFERENCE + expression: "Observation.specimen" + }; + option (.google.fhir.proto.search_parameter) = { + name: "status" type: TOKEN - expression: "Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')" + expression: "Observation.status" }; option (.google.fhir.proto.search_parameter) = { - name: "phonetic" - type: STRING - expression: "Patient.name | Person.name | Practitioner.name | RelatedPerson.name" + name: "subject" + type: REFERENCE + expression: "Observation.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "telecom" + name: "value-concept" type: TOKEN - expression: "Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom" + expression: "(Observation.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-date" + type: DATE + expression: "(Observation.value as dateTime) | (Observation.value as Period)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-string" + type: STRING + expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" }; // Logical id of this artifact core.Id id = 1; // Metadata about the resource - core.Meta meta = 2; + message ProfiledMeta { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Meta"; - // A set of rules under which this content was created - core.Uri implicit_rules = 3; + // Unique id for inter-element referencing + core.String id = 1; - // Language of the resource content - core.Code language = 4; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Text summary of the resource, for human interpretation - core.Narrative text = 5; + // Version specific identifier + core.Id version_id = 3; - // Contained, inline Resources - repeated protobuf.Any contained = 6; + // When the resource version last changed + core.Instant last_updated = 4; - // Field 7 reserved for strongly-typed ContainedResource for id: - // Patient.contained + // Identifies where the resource comes from + core.Uri source = 5; + + // Profiles this resource claims to conform to + repeated core.Canonical profile = 6; + + // Security Labels applied to this resource + repeated core.Coding security = 7; + + // Tags applied to this resource + repeated core.Coding tag = 8; + + // an example extension on a meta type. + repeated core.Decimal extension_on_meta = 9 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; + } + ProfiledMeta meta = 2; + + // A set of rules under which this content was created + core.Uri implicit_rules = 3; + + // Language of the resource content + core.Code language = 4; + + // Text summary of the resource, for human interpretation + core.Narrative text = 5; + + // Contained, inline Resources + repeated protobuf.Any contained = 6; + + // Field 7 reserved for strongly-typed ContainedResource for id: + // Observation.contained reserved 7; // Additional content defined by implementations @@ -436,126 +584,144 @@ message TestPatient { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // An identifier for this patient + // Business Identifier for observation repeated core.Identifier identifier = 10; - // Whether this patient's record is in active use - core.Boolean active = 11; - - // A name associated with the patient - core.HumanName name = 12 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Fulfills plan, proposal or order + repeated core.Reference based_on = 11 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "DeviceRequest", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest" + ]; - // A contact detail for the individual - repeated core.ContactPoint telecom = 13; + // Part of referenced event + repeated core.Reference part_of = 12 [ + (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", + (.google.fhir.proto.valid_reference_type) = "MedicationDispense", + (.google.fhir.proto.valid_reference_type) = "MedicationStatement", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Immunization", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy" + ]; - // male | female | other | unknown - message GenderCode { + // registered | preliminary | final | amended + + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/administrative-gender"; + "http://hl7.org/fhir/ValueSet/observation-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.AdministrativeGenderCode.Value value = 1; + core.ObservationStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - GenderCode gender = 14; - - // The date of birth for the individual - core.Date birth_date = 15; + StatusCode status = 13 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Indicates if the individual is deceased or not - message DeceasedX { - option (.google.fhir.proto.is_choice_type) = true; + // Classification of type of observation + repeated core.CodeableConcept category = 14; - oneof choice { - core.Boolean boolean = 1; - core.DateTime date_time = 2; - } - } - DeceasedX deceased = 16; + // Type of observation (code / type) + core.CodeableConcept code = 15 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // An address for the individual - repeated core.Address address = 17 [ - (.google.fhir.proto.fhir_path_constraint) = - "city.exists() implies state.exists()", - (.google.fhir.proto.fhir_path_warning_constraint) = - "postalCode.length() >= 5" + // Who and/or what the observation is about + core.Reference subject = 16 [ + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Group", + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "Location" ]; - // Marital (civil) status of a patient - message CodeableConceptForMaritalStatus { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Code defined by a terminology system - repeated core.Coding coding = 3; + // What the observation is about, when it is not about the subject of record + repeated core.Reference focus = 17 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; - // Plain text representation of the concept - core.String text = 4; + // Healthcare event during which this observation is made + core.Reference encounter = 18 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; - message ColorCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + // Clinically relevant time/time-period for observation + message EffectiveX { + option (.google.fhir.proto.is_choice_type) = true; - core.String id = 1; + oneof choice { + core.DateTime date_time = 1; + core.Period period = 2; + core.Timing timing = 3; + core.Instant instant = 4; + } + } + EffectiveX effective = 19; - repeated core.Extension extension = 2; + // Date/Time this version was made available + core.Instant issued = 20; - core.String version = 4; + // Who is responsible for the observation + repeated core.Reference performer = 21 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "CareTeam", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = - "http://hl7.org/fhir/metric-color"; + // Actual result + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; - core.DeviceMetricColorCode.Value value = 1; + oneof choice { + core.Quantity quantity = 1; + core.CodeableConcept codeable_concept = 2; + core.String string_value = 3 [json_name = "string"]; + core.Boolean boolean = 4; + core.Integer integer = 5; + core.Range range = 6; + core.Ratio ratio = 7; + core.SampledData sampled_data = 8; + core.Time time = 9; + core.DateTime date_time = 10; + core.Period period = 11; + } + } + ValueX value = 22; - core.String id = 2; + // Why the result is missing + core.CodeableConcept data_absent_reason = 23; - repeated core.Extension extension = 3; - } - FixedCode code = 5; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 24; - core.String display = 6; + // Comments about the observation + repeated core.Annotation note = 25; - core.Boolean user_selected = 7; - } - ColorCoding color = 5; - } - CodeableConceptForMaritalStatus marital_status = 18; + // Observed body part + core.CodeableConcept body_site = 26; - // Whether patient is part of a multiple birth - message MultipleBirthX { - option (.google.fhir.proto.is_choice_type) = true; + // How it was done + core.CodeableConcept method = 27; - oneof choice { - core.Boolean boolean = 1; - core.Integer integer = 2; - } - } - MultipleBirthX multiple_birth = 19; + // Specimen used for this observation + core.Reference specimen = 28 + [(.google.fhir.proto.valid_reference_type) = "Specimen"]; - // Image of the patient - repeated core.Attachment photo = 20; + // (Measurement) Device + core.Reference device = 29 [ + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "DeviceMetric" + ]; - // A contact party (e.g. guardian, partner, friend) for the patient - message Contact { + // Provides guide for interpretation + message ReferenceRange { option (.google.fhir.proto.fhir_path_message_constraint) = - "name.exists() or telecom.exists() or address.exists() or organization.exists()"; + "low.exists() or high.exists() or text.exists()"; // Unique id for inter-element referencing core.String id = 1; @@ -566,80 +732,66 @@ message TestPatient { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // The kind of relationship - repeated core.CodeableConcept relationship = 4; + // Low Range, if relevant + core.SimpleQuantity low = 4; - // A name associated with the contact person - core.HumanName name = 5; + // High Range, if relevant + core.SimpleQuantity high = 5; - // A contact detail for the person - repeated core.ContactPoint telecom = 6; + // Reference range qualifier + core.CodeableConcept type = 6; - // Address for the contact person - core.Address address = 7; + // Reference range population + repeated core.CodeableConcept applies_to = 7; - // male | female | other | unknown - message GenderCode { + // Applicable age range, if relevant + core.Range age = 8; + + // Text based reference range in an observation + message StringForText { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/administrative-gender"; + option (.google.fhir.proto.value_regex) = "[ \\r\\n\\t\\S]+"; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + "http://hl7.org/fhir/StructureDefinition/string"; - core.AdministrativeGenderCode.Value value = 1; + // Primitive value for string + string value = 1; + // xml:id (or equivalent in JSON) core.String id = 2; + // Additional content defined by implementations repeated core.Extension extension = 3; - } - GenderCode gender = 8; - - // Organization that is associated with the contact - core.Reference organization = 9 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - - // The period during which this contact person or organization is valid to - // be contacted relating to this patient - core.Period period = 10; - } - repeated Contact contact = 21; - - // A language which may be used to communicate with the patient about his or - // her health - message Communication { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // The language which can be used to communicate with the patient about his - // or her health - core.CodeableConcept language = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Language preference indicator - core.Boolean preferred = 5; + // an example extension on a string type. + repeated core.Decimal extension_on_string = 4 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; + } + StringForText text = 9; } - repeated Communication communication = 22; + repeated ReferenceRange reference_range = 30; - // Patient's nominated primary care provider - repeated core.Reference general_practitioner = 23 [ - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole" + // Related resource that belongs to the Observation group + repeated core.Reference has_member = 31 [ + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence" ]; - // Organization that is the custodian of the patient record - core.Reference managing_organization = 24 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + // Related measurements the observation is made from + repeated core.Reference derived_from = 32 [ + (.google.fhir.proto.valid_reference_type) = "DocumentReference", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy", + (.google.fhir.proto.valid_reference_type) = "Media", + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence" + ]; - // Link to another patient resource that concerns the same actual person - message Link { + // Component results + message Component { // Unique id for inter-element referencing core.String id = 1; @@ -649,278 +801,165 @@ message TestPatient { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // The other patient or related person resource that the link refers to - core.Reference other = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; - - // replaced-by | replaces | refer | seealso - message TypeCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/link-type"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.LinkTypeCode.Value value = 1; + // Type of component observation (code / type) + core.CodeableConcept code = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - core.String id = 2; + // Actual component result + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; - repeated core.Extension extension = 3; + oneof choice { + core.Quantity quantity = 1; + core.CodeableConcept codeable_concept = 2; + core.String string_value = 3 [json_name = "string"]; + core.Boolean boolean = 4; + core.Integer integer = 5; + core.Range range = 6; + core.Ratio ratio = 7; + core.SampledData sampled_data = 8; + core.Time time = 9; + core.DateTime date_time = 10; + core.Period period = 11; + } } - TypeCode type = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - } - repeated Link link = 25; + ValueX value = 5; - // Decimal Extension - core.Decimal dec_ext = 26 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt" - ]; + // Why the component result is missing + core.CodeableConcept data_absent_reason = 6; - // Optional Extensions Element - FavoriteBrewery.ValueCode favorite_brewery = 27 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/FavoriteBrewery"]; + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 7; - // Optional Extensions Element - FavoriteCalifornian.ValueCode favorite_californian = 28 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/FavoriteCalifornian"]; + // Provides guide for interpretation of component result + repeated ReferenceRange reference_range = 8; + } + repeated Component component = 33; } -// Auto-generated from StructureDefinition for TestObservation. -// Measurements and simple assertions. -// See http://test/url/base/StructureDefinition/TestObservation -message TestObservation { +// Auto-generated from StructureDefinition for TestEncounter. +// An interaction during which services are provided to the patient. +// See http://test/url/base/StructureDefinition/TestEncounter +message TestEncounter { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Observation"; + "http://hl7.org/fhir/StructureDefinition/Encounter"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/TestObservation"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "dataAbsentReason.empty() or value.empty()"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + "http://test/url/base/StructureDefinition/TestEncounter"; option (.google.fhir.proto.search_parameter) = { - name: "amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + name: "account" + type: REFERENCE + expression: "Encounter.account" + }; + option (.google.fhir.proto.search_parameter) = { + name: "appointment" + type: REFERENCE + expression: "Encounter.appointment" }; option (.google.fhir.proto.search_parameter) = { name: "based-on" type: REFERENCE - expression: "Observation.basedOn" + expression: "Encounter.basedOn" }; option (.google.fhir.proto.search_parameter) = { - name: "category" + name: "class" type: TOKEN - expression: "Observation.category" + expression: "Encounter.class" }; option (.google.fhir.proto.search_parameter) = { - name: "code" - type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" + name: "date" + type: DATE + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-concept" - type: COMPOSITE - expression: "Observation" + name: "diagnosis" + type: REFERENCE + expression: "Encounter.diagnosis.condition" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-date" - type: COMPOSITE - expression: "Observation" + name: "episode-of-care" + type: REFERENCE + expression: "Encounter.episodeOfCare" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-quantity" - type: COMPOSITE - expression: "Observation" + name: "identifier" + type: TOKEN + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-string" - type: COMPOSITE - expression: "Observation" + name: "length" + type: QUANTITY + expression: "Encounter.length" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code" - type: TOKEN - expression: "Observation.code | Observation.component.code" + name: "location" + type: REFERENCE + expression: "Encounter.location.location" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-concept" - type: COMPOSITE - expression: "Observation | Observation.component" + name: "location-period" + type: DATE + expression: "Encounter.location.period" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-quantity" - type: COMPOSITE - expression: "Observation | Observation.component" + name: "part-of" + type: REFERENCE + expression: "Encounter.partOf" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-data-absent-reason" - type: TOKEN - expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" + name: "participant" + type: REFERENCE + expression: "Encounter.participant.individual" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-value-concept" + name: "participant-type" type: TOKEN - expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" + expression: "Encounter.participant.type" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code" + name: "practitioner" + type: REFERENCE + expression: "Encounter.participant.individual.where(resolve() is Practitioner)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "reason-code" type: TOKEN - expression: "Observation.component.code" + expression: "Encounter.reasonCode" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-concept" - type: COMPOSITE - expression: "Observation.component" + name: "reason-reference" + type: REFERENCE + expression: "Encounter.reasonReference" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-quantity" - type: COMPOSITE - expression: "Observation.component" + name: "service-provider" + type: REFERENCE + expression: "Encounter.serviceProvider" }; option (.google.fhir.proto.search_parameter) = { - name: "component-data-absent-reason" + name: "special-arrangement" type: TOKEN - expression: "Observation.component.dataAbsentReason" + expression: "Encounter.hospitalization.specialArrangement" }; option (.google.fhir.proto.search_parameter) = { - name: "component-value-concept" + name: "status" type: TOKEN - expression: "(Observation.component.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-value-quantity" - type: QUANTITY - expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "data-absent-reason" - type: TOKEN - expression: "Observation.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "derived-from" - type: REFERENCE - expression: "Observation.derivedFrom" - }; - option (.google.fhir.proto.search_parameter) = { - name: "device" - type: REFERENCE - expression: "Observation.device" - }; - option (.google.fhir.proto.search_parameter) = { - name: "dna-variant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "encounter" - type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" - }; - option (.google.fhir.proto.search_parameter) = { - name: "focus" - type: REFERENCE - expression: "Observation.focus" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-dnavariant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-identifier" - type: TOKEN - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "has-member" - type: REFERENCE - expression: "Observation.hasMember" - }; - option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" - }; - option (.google.fhir.proto.search_parameter) = { - name: "method" - type: TOKEN - expression: "Observation.method" - }; - option (.google.fhir.proto.search_parameter) = { - name: "part-of" - type: REFERENCE - expression: "Observation.partOf" - }; - option (.google.fhir.proto.search_parameter) = { - name: "patient" - type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" - }; - option (.google.fhir.proto.search_parameter) = { - name: "performer" - type: REFERENCE - expression: "Observation.performer" - }; - option (.google.fhir.proto.search_parameter) = { - name: "specimen" - type: REFERENCE - expression: "Observation.specimen" - }; - option (.google.fhir.proto.search_parameter) = { - name: "status" - type: TOKEN - expression: "Observation.status" + expression: "Encounter.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "Observation.subject" + expression: "Encounter.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "value-concept" + name: "type" type: TOKEN - expression: "(Observation.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-date" - type: DATE - expression: "(Observation.value as dateTime) | (Observation.value as Period)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-string" - type: STRING - expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" + expression: "AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type" }; // Logical id of this artifact @@ -942,7 +981,7 @@ message TestObservation { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Observation.contained + // Encounter.contained reserved 7; // Additional content defined by implementations @@ -951,102 +990,100 @@ message TestObservation { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business Identifier for observation + // Identifier(s) by which this encounter is known repeated core.Identifier identifier = 10; - // Fulfills plan, proposal or order - repeated core.Reference based_on = 11 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "DeviceRequest", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest" - ]; - - // Part of referenced event - repeated core.Reference part_of = 12 [ - (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", - (.google.fhir.proto.valid_reference_type) = "MedicationDispense", - (.google.fhir.proto.valid_reference_type) = "MedicationStatement", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Immunization", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy" - ]; - - // registered | preliminary | final | amended + + // planned | arrived | triaged | in-progress | onleave | finished | cancelled + // + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/observation-status"; + "http://hl7.org/fhir/ValueSet/encounter-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.ObservationStatusCode.Value value = 1; + core.EncounterStatusCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 13 + StatusCode status = 11 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Classification of type of observation - message CodeableConceptForCategory { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - + // List of past encounter statuses + message StatusHistory { // Unique id for inter-element referencing core.String id = 1; // Additional content defined by implementations repeated core.Extension extension = 2; - // Code defined by a terminology system - repeated core.Coding coding = 3; - - // Plain text representation of the concept - core.String text = 4; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - message CatACoding { + // planned | arrived | triaged | in-progress | onleave | finished | + // cancelled + + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/encounter-status"; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + "http://hl7.org/fhir/StructureDefinition/code"; - core.String id = 1; + core.EncounterStatusCode.Value value = 1; - repeated core.Extension extension = 2; + core.String id = 2; - core.String version = 4; + repeated core.Extension extension = 3; + } + StatusCode status = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = "http://catA.org"; + // The time that the episode was in the specified status + core.Period period = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + } + repeated StatusHistory status_history = 12; - // Field 1 reserved to allow enumeration in the future. - reserved 1; + // Classification of patient encounter + core.Coding class_value = 13 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + json_name = "class" + ]; - core.String id = 2; + // List of past encounter classes + message ClassHistory { + // Unique id for inter-element referencing + core.String id = 1; - repeated core.Extension extension = 3; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // This CodeSystem is not enumerable, and so is represented as a string. - string value = 4; - } - FixedCode code = 5; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - core.String display = 6; + // inpatient | outpatient | ambulatory | emergency + + core.Coding class_value = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + json_name = "class" + ]; - core.Boolean user_selected = 7; - } - repeated CatACoding cat_a = 5; + // The time that the episode was in the specified class + core.Period period = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } - repeated CodeableConceptForCategory category = 14; + repeated ClassHistory class_history = 14; - // Type of observation (code / type) - message CodeableConceptForCode { + // Specific type of encounter + repeated core.CodeableConcept type = 15; + + // Specific type of service + core.CodeableConcept service_type = 16; + + // Indicates the urgency of the encounter + message CodeableConceptForPriority { option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; @@ -1062,7 +1099,7 @@ message TestObservation { // Plain text representation of the concept core.String text = 4; - message SysACoding { + message ActCoding { option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Coding"; @@ -1077,52 +1114,35 @@ message TestObservation { KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = "http://sysa.org"; - - // Field 1 reserved to allow enumeration in the future. - reserved 1; - - core.String id = 2; - - repeated core.Extension extension = 3; + option (.google.fhir.proto.fhir_fixed_system) = + "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; - // This CodeSystem is not enumerable, and so is represented as a string. - string value = 4; - } - FixedCode code = 5; + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; - core.String display = 6; - - core.Boolean user_selected = 7; - } - SysACoding sys_a = 5; - - message SysBCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; - - core.String id = 1; - - repeated core.Extension extension = 2; - - core.String version = 4; - - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = "http://sysb.org"; - - // Field 1 reserved to allow enumeration in the future. - reserved 1; + INVALID_UNINITIALIZED = 0; + A = 1 [(.google.fhir.proto.fhir_original_code) = "A"]; + CR = 2 [(.google.fhir.proto.fhir_original_code) = "CR"]; + CS = 3 [(.google.fhir.proto.fhir_original_code) = "CS"]; + CSP = 4 [(.google.fhir.proto.fhir_original_code) = "CSP"]; + CSR = 5 [(.google.fhir.proto.fhir_original_code) = "CSR"]; + EL = 6 [(.google.fhir.proto.fhir_original_code) = "EL"]; + EM = 7 [(.google.fhir.proto.fhir_original_code) = "EM"]; + P = 8 [(.google.fhir.proto.fhir_original_code) = "P"]; + PRN = 9 [(.google.fhir.proto.fhir_original_code) = "PRN"]; + R = 10 [(.google.fhir.proto.fhir_original_code) = "R"]; + RR = 11 [(.google.fhir.proto.fhir_original_code) = "RR"]; + S = 12 [(.google.fhir.proto.fhir_original_code) = "S"]; + T = 13 [(.google.fhir.proto.fhir_original_code) = "T"]; + UD = 14 [(.google.fhir.proto.fhir_original_code) = "UD"]; + UR = 15 [(.google.fhir.proto.fhir_original_code) = "UR"]; + } + Value value = 1; core.String id = 2; repeated core.Extension extension = 3; - - // This CodeSystem is not enumerable, and so is represented as a string. - string value = 4; } FixedCode code = 5; @@ -1130,145 +1150,104 @@ message TestObservation { core.Boolean user_selected = 7; } - repeated SysBCoding sys_b = 6; - - core.CodingWithFixedCode sys_c = 7 [ - (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysc.org", - (.google.fhir.proto.fhir_inlined_coding_code) = "8472" - ]; - - core.CodingWithFixedCode sys_d = 8 [ - (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysd.org", - (.google.fhir.proto.fhir_inlined_coding_code) = "8675329" - ]; - - message ColorCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + ActCoding act = 5; + } + CodeableConceptForPriority priority = 17; - core.String id = 1; + // The patient or group present at the encounter + core.Reference subject = 18 [ + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Group" + ]; - repeated core.Extension extension = 2; + // Episode(s) of care that this encounter should be recorded against + repeated core.Reference episode_of_care = 19 + [(.google.fhir.proto.valid_reference_type) = "EpisodeOfCare"]; - core.String version = 4; + // The ServiceRequest that initiated this encounter + repeated core.Reference based_on = 20 + [(.google.fhir.proto.valid_reference_type) = "ServiceRequest"]; - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = - "http://hl7.org/fhir/metric-color"; + // List of participants involved in the encounter + message Participant { + // Unique id for inter-element referencing + core.String id = 1; - core.DeviceMetricColorCode.Value value = 1; + // Additional content defined by implementations + repeated core.Extension extension = 2; - core.String id = 2; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - repeated core.Extension extension = 3; - } - FixedCode code = 5; + // Role of participant in encounter + repeated core.CodeableConcept type = 4; - core.String display = 6; + // Period of time during the encounter that the participant participated + core.Period period = 5; - core.Boolean user_selected = 7; - } - ColorCoding color = 9; + // Persons involved in the encounter other than the patient + core.Reference individual = 6 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; } - CodeableConceptForCode code = 15 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Who and/or what the observation is about - core.Reference subject = 16 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Group", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "Location" - ]; - - // What the observation is about, when it is not about the subject of record - repeated core.Reference focus = 17 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; + repeated Participant participant = 21; - // Healthcare event during which this observation is made - core.Reference encounter = 18 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + // The appointment that scheduled this encounter + repeated core.Reference appointment = 22 + [(.google.fhir.proto.valid_reference_type) = "Appointment"]; - // Clinically relevant time/time-period for observation - message EffectiveX { - option (.google.fhir.proto.is_choice_type) = true; + // The start and end time of the encounter + core.Period period = 23; - oneof choice { - core.DateTime date_time = 1; - core.Period period = 2; - core.Timing timing = 3; - core.Instant instant = 4; - } - } - EffectiveX effective = 19; + // Quantity of time the encounter lasted (less time absent) + core.Duration length = 24; - // Date/Time this version was made available - core.Instant issued = 20; + // Coded reason the encounter takes place + repeated core.CodeableConcept reason_code = 25; - // Who is responsible for the observation - repeated core.Reference performer = 21 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + // Reason the encounter takes place (reference) + repeated core.Reference reason_reference = 26 [ + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" ]; - // Actual result - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Quantity quantity = 1; - core.CodeableConcept codeable_concept = 2; - core.String string_value = 3 [json_name = "string"]; - core.Boolean boolean = 4; - core.Integer integer = 5; - core.Range range = 6; - core.Ratio ratio = 7; - core.SampledData sampled_data = 8; - core.Time time = 9; - core.DateTime date_time = 10; - core.Period period = 11; - } - } - ValueX value = 22; - - // Why the result is missing - core.CodeableConcept data_absent_reason = 23; - - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 24; + // The list of diagnosis relevant to this encounter + message Diagnosis { + // Unique id for inter-element referencing + core.String id = 1; - // Comments about the observation - repeated core.Annotation note = 25; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Observed body part - core.CodeableConcept body_site = 26; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - // How it was done - core.CodeableConcept method = 27; + // The diagnosis or procedure relevant to the encounter + core.Reference condition = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Procedure" + ]; - // Specimen used for this observation - core.Reference specimen = 28 - [(.google.fhir.proto.valid_reference_type) = "Specimen"]; + // Role that this diagnosis has within the encounter (e.g. admission, + // billing, discharge …) + core.CodeableConcept use = 5; - // (Measurement) Device - core.Reference device = 29 [ - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "DeviceMetric" - ]; + // Ranking of the diagnosis (for each role type) + core.PositiveInt rank = 6; + } + repeated Diagnosis diagnosis = 27; - // Provides guide for interpretation - message ReferenceRange { - option (.google.fhir.proto.fhir_path_message_constraint) = - "low.exists() or high.exists() or text.exists()"; + // The set of accounts that may be used for billing for this Encounter + repeated core.Reference account = 28 + [(.google.fhir.proto.valid_reference_type) = "Account"]; + // Details about the admission to a healthcare service + message Hospitalization { // Unique id for inter-element referencing core.String id = 1; @@ -1278,45 +1257,44 @@ message TestObservation { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Low Range, if relevant - core.SimpleQuantity low = 4; + // Pre-admission identifier + core.Identifier pre_admission_identifier = 4; - // High Range, if relevant - core.SimpleQuantity high = 5; + // The location/organization from which the patient came before admission + core.Reference origin = 5 [ + (.google.fhir.proto.valid_reference_type) = "Location", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; - // Reference range qualifier - core.CodeableConcept type = 6; + // From where patient was admitted (physician referral, transfer) + core.CodeableConcept admit_source = 6; - // Reference range population - repeated core.CodeableConcept applies_to = 7; + // The type of hospital re-admission that has occurred (if any). If the + // value is absent, then this is not identified as a readmission + core.CodeableConcept re_admission = 7; - // Applicable age range, if relevant - core.Range age = 8; + // Diet preferences reported by the patient + repeated core.CodeableConcept diet_preference = 8; - // Text based reference range in an observation - core.String text = 9; - } - repeated ReferenceRange reference_range = 30; + // Special courtesies (VIP, board member) + repeated core.CodeableConcept special_courtesy = 9; - // Related resource that belongs to the Observation group - repeated core.Reference has_member = 31 [ - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence" - ]; + // Wheelchair, translator, stretcher, etc. + repeated core.CodeableConcept special_arrangement = 10; - // Related measurements the observation is made from - repeated core.Reference derived_from = 32 [ - (.google.fhir.proto.valid_reference_type) = "DocumentReference", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy", - (.google.fhir.proto.valid_reference_type) = "Media", - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence" - ]; + // Location/organization to which the patient is discharged + core.Reference destination = 11 [ + (.google.fhir.proto.valid_reference_type) = "Location", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; - // Component results - message Component { + // Category or kind of location after discharge + core.CodeableConcept discharge_disposition = 12; + } + Hospitalization hospitalization = 29; + + // List of locations where the patient has been + message Location { // Unique id for inter-element referencing core.String id = 1; @@ -1326,334 +1304,171 @@ message TestObservation { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Type of component observation (code / type) - core.CodeableConcept code = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Actual component result - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Quantity quantity = 1; - core.CodeableConcept codeable_concept = 2; - core.String string_value = 3 [json_name = "string"]; - core.Boolean boolean = 4; - core.Integer integer = 5; - core.Range range = 6; - core.Ratio ratio = 7; - core.SampledData sampled_data = 8; - core.Time time = 9; - core.DateTime date_time = 10; - core.Period period = 11; - } - } - ValueX value = 5; - - // Why the component result is missing - core.CodeableConcept data_absent_reason = 6; + // Location the encounter takes place + core.Reference location = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Location" + ]; - // High, low, normal, etc. - message CodeableConceptForInterpretation { + // planned | active | reserved | completed + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/encounter-location-status"; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Code defined by a terminology system - repeated core.Coding coding = 3; - - // Plain text representation of the concept - core.String text = 4; - - message OnNestedConceptCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; - - core.String id = 1; - - repeated core.Extension extension = 2; - - core.String version = 4; - - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = - "http://nestedconcept.org"; - - // Field 1 reserved to allow enumeration in the future. - reserved 1; - - core.String id = 2; - - repeated core.Extension extension = 3; + "http://hl7.org/fhir/StructureDefinition/code"; - // This CodeSystem is not enumerable, and so is represented as a - // string. - string value = 4; - } - FixedCode code = 5; + core.EncounterLocationStatusCode.Value value = 1; - core.String display = 6; + core.String id = 2; - core.Boolean user_selected = 7; - } - OnNestedConceptCoding on_nested_concept = 5; + repeated core.Extension extension = 3; } - repeated CodeableConceptForInterpretation interpretation = 7; + StatusCode status = 5; - // Provides guide for interpretation of component result - repeated ReferenceRange reference_range = 8; + // The physical type of the location (usually the level in the location + // hierarchy - bed room ward etc.) + core.CodeableConcept physical_type = 6; - // Optional Extensions Element - core.Decimal on_nested = 9 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; + // Time period during which the patient was present at the location + core.Period period = 7; } - repeated Component component = 33; + repeated Location location = 30; - // Optional Extensions Element - ComplexExt my_complex_extension = 34 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/ComplexExt"]; + // The organization (facility) responsible for this encounter + core.Reference service_provider = 31 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // Another Encounter this encounter is part of + core.Reference part_of = 32 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; } -// Auto-generated from StructureDefinition for TestObservationLvl2. -// Measurements and simple assertions. -// See http://test/url/base/StructureDefinition/TestObservationLvl2 -message TestObservationLvl2 { +// Auto-generated from StructureDefinition for +// TestEncounterWithProfiledIdentifier. An interaction during which services are +// provided to the patient. See +// http://test/url/base/StructureDefinition/TestEncounterWithProfiledIdentifier +message TestEncounterWithProfiledIdentifier { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://test/url/base/StructureDefinition/TestObservation"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Observation"; + "http://hl7.org/fhir/StructureDefinition/Encounter"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/TestObservationLvl2"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "dataAbsentReason.empty() or value.empty()"; - option (.google.fhir.proto.fhir_path_message_constraint) = - "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + "http://test/url/base/StructureDefinition/TestEncounterWithProfiledIdentifier"; option (.google.fhir.proto.search_parameter) = { - name: "amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + name: "account" + type: REFERENCE + expression: "Encounter.account" }; option (.google.fhir.proto.search_parameter) = { - name: "based-on" + name: "appointment" type: REFERENCE - expression: "Observation.basedOn" + expression: "Encounter.appointment" }; option (.google.fhir.proto.search_parameter) = { - name: "category" - type: TOKEN - expression: "Observation.category" + name: "based-on" + type: REFERENCE + expression: "Encounter.basedOn" }; option (.google.fhir.proto.search_parameter) = { - name: "code" + name: "class" type: TOKEN - expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" - }; - option (.google.fhir.proto.search_parameter) = { - name: "code-value-concept" - type: COMPOSITE - expression: "Observation" + expression: "Encounter.class" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-date" - type: COMPOSITE - expression: "Observation" + name: "date" + type: DATE + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-quantity" - type: COMPOSITE - expression: "Observation" + name: "diagnosis" + type: REFERENCE + expression: "Encounter.diagnosis.condition" }; option (.google.fhir.proto.search_parameter) = { - name: "code-value-string" - type: COMPOSITE - expression: "Observation" + name: "episode-of-care" + type: REFERENCE + expression: "Encounter.episodeOfCare" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code" + name: "identifier" type: TOKEN - expression: "Observation.code | Observation.component.code" + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-concept" - type: COMPOSITE - expression: "Observation | Observation.component" + name: "length" + type: QUANTITY + expression: "Encounter.length" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-code-value-quantity" - type: COMPOSITE - expression: "Observation | Observation.component" + name: "location" + type: REFERENCE + expression: "Encounter.location.location" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-data-absent-reason" - type: TOKEN - expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" + name: "location-period" + type: DATE + expression: "Encounter.location.period" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-value-concept" - type: TOKEN - expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" + name: "part-of" + type: REFERENCE + expression: "Encounter.partOf" }; option (.google.fhir.proto.search_parameter) = { - name: "combo-value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" + name: "participant" + type: REFERENCE + expression: "Encounter.participant.individual" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code" + name: "participant-type" type: TOKEN - expression: "Observation.component.code" + expression: "Encounter.participant.type" }; option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-concept" - type: COMPOSITE - expression: "Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-code-value-quantity" - type: COMPOSITE - expression: "Observation.component" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-data-absent-reason" - type: TOKEN - expression: "Observation.component.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-value-concept" - type: TOKEN - expression: "(Observation.component.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "component-value-quantity" - type: QUANTITY - expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "data-absent-reason" - type: TOKEN - expression: "Observation.dataAbsentReason" - }; - option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" - }; - option (.google.fhir.proto.search_parameter) = { - name: "derived-from" - type: REFERENCE - expression: "Observation.derivedFrom" - }; - option (.google.fhir.proto.search_parameter) = { - name: "device" - type: REFERENCE - expression: "Observation.device" - }; - option (.google.fhir.proto.search_parameter) = { - name: "dna-variant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "encounter" - type: REFERENCE - expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" - }; - option (.google.fhir.proto.search_parameter) = { - name: "focus" + name: "patient" type: REFERENCE - expression: "Observation.focus" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-amino-acid-change" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-dnavariant" - type: STRING - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" - }; - option (.google.fhir.proto.search_parameter) = { - name: "gene-identifier" - type: TOKEN - expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" }; option (.google.fhir.proto.search_parameter) = { - name: "has-member" + name: "practitioner" type: REFERENCE - expression: "Observation.hasMember" - }; - option (.google.fhir.proto.search_parameter) = { - name: "identifier" - type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + expression: "Encounter.participant.individual.where(resolve() is Practitioner)" }; option (.google.fhir.proto.search_parameter) = { - name: "method" + name: "reason-code" type: TOKEN - expression: "Observation.method" - }; - option (.google.fhir.proto.search_parameter) = { - name: "part-of" - type: REFERENCE - expression: "Observation.partOf" + expression: "Encounter.reasonCode" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" + name: "reason-reference" type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + expression: "Encounter.reasonReference" }; option (.google.fhir.proto.search_parameter) = { - name: "performer" + name: "service-provider" type: REFERENCE - expression: "Observation.performer" + expression: "Encounter.serviceProvider" }; option (.google.fhir.proto.search_parameter) = { - name: "specimen" - type: REFERENCE - expression: "Observation.specimen" + name: "special-arrangement" + type: TOKEN + expression: "Encounter.hospitalization.specialArrangement" }; option (.google.fhir.proto.search_parameter) = { name: "status" type: TOKEN - expression: "Observation.status" + expression: "Encounter.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "Observation.subject" + expression: "Encounter.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "value-concept" + name: "type" type: TOKEN - expression: "(Observation.value as CodeableConcept)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-date" - type: DATE - expression: "(Observation.value as dateTime) | (Observation.value as Period)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-quantity" - type: QUANTITY - expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" - }; - option (.google.fhir.proto.search_parameter) = { - name: "value-string" - type: STRING - expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" + expression: "AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type" }; // Logical id of this artifact @@ -1675,7 +1490,7 @@ message TestObservationLvl2 { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Observation.contained + // Encounter.contained reserved 7; // Additional content defined by implementations @@ -1684,50 +1499,11 @@ message TestObservationLvl2 { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Business Identifier for observation - repeated core.Identifier identifier = 10; - - // Fulfills plan, proposal or order - repeated core.Reference based_on = 11 [ - (.google.fhir.proto.valid_reference_type) = "CarePlan", - (.google.fhir.proto.valid_reference_type) = "DeviceRequest", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", - (.google.fhir.proto.valid_reference_type) = "MedicationRequest", - (.google.fhir.proto.valid_reference_type) = "NutritionOrder", - (.google.fhir.proto.valid_reference_type) = "ServiceRequest" - ]; - - // Part of referenced event - repeated core.Reference part_of = 12 [ - (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", - (.google.fhir.proto.valid_reference_type) = "MedicationDispense", - (.google.fhir.proto.valid_reference_type) = "MedicationStatement", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Immunization", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy" - ]; - - // registered | preliminary | final | amended + - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/observation-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.ObservationStatusCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - StatusCode status = 13 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Classification of type of observation - message CodeableConceptForCategory { + // Identifier(s) by which this encounter is known + message ProfiledIdentifier { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + "http://hl7.org/fhir/StructureDefinition/Identifier"; // Unique id for inter-element referencing core.String id = 1; @@ -1735,309 +1511,265 @@ message TestObservationLvl2 { // Additional content defined by implementations repeated core.Extension extension = 2; - // Code defined by a terminology system - repeated core.Coding coding = 3; + // usual | official | temp | secondary | old (If known) + message UseCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/identifier-use"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Plain text representation of the concept - core.String text = 4; + core.IdentifierUseCode.Value value = 1; - message CatACoding { + core.String id = 2; + + repeated core.Extension extension = 3; + } + UseCode use = 3; + + // Description of identifier + message CodeableConceptForType { option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + // Unique id for inter-element referencing core.String id = 1; + // Additional content defined by implementations repeated core.Extension extension = 2; - core.String version = 4; - - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = "http://catA.org"; - - // Field 1 reserved to allow enumeration in the future. - reserved 1; - - core.String id = 2; + // Code defined by a terminology system + repeated core.Coding coding = 3; - repeated core.Extension extension = 3; + // Plain text representation of the concept + core.String text = 4; - // This CodeSystem is not enumerable, and so is represented as a string. - string value = 4; - } - FixedCode code = 5; + message ActCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - core.String display = 6; + core.String id = 1; - core.Boolean user_selected = 7; - } - repeated CatACoding cat_a = 5; - } - repeated CodeableConceptForCategory category = 14; + repeated core.Extension extension = 2; - // Type of observation (code / type) - message CodeableConceptForCode { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + core.String version = 4; - // Unique id for inter-element referencing - core.String id = 1; + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = + "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; - // Additional content defined by implementations - repeated core.Extension extension = 2; + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; - // Code defined by a terminology system - repeated core.Coding coding = 3; - - // Plain text representation of the concept - core.String text = 4; - - message SysACoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; - - core.String id = 1; - - repeated core.Extension extension = 2; - - core.String version = 4; - - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = "http://sysa.org"; + INVALID_UNINITIALIZED = 0; + A = 1 [(.google.fhir.proto.fhir_original_code) = "A"]; + CR = 2 [(.google.fhir.proto.fhir_original_code) = "CR"]; + CS = 3 [(.google.fhir.proto.fhir_original_code) = "CS"]; + CSP = 4 [(.google.fhir.proto.fhir_original_code) = "CSP"]; + CSR = 5 [(.google.fhir.proto.fhir_original_code) = "CSR"]; + EL = 6 [(.google.fhir.proto.fhir_original_code) = "EL"]; + EM = 7 [(.google.fhir.proto.fhir_original_code) = "EM"]; + P = 8 [(.google.fhir.proto.fhir_original_code) = "P"]; + PRN = 9 [(.google.fhir.proto.fhir_original_code) = "PRN"]; + R = 10 [(.google.fhir.proto.fhir_original_code) = "R"]; + RR = 11 [(.google.fhir.proto.fhir_original_code) = "RR"]; + S = 12 [(.google.fhir.proto.fhir_original_code) = "S"]; + T = 13 [(.google.fhir.proto.fhir_original_code) = "T"]; + UD = 14 [(.google.fhir.proto.fhir_original_code) = "UD"]; + UR = 15 [(.google.fhir.proto.fhir_original_code) = "UR"]; + } + Value value = 1; - // Field 1 reserved to allow enumeration in the future. - reserved 1; + core.String id = 2; - core.String id = 2; + repeated core.Extension extension = 3; + } + FixedCode code = 5; - repeated core.Extension extension = 3; + core.String display = 6; - // This CodeSystem is not enumerable, and so is represented as a string. - string value = 4; + core.Boolean user_selected = 7; } - FixedCode code = 5; - - core.String display = 6; - - core.Boolean user_selected = 7; + ActCoding act = 5; } - SysACoding sys_a = 5; - - message SysBCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; - - core.String id = 1; + CodeableConceptForType type = 4; - repeated core.Extension extension = 2; + // The namespace for the identifier value + core.Uri system = 5; - core.String version = 4; + // The value that is unique + core.String value = 6; - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = "http://sysb.org"; + // Time period when id is/was valid for use + core.Period period = 7; - // Field 1 reserved to allow enumeration in the future. - reserved 1; + // Organization that issued id (may be just text) + core.Reference assigner = 8 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + } + repeated ProfiledIdentifier identifier = 10; - core.String id = 2; + // planned | arrived | triaged | in-progress | onleave | finished | cancelled + // + + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/encounter-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - repeated core.Extension extension = 3; + core.EncounterStatusCode.Value value = 1; - // This CodeSystem is not enumerable, and so is represented as a string. - string value = 4; - } - FixedCode code = 5; + core.String id = 2; - core.String display = 6; + repeated core.Extension extension = 3; + } + StatusCode status = 11 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - core.Boolean user_selected = 7; - } - repeated SysBCoding sys_b = 6; + // List of past encounter statuses + message StatusHistory { + // Unique id for inter-element referencing + core.String id = 1; - core.CodingWithFixedCode sys_c = 7 [ - (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysc.org", - (.google.fhir.proto.fhir_inlined_coding_code) = "8472" - ]; + // Additional content defined by implementations + repeated core.Extension extension = 2; - core.CodingWithFixedCode sys_d = 8 [ - (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysd.org", - (.google.fhir.proto.fhir_inlined_coding_code) = "8675329" - ]; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - message ColorCoding { + // planned | arrived | triaged | in-progress | onleave | finished | + // cancelled + + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/encounter-status"; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; - - core.String id = 1; - - repeated core.Extension extension = 2; - - core.String version = 4; - - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = - "http://hl7.org/fhir/metric-color"; - - core.DeviceMetricColorCode.Value value = 1; - - core.String id = 2; + "http://hl7.org/fhir/StructureDefinition/code"; - repeated core.Extension extension = 3; - } - FixedCode code = 5; + core.EncounterStatusCode.Value value = 1; - core.String display = 6; + core.String id = 2; - core.Boolean user_selected = 7; + repeated core.Extension extension = 3; } - ColorCoding color = 9; - - message NewCodeOnProfiledCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + StatusCode status = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - core.String id = 1; + // The time that the episode was in the specified status + core.Period period = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + } + repeated StatusHistory status_history = 12; - repeated core.Extension extension = 2; + // Classification of patient encounter + core.Coding class_value = 13 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + json_name = "class" + ]; - core.String version = 4; + // List of past encounter classes + message ClassHistory { + // Unique id for inter-element referencing + core.String id = 1; - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = - "http://newonprofiled.org"; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Field 1 reserved to allow enumeration in the future. - reserved 1; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - core.String id = 2; + // inpatient | outpatient | ambulatory | emergency + + core.Coding class_value = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + json_name = "class" + ]; - repeated core.Extension extension = 3; + // The time that the episode was in the specified class + core.Period period = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + } + repeated ClassHistory class_history = 14; - // This CodeSystem is not enumerable, and so is represented as a string. - string value = 4; - } - FixedCode code = 5; + // Specific type of encounter + repeated core.CodeableConcept type = 15; - core.String display = 6; + // Specific type of service + core.CodeableConcept service_type = 16; - core.Boolean user_selected = 7; - } - NewCodeOnProfiledCoding new_code_on_profiled = 10; - } - CodeableConceptForCode code = 15 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Indicates the urgency of the encounter + core.CodeableConcept priority = 17; - // Who and/or what the observation is about - core.Reference subject = 16 [ + // The patient or group present at the encounter + core.Reference subject = 18 [ (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Group", - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "Location" + (.google.fhir.proto.valid_reference_type) = "Group" ]; - // What the observation is about, when it is not about the subject of record - repeated core.Reference focus = 17 - [(.google.fhir.proto.valid_reference_type) = "Resource"]; + // Episode(s) of care that this encounter should be recorded against + repeated core.Reference episode_of_care = 19 + [(.google.fhir.proto.valid_reference_type) = "EpisodeOfCare"]; - // Healthcare event during which this observation is made - core.Reference encounter = 18 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + // The ServiceRequest that initiated this encounter + repeated core.Reference based_on = 20 + [(.google.fhir.proto.valid_reference_type) = "ServiceRequest"]; - // Clinically relevant time/time-period for observation - message EffectiveX { - option (.google.fhir.proto.is_choice_type) = true; + // List of participants involved in the encounter + message Participant { + // Unique id for inter-element referencing + core.String id = 1; - oneof choice { - core.DateTime date_time = 1; - core.Period period = 2; - core.Timing timing = 3; - core.Instant instant = 4; - } - } - EffectiveX effective = 19; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Date/Time this version was made available - core.Instant issued = 20; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - // Who is responsible for the observation - repeated core.Reference performer = 21 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "Organization", - (.google.fhir.proto.valid_reference_type) = "CareTeam", - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; + // Role of participant in encounter + repeated core.CodeableConcept type = 4; - // Actual result - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; + // Period of time during the encounter that the participant participated + core.Period period = 5; - oneof choice { - core.Quantity quantity = 1; - core.CodeableConcept codeable_concept = 2; - core.String string_value = 3 [json_name = "string"]; - core.Boolean boolean = 4; - core.Integer integer = 5; - core.Range range = 6; - core.Ratio ratio = 7; - core.SampledData sampled_data = 8; - core.Time time = 9; - core.DateTime date_time = 10; - core.Period period = 11; - } + // Persons involved in the encounter other than the patient + core.Reference individual = 6 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; } - ValueX value = 22; - - // Why the result is missing - core.CodeableConcept data_absent_reason = 23; - - // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 24; - - // Comments about the observation - repeated core.Annotation note = 25; + repeated Participant participant = 21; - // Observed body part - core.CodeableConcept body_site = 26; + // The appointment that scheduled this encounter + repeated core.Reference appointment = 22 + [(.google.fhir.proto.valid_reference_type) = "Appointment"]; - // How it was done - core.CodeableConcept method = 27; + // The start and end time of the encounter + core.Period period = 23; - // Specimen used for this observation - core.Reference specimen = 28 - [(.google.fhir.proto.valid_reference_type) = "Specimen"]; + // Quantity of time the encounter lasted (less time absent) + core.Duration length = 24; - // (Measurement) Device - core.Reference device = 29 [ - (.google.fhir.proto.valid_reference_type) = "Device", - (.google.fhir.proto.valid_reference_type) = "DeviceMetric" - ]; + // Coded reason the encounter takes place + repeated core.CodeableConcept reason_code = 25; - // Provides guide for interpretation - message ReferenceRange { - option (.google.fhir.proto.fhir_path_message_constraint) = - "low.exists() or high.exists() or text.exists()"; + // Reason the encounter takes place (reference) + repeated core.Reference reason_reference = 26 [ + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" + ]; + // The list of diagnosis relevant to this encounter + message Diagnosis { // Unique id for inter-element referencing core.String id = 1; @@ -2047,45 +1779,28 @@ message TestObservationLvl2 { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Low Range, if relevant - core.SimpleQuantity low = 4; - - // High Range, if relevant - core.SimpleQuantity high = 5; - - // Reference range qualifier - core.CodeableConcept type = 6; - - // Reference range population - repeated core.CodeableConcept applies_to = 7; + // The diagnosis or procedure relevant to the encounter + core.Reference condition = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Condition", + (.google.fhir.proto.valid_reference_type) = "Procedure" + ]; - // Applicable age range, if relevant - core.Range age = 8; + // Role that this diagnosis has within the encounter (e.g. admission, + // billing, discharge …) + core.CodeableConcept use = 5; - // Text based reference range in an observation - core.String text = 9; + // Ranking of the diagnosis (for each role type) + core.PositiveInt rank = 6; } - repeated ReferenceRange reference_range = 30; - - // Related resource that belongs to the Observation group - repeated core.Reference has_member = 31 [ - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence" - ]; + repeated Diagnosis diagnosis = 27; - // Related measurements the observation is made from - repeated core.Reference derived_from = 32 [ - (.google.fhir.proto.valid_reference_type) = "DocumentReference", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy", - (.google.fhir.proto.valid_reference_type) = "Media", - (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "MolecularSequence" - ]; + // The set of accounts that may be used for billing for this Encounter + repeated core.Reference account = 28 + [(.google.fhir.proto.valid_reference_type) = "Account"]; - // Component results - message Component { + // Details about the admission to a healthcare service + message Hospitalization { // Unique id for inter-element referencing core.String id = 1; @@ -2095,233 +1810,321 @@ message TestObservationLvl2 { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Type of component observation (code / type) - core.CodeableConcept code = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // Actual component result - message ValueX { - option (.google.fhir.proto.is_choice_type) = true; - - oneof choice { - core.Quantity quantity = 1; - core.CodeableConcept codeable_concept = 2; - core.String string_value = 3 [json_name = "string"]; - core.Boolean boolean = 4; - core.Integer integer = 5; - core.Range range = 6; - core.Ratio ratio = 7; - core.SampledData sampled_data = 8; - core.Time time = 9; - core.DateTime date_time = 10; - core.Period period = 11; - } - } - ValueX value = 5; - - // Why the component result is missing - core.CodeableConcept data_absent_reason = 6; + // Pre-admission identifier + core.Identifier pre_admission_identifier = 4; - // High, low, normal, etc. - message CodeableConceptForInterpretation { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + // The location/organization from which the patient came before admission + core.Reference origin = 5 [ + (.google.fhir.proto.valid_reference_type) = "Location", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; - // Unique id for inter-element referencing - core.String id = 1; + // From where patient was admitted (physician referral, transfer) + core.CodeableConcept admit_source = 6; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // The type of hospital re-admission that has occurred (if any). If the + // value is absent, then this is not identified as a readmission + core.CodeableConcept re_admission = 7; - // Code defined by a terminology system - repeated core.Coding coding = 3; + // Diet preferences reported by the patient + repeated core.CodeableConcept diet_preference = 8; - // Plain text representation of the concept - core.String text = 4; + // Special courtesies (VIP, board member) + repeated core.CodeableConcept special_courtesy = 9; - message OnNestedConceptCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; + // Wheelchair, translator, stretcher, etc. + repeated core.CodeableConcept special_arrangement = 10; - core.String id = 1; + // Location/organization to which the patient is discharged + core.Reference destination = 11 [ + (.google.fhir.proto.valid_reference_type) = "Location", + (.google.fhir.proto.valid_reference_type) = "Organization" + ]; - repeated core.Extension extension = 2; + // Category or kind of location after discharge + core.CodeableConcept discharge_disposition = 12; + } + Hospitalization hospitalization = 29; - core.String version = 4; + // List of locations where the patient has been + message Location { + // Unique id for inter-element referencing + core.String id = 1; - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = - "http://nestedconcept.org"; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Field 1 reserved to allow enumeration in the future. - reserved 1; + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; - core.String id = 2; + // Location the encounter takes place + core.Reference location = 4 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.valid_reference_type) = "Location" + ]; - repeated core.Extension extension = 3; + // planned | active | reserved | completed + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/encounter-location-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // This CodeSystem is not enumerable, and so is represented as a - // string. - string value = 4; - } - FixedCode code = 5; + core.EncounterLocationStatusCode.Value value = 1; - core.String display = 6; + core.String id = 2; - core.Boolean user_selected = 7; - } - OnNestedConceptCoding on_nested_concept = 5; + repeated core.Extension extension = 3; } - repeated CodeableConceptForInterpretation interpretation = 7; + StatusCode status = 5; - // Provides guide for interpretation of component result - repeated ReferenceRange reference_range = 8; + // The physical type of the location (usually the level in the location + // hierarchy - bed room ward etc.) + core.CodeableConcept physical_type = 6; - // Optional Extensions Element - core.Decimal on_nested = 9 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; + // Time period during which the patient was present at the location + core.Period period = 7; } - repeated Component component = 33; + repeated Location location = 30; - // Optional Extensions Element - ComplexExt my_complex_extension = 34 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/ComplexExt"]; + // The organization (facility) responsible for this encounter + core.Reference service_provider = 31 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; - // Optional Extensions Element - core.Decimal new_ext = 35 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; + // Another Encounter this encounter is part of + core.Reference part_of = 32 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; } -// Auto-generated from StructureDefinition for TestEncounter. -// An interaction during which services are provided to the patient. -// See http://test/url/base/StructureDefinition/TestEncounter -message TestEncounter { +// Auto-generated from StructureDefinition for TestObservation. +// Measurements and simple assertions. +// See http://test/url/base/StructureDefinition/TestObservation +message TestObservation { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Encounter"; + "http://hl7.org/fhir/StructureDefinition/Observation"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/TestEncounter"; + "http://test/url/base/StructureDefinition/TestObservation"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "dataAbsentReason.empty() or value.empty()"; + option (.google.fhir.proto.fhir_path_message_constraint) = + "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()"; + option (.google.fhir.proto.search_parameter) = { + name: "amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "based-on" + type: REFERENCE + expression: "Observation.basedOn" + }; + option (.google.fhir.proto.search_parameter) = { + name: "category" + type: TOKEN + expression: "Observation.category" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code" + type: TOKEN + expression: "AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationStatement.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-concept" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-date" + type: COMPOSITE + expression: "Observation" + }; + option (.google.fhir.proto.search_parameter) = { + name: "code-value-quantity" + type: COMPOSITE + expression: "Observation" + }; option (.google.fhir.proto.search_parameter) = { - name: "account" - type: REFERENCE - expression: "Encounter.account" + name: "code-value-string" + type: COMPOSITE + expression: "Observation" }; option (.google.fhir.proto.search_parameter) = { - name: "appointment" - type: REFERENCE - expression: "Encounter.appointment" + name: "combo-code" + type: TOKEN + expression: "Observation.code | Observation.component.code" }; option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "Encounter.basedOn" + name: "combo-code-value-concept" + type: COMPOSITE + expression: "Observation | Observation.component" }; option (.google.fhir.proto.search_parameter) = { - name: "class" + name: "combo-code-value-quantity" + type: COMPOSITE + expression: "Observation | Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "combo-data-absent-reason" type: TOKEN - expression: "Encounter.class" + expression: "Observation.dataAbsentReason | Observation.component.dataAbsentReason" }; option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" + name: "combo-value-concept" + type: TOKEN + expression: "(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)" }; option (.google.fhir.proto.search_parameter) = { - name: "diagnosis" - type: REFERENCE - expression: "Encounter.diagnosis.condition" + name: "combo-value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)" }; option (.google.fhir.proto.search_parameter) = { - name: "episode-of-care" - type: REFERENCE - expression: "Encounter.episodeOfCare" + name: "component-code" + type: TOKEN + expression: "Observation.component.code" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "component-code-value-concept" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-code-value-quantity" + type: COMPOSITE + expression: "Observation.component" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-data-absent-reason" type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + expression: "Observation.component.dataAbsentReason" }; option (.google.fhir.proto.search_parameter) = { - name: "length" + name: "component-value-concept" + type: TOKEN + expression: "(Observation.component.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "component-value-quantity" type: QUANTITY - expression: "Encounter.length" + expression: "(Observation.component.value as Quantity) | (Observation.component.value as SampledData)" }; option (.google.fhir.proto.search_parameter) = { - name: "location" - type: REFERENCE - expression: "Encounter.location.location" + name: "data-absent-reason" + type: TOKEN + expression: "Observation.dataAbsentReason" }; option (.google.fhir.proto.search_parameter) = { - name: "location-period" + name: "date" type: DATE - expression: "Encounter.location.period" + expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" }; option (.google.fhir.proto.search_parameter) = { - name: "part-of" + name: "derived-from" type: REFERENCE - expression: "Encounter.partOf" + expression: "Observation.derivedFrom" }; option (.google.fhir.proto.search_parameter) = { - name: "participant" + name: "device" type: REFERENCE - expression: "Encounter.participant.individual" + expression: "Observation.device" }; option (.google.fhir.proto.search_parameter) = { - name: "participant-type" - type: TOKEN - expression: "Encounter.participant.type" + name: "dna-variant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" + name: "encounter" type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + expression: "Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter" }; option (.google.fhir.proto.search_parameter) = { - name: "practitioner" + name: "focus" type: REFERENCE - expression: "Encounter.participant.individual.where(resolve() is Practitioner)" + expression: "Observation.focus" }; option (.google.fhir.proto.search_parameter) = { - name: "reason-code" + name: "gene-amino-acid-change" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-dnavariant" + type: STRING + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')" + }; + option (.google.fhir.proto.search_parameter) = { + name: "gene-identifier" type: TOKEN - expression: "Encounter.reasonCode" + expression: "Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')" }; option (.google.fhir.proto.search_parameter) = { - name: "reason-reference" + name: "has-member" type: REFERENCE - expression: "Encounter.reasonReference" + expression: "Observation.hasMember" }; option (.google.fhir.proto.search_parameter) = { - name: "service-provider" - type: REFERENCE - expression: "Encounter.serviceProvider" + name: "identifier" + type: TOKEN + expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "special-arrangement" + name: "method" type: TOKEN - expression: "Encounter.hospitalization.specialArrangement" + expression: "Observation.method" + }; + option (.google.fhir.proto.search_parameter) = { + name: "part-of" + type: REFERENCE + expression: "Observation.partOf" + }; + option (.google.fhir.proto.search_parameter) = { + name: "patient" + type: REFERENCE + expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + }; + option (.google.fhir.proto.search_parameter) = { + name: "performer" + type: REFERENCE + expression: "Observation.performer" + }; + option (.google.fhir.proto.search_parameter) = { + name: "specimen" + type: REFERENCE + expression: "Observation.specimen" }; option (.google.fhir.proto.search_parameter) = { name: "status" type: TOKEN - expression: "Encounter.status" + expression: "Observation.status" }; option (.google.fhir.proto.search_parameter) = { name: "subject" type: REFERENCE - expression: "Encounter.subject" + expression: "Observation.subject" }; option (.google.fhir.proto.search_parameter) = { - name: "type" + name: "value-concept" type: TOKEN - expression: "AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type" + expression: "(Observation.value as CodeableConcept)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-date" + type: DATE + expression: "(Observation.value as dateTime) | (Observation.value as Period)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-quantity" + type: QUANTITY + expression: "(Observation.value as Quantity) | (Observation.value as SampledData)" + }; + option (.google.fhir.proto.search_parameter) = { + name: "value-string" + type: STRING + expression: "(Observation.value as string) | (Observation.value as CodeableConcept).text" }; // Logical id of this artifact @@ -2343,7 +2146,7 @@ message TestEncounter { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Encounter.contained + // Observation.contained reserved 7; // Additional content defined by implementations @@ -2352,116 +2155,198 @@ message TestEncounter { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Identifier(s) by which this encounter is known + // Business Identifier for observation repeated core.Identifier identifier = 10; - // planned | arrived | triaged | in-progress | onleave | finished | cancelled - // + + // Fulfills plan, proposal or order + repeated core.Reference based_on = 11 [ + (.google.fhir.proto.valid_reference_type) = "CarePlan", + (.google.fhir.proto.valid_reference_type) = "DeviceRequest", + (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation", + (.google.fhir.proto.valid_reference_type) = "MedicationRequest", + (.google.fhir.proto.valid_reference_type) = "NutritionOrder", + (.google.fhir.proto.valid_reference_type) = "ServiceRequest" + ]; + + // Part of referenced event + repeated core.Reference part_of = 12 [ + (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", + (.google.fhir.proto.valid_reference_type) = "MedicationDispense", + (.google.fhir.proto.valid_reference_type) = "MedicationStatement", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Immunization", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy" + ]; + + // registered | preliminary | final | amended + message StatusCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-status"; + "http://hl7.org/fhir/ValueSet/observation-status"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.EncounterStatusCode.Value value = 1; + core.ObservationStatusCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + StatusCode status = 13 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Classification of type of observation + message CodeableConceptForCategory { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Code defined by a terminology system + repeated core.Coding coding = 3; + + // Plain text representation of the concept + core.String text = 4; + + message CatACoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; + + core.String id = 1; + + repeated core.Extension extension = 2; + + core.String version = 4; + + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = "http://catA.org"; + + // Field 1 reserved to allow enumeration in the future. + reserved 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + + // This CodeSystem is not enumerable, and so is represented as a string. + string value = 4; + } + FixedCode code = 5; - core.String id = 2; + core.String display = 6; - repeated core.Extension extension = 3; + core.Boolean user_selected = 7; + } + repeated CatACoding cat_a = 5; } - StatusCode status = 11 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + repeated CodeableConceptForCategory category = 14; + + // Type of observation (code / type) + message CodeableConceptForCode { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - // List of past encounter statuses - message StatusHistory { // Unique id for inter-element referencing core.String id = 1; // Additional content defined by implementations repeated core.Extension extension = 2; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Code defined by a terminology system + repeated core.Coding coding = 3; - // planned | arrived | triaged | in-progress | onleave | finished | - // cancelled + - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-status"; + // Plain text representation of the concept + core.String text = 4; + + message SysACoding { option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + "http://hl7.org/fhir/StructureDefinition/Coding"; - core.EncounterStatusCode.Value value = 1; + core.String id = 1; - core.String id = 2; + repeated core.Extension extension = 2; - repeated core.Extension extension = 3; - } - StatusCode status = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + core.String version = 4; - // The time that the episode was in the specified status - core.Period period = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - } - repeated StatusHistory status_history = 12; + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = "http://sysa.org"; - // Classification of patient encounter - core.Coding class_value = 13 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - json_name = "class" - ]; + // Field 1 reserved to allow enumeration in the future. + reserved 1; - // List of past encounter classes - message ClassHistory { - // Unique id for inter-element referencing - core.String id = 1; + core.String id = 2; - // Additional content defined by implementations - repeated core.Extension extension = 2; + repeated core.Extension extension = 3; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // This CodeSystem is not enumerable, and so is represented as a string. + string value = 4; + } + FixedCode code = 5; - // inpatient | outpatient | ambulatory | emergency + - core.Coding class_value = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - json_name = "class" - ]; + core.String display = 6; - // The time that the episode was in the specified class - core.Period period = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - } - repeated ClassHistory class_history = 14; + core.Boolean user_selected = 7; + } + SysACoding sys_a = 5; - // Specific type of encounter - repeated core.CodeableConcept type = 15; + message SysBCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - // Specific type of service - core.CodeableConcept service_type = 16; + core.String id = 1; - // Indicates the urgency of the encounter - message CodeableConceptForPriority { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + repeated core.Extension extension = 2; - // Unique id for inter-element referencing - core.String id = 1; + core.String version = 4; - // Additional content defined by implementations - repeated core.Extension extension = 2; + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = "http://sysb.org"; - // Code defined by a terminology system - repeated core.Coding coding = 3; + // Field 1 reserved to allow enumeration in the future. + reserved 1; - // Plain text representation of the concept - core.String text = 4; + core.String id = 2; - message ActCoding { + repeated core.Extension extension = 3; + + // This CodeSystem is not enumerable, and so is represented as a string. + string value = 4; + } + FixedCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + repeated SysBCoding sys_b = 6; + + core.CodingWithFixedCode sys_c = 7 [ + (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysc.org", + (.google.fhir.proto.fhir_inlined_coding_code) = "8472" + ]; + + core.CodingWithFixedCode sys_d = 8 [ + (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysd.org", + (.google.fhir.proto.fhir_inlined_coding_code) = "8675329" + ]; + + message ColorCoding { option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Coding"; @@ -2477,30 +2362,9 @@ message TestEncounter { option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; option (.google.fhir.proto.fhir_fixed_system) = - "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; - - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; + "http://hl7.org/fhir/metric-color"; - INVALID_UNINITIALIZED = 0; - A = 1 [(.google.fhir.proto.fhir_original_code) = "A"]; - CR = 2 [(.google.fhir.proto.fhir_original_code) = "CR"]; - CS = 3 [(.google.fhir.proto.fhir_original_code) = "CS"]; - CSP = 4 [(.google.fhir.proto.fhir_original_code) = "CSP"]; - CSR = 5 [(.google.fhir.proto.fhir_original_code) = "CSR"]; - EL = 6 [(.google.fhir.proto.fhir_original_code) = "EL"]; - EM = 7 [(.google.fhir.proto.fhir_original_code) = "EM"]; - P = 8 [(.google.fhir.proto.fhir_original_code) = "P"]; - PRN = 9 [(.google.fhir.proto.fhir_original_code) = "PRN"]; - R = 10 [(.google.fhir.proto.fhir_original_code) = "R"]; - RR = 11 [(.google.fhir.proto.fhir_original_code) = "RR"]; - S = 12 [(.google.fhir.proto.fhir_original_code) = "S"]; - T = 13 [(.google.fhir.proto.fhir_original_code) = "T"]; - UD = 14 [(.google.fhir.proto.fhir_original_code) = "UD"]; - UR = 15 [(.google.fhir.proto.fhir_original_code) = "UR"]; - } - Value value = 1; + core.DeviceMetricColorCode.Value value = 1; core.String id = 2; @@ -2510,28 +2374,105 @@ message TestEncounter { core.String display = 6; - core.Boolean user_selected = 7; - } - ActCoding act = 5; - } - CodeableConceptForPriority priority = 17; + core.Boolean user_selected = 7; + } + ColorCoding color = 9; + } + CodeableConceptForCode code = 15 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Who and/or what the observation is about + core.Reference subject = 16 [ + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "Group", + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "Location" + ]; + + // What the observation is about, when it is not about the subject of record + repeated core.Reference focus = 17 + [(.google.fhir.proto.valid_reference_type) = "Resource"]; + + // Healthcare event during which this observation is made + core.Reference encounter = 18 + [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + + // Clinically relevant time/time-period for observation + message EffectiveX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.DateTime date_time = 1; + core.Period period = 2; + core.Timing timing = 3; + core.Instant instant = 4; + } + } + EffectiveX effective = 19; + + // Date/Time this version was made available + core.Instant issued = 20; + + // Who is responsible for the observation + repeated core.Reference performer = 21 [ + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole", + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "CareTeam", + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" + ]; + + // Actual result + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; + + oneof choice { + core.Quantity quantity = 1; + core.CodeableConcept codeable_concept = 2; + core.String string_value = 3 [json_name = "string"]; + core.Boolean boolean = 4; + core.Integer integer = 5; + core.Range range = 6; + core.Ratio ratio = 7; + core.SampledData sampled_data = 8; + core.Time time = 9; + core.DateTime date_time = 10; + core.Period period = 11; + } + } + ValueX value = 22; + + // Why the result is missing + core.CodeableConcept data_absent_reason = 23; + + // High, low, normal, etc. + repeated core.CodeableConcept interpretation = 24; + + // Comments about the observation + repeated core.Annotation note = 25; + + // Observed body part + core.CodeableConcept body_site = 26; + + // How it was done + core.CodeableConcept method = 27; + + // Specimen used for this observation + core.Reference specimen = 28 + [(.google.fhir.proto.valid_reference_type) = "Specimen"]; - // The patient or group present at the encounter - core.Reference subject = 18 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Group" + // (Measurement) Device + core.Reference device = 29 [ + (.google.fhir.proto.valid_reference_type) = "Device", + (.google.fhir.proto.valid_reference_type) = "DeviceMetric" ]; - // Episode(s) of care that this encounter should be recorded against - repeated core.Reference episode_of_care = 19 - [(.google.fhir.proto.valid_reference_type) = "EpisodeOfCare"]; - - // The ServiceRequest that initiated this encounter - repeated core.Reference based_on = 20 - [(.google.fhir.proto.valid_reference_type) = "ServiceRequest"]; + // Provides guide for interpretation + message ReferenceRange { + option (.google.fhir.proto.fhir_path_message_constraint) = + "low.exists() or high.exists() or text.exists()"; - // List of participants involved in the encounter - message Participant { // Unique id for inter-element referencing core.String id = 1; @@ -2541,44 +2482,45 @@ message TestEncounter { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Role of participant in encounter - repeated core.CodeableConcept type = 4; + // Low Range, if relevant + core.SimpleQuantity low = 4; - // Period of time during the encounter that the participant participated - core.Period period = 5; + // High Range, if relevant + core.SimpleQuantity high = 5; - // Persons involved in the encounter other than the patient - core.Reference individual = 6 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; - } - repeated Participant participant = 21; + // Reference range qualifier + core.CodeableConcept type = 6; - // The appointment that scheduled this encounter - repeated core.Reference appointment = 22 - [(.google.fhir.proto.valid_reference_type) = "Appointment"]; + // Reference range population + repeated core.CodeableConcept applies_to = 7; - // The start and end time of the encounter - core.Period period = 23; + // Applicable age range, if relevant + core.Range age = 8; - // Quantity of time the encounter lasted (less time absent) - core.Duration length = 24; + // Text based reference range in an observation + core.String text = 9; + } + repeated ReferenceRange reference_range = 30; - // Coded reason the encounter takes place - repeated core.CodeableConcept reason_code = 25; + // Related resource that belongs to the Observation group + repeated core.Reference has_member = 31 [ + (.google.fhir.proto.valid_reference_type) = "Observation", + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", + (.google.fhir.proto.valid_reference_type) = "MolecularSequence" + ]; - // Reason the encounter takes place (reference) - repeated core.Reference reason_reference = 26 [ - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Procedure", + // Related measurements the observation is made from + repeated core.Reference derived_from = 32 [ + (.google.fhir.proto.valid_reference_type) = "DocumentReference", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy", + (.google.fhir.proto.valid_reference_type) = "Media", + (.google.fhir.proto.valid_reference_type) = "QuestionnaireResponse", (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" + (.google.fhir.proto.valid_reference_type) = "MolecularSequence" ]; - // The list of diagnosis relevant to this encounter - message Diagnosis { + // Component results + message Component { // Unique id for inter-element referencing core.String id = 1; @@ -2588,134 +2530,116 @@ message TestEncounter { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // The diagnosis or procedure relevant to the encounter - core.Reference condition = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Procedure" - ]; - - // Role that this diagnosis has within the encounter (e.g. admission, - // billing, discharge …) - core.CodeableConcept use = 5; - - // Ranking of the diagnosis (for each role type) - core.PositiveInt rank = 6; - } - repeated Diagnosis diagnosis = 27; - - // The set of accounts that may be used for billing for this Encounter - repeated core.Reference account = 28 - [(.google.fhir.proto.valid_reference_type) = "Account"]; - - // Details about the admission to a healthcare service - message Hospitalization { - // Unique id for inter-element referencing - core.String id = 1; + // Type of component observation (code / type) + core.CodeableConcept code = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Additional content defined by implementations - repeated core.Extension extension = 2; + // Actual component result + message ValueX { + option (.google.fhir.proto.is_choice_type) = true; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + oneof choice { + core.Quantity quantity = 1; + core.CodeableConcept codeable_concept = 2; + core.String string_value = 3 [json_name = "string"]; + core.Boolean boolean = 4; + core.Integer integer = 5; + core.Range range = 6; + core.Ratio ratio = 7; + core.SampledData sampled_data = 8; + core.Time time = 9; + core.DateTime date_time = 10; + core.Period period = 11; + } + } + ValueX value = 5; - // Pre-admission identifier - core.Identifier pre_admission_identifier = 4; + // Why the component result is missing + core.CodeableConcept data_absent_reason = 6; - // The location/organization from which the patient came before admission - core.Reference origin = 5 [ - (.google.fhir.proto.valid_reference_type) = "Location", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; + // High, low, normal, etc. + message CodeableConceptForInterpretation { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - // From where patient was admitted (physician referral, transfer) - core.CodeableConcept admit_source = 6; + // Unique id for inter-element referencing + core.String id = 1; - // The type of hospital re-admission that has occurred (if any). If the - // value is absent, then this is not identified as a readmission - core.CodeableConcept re_admission = 7; + // Additional content defined by implementations + repeated core.Extension extension = 2; - // Diet preferences reported by the patient - repeated core.CodeableConcept diet_preference = 8; + // Code defined by a terminology system + repeated core.Coding coding = 3; - // Special courtesies (VIP, board member) - repeated core.CodeableConcept special_courtesy = 9; + // Plain text representation of the concept + core.String text = 4; - // Wheelchair, translator, stretcher, etc. - repeated core.CodeableConcept special_arrangement = 10; + message OnNestedConceptCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - // Location/organization to which the patient is discharged - core.Reference destination = 11 [ - (.google.fhir.proto.valid_reference_type) = "Location", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; + core.String id = 1; - // Category or kind of location after discharge - core.CodeableConcept discharge_disposition = 12; - } - Hospitalization hospitalization = 29; + repeated core.Extension extension = 2; - // List of locations where the patient has been - message Location { - // Unique id for inter-element referencing - core.String id = 1; + core.String version = 4; - // Additional content defined by implementations - repeated core.Extension extension = 2; + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = + "http://nestedconcept.org"; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + // Field 1 reserved to allow enumeration in the future. + reserved 1; - // Location the encounter takes place - core.Reference location = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Location" - ]; + core.String id = 2; - // planned | active | reserved | completed - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-location-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + repeated core.Extension extension = 3; - core.EncounterLocationStatusCode.Value value = 1; + // This CodeSystem is not enumerable, and so is represented as a + // string. + string value = 4; + } + FixedCode code = 5; - core.String id = 2; + core.String display = 6; - repeated core.Extension extension = 3; + core.Boolean user_selected = 7; + } + OnNestedConceptCoding on_nested_concept = 5; } - StatusCode status = 5; + repeated CodeableConceptForInterpretation interpretation = 7; - // The physical type of the location (usually the level in the location - // hierachy - bed room ward etc.) - core.CodeableConcept physical_type = 6; + // Provides guide for interpretation of component result + repeated ReferenceRange reference_range = 8; - // Time period during which the patient was present at the location - core.Period period = 7; + // Optional Extensions Element + core.Decimal on_nested = 9 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; } - repeated Location location = 30; - - // The organization (facility) responsible for this encounter - core.Reference service_provider = 31 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + repeated Component component = 33; - // Another Encounter this encounter is part of - core.Reference part_of = 32 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + // Optional Extensions Element + ComplexExt my_complex_extension = 34 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/ComplexExt"]; } -// Auto-generated from StructureDefinition for ProfiledDatatypesObservation. +// Auto-generated from StructureDefinition for TestObservationLvl2. // Measurements and simple assertions. -// See http://test/url/base/StructureDefinition/ProfiledDatatypesObservation -message ProfiledDatatypesObservation { +// See http://test/url/base/StructureDefinition/TestObservationLvl2 +message TestObservationLvl2 { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; + option (.google.fhir.proto.fhir_profile_base) = + "http://test/url/base/StructureDefinition/TestObservation"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Observation"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/ProfiledDatatypesObservation"; + "http://test/url/base/StructureDefinition/TestObservationLvl2"; option (.google.fhir.proto.fhir_path_message_constraint) = "dataAbsentReason.empty() or value.empty()"; option (.google.fhir.proto.fhir_path_message_constraint) = @@ -2940,41 +2864,7 @@ message ProfiledDatatypesObservation { core.Id id = 1; // Metadata about the resource - message ProfiledMeta { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Meta"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Version specific identifier - core.Id version_id = 3; - - // When the resource version last changed - core.Instant last_updated = 4; - - // Identifies where the resource comes from - core.Uri source = 5; - - // Profiles this resource claims to conform to - repeated core.Canonical profile = 6; - - // Security Labels applied to this resource - repeated core.Coding security = 7; - - // Tags applied to this resource - repeated core.Coding tag = 8; - - // an example extension on a meta type. - repeated core.Decimal extension_on_meta = 9 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; - } - ProfiledMeta meta = 2; + core.Meta meta = 2; // A set of rules under which this content was created core.Uri implicit_rules = 3; @@ -3011,38 +2901,253 @@ message ProfiledDatatypesObservation { (.google.fhir.proto.valid_reference_type) = "ServiceRequest" ]; - // Part of referenced event - repeated core.Reference part_of = 12 [ - (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", - (.google.fhir.proto.valid_reference_type) = "MedicationDispense", - (.google.fhir.proto.valid_reference_type) = "MedicationStatement", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Immunization", - (.google.fhir.proto.valid_reference_type) = "ImagingStudy" - ]; + // Part of referenced event + repeated core.Reference part_of = 12 [ + (.google.fhir.proto.valid_reference_type) = "MedicationAdministration", + (.google.fhir.proto.valid_reference_type) = "MedicationDispense", + (.google.fhir.proto.valid_reference_type) = "MedicationStatement", + (.google.fhir.proto.valid_reference_type) = "Procedure", + (.google.fhir.proto.valid_reference_type) = "Immunization", + (.google.fhir.proto.valid_reference_type) = "ImagingStudy" + ]; + + // registered | preliminary | final | amended + + message StatusCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/observation-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + + core.ObservationStatusCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + StatusCode status = 13 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Classification of type of observation + message CodeableConceptForCategory { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Code defined by a terminology system + repeated core.Coding coding = 3; + + // Plain text representation of the concept + core.String text = 4; + + message CatACoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; + + core.String id = 1; + + repeated core.Extension extension = 2; + + core.String version = 4; + + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = "http://catA.org"; + + // Field 1 reserved to allow enumeration in the future. + reserved 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + + // This CodeSystem is not enumerable, and so is represented as a string. + string value = 4; + } + FixedCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + repeated CatACoding cat_a = 5; + } + repeated CodeableConceptForCategory category = 14; + + // Type of observation (code / type) + message CodeableConceptForCode { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Code defined by a terminology system + repeated core.Coding coding = 3; + + // Plain text representation of the concept + core.String text = 4; + + message SysACoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; + + core.String id = 1; + + repeated core.Extension extension = 2; + + core.String version = 4; + + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = "http://sysa.org"; + + // Field 1 reserved to allow enumeration in the future. + reserved 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + + // This CodeSystem is not enumerable, and so is represented as a string. + string value = 4; + } + FixedCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + SysACoding sys_a = 5; + + message SysBCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; + + core.String id = 1; + + repeated core.Extension extension = 2; + + core.String version = 4; + + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = "http://sysb.org"; + + // Field 1 reserved to allow enumeration in the future. + reserved 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + + // This CodeSystem is not enumerable, and so is represented as a string. + string value = 4; + } + FixedCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + repeated SysBCoding sys_b = 6; + + core.CodingWithFixedCode sys_c = 7 [ + (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysc.org", + (.google.fhir.proto.fhir_inlined_coding_code) = "8472" + ]; + + core.CodingWithFixedCode sys_d = 8 [ + (.google.fhir.proto.fhir_inlined_coding_system) = "http://sysd.org", + (.google.fhir.proto.fhir_inlined_coding_code) = "8675329" + ]; + + message ColorCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; + + core.String id = 1; + + repeated core.Extension extension = 2; + + core.String version = 4; + + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = + "http://hl7.org/fhir/metric-color"; + + core.DeviceMetricColorCode.Value value = 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + } + FixedCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + ColorCoding color = 9; + + message NewCodeOnProfiledCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; + + core.String id = 1; + + repeated core.Extension extension = 2; - // registered | preliminary | final | amended + - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/observation-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + core.String version = 4; - core.ObservationStatusCode.Value value = 1; + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = + "http://newonprofiled.org"; - core.String id = 2; + // Field 1 reserved to allow enumeration in the future. + reserved 1; - repeated core.Extension extension = 3; - } - StatusCode status = 13 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + core.String id = 2; - // Classification of type of observation - repeated core.CodeableConcept category = 14; + repeated core.Extension extension = 3; - // Type of observation (code / type) - core.CodeableConcept code = 15 + // This CodeSystem is not enumerable, and so is represented as a string. + string value = 4; + } + FixedCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + NewCodeOnProfiledCoding new_code_on_profiled = 10; + } + CodeableConceptForCode code = 15 [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; // Who and/or what the observation is about @@ -3162,28 +3267,7 @@ message ProfiledDatatypesObservation { core.Range age = 8; // Text based reference range in an observation - message StringForText { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.value_regex) = "[ \\r\\n\\t\\S]+"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/string"; - - // Primitive value for string - string value = 1; - - // xml:id (or equivalent in JSON) - core.String id = 2; - - // Additional content defined by implementations - repeated core.Extension extension = 3; - - // an example extension on a string type. - repeated core.Decimal extension_on_string = 4 - [(.google.fhir.proto.fhir_inlined_extension_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; - } - StringForText text = 9; + core.String text = 9; } repeated ReferenceRange reference_range = 30; @@ -3243,138 +3327,210 @@ message ProfiledDatatypesObservation { core.CodeableConcept data_absent_reason = 6; // High, low, normal, etc. - repeated core.CodeableConcept interpretation = 7; + message CodeableConceptForInterpretation { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; + + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Code defined by a terminology system + repeated core.Coding coding = 3; + + // Plain text representation of the concept + core.String text = 4; + + message OnNestedConceptCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; + + core.String id = 1; + + repeated core.Extension extension = 2; + + core.String version = 4; + + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = + "http://nestedconcept.org"; + + // Field 1 reserved to allow enumeration in the future. + reserved 1; + + core.String id = 2; + + repeated core.Extension extension = 3; + + // This CodeSystem is not enumerable, and so is represented as a + // string. + string value = 4; + } + FixedCode code = 5; + + core.String display = 6; + + core.Boolean user_selected = 7; + } + OnNestedConceptCoding on_nested_concept = 5; + } + repeated CodeableConceptForInterpretation interpretation = 7; // Provides guide for interpretation of component result repeated ReferenceRange reference_range = 8; + + // Optional Extensions Element + core.Decimal on_nested = 9 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; } repeated Component component = 33; + + // Optional Extensions Element + ComplexExt my_complex_extension = 34 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/ComplexExt"]; + + // Optional Extensions Element + core.Decimal new_ext = 35 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"]; } -// Auto-generated from StructureDefinition for -// TestEncounterWithProfiledIdentifier. An interaction during which services are -// provided to the patient. See -// http://test/url/base/StructureDefinition/TestEncounterWithProfiledIdentifier -message TestEncounterWithProfiledIdentifier { +// Auto-generated from StructureDefinition for TestPatient. +// Information about an individual or animal receiving health care services. +// See http://test/url/base/StructureDefinition/TestPatient +message TestPatient { option (.google.fhir.proto.structure_definition_kind) = KIND_RESOURCE; option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Encounter"; + "http://hl7.org/fhir/StructureDefinition/Patient"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/TestEncounterWithProfiledIdentifier"; + "http://test/url/base/StructureDefinition/TestPatient"; option (.google.fhir.proto.search_parameter) = { - name: "account" + name: "Example Search Parameter on an extension" type: REFERENCE - expression: "Encounter.account" + expression: "DocumentReference.extension('http://example.org/fhir/StructureDefinition/participation-agreement')" }; option (.google.fhir.proto.search_parameter) = { - name: "appointment" - type: REFERENCE - expression: "Encounter.appointment" + name: "active" + type: TOKEN + expression: "Patient.active" }; option (.google.fhir.proto.search_parameter) = { - name: "based-on" - type: REFERENCE - expression: "Encounter.basedOn" + name: "address" + type: STRING + expression: "Patient.address | Person.address | Practitioner.address | RelatedPerson.address" }; option (.google.fhir.proto.search_parameter) = { - name: "class" - type: TOKEN - expression: "Encounter.class" + name: "address-city" + type: STRING + expression: "Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city" }; option (.google.fhir.proto.search_parameter) = { - name: "date" - type: DATE - expression: "AllergyIntolerance.recordedDate | CarePlan.period | CareTeam.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.performed | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn" + name: "address-country" + type: STRING + expression: "Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country" }; option (.google.fhir.proto.search_parameter) = { - name: "diagnosis" - type: REFERENCE - expression: "Encounter.diagnosis.condition" + name: "address-postalcode" + type: STRING + expression: "Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode" }; option (.google.fhir.proto.search_parameter) = { - name: "episode-of-care" - type: REFERENCE - expression: "Encounter.episodeOfCare" + name: "address-state" + type: STRING + expression: "Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state" }; option (.google.fhir.proto.search_parameter) = { - name: "identifier" + name: "address-use" type: TOKEN - expression: "AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier" + expression: "Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use" }; option (.google.fhir.proto.search_parameter) = { - name: "length" - type: QUANTITY - expression: "Encounter.length" + name: "birthdate" + type: DATE + expression: "Patient.birthDate | Person.birthDate | RelatedPerson.birthDate" }; option (.google.fhir.proto.search_parameter) = { - name: "location" - type: REFERENCE - expression: "Encounter.location.location" + name: "death-date" + type: DATE + expression: "(Patient.deceased as dateTime)" }; option (.google.fhir.proto.search_parameter) = { - name: "location-period" - type: DATE - expression: "Encounter.location.period" + name: "deceased" + type: TOKEN + expression: "Patient.deceased.exists() and Patient.deceased != false" }; option (.google.fhir.proto.search_parameter) = { - name: "part-of" - type: REFERENCE - expression: "Encounter.partOf" + name: "email" + type: TOKEN + expression: "Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')" }; option (.google.fhir.proto.search_parameter) = { - name: "participant" - type: REFERENCE - expression: "Encounter.participant.individual" + name: "family" + type: STRING + expression: "Patient.name.family | Practitioner.name.family" }; option (.google.fhir.proto.search_parameter) = { - name: "participant-type" + name: "gender" type: TOKEN - expression: "Encounter.participant.type" + expression: "Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender" }; option (.google.fhir.proto.search_parameter) = { - name: "patient" + name: "general-practitioner" type: REFERENCE - expression: "AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient" + expression: "Patient.generalPractitioner" }; option (.google.fhir.proto.search_parameter) = { - name: "practitioner" - type: REFERENCE - expression: "Encounter.participant.individual.where(resolve() is Practitioner)" + name: "given" + type: STRING + expression: "Patient.name.given | Practitioner.name.given" }; option (.google.fhir.proto.search_parameter) = { - name: "reason-code" + name: "identifier" type: TOKEN - expression: "Encounter.reasonCode" + expression: "Patient.identifier" }; option (.google.fhir.proto.search_parameter) = { - name: "reason-reference" - type: REFERENCE - expression: "Encounter.reasonReference" + name: "language" + type: TOKEN + expression: "Patient.communication.language" }; option (.google.fhir.proto.search_parameter) = { - name: "service-provider" + name: "link" type: REFERENCE - expression: "Encounter.serviceProvider" + expression: "Patient.link.other" }; option (.google.fhir.proto.search_parameter) = { - name: "special-arrangement" - type: TOKEN - expression: "Encounter.hospitalization.specialArrangement" + name: "name" + type: STRING + expression: "Patient.name" }; option (.google.fhir.proto.search_parameter) = { - name: "status" + name: "organization" + type: REFERENCE + expression: "Patient.managingOrganization" + }; + option (.google.fhir.proto.search_parameter) = { + name: "phone" type: TOKEN - expression: "Encounter.status" + expression: "Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')" }; option (.google.fhir.proto.search_parameter) = { - name: "subject" - type: REFERENCE - expression: "Encounter.subject" + name: "phonetic" + type: STRING + expression: "Patient.name | Person.name | Practitioner.name | RelatedPerson.name" }; option (.google.fhir.proto.search_parameter) = { - name: "type" + name: "telecom" type: TOKEN - expression: "AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type" + expression: "Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom" }; // Logical id of this artifact @@ -3396,7 +3552,7 @@ message TestEncounterWithProfiledIdentifier { repeated protobuf.Any contained = 6; // Field 7 reserved for strongly-typed ContainedResource for id: - // Encounter.contained + // Patient.contained reserved 7; // Additional content defined by implementations @@ -3405,308 +3561,127 @@ message TestEncounterWithProfiledIdentifier { // Extensions that cannot be ignored repeated core.Extension modifier_extension = 9; - // Identifier(s) by which this encounter is known - message ProfiledIdentifier { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Identifier"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // usual | official | temp | secondary | old (If known) - message UseCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/identifier-use"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - - core.IdentifierUseCode.Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - UseCode use = 3; - - // Description of identifier - message CodeableConceptForType { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Code defined by a terminology system - repeated core.Coding coding = 3; - - // Plain text representation of the concept - core.String text = 4; - - message ActCoding { - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Coding"; - - core.String id = 1; - - repeated core.Extension extension = 2; - - core.String version = 4; - - message FixedCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; - option (.google.fhir.proto.fhir_fixed_system) = - "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; - - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://terminology.hl7.org/CodeSystem/v3-ActPriority"; - - INVALID_UNINITIALIZED = 0; - A = 1 [(.google.fhir.proto.fhir_original_code) = "A"]; - CR = 2 [(.google.fhir.proto.fhir_original_code) = "CR"]; - CS = 3 [(.google.fhir.proto.fhir_original_code) = "CS"]; - CSP = 4 [(.google.fhir.proto.fhir_original_code) = "CSP"]; - CSR = 5 [(.google.fhir.proto.fhir_original_code) = "CSR"]; - EL = 6 [(.google.fhir.proto.fhir_original_code) = "EL"]; - EM = 7 [(.google.fhir.proto.fhir_original_code) = "EM"]; - P = 8 [(.google.fhir.proto.fhir_original_code) = "P"]; - PRN = 9 [(.google.fhir.proto.fhir_original_code) = "PRN"]; - R = 10 [(.google.fhir.proto.fhir_original_code) = "R"]; - RR = 11 [(.google.fhir.proto.fhir_original_code) = "RR"]; - S = 12 [(.google.fhir.proto.fhir_original_code) = "S"]; - T = 13 [(.google.fhir.proto.fhir_original_code) = "T"]; - UD = 14 [(.google.fhir.proto.fhir_original_code) = "UD"]; - UR = 15 [(.google.fhir.proto.fhir_original_code) = "UR"]; - } - Value value = 1; - - core.String id = 2; - - repeated core.Extension extension = 3; - } - FixedCode code = 5; - - core.String display = 6; - - core.Boolean user_selected = 7; - } - ActCoding act = 5; - } - CodeableConceptForType type = 4; - - // The namespace for the identifier value - core.Uri system = 5; + // An identifier for this patient + repeated core.Identifier identifier = 10; - // The value that is unique - core.String value = 6; + // Whether this patient's record is in active use + core.Boolean active = 11; - // Time period when id is/was valid for use - core.Period period = 7; + // A name associated with the patient + core.HumanName name = 12 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - // Organization that issued id (may be just text) - core.Reference assigner = 8 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; - } - repeated ProfiledIdentifier identifier = 10; + // A contact detail for the individual + repeated core.ContactPoint telecom = 13; - // planned | arrived | triaged | in-progress | onleave | finished | cancelled - // + - message StatusCode { + // male | female | other | unknown + message GenderCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-status"; + "http://hl7.org/fhir/ValueSet/administrative-gender"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.EncounterStatusCode.Value value = 1; + core.AdministrativeGenderCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 11 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // List of past encounter statuses - message StatusHistory { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // planned | arrived | triaged | in-progress | onleave | finished | - // cancelled + - message StatusCode { - option (.google.fhir.proto.structure_definition_kind) = - KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + GenderCode gender = 14; - core.EncounterStatusCode.Value value = 1; + // The date of birth for the individual + core.Date birth_date = 15; - core.String id = 2; + // Indicates if the individual is deceased or not + message DeceasedX { + option (.google.fhir.proto.is_choice_type) = true; - repeated core.Extension extension = 3; + oneof choice { + core.Boolean boolean = 1; + core.DateTime date_time = 2; } - StatusCode status = 4 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - - // The time that the episode was in the specified status - core.Period period = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; - } - repeated StatusHistory status_history = 12; - - // Classification of patient encounter - core.Coding class_value = 13 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - json_name = "class" - ]; - - // List of past encounter classes - message ClassHistory { - // Unique id for inter-element referencing - core.String id = 1; - - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // inpatient | outpatient | ambulatory | emergency + - core.Coding class_value = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - json_name = "class" - ]; - - // The time that the episode was in the specified class - core.Period period = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } - repeated ClassHistory class_history = 14; - - // Specific type of encounter - repeated core.CodeableConcept type = 15; - - // Specific type of service - core.CodeableConcept service_type = 16; - - // Indicates the urgency of the encounter - core.CodeableConcept priority = 17; + DeceasedX deceased = 16; - // The patient or group present at the encounter - core.Reference subject = 18 [ - (.google.fhir.proto.valid_reference_type) = "Patient", - (.google.fhir.proto.valid_reference_type) = "Group" + // An address for the individual + repeated core.Address address = 17 [ + (.google.fhir.proto.fhir_path_constraint) = + "city.exists() implies state.exists()", + (.google.fhir.proto.fhir_path_warning_constraint) = + "postalCode.length() >= 5" ]; - // Episode(s) of care that this encounter should be recorded against - repeated core.Reference episode_of_care = 19 - [(.google.fhir.proto.valid_reference_type) = "EpisodeOfCare"]; - - // The ServiceRequest that initiated this encounter - repeated core.Reference based_on = 20 - [(.google.fhir.proto.valid_reference_type) = "ServiceRequest"]; + // Marital (civil) status of a patient + message CodeableConceptForMaritalStatus { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/CodeableConcept"; - // List of participants involved in the encounter - message Participant { // Unique id for inter-element referencing core.String id = 1; // Additional content defined by implementations repeated core.Extension extension = 2; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; - - // Role of participant in encounter - repeated core.CodeableConcept type = 4; + // Code defined by a terminology system + repeated core.Coding coding = 3; - // Period of time during the encounter that the participant participated - core.Period period = 5; + // Plain text representation of the concept + core.String text = 4; - // Persons involved in the encounter other than the patient - core.Reference individual = 6 [ - (.google.fhir.proto.valid_reference_type) = "Practitioner", - (.google.fhir.proto.valid_reference_type) = "PractitionerRole", - (.google.fhir.proto.valid_reference_type) = "RelatedPerson" - ]; - } - repeated Participant participant = 21; + message ColorCoding { + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Coding"; - // The appointment that scheduled this encounter - repeated core.Reference appointment = 22 - [(.google.fhir.proto.valid_reference_type) = "Appointment"]; + core.String id = 1; - // The start and end time of the encounter - core.Period period = 23; + repeated core.Extension extension = 2; - // Quantity of time the encounter lasted (less time absent) - core.Duration length = 24; + core.String version = 4; - // Coded reason the encounter takes place - repeated core.CodeableConcept reason_code = 25; + message FixedCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; + option (.google.fhir.proto.fhir_fixed_system) = + "http://hl7.org/fhir/metric-color"; - // Reason the encounter takes place (reference) - repeated core.Reference reason_reference = 26 [ - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Procedure", - (.google.fhir.proto.valid_reference_type) = "Observation", - (.google.fhir.proto.valid_reference_type) = "ImmunizationRecommendation" - ]; + core.DeviceMetricColorCode.Value value = 1; - // The list of diagnosis relevant to this encounter - message Diagnosis { - // Unique id for inter-element referencing - core.String id = 1; + core.String id = 2; - // Additional content defined by implementations - repeated core.Extension extension = 2; + repeated core.Extension extension = 3; + } + FixedCode code = 5; - // Extensions that cannot be ignored even if unrecognized - repeated core.Extension modifier_extension = 3; + core.String display = 6; - // The diagnosis or procedure relevant to the encounter - core.Reference condition = 4 [ - (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Condition", - (.google.fhir.proto.valid_reference_type) = "Procedure" - ]; + core.Boolean user_selected = 7; + } + ColorCoding color = 5; + } + CodeableConceptForMaritalStatus marital_status = 18; - // Role that this diagnosis has within the encounter (e.g. admission, - // billing, discharge …) - core.CodeableConcept use = 5; + // Whether patient is part of a multiple birth + message MultipleBirthX { + option (.google.fhir.proto.is_choice_type) = true; - // Ranking of the diagnosis (for each role type) - core.PositiveInt rank = 6; + oneof choice { + core.Boolean boolean = 1; + core.Integer integer = 2; + } } - repeated Diagnosis diagnosis = 27; + MultipleBirthX multiple_birth = 19; - // The set of accounts that may be used for billing for this Encounter - repeated core.Reference account = 28 - [(.google.fhir.proto.valid_reference_type) = "Account"]; + // Image of the patient + repeated core.Attachment photo = 20; + + // A contact party (e.g. guardian, partner, friend) for the patient + message Contact { + option (.google.fhir.proto.fhir_path_message_constraint) = + "name.exists() or telecom.exists() or address.exists() or organization.exists()"; - // Details about the admission to a healthcare service - message Hospitalization { // Unique id for inter-element referencing core.String id = 1; @@ -3716,44 +3691,48 @@ message TestEncounterWithProfiledIdentifier { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Pre-admission identifier - core.Identifier pre_admission_identifier = 4; + // The kind of relationship + repeated core.CodeableConcept relationship = 4; - // The location/organization from which the patient came before admission - core.Reference origin = 5 [ - (.google.fhir.proto.valid_reference_type) = "Location", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; + // A name associated with the contact person + core.HumanName name = 5; - // From where patient was admitted (physician referral, transfer) - core.CodeableConcept admit_source = 6; + // A contact detail for the person + repeated core.ContactPoint telecom = 6; - // The type of hospital re-admission that has occurred (if any). If the - // value is absent, then this is not identified as a readmission - core.CodeableConcept re_admission = 7; + // Address for the contact person + core.Address address = 7; - // Diet preferences reported by the patient - repeated core.CodeableConcept diet_preference = 8; + // male | female | other | unknown + message GenderCode { + option (.google.fhir.proto.structure_definition_kind) = + KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/administrative-gender"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // Special courtesies (VIP, board member) - repeated core.CodeableConcept special_courtesy = 9; + core.AdministrativeGenderCode.Value value = 1; - // Wheelchair, translator, stretcher, etc. - repeated core.CodeableConcept special_arrangement = 10; + core.String id = 2; - // Location/organization to which the patient is discharged - core.Reference destination = 11 [ - (.google.fhir.proto.valid_reference_type) = "Location", - (.google.fhir.proto.valid_reference_type) = "Organization" - ]; + repeated core.Extension extension = 3; + } + GenderCode gender = 8; - // Category or kind of location after discharge - core.CodeableConcept discharge_disposition = 12; + // Organization that is associated with the contact + core.Reference organization = 9 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // The period during which this contact person or organization is valid to + // be contacted relating to this patient + core.Period period = 10; } - Hospitalization hospitalization = 29; + repeated Contact contact = 21; - // List of locations where the patient has been - message Location { + // A language which may be used to communicate with the patient about his or + // her health + message Communication { // Unique id for inter-element referencing core.String id = 1; @@ -3763,45 +3742,81 @@ message TestEncounterWithProfiledIdentifier { // Extensions that cannot be ignored even if unrecognized repeated core.Extension modifier_extension = 3; - // Location the encounter takes place - core.Reference location = 4 [ + // The language which can be used to communicate with the patient about his + // or her health + core.CodeableConcept language = 4 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + + // Language preference indicator + core.Boolean preferred = 5; + } + repeated Communication communication = 22; + + // Patient's nominated primary care provider + repeated core.Reference general_practitioner = 23 [ + (.google.fhir.proto.valid_reference_type) = "Organization", + (.google.fhir.proto.valid_reference_type) = "Practitioner", + (.google.fhir.proto.valid_reference_type) = "PractitionerRole" + ]; + + // Organization that is the custodian of the patient record + core.Reference managing_organization = 24 + [(.google.fhir.proto.valid_reference_type) = "Organization"]; + + // Link to another patient resource that concerns the same actual person + message Link { + // Unique id for inter-element referencing + core.String id = 1; + + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Extensions that cannot be ignored even if unrecognized + repeated core.Extension modifier_extension = 3; + + // The other patient or related person resource that the link refers to + core.Reference other = 4 [ (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, - (.google.fhir.proto.valid_reference_type) = "Location" + (.google.fhir.proto.valid_reference_type) = "Patient", + (.google.fhir.proto.valid_reference_type) = "RelatedPerson" ]; - // planned | active | reserved | completed - message StatusCode { + // replaced-by | replaces | refer | seealso + message TypeCode { option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/encounter-location-status"; + "http://hl7.org/fhir/ValueSet/link-type"; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/code"; - core.EncounterLocationStatusCode.Value value = 1; + core.LinkTypeCode.Value value = 1; core.String id = 2; repeated core.Extension extension = 3; } - StatusCode status = 5; - - // The physical type of the location (usually the level in the location - // hierachy - bed room ward etc.) - core.CodeableConcept physical_type = 6; - - // Time period during which the patient was present at the location - core.Period period = 7; + TypeCode type = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } - repeated Location location = 30; + repeated Link link = 25; - // The organization (facility) responsible for this encounter - core.Reference service_provider = 31 - [(.google.fhir.proto.valid_reference_type) = "Organization"]; + // Decimal Extension + core.Decimal dec_ext = 26 [ + (.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR, + (.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt" + ]; - // Another Encounter this encounter is part of - core.Reference part_of = 32 - [(.google.fhir.proto.valid_reference_type) = "Encounter"]; + // Optional Extensions Element + FavoriteBrewery.ValueCode favorite_brewery = 27 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/FavoriteBrewery"]; + + // Optional Extensions Element + FavoriteCalifornian.ValueCode favorite_californian = 28 + [(.google.fhir.proto.fhir_inlined_extension_url) = + "http://test/url/base/StructureDefinition/FavoriteCalifornian"]; } // Auto-generated from StructureDefinition for @@ -4156,18 +4171,3 @@ message TestPatientWithWarningAndErrorFhirpath { } repeated Link link = 25; } - -message ContainedResource { - oneof oneof_resource { - Bundle bundle = 12; - TestPatient test_patient = 147; - TestObservation test_observation = 148; - TestObservationLvl2 test_observation_lvl2 = 149; - TestEncounter test_encounter = 150; - ProfiledDatatypesObservation profiled_datatypes_observation = 151; - TestEncounterWithProfiledIdentifier - test_encounter_with_profiled_identifier = 152; - TestPatientWithWarningAndErrorFhirpath - test_patient_with_warning_and_error_fhirpath = 153; - } -} diff --git a/testdata/r4/profiles/test_codes.proto b/testdata/r4/profiles/test_codes.proto index ceca6fa43..273f372ba 100644 --- a/testdata/r4/profiles/test_codes.proto +++ b/testdata/r4/profiles/test_codes.proto @@ -21,34 +21,6 @@ import "proto/google/fhir/proto/annotations.proto"; option java_multiple_files = true; option java_package = "com.google.fhir.r4.testing"; -// The brewery of origin. -// See http://test/url/base/Brewery -message BreweryCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/Brewery"; - - INVALID_UNINITIALIZED = 0; - SANTE_ADAIRIUS = 1; - TREEHOUSE = 2; - RUSSIAN_RIVER = 3; - CANTILLON = 4; - } -} - -// NFL Football Teams -// See http://test/url/base/FootballTeams -message FootballTeamsCode { - enum Value { - option (.google.fhir.proto.fhir_code_system_url) = - "http://test/url/base/FootballTeams"; - - INVALID_UNINITIALIZED = 0; - NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; - EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; - } -} - // ValueSet for Brewery Code System. // See http://test/url/base/ValueSet/AmericanBreweries message AmericanBreweriesValueSet { @@ -66,6 +38,21 @@ message AmericanBreweriesValueSet { } } +// The brewery of origin. +// See http://test/url/base/Brewery +message BreweryCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/Brewery"; + + INVALID_UNINITIALIZED = 0; + SANTE_ADAIRIUS = 1; + TREEHOUSE = 2; + RUSSIAN_RIVER = 3; + CANTILLON = 4; + } +} + // ValueSet for California breweries. // See http://test/url/base/ValueSet/CaliforniaBreweries message CaliforniaBreweriesValueSet { @@ -101,6 +88,19 @@ message CaliforniansValueSet { } } +// NFL Football Teams +// See http://test/url/base/FootballTeams +message FootballTeamsCode { + enum Value { + option (.google.fhir.proto.fhir_code_system_url) = + "http://test/url/base/FootballTeams"; + + INVALID_UNINITIALIZED = 0; + NINERS = 1 [(.google.fhir.proto.fhir_original_code) = "Niners"]; + EAGLES = 2 [(.google.fhir.proto.fhir_original_code) = "Eagles"]; + } +} + // ValueSet with codes from a CodeSystem that has a defining resource but no // defined codes See http://test/url/base/ValueSet/SomeSnomedCodes message SomeSnomedCodesValueSet { diff --git a/testdata/r4/profiles/test_extensions.json b/testdata/r4/profiles/test_extensions.json index 0468458b2..4a85984a7 100755 --- a/testdata/r4/profiles/test_extensions.json +++ b/testdata/r4/profiles/test_extensions.json @@ -10,7 +10,7 @@ "name": "SimpleDecimalExt", "title": "SimpleDecimalExt", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -305,7 +305,7 @@ "name": "SimpleCodeableConceptExtension", "title": "SimpleCodeableConceptExtension", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -614,7 +614,7 @@ "name": "DigitalMediaType", "title": "DigitalMediaType", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -923,7 +923,7 @@ "name": "FavoriteBrewery", "title": "FavoriteBrewery", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -1229,7 +1229,7 @@ "name": "FavoriteCalifornian", "title": "FavoriteCalifornian", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -1535,7 +1535,7 @@ "name": "ComplexExt", "title": "ComplexExt", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -3201,7 +3201,7 @@ "name": "SingleValueComplexExtension", "title": "SingleValueComplexExtension", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { @@ -3910,7 +3910,7 @@ "name": "SingleValueRepeatedComplexExtension", "title": "SingleValueRepeatedComplexExtension", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "contact": [ { diff --git a/testdata/r4/profiles/test_extensions.proto b/testdata/r4/profiles/test_extensions.proto index bdf3f2b74..fd6431c34 100644 --- a/testdata/r4/profiles/test_extensions.proto +++ b/testdata/r4/profiles/test_extensions.proto @@ -25,54 +25,50 @@ option java_multiple_files = true; option java_package = "com.google.fhir.r4.testing"; option (.google.fhir.proto.fhir_version) = R4; -// Auto-generated from StructureDefinition for SimpleDecimalExt. -// This is the A-Extension. -// See http://test/url/base/StructureDefinition/SimpleDecimalExt -message SimpleDecimalExt { +// Auto-generated from StructureDefinition for ComplexExt. +// complex extension. +// See http://test/url/base/StructureDefinition/ComplexExt +message ComplexExt { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleDecimalExt"; + "http://test/url/base/StructureDefinition/ComplexExt"; // Unique id for inter-element referencing core.String id = 1; - // Additional content defined by implementations - repeated core.Extension extension = 2; - - // Value of extension - core.Decimal value_decimal = 3; -} + // simple subfield + core.String simple_subfield = 4; -// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. -// SimpleCodeableConcept Extension. -// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension -message SimpleCodeableConceptExtension { - option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/Extension"; - option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; + // complex subfield + message ComplexSubfield { + // Unique id for inter-element referencing + core.String id = 1; - // Unique id for inter-element referencing - core.String id = 1; + // Extension.extension.extension not present on profile. + reserved 2; - // Value of extension - message ValueCode { - option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; - option (.google.fhir.proto.fhir_valueset_url) = - "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; - option (.google.fhir.proto.fhir_profile_base) = - "http://hl7.org/fhir/StructureDefinition/code"; + // Extension.extension.value[x] not present on profile. + reserved 3; - core.CarePlanActivityStatusCode.Value value = 1; + // choice type + message SimpleSubSubFieldAX { + option (.google.fhir.proto.is_choice_type) = true; - core.String id = 2; + oneof choice { + core.String string_value = 1 [json_name = "string"]; + core.Decimal decimal = 2; + core.Boolean boolean = 3; + } + } + SimpleSubSubFieldAX simple_sub_sub_field_a = 4; - repeated core.Extension extension = 3; + // simple sub sub field b + repeated core.UnsignedInt simple_sub_sub_field_b = 5; } - ValueCode value_code = 3; + ComplexSubfield complex_subfield = 5 + [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; } // Auto-generated from StructureDefinition for DigitalMediaType. @@ -177,50 +173,54 @@ message FavoriteCalifornian { ValueCode value_code = 3; } -// Auto-generated from StructureDefinition for ComplexExt. -// complex extension. -// See http://test/url/base/StructureDefinition/ComplexExt -message ComplexExt { +// Auto-generated from StructureDefinition for SimpleCodeableConceptExtension. +// SimpleCodeableConcept Extension. +// See http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension +message SimpleCodeableConceptExtension { option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; option (.google.fhir.proto.fhir_profile_base) = "http://hl7.org/fhir/StructureDefinition/Extension"; option (.google.fhir.proto.fhir_structure_definition_url) = - "http://test/url/base/StructureDefinition/ComplexExt"; + "http://test/url/base/StructureDefinition/SimpleCodeableConceptExtension"; // Unique id for inter-element referencing core.String id = 1; - // simple subfield - core.String simple_subfield = 4; + // Value of extension + message ValueCode { + option (.google.fhir.proto.structure_definition_kind) = KIND_PRIMITIVE_TYPE; + option (.google.fhir.proto.fhir_valueset_url) = + "http://hl7.org/fhir/ValueSet/care-plan-activity-status"; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/code"; - // complex subfield - message ComplexSubfield { - // Unique id for inter-element referencing - core.String id = 1; + core.CarePlanActivityStatusCode.Value value = 1; - // Extension.extension.extension not present on profile. - reserved 2; + core.String id = 2; - // Extension.extension.value[x] not present on profile. - reserved 3; + repeated core.Extension extension = 3; + } + ValueCode value_code = 3; +} - // choice type - message SimpleSubSubFieldAX { - option (.google.fhir.proto.is_choice_type) = true; +// Auto-generated from StructureDefinition for SimpleDecimalExt. +// This is the A-Extension. +// See http://test/url/base/StructureDefinition/SimpleDecimalExt +message SimpleDecimalExt { + option (.google.fhir.proto.structure_definition_kind) = KIND_COMPLEX_TYPE; + option (.google.fhir.proto.fhir_profile_base) = + "http://hl7.org/fhir/StructureDefinition/Extension"; + option (.google.fhir.proto.fhir_structure_definition_url) = + "http://test/url/base/StructureDefinition/SimpleDecimalExt"; - oneof choice { - core.String string_value = 1 [json_name = "string"]; - core.Decimal decimal = 2; - core.Boolean boolean = 3; - } - } - SimpleSubSubFieldAX simple_sub_sub_field_a = 4; + // Unique id for inter-element referencing + core.String id = 1; - // simple sub sub field b - repeated core.UnsignedInt simple_sub_sub_field_b = 5; - } - ComplexSubfield complex_subfield = 5 - [(.google.fhir.proto.validation_requirement) = REQUIRED_BY_FHIR]; + // Additional content defined by implementations + repeated core.Extension extension = 2; + + // Value of extension + core.Decimal value_decimal = 3; } // Auto-generated from StructureDefinition for SingleValueComplexExtension. diff --git a/testdata/r4/profiles/test_terminologies.json b/testdata/r4/profiles/test_terminologies.json index 96ac5e5e9..b073d578f 100755 --- a/testdata/r4/profiles/test_terminologies.json +++ b/testdata/r4/profiles/test_terminologies.json @@ -10,7 +10,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "The brewery of origin.", "content": "complete", @@ -49,7 +49,7 @@ "name": "FootballTeams", "title": "FootballTeams", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "NFL Football Teams", "content": "complete", @@ -78,7 +78,7 @@ "name": "Brewery", "title": "Brewery", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -98,7 +98,7 @@ "name": "CaliforniaBreweries", "title": "CaliforniaBreweries", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet for California breweries.", "compose": { @@ -126,7 +126,7 @@ "name": "AmericanBreweries", "title": "AmericanBreweries", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet for Brewery Code System.", "compose": { @@ -156,7 +156,7 @@ "name": "Californians", "title": "Californians", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "California businesses", "compose": { @@ -192,7 +192,7 @@ "name": "SomeSnomedCodes", "title": "SomeSnomedCodes", "status": "draft", - "date": "2021-10-19", + "date": "2022-08-03", "publisher": "Testington Inc.", "description": "ValueSet with codes from a CodeSystem that has a defining resource but no defined codes", "compose": {