//    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.core;

import "google/fhir/core/proto/annotations.proto";

option java_multiple_files = true;
option java_package = "com.google.fhir.r4.core";
option go_package = "github.com/google/fhir/go/google/fhir/r4/proto/core/codes_go_proto";

// A list of the base types defined by this version of the FHIR specification -
// types that are defined, but for which only specializations actually are
// created. See http://hl7.org/fhir/abstract-types
message AbstractTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/abstract-types";

    INVALID_UNINITIALIZED = 0;
    TYPE = 1 [(.google.fhir.proto.fhir_original_code) = "Type"];
    ANY = 2 [(.google.fhir.proto.fhir_original_code) = "Any"];
  }
}

// Indicates whether the account is available to be used.
// See http://hl7.org/fhir/account-status
message AccountStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/account-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    INACTIVE = 2;
    ENTERED_IN_ERROR = 3;
    ON_HOLD = 4;
    UNKNOWN = 5;
  }
}

// Defines behavior for an action or a group for how many times that item may be
// repeated. See http://hl7.org/fhir/action-cardinality-behavior
message ActionCardinalityBehaviorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-cardinality-behavior";

    INVALID_UNINITIALIZED = 0;
    SINGLE = 1;
    MULTIPLE = 2;
  }
}

// Defines the kinds of conditions that can appear on actions.
// See http://hl7.org/fhir/action-condition-kind
message ActionConditionKindCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-condition-kind";

    INVALID_UNINITIALIZED = 0;
    APPLICABILITY = 1;
    START = 2;
    STOP = 3;
  }
}

// Defines organization behavior of a group.
// See http://hl7.org/fhir/action-grouping-behavior
message ActionGroupingBehaviorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-grouping-behavior";

    INVALID_UNINITIALIZED = 0;
    VISUAL_GROUP = 1;
    LOGICAL_GROUP = 2;
    SENTENCE_GROUP = 3;
  }
}

// The type of participant for the action.
// See http://hl7.org/fhir/action-participant-type
message ActionParticipantTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-participant-type";

    INVALID_UNINITIALIZED = 0;
    PATIENT = 1;
    PRACTITIONER = 2;
    RELATED_PERSON = 3;
    DEVICE = 4;
  }
}

// Defines selection frequency behavior for an action or group.
// See http://hl7.org/fhir/action-precheck-behavior
message ActionPrecheckBehaviorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-precheck-behavior";

    INVALID_UNINITIALIZED = 0;
    YES = 1;
    NO = 2;
  }
}

// Defines the types of relationships between actions.
// See http://hl7.org/fhir/action-relationship-type
message ActionRelationshipTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-relationship-type";

    INVALID_UNINITIALIZED = 0;
    BEFORE_START = 1;
    BEFORE = 2;
    BEFORE_END = 3;
    CONCURRENT_WITH_START = 4;
    CONCURRENT = 5;
    CONCURRENT_WITH_END = 6;
    AFTER_START = 7;
    AFTER = 8;
    AFTER_END = 9;
  }
}

// Defines expectations around whether an action or action group is required.
// See http://hl7.org/fhir/action-required-behavior
message ActionRequiredBehaviorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-required-behavior";

    INVALID_UNINITIALIZED = 0;
    MUST = 1;
    COULD = 2;
    MUST_UNLESS_DOCUMENTED = 3;
  }
}

// Defines selection behavior of a group.
// See http://hl7.org/fhir/action-selection-behavior
message ActionSelectionBehaviorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/action-selection-behavior";

    INVALID_UNINITIALIZED = 0;
    ANY = 1;
    ALL = 2;
    ALL_OR_NONE = 3;
    EXACTLY_ONE = 4;
    AT_MOST_ONE = 5;
    ONE_OR_MORE = 6;
  }
}

// The type of an address (physical / postal).
// See http://hl7.org/fhir/address-type
message AddressTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/address-type";

    INVALID_UNINITIALIZED = 0;
    POSTAL = 1;
    PHYSICAL = 2;
    BOTH = 3;
  }
}

// The use of an address.
// See http://hl7.org/fhir/address-use
message AddressUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/address-use";

    INVALID_UNINITIALIZED = 0;
    HOME = 1;
    WORK = 2;
    TEMP = 3;
    OLD = 4;
    BILLING = 5;
  }
}

// The gender of a person used for administrative purposes.
// See http://hl7.org/fhir/administrative-gender
message AdministrativeGenderCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/administrative-gender";

    INVALID_UNINITIALIZED = 0;
    MALE = 1;
    FEMALE = 2;
    OTHER = 3;
    UNKNOWN = 4;
  }
}

// Overall nature of the adverse event, e.g. real or potential.
// See http://hl7.org/fhir/adverse-event-actuality
message AdverseEventActualityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/adverse-event-actuality";

    INVALID_UNINITIALIZED = 0;
    ACTUAL = 1;
    POTENTIAL = 2;
  }
}

// TODO (and should this be required?).
// See http://terminology.hl7.org/CodeSystem/adverse-event-outcome
message AdverseEventOutcomeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/adverse-event-outcome";

    INVALID_UNINITIALIZED = 0;
    RESOLVED = 1;
    RECOVERING = 2;
    ONGOING = 3;
    RESOLVED_WITH_SEQUELAE = 4
        [(.google.fhir.proto.fhir_original_code) = "resolvedWithSequelae"];
    FATAL = 5;
    UNKNOWN = 6;
  }
}

// The severity of the adverse event itself, in direct relation to the subject.
// See http://terminology.hl7.org/CodeSystem/adverse-event-severity
message AdverseEventSeverityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/adverse-event-severity";

    INVALID_UNINITIALIZED = 0;
    MILD = 1;
    MODERATE = 2;
    SEVERE = 3;
  }
}

// How resource references can be aggregated.
// See http://hl7.org/fhir/resource-aggregation-mode
message AggregationModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/resource-aggregation-mode";

    INVALID_UNINITIALIZED = 0;
    CONTAINED = 1;
    REFERENCED = 2;
    BUNDLED = 3;
  }
}

// Category of an identified substance associated with allergies or
// intolerances. See http://hl7.org/fhir/allergy-intolerance-category
message AllergyIntoleranceCategoryCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/allergy-intolerance-category";

    INVALID_UNINITIALIZED = 0;
    FOOD = 1;
    MEDICATION = 2;
    ENVIRONMENT = 3;
    BIOLOGIC = 4;
  }
}

// Preferred value set for AllergyIntolerance Clinical Status.
// See http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
message AllergyIntoleranceClinicalStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    INACTIVE = 2;
    RESOLVED = 3;
  }
}

// Estimate of the potential clinical harm, or seriousness, of a reaction to an
// identified substance. See http://hl7.org/fhir/allergy-intolerance-criticality
message AllergyIntoleranceCriticalityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/allergy-intolerance-criticality";

    INVALID_UNINITIALIZED = 0;
    LOW = 1;
    HIGH = 2;
    UNABLE_TO_ASSESS = 3;
  }
}

// Clinical assessment of the severity of a reaction event as a whole,
// potentially considering multiple different manifestations. See
// http://hl7.org/fhir/reaction-event-severity
message AllergyIntoleranceSeverityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/reaction-event-severity";

    INVALID_UNINITIALIZED = 0;
    MILD = 1;
    MODERATE = 2;
    SEVERE = 3;
  }
}

// The risk of an adverse reaction (allergy or intolerance) for this patient
// upon exposure to the substance (including pharmaceutical products). See
// http://terminology.hl7.org/CodeSystem/allerg-intol-substance-exp-risk
message AllergyIntoleranceSubstanceExposureRiskCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/allerg-intol-substance-exp-risk";

    INVALID_UNINITIALIZED = 0;
    KNOWN_REACTION_RISK = 1;
    NO_KNOWN_REACTION_RISK = 2;
  }
}

// Identification of the underlying physiological mechanism for a Reaction Risk.
// See http://hl7.org/fhir/allergy-intolerance-type
message AllergyIntoleranceTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/allergy-intolerance-type";

    INVALID_UNINITIALIZED = 0;
    ALLERGY = 1;
    INTOLERANCE = 2;
  }
}

// Preferred value set for AllergyIntolerance Verification Status.
// See http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
message AllergyIntoleranceVerificationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification";

    INVALID_UNINITIALIZED = 0;
    UNCONFIRMED = 1;
    CONFIRMED = 2;
    REFUTED = 3;
    ENTERED_IN_ERROR = 4;
  }
}

// The free/busy status of an appointment.
// See http://hl7.org/fhir/appointmentstatus
message AppointmentStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/appointmentstatus";

    INVALID_UNINITIALIZED = 0;
    PROPOSED = 1;
    PENDING = 2;
    BOOKED = 3;
    ARRIVED = 4;
    FULFILLED = 5;
    CANCELLED = 6;
    NOSHOW = 7;
    ENTERED_IN_ERROR = 8;
    CHECKED_IN = 9;
    WAITLIST = 10;
  }
}

// The type of direction to use for assertion.
// See http://hl7.org/fhir/assert-direction-codes
message AssertionDirectionTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/assert-direction-codes";

    INVALID_UNINITIALIZED = 0;
    RESPONSE = 1;
    REQUEST = 2;
  }
}

// The type of operator to use for assertion.
// See http://hl7.org/fhir/assert-operator-codes
message AssertionOperatorTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/assert-operator-codes";

    INVALID_UNINITIALIZED = 0;
    EQUALS = 1;
    NOT_EQUALS = 2 [(.google.fhir.proto.fhir_original_code) = "notEquals"];
    IN = 3;
    NOT_IN = 4 [(.google.fhir.proto.fhir_original_code) = "notIn"];
    GREATER_THAN = 5 [(.google.fhir.proto.fhir_original_code) = "greaterThan"];
    LESS_THAN = 6 [(.google.fhir.proto.fhir_original_code) = "lessThan"];
    EMPTY = 7;
    NOT_EMPTY = 8 [(.google.fhir.proto.fhir_original_code) = "notEmpty"];
    CONTAINS = 9;
    NOT_CONTAINS = 10 [(.google.fhir.proto.fhir_original_code) = "notContains"];
    EVAL = 11;
  }
}

// The type of response code to use for assertion.
// See http://hl7.org/fhir/assert-response-code-types
message AssertionResponseTypesCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/assert-response-code-types";

    INVALID_UNINITIALIZED = 0;
    OKAY = 1;
    CREATED = 2;
    NO_CONTENT = 3 [(.google.fhir.proto.fhir_original_code) = "noContent"];
    NOT_MODIFIED = 4 [(.google.fhir.proto.fhir_original_code) = "notModified"];
    BAD = 5;
    FORBIDDEN = 6;
    NOT_FOUND = 7 [(.google.fhir.proto.fhir_original_code) = "notFound"];
    METHOD_NOT_ALLOWED = 8
        [(.google.fhir.proto.fhir_original_code) = "methodNotAllowed"];
    CONFLICT = 9;
    GONE = 10;
    PRECONDITION_FAILED = 11
        [(.google.fhir.proto.fhir_original_code) = "preconditionFailed"];
    UNPROCESSABLE = 12;
  }
}

// Indicator for type of action performed during the event that generated the
// event. See http://hl7.org/fhir/audit-event-action
message AuditEventActionCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/audit-event-action";

    INVALID_UNINITIALIZED = 0;
    C = 1 [(.google.fhir.proto.fhir_original_code) = "C"];
    R = 2 [(.google.fhir.proto.fhir_original_code) = "R"];
    U = 3 [(.google.fhir.proto.fhir_original_code) = "U"];
    D = 4 [(.google.fhir.proto.fhir_original_code) = "D"];
    E = 5 [(.google.fhir.proto.fhir_original_code) = "E"];
  }
}

// The type of network access point of this agent in the audit event.
// See http://hl7.org/fhir/network-type
message AuditEventAgentNetworkTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/network-type";

    INVALID_UNINITIALIZED = 0;
    MACHINE_NAME = 1 [(.google.fhir.proto.fhir_original_code) = "1"];
    IP_ADDRESS = 2 [(.google.fhir.proto.fhir_original_code) = "2"];
    TELEPHONE_NUMBER = 3 [(.google.fhir.proto.fhir_original_code) = "3"];
    EMAIL_ADDRESS = 4 [(.google.fhir.proto.fhir_original_code) = "4"];
    URI = 5 [(.google.fhir.proto.fhir_original_code) = "5"];
  }
}

// Indicates whether the event succeeded or failed.
// See http://hl7.org/fhir/audit-event-outcome
message AuditEventOutcomeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/audit-event-outcome";

    INVALID_UNINITIALIZED = 0;
    SUCCESS = 1 [(.google.fhir.proto.fhir_original_code) = "0"];
    MINOR_FAILURE = 2 [(.google.fhir.proto.fhir_original_code) = "4"];
    SERIOUS_FAILURE = 3 [(.google.fhir.proto.fhir_original_code) = "8"];
    MAJOR_FAILURE = 4 [(.google.fhir.proto.fhir_original_code) = "12"];
  }
}

// Whether the cost applies to in-network or out-of-network providers.
// See http://terminology.hl7.org/CodeSystem/applicability
message BenefitCostApplicabilityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/applicability";

    INVALID_UNINITIALIZED = 0;
    IN_NETWORK = 1;
    OUT_OF_NETWORK = 2;
    OTHER = 3;
  }
}

// Indication of the degree of conformance expectations associated with a
// binding. See http://hl7.org/fhir/binding-strength
message BindingStrengthCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/binding-strength";

    INVALID_UNINITIALIZED = 0;
    REQUIRED = 1;
    EXTENSIBLE = 2;
    PREFERRED = 3;
    EXAMPLE = 4;
  }
}

// Biologically Derived Product Category.
// See http://hl7.org/fhir/product-category
message BiologicallyDerivedProductCategoryCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/product-category";

    INVALID_UNINITIALIZED = 0;
    ORGAN = 1;
    TISSUE = 2;
    FLUID = 3;
    CELLS = 4;
    BIOLOGICAL_AGENT = 5
        [(.google.fhir.proto.fhir_original_code) = "biologicalAgent"];
  }
}

// Biologically Derived Product Status.
// See http://hl7.org/fhir/product-status
message BiologicallyDerivedProductStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/product-status";

    INVALID_UNINITIALIZED = 0;
    AVAILABLE = 1;
    UNAVAILABLE = 2;
  }
}

// BiologicallyDerived Product Storage Scale.
// See http://hl7.org/fhir/product-storage-scale
message BiologicallyDerivedProductStorageScaleCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/product-storage-scale";

    INVALID_UNINITIALIZED = 0;
    FARENHEIT = 1;
    CELSIUS = 2;
    KELVIN = 3;
  }
}

// Indicates the purpose of a bundle - how it is intended to be used.
// See http://hl7.org/fhir/bundle-type
message BundleTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/bundle-type";

    INVALID_UNINITIALIZED = 0;
    DOCUMENT = 1;
    MESSAGE = 2;
    TRANSACTION = 3;
    TRANSACTION_RESPONSE = 4;
    BATCH = 5;
    BATCH_RESPONSE = 6;
    HISTORY = 7;
    SEARCHSET = 8;
    COLLECTION = 9;
  }
}

// The master set of status codes used throughout FHIR. All status codes are
// mapped to one of these codes. See http://hl7.org/fhir/resource-status
message CanonicalStatusCodesForFHIRResourcesCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/resource-status";

    INVALID_UNINITIALIZED = 0;
    ERROR = 1;
    PROPOSED = 2;
    PLANNED = 3;
    DRAFT = 4;
    REQUESTED = 5;
    RECEIVED = 6;
    DECLINED = 7;
    ACCEPTED = 8;
    ARRIVED = 9;
    ACTIVE = 10;
    SUSPENDED = 11;
    FAILED = 12;
    REPLACED = 13;
    COMPLETE = 14;
    INACTIVE = 15;
    ABANDONED = 16;
    UNKNOWN = 17;
    UNCONFIRMED = 18;
    CONFIRMED = 19;
    RESOLVED = 20;
    REFUTED = 21;
    DIFFERENTIAL = 22;
    PARTIAL = 23;
    BUSY_UNAVAILABLE = 24;
    FREE = 25;
    ON_TARGET = 26;
    AHEAD_OF_TARGET = 27;
    BEHIND_TARGET = 28;
    NOT_READY = 29;
    TRANSDUC_DISCON = 30;
    HW_DISCON = 31;
  }
}

// How a capability statement is intended to be used.
// See http://hl7.org/fhir/capability-statement-kind
message CapabilityStatementKindCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/capability-statement-kind";

    INVALID_UNINITIALIZED = 0;
    INSTANCE = 1;
    CAPABILITY = 2;
    REQUIREMENTS = 3;
  }
}

// Codes that reflect the current state of a care plan activity within its
// overall life cycle. See http://hl7.org/fhir/care-plan-activity-status
message CarePlanActivityStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/care-plan-activity-status";

    INVALID_UNINITIALIZED = 0;
    NOT_STARTED = 1;
    SCHEDULED = 2;
    IN_PROGRESS = 3;
    ON_HOLD = 4;
    COMPLETED = 5;
    CANCELLED = 6;
    STOPPED = 7;
    UNKNOWN = 8;
    ENTERED_IN_ERROR = 9;
  }
}

// Indicates the status of the care team.
// See http://hl7.org/fhir/care-team-status
message CareTeamStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/care-team-status";

    INVALID_UNINITIALIZED = 0;
    PROPOSED = 1;
    ACTIVE = 2;
    SUSPENDED = 3;
    INACTIVE = 4;
    ENTERED_IN_ERROR = 5;
  }
}

// The type of relations between entries.
// See http://hl7.org/fhir/relation-type
message CatalogEntryRelationTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/relation-type";

    INVALID_UNINITIALIZED = 0;
    TRIGGERS = 1;
    IS_REPLACED_BY = 2;
  }
}

// Codes identifying the lifecycle stage of a ChargeItem.
// See http://hl7.org/fhir/chargeitem-status
message ChargeItemStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/chargeitem-status";

    INVALID_UNINITIALIZED = 0;
    PLANNED = 1;
    BILLABLE = 2;
    NOT_BILLABLE = 3;
    ABORTED = 4;
    BILLED = 5;
    ENTERED_IN_ERROR = 6;
    UNKNOWN = 7;
  }
}

// Direction in which lists of possible answers should be displayed.
// See http://terminology.hl7.org/CodeSystem/choice-list-orientation
message ChoiceListOrientationCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/choice-list-orientation";

    INVALID_UNINITIALIZED = 0;
    HORIZONTAL = 1;
    VERTICAL = 2;
  }
}

// This value set includes Claim Processing Outcome codes.
// See http://hl7.org/fhir/remittance-outcome
message ClaimProcessingCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/remittance-outcome";

    INVALID_UNINITIALIZED = 0;
    QUEUED = 1;
    COMPLETE = 2;
    ERROR = 3;
    PARTIAL = 4;
  }
}

// The degree to which the server supports the code search parameter on
// ValueSet, if it is supported. See http://hl7.org/fhir/code-search-support
message CodeSearchSupportCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/code-search-support";

    INVALID_UNINITIALIZED = 0;
    EXPLICIT = 1;
    ALL = 2;
  }
}

// The extent of the content of the code system (the concepts and codes it
// defines) are represented in a code system resource. See
// http://hl7.org/fhir/codesystem-content-mode
message CodeSystemContentModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/codesystem-content-mode";

    INVALID_UNINITIALIZED = 0;
    NOT_PRESENT = 1;
    EXAMPLE = 2;
    FRAGMENT = 3;
    COMPLETE = 4;
    SUPPLEMENT = 5;
  }
}

// The meaning of the hierarchy of concepts in a code system.
// See http://hl7.org/fhir/codesystem-hierarchy-meaning
message CodeSystemHierarchyMeaningCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/codesystem-hierarchy-meaning";

    INVALID_UNINITIALIZED = 0;
    GROUPED_BY = 1;
    IS_A = 2;
    PART_OF = 3;
    CLASSIFIED_WITH = 4;
  }
}

// Which type a compartment definition describes.
// See http://hl7.org/fhir/compartment-type
message CompartmentTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/compartment-type";

    INVALID_UNINITIALIZED = 0;
    PATIENT = 1 [(.google.fhir.proto.fhir_original_code) = "Patient"];
    ENCOUNTER = 2 [(.google.fhir.proto.fhir_original_code) = "Encounter"];
    RELATED_PERSON = 3
        [(.google.fhir.proto.fhir_original_code) = "RelatedPerson"];
    PRACTITIONER = 4 [(.google.fhir.proto.fhir_original_code) = "Practitioner"];
    DEVICE = 5 [(.google.fhir.proto.fhir_original_code) = "Device"];
  }
}

// The way in which a person authenticated a composition.
// See http://hl7.org/fhir/composition-attestation-mode
message CompositionAttestationModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/composition-attestation-mode";

    INVALID_UNINITIALIZED = 0;
    PERSONAL = 1;
    PROFESSIONAL = 2;
    LEGAL = 3;
    OFFICIAL = 4;
  }
}

// The workflow/clinical status of the composition.
// See http://hl7.org/fhir/composition-status
message CompositionStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/composition-status";

    INVALID_UNINITIALIZED = 0;
    PRELIMINARY = 1;
    FINAL = 2;
    AMENDED = 3;
    ENTERED_IN_ERROR = 4;
  }
}

// The degree of equivalence between concepts.
// See http://hl7.org/fhir/concept-map-equivalence
message ConceptMapEquivalenceCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/concept-map-equivalence";

    INVALID_UNINITIALIZED = 0;
    RELATEDTO = 1;
    EQUIVALENT = 2;
    EQUAL = 3;
    WIDER = 4;
    SUBSUMES = 5;
    NARROWER = 6;
    SPECIALIZES = 7;
    INEXACT = 8;
    UNMATCHED = 9;
    DISJOINT = 10;
  }
}

// Defines which action to take if there is no match in the group.
// See http://hl7.org/fhir/conceptmap-unmapped-mode
message ConceptMapGroupUnmappedModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/conceptmap-unmapped-mode";

    INVALID_UNINITIALIZED = 0;
    PROVIDED = 1;
    FIXED = 2;
    OTHER_MAP = 3;
  }
}

// Preferred value set for Condition Clinical Status.
// See http://terminology.hl7.org/CodeSystem/condition-clinical
message ConditionClinicalStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/condition-clinical";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    RECURRENCE = 2;
    RELAPSE = 3;
    INACTIVE = 4;
    REMISSION = 5;
    RESOLVED = 6;
  }
}

// The verification status to support or decline the clinical status of the
// condition or diagnosis. See
// http://terminology.hl7.org/CodeSystem/condition-ver-status
message ConditionVerificationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/condition-ver-status";

    INVALID_UNINITIALIZED = 0;
    UNCONFIRMED = 1;
    PROVISIONAL = 2;
    DIFFERENTIAL = 3;
    CONFIRMED = 4;
    REFUTED = 5;
    ENTERED_IN_ERROR = 6;
  }
}

// A code that indicates how the server supports conditional delete.
// See http://hl7.org/fhir/conditional-delete-status
message ConditionalDeleteStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/conditional-delete-status";

    INVALID_UNINITIALIZED = 0;
    NOT_SUPPORTED = 1;
    SINGLE = 2;
    MULTIPLE = 3;
  }
}

// A code that indicates how the server supports conditional read.
// See http://hl7.org/fhir/conditional-read-status
message ConditionalReadStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/conditional-read-status";

    INVALID_UNINITIALIZED = 0;
    NOT_SUPPORTED = 1;
    MODIFIED_SINCE = 2;
    NOT_MATCH = 3;
    FULL_SUPPORT = 4;
  }
}

// Indicates the degree of adherence to a specified behavior or capability
// expected for a system to be deemed conformant with a specification. See
// http://terminology.hl7.org/CodeSystem/conformance-expectation
message ConformanceExpectationCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/conformance-expectation";

    INVALID_UNINITIALIZED = 0;
    SHALL = 1 [(.google.fhir.proto.fhir_original_code) = "SHALL"];
    SHOULD = 2 [(.google.fhir.proto.fhir_original_code) = "SHOULD"];
    MAY = 3 [(.google.fhir.proto.fhir_original_code) = "MAY"];
    SHOULD_NOT = 4 [(.google.fhir.proto.fhir_original_code) = "SHOULD-NOT"];
  }
}

// How a resource reference is interpreted when testing consent restrictions.
// See http://hl7.org/fhir/consent-data-meaning
message ConsentDataMeaningCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/consent-data-meaning";

    INVALID_UNINITIALIZED = 0;
    INSTANCE = 1;
    RELATED = 2;
    DEPENDENTS = 3;
    AUTHOREDBY = 4;
  }
}

// How a rule statement is applied, such as adding additional consent or
// removing consent. See http://hl7.org/fhir/consent-provision-type
message ConsentProvisionTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/consent-provision-type";

    INVALID_UNINITIALIZED = 0;
    DENY = 1;
    PERMIT = 2;
  }
}

// Indicates the state of the consent.
// See http://hl7.org/fhir/consent-state-codes
message ConsentStateCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/consent-state-codes";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    PROPOSED = 2;
    ACTIVE = 3;
    REJECTED = 4;
    INACTIVE = 5;
    ENTERED_IN_ERROR = 6;
  }
}

// SHALL applications comply with this constraint?
// See http://hl7.org/fhir/constraint-severity
message ConstraintSeverityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/constraint-severity";

    INVALID_UNINITIALIZED = 0;
    ERROR = 1;
    WARNING = 2;
  }
}

// Telecommunications form for contact point.
// See http://hl7.org/fhir/contact-point-system
message ContactPointSystemCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/contact-point-system";

    INVALID_UNINITIALIZED = 0;
    PHONE = 1;
    FAX = 2;
    EMAIL = 3;
    PAGER = 4;
    URL = 5;
    SMS = 6;
    OTHER = 7;
  }
}

// Use of contact point.
// See http://hl7.org/fhir/contact-point-use
message ContactPointUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/contact-point-use";

    INVALID_UNINITIALIZED = 0;
    HOME = 1;
    WORK = 2;
    TEMP = 3;
    OLD = 4;
    MOBILE = 5;
  }
}

// This value set contract specific codes for status.
// See http://hl7.org/fhir/contract-publicationstatus
message ContractResourcePublicationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/contract-publicationstatus";

    INVALID_UNINITIALIZED = 0;
    AMENDED = 1;
    APPENDED = 2;
    CANCELLED = 3;
    DISPUTED = 4;
    ENTERED_IN_ERROR = 5;
    EXECUTABLE = 6;
    EXECUTED = 7;
    NEGOTIABLE = 8;
    OFFERED = 9;
    POLICY = 10;
    REJECTED = 11;
    RENEWED = 12;
    REVOKED = 13;
    RESOLVED = 14;
    TERMINATED = 15;
  }
}

// This value set contract specific codes for status.
// See http://hl7.org/fhir/contract-status
message ContractResourceStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/contract-status";

    INVALID_UNINITIALIZED = 0;
    AMENDED = 1;
    APPENDED = 2;
    CANCELLED = 3;
    DISPUTED = 4;
    ENTERED_IN_ERROR = 5;
    EXECUTABLE = 6;
    EXECUTED = 7;
    NEGOTIABLE = 8;
    OFFERED = 9;
    POLICY = 10;
    REJECTED = 11;
    RENEWED = 12;
    REVOKED = 13;
    RESOLVED = 14;
    TERMINATED = 15;
  }
}

// The type of contributor.
// See http://hl7.org/fhir/contributor-type
message ContributorTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/contributor-type";

    INVALID_UNINITIALIZED = 0;
    AUTHOR = 1;
    EDITOR = 2;
    REVIEWER = 3;
    ENDORSER = 4;
  }
}

// Used to specify why the normally expected content of the data element is
// missing. See http://terminology.hl7.org/CodeSystem/data-absent-reason
message DataAbsentReasonCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/data-absent-reason";

    INVALID_UNINITIALIZED = 0;
    UNKNOWN = 1;
    ASKED_UNKNOWN = 2;
    TEMP_UNKNOWN = 3;
    NOT_ASKED = 4;
    ASKED_DECLINED = 5;
    MASKED = 6;
    NOT_APPLICABLE = 7;
    UNSUPPORTED = 8;
    AS_TEXT = 9;
    ERROR = 10;
    NOT_A_NUMBER = 11;
    NEGATIVE_INFINITY = 12;
    POSITIVE_INFINITY = 13;
    NOT_PERFORMED = 14;
    NOT_PERMITTED = 15;
  }
}

// A version specific list of the data types defined by the FHIR specification
// for use as an element  type (any of the FHIR defined data types). See
// http://hl7.org/fhir/data-types
message DataTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/data-types";

    INVALID_UNINITIALIZED = 0;
    ADDRESS = 1 [(.google.fhir.proto.fhir_original_code) = "Address"];
    AGE = 2 [(.google.fhir.proto.fhir_original_code) = "Age"];
    ANNOTATION = 3 [(.google.fhir.proto.fhir_original_code) = "Annotation"];
    ATTACHMENT = 4 [(.google.fhir.proto.fhir_original_code) = "Attachment"];
    BACKBONE_ELEMENT = 5
        [(.google.fhir.proto.fhir_original_code) = "BackboneElement"];
    CODEABLE_CONCEPT = 6
        [(.google.fhir.proto.fhir_original_code) = "CodeableConcept"];
    CODING = 7 [(.google.fhir.proto.fhir_original_code) = "Coding"];
    CONTACT_DETAIL = 8
        [(.google.fhir.proto.fhir_original_code) = "ContactDetail"];
    CONTACT_POINT = 9
        [(.google.fhir.proto.fhir_original_code) = "ContactPoint"];
    CONTRIBUTOR = 10 [(.google.fhir.proto.fhir_original_code) = "Contributor"];
    COUNT = 11 [(.google.fhir.proto.fhir_original_code) = "Count"];
    DATA_REQUIREMENT = 12
        [(.google.fhir.proto.fhir_original_code) = "DataRequirement"];
    DISTANCE = 13 [(.google.fhir.proto.fhir_original_code) = "Distance"];
    DOSAGE = 14 [(.google.fhir.proto.fhir_original_code) = "Dosage"];
    DURATION = 15 [(.google.fhir.proto.fhir_original_code) = "Duration"];
    ELEMENT = 16 [(.google.fhir.proto.fhir_original_code) = "Element"];
    ELEMENT_DEFINITION = 17
        [(.google.fhir.proto.fhir_original_code) = "ElementDefinition"];
    EXPRESSION = 18 [(.google.fhir.proto.fhir_original_code) = "Expression"];
    EXTENSION = 19 [(.google.fhir.proto.fhir_original_code) = "Extension"];
    HUMAN_NAME = 20 [(.google.fhir.proto.fhir_original_code) = "HumanName"];
    IDENTIFIER = 21 [(.google.fhir.proto.fhir_original_code) = "Identifier"];
    MARKETING_STATUS = 22
        [(.google.fhir.proto.fhir_original_code) = "MarketingStatus"];
    META = 23 [(.google.fhir.proto.fhir_original_code) = "Meta"];
    MONEY = 24 [(.google.fhir.proto.fhir_original_code) = "Money"];
    MONEY_QUANTITY = 25
        [(.google.fhir.proto.fhir_original_code) = "MoneyQuantity"];
    NARRATIVE = 26 [(.google.fhir.proto.fhir_original_code) = "Narrative"];
    PARAMETER_DEFINITION = 27
        [(.google.fhir.proto.fhir_original_code) = "ParameterDefinition"];
    PERIOD = 28 [(.google.fhir.proto.fhir_original_code) = "Period"];
    POPULATION = 29 [(.google.fhir.proto.fhir_original_code) = "Population"];
    PROD_CHARACTERISTIC = 30
        [(.google.fhir.proto.fhir_original_code) = "ProdCharacteristic"];
    PRODUCT_SHELF_LIFE = 31
        [(.google.fhir.proto.fhir_original_code) = "ProductShelfLife"];
    QUANTITY = 32 [(.google.fhir.proto.fhir_original_code) = "Quantity"];
    RANGE = 33 [(.google.fhir.proto.fhir_original_code) = "Range"];
    RATIO = 34 [(.google.fhir.proto.fhir_original_code) = "Ratio"];
    REFERENCE = 35 [(.google.fhir.proto.fhir_original_code) = "Reference"];
    RELATED_ARTIFACT = 36
        [(.google.fhir.proto.fhir_original_code) = "RelatedArtifact"];
    SAMPLED_DATA = 37 [(.google.fhir.proto.fhir_original_code) = "SampledData"];
    SIGNATURE = 38 [(.google.fhir.proto.fhir_original_code) = "Signature"];
    SIMPLE_QUANTITY = 39
        [(.google.fhir.proto.fhir_original_code) = "SimpleQuantity"];
    SUBSTANCE_AMOUNT = 40
        [(.google.fhir.proto.fhir_original_code) = "SubstanceAmount"];
    TIMING = 41 [(.google.fhir.proto.fhir_original_code) = "Timing"];
    TRIGGER_DEFINITION = 42
        [(.google.fhir.proto.fhir_original_code) = "TriggerDefinition"];
    USAGE_CONTEXT = 43
        [(.google.fhir.proto.fhir_original_code) = "UsageContext"];
    BASE64_BINARY = 44
        [(.google.fhir.proto.fhir_original_code) = "base64Binary"];
    BOOLEAN = 45;
    CANONICAL = 46;
    CODE = 47;
    DATE = 48;
    DATE_TIME = 49 [(.google.fhir.proto.fhir_original_code) = "dateTime"];
    DECIMAL = 50;
    ID = 51;
    INSTANT = 52;
    INTEGER = 53;
    MARKDOWN = 54;
    OID = 55;
    POSITIVE_INT = 56 [(.google.fhir.proto.fhir_original_code) = "positiveInt"];
    STRING = 57;
    TIME = 58;
    UNSIGNED_INT = 59 [(.google.fhir.proto.fhir_original_code) = "unsignedInt"];
    URI = 60;
    URL = 61;
    UUID = 62;
    XHTML = 63;
  }
}

// The days of the week.
// See http://hl7.org/fhir/days-of-week
message DaysOfWeekCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/days-of-week";

    INVALID_UNINITIALIZED = 0;
    MON = 1;
    TUE = 2;
    WED = 3;
    THU = 4;
    FRI = 5;
    SAT = 6;
    SUN = 7;
  }
}

// Indicates the potential degree of impact of the identified issue on the
// patient. See http://hl7.org/fhir/detectedissue-severity
message DetectedIssueSeverityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/detectedissue-severity";

    INVALID_UNINITIALIZED = 0;
    HIGH = 1;
    MODERATE = 2;
    LOW = 3;
  }
}

// Describes the state of a metric calibration.
// See http://hl7.org/fhir/metric-calibration-state
message DeviceMetricCalibrationStateCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/metric-calibration-state";

    INVALID_UNINITIALIZED = 0;
    NOT_CALIBRATED = 1;
    CALIBRATION_REQUIRED = 2;
    CALIBRATED = 3;
    UNSPECIFIED = 4;
  }
}

// Describes the type of a metric calibration.
// See http://hl7.org/fhir/metric-calibration-type
message DeviceMetricCalibrationTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/metric-calibration-type";

    INVALID_UNINITIALIZED = 0;
    UNSPECIFIED = 1;
    OFFSET = 2;
    GAIN = 3;
    TWO_POINT = 4;
  }
}

// Describes the category of the metric.
// See http://hl7.org/fhir/metric-category
message DeviceMetricCategoryCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/metric-category";

    INVALID_UNINITIALIZED = 0;
    MEASUREMENT = 1;
    SETTING = 2;
    CALCULATION = 3;
    UNSPECIFIED = 4;
  }
}

// Describes the typical color of representation.
// See http://hl7.org/fhir/metric-color
message DeviceMetricColorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/metric-color";

    INVALID_UNINITIALIZED = 0;
    BLACK = 1;
    RED = 2;
    GREEN = 3;
    YELLOW = 4;
    BLUE = 5;
    MAGENTA = 6;
    CYAN = 7;
    WHITE = 8;
  }
}

// Describes the operational status of the DeviceMetric.
// See http://hl7.org/fhir/metric-operational-status
message DeviceMetricOperationalStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/metric-operational-status";

    INVALID_UNINITIALIZED = 0;
    ON = 1;
    OFF = 2;
    STANDBY = 3;
    ENTERED_IN_ERROR = 4;
  }
}

// The type of name the device is referred by.
// See http://hl7.org/fhir/device-nametype
message DeviceNameTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/device-nametype";

    INVALID_UNINITIALIZED = 0;
    UDI_LABEL_NAME = 1;
    USER_FRIENDLY_NAME = 2;
    PATIENT_REPORTED_NAME = 3;
    MANUFACTURER_NAME = 4;
    MODEL_NAME = 5;
    OTHER = 6;
  }
}

// A coded concept indicating the current status of the Device Usage.
// See http://hl7.org/fhir/device-statement-status
message DeviceUseStatementStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/device-statement-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    COMPLETED = 2;
    ENTERED_IN_ERROR = 3;
    INTENDED = 4;
    STOPPED = 5;
    ON_HOLD = 6;
  }
}

// The status of the diagnostic report.
// See http://hl7.org/fhir/diagnostic-report-status
message DiagnosticReportStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/diagnostic-report-status";

    INVALID_UNINITIALIZED = 0;
    REGISTERED = 1;
    PARTIAL = 2;
    PRELIMINARY = 3;
    FINAL = 4;
    AMENDED = 5;
    CORRECTED = 6;
    APPENDED = 7;
    CANCELLED = 8;
    ENTERED_IN_ERROR = 9;
    UNKNOWN = 10;
  }
}

// How an element value is interpreted when discrimination is evaluated.
// See http://hl7.org/fhir/discriminator-type
message DiscriminatorTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/discriminator-type";

    INVALID_UNINITIALIZED = 0;
    VALUE = 1;
    EXISTS = 2;
    PATTERN = 3;
    TYPE = 4;
    PROFILE = 5;
  }
}

// Whether the application produces or consumes documents.
// See http://hl7.org/fhir/document-mode
message DocumentModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/document-mode";

    INVALID_UNINITIALIZED = 0;
    PRODUCER = 1;
    CONSUMER = 2;
  }
}

// The status of the document reference.
// See http://hl7.org/fhir/document-reference-status
message DocumentReferenceStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/document-reference-status";

    INVALID_UNINITIALIZED = 0;
    CURRENT = 1;
    SUPERSEDED = 2;
    ENTERED_IN_ERROR = 3;
  }
}

// The type of relationship between documents.
// See http://hl7.org/fhir/document-relationship-type
message DocumentRelationshipTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/document-relationship-type";

    INVALID_UNINITIALIZED = 0;
    REPLACES = 1;
    TRANSFORMS = 2;
    SIGNS = 3;
    APPENDS = 4;
  }
}

// A code specifying the types of information being requested.
// See http://hl7.org/fhir/eligibilityrequest-purpose
message EligibilityRequestPurposeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/eligibilityrequest-purpose";

    INVALID_UNINITIALIZED = 0;
    AUTH_REQUIREMENTS = 1;
    BENEFITS = 2;
    DISCOVERY = 3;
    VALIDATION = 4;
  }
}

// A code specifying the types of information being requested.
// See http://hl7.org/fhir/eligibilityresponse-purpose
message EligibilityResponsePurposeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/eligibilityresponse-purpose";

    INVALID_UNINITIALIZED = 0;
    AUTH_REQUIREMENTS = 1;
    BENEFITS = 2;
    DISCOVERY = 3;
    VALIDATION = 4;
  }
}

// Controls how multiple enableWhen values are interpreted -  whether all or any
// must be true. See http://hl7.org/fhir/questionnaire-enable-behavior
message EnableWhenBehaviorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/questionnaire-enable-behavior";

    INVALID_UNINITIALIZED = 0;
    ALL = 1;
    ANY = 2;
  }
}

// The status of the location.
// See http://hl7.org/fhir/encounter-location-status
message EncounterLocationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/encounter-location-status";

    INVALID_UNINITIALIZED = 0;
    PLANNED = 1;
    ACTIVE = 2;
    RESERVED = 3;
    COMPLETED = 4;
  }
}

// Current state of the encounter.
// See http://hl7.org/fhir/encounter-status
message EncounterStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/encounter-status";

    INVALID_UNINITIALIZED = 0;
    PLANNED = 1;
    ARRIVED = 2;
    TRIAGED = 3;
    IN_PROGRESS = 4;
    ONLEAVE = 5;
    FINISHED = 6;
    CANCELLED = 7;
    ENTERED_IN_ERROR = 8;
    UNKNOWN = 9;
  }
}

// The status of the endpoint.
// See http://hl7.org/fhir/endpoint-status
message EndpointStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/endpoint-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    SUSPENDED = 2;
    ERROR = 3;
    OFF = 4;
    ENTERED_IN_ERROR = 5;
    TEST = 6;
  }
}

// The status of the episode of care.
// See http://hl7.org/fhir/episode-of-care-status
message EpisodeOfCareStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/episode-of-care-status";

    INVALID_UNINITIALIZED = 0;
    PLANNED = 1;
    WAITLIST = 2;
    ACTIVE = 3;
    ONHOLD = 4;
    FINISHED = 5;
    CANCELLED = 6;
    ENTERED_IN_ERROR = 7;
  }
}

// The mode of a message capability statement.
// See http://hl7.org/fhir/event-capability-mode
message EventCapabilityModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/event-capability-mode";

    INVALID_UNINITIALIZED = 0;
    SENDER = 1;
    RECEIVER = 2;
  }
}

// Codes identifying the lifecycle stage of an event.
// See http://hl7.org/fhir/event-status
message EventStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/event-status";

    INVALID_UNINITIALIZED = 0;
    PREPARATION = 1;
    IN_PROGRESS = 2;
    NOT_DONE = 3;
    ON_HOLD = 4;
    STOPPED = 5;
    COMPLETED = 6;
    ENTERED_IN_ERROR = 7;
    UNKNOWN = 8;
  }
}

// Real world event relating to the schedule.
// See http://hl7.org/fhir/event-timing
message EventTimingCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/event-timing";

    INVALID_UNINITIALIZED = 0;
    MORN = 1 [(.google.fhir.proto.fhir_original_code) = "MORN"];
    MORN_EARLY = 2 [(.google.fhir.proto.fhir_original_code) = "MORN.early"];
    MORN_LATE = 3 [(.google.fhir.proto.fhir_original_code) = "MORN.late"];
    NOON = 4 [(.google.fhir.proto.fhir_original_code) = "NOON"];
    AFT = 5 [(.google.fhir.proto.fhir_original_code) = "AFT"];
    AFT_EARLY = 6 [(.google.fhir.proto.fhir_original_code) = "AFT.early"];
    AFT_LATE = 7 [(.google.fhir.proto.fhir_original_code) = "AFT.late"];
    EVE = 8 [(.google.fhir.proto.fhir_original_code) = "EVE"];
    EVE_EARLY = 9 [(.google.fhir.proto.fhir_original_code) = "EVE.early"];
    EVE_LATE = 10 [(.google.fhir.proto.fhir_original_code) = "EVE.late"];
    NIGHT = 11 [(.google.fhir.proto.fhir_original_code) = "NIGHT"];
    PHS = 12 [(.google.fhir.proto.fhir_original_code) = "PHS"];
  }
}

// The possible types of variables for exposures or outcomes (E.g. Dichotomous,
// Continuous, Descriptive). See http://hl7.org/fhir/variable-type
message EvidenceVariableTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/variable-type";

    INVALID_UNINITIALIZED = 0;
    DICHOTOMOUS = 1;
    CONTINUOUS = 2;
    DESCRIPTIVE = 3;
  }
}

// The type of actor - system or human.
// See http://hl7.org/fhir/examplescenario-actor-type
message ExampleScenarioActorTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/examplescenario-actor-type";

    INVALID_UNINITIALIZED = 0;
    PERSON = 1;
    ENTITY = 2;
  }
}

// Declares what the source of a parameter is.
// See http://terminology.hl7.org/CodeSystem/expansion-parameter-source
message ExpansionParameterSourceCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/expansion-parameter-source";

    INVALID_UNINITIALIZED = 0;
    INPUT = 1;
    SERVER = 2;
    CODESYSTEM = 3;
  }
}

// Defines how concepts are processed into the expansion when it's for UI
// presentation. See
// http://terminology.hl7.org/CodeSystem/expansion-processing-rule
message ExpansionProcessingRuleCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/expansion-processing-rule";

    INVALID_UNINITIALIZED = 0;
    ALL_CODES = 1;
    UNGROUPED = 2;
    GROUPS_ONLY = 3;
  }
}

// A code specifying the state of the resource instance.
// See http://hl7.org/fhir/explanationofbenefit-status
message ExplanationOfBenefitStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/explanationofbenefit-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    CANCELLED = 2;
    DRAFT = 3;
    ENTERED_IN_ERROR = 4;
  }
}

// Whether the results by exposure is describing the results for the primary
// exposure of interest (exposure) or the alternative state
// (exposureAlternative). See http://hl7.org/fhir/exposure-state
message ExposureStateCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/exposure-state";

    INVALID_UNINITIALIZED = 0;
    EXPOSURE = 1;
    EXPOSURE_ALTERNATIVE = 2;
  }
}

// How an extension context is interpreted.
// See http://hl7.org/fhir/extension-context-type
message ExtensionContextTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/extension-context-type";

    INVALID_UNINITIALIZED = 0;
    FHIRPATH = 1;
    ELEMENT = 2;
    EXTENSION = 3;
  }
}

// The availability status of the device.
// See http://hl7.org/fhir/device-status
message FHIRDeviceStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/device-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    INACTIVE = 2;
    ENTERED_IN_ERROR = 3;
    UNKNOWN = 4;
  }
}

// The set of interactions defined by the RESTful part of the FHIR
// specification. See http://hl7.org/fhir/restful-interaction
message FHIRRestfulInteractionsCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/restful-interaction";

    INVALID_UNINITIALIZED = 0;
    READ = 1;
    VREAD = 2;
    UPDATE = 3;
    PATCH = 4;
    DELETE = 5;
    HISTORY = 6;
    HISTORY_INSTANCE = 7;
    HISTORY_TYPE = 8;
    HISTORY_SYSTEM = 9;
    CREATE = 10;
    SEARCH = 11;
    SEARCH_TYPE = 12;
    SEARCH_SYSTEM = 13;
    CAPABILITIES = 14;
    TRANSACTION = 15;
    BATCH = 16;
    OPERATION = 17;
  }
}

// A code to indicate if the substance is actively used.
// See http://hl7.org/fhir/substance-status
message FHIRSubstanceStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/substance-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    INACTIVE = 2;
    ENTERED_IN_ERROR = 3;
  }
}

// All published FHIR Versions.
// See http://hl7.org/fhir/FHIR-version
message FHIRVersionCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/FHIR-version";

    INVALID_UNINITIALIZED = 0;
    V_0_01 = 1 [(.google.fhir.proto.fhir_original_code) = "0.01"];
    V_0_05 = 2 [(.google.fhir.proto.fhir_original_code) = "0.05"];
    V_0_06 = 3 [(.google.fhir.proto.fhir_original_code) = "0.06"];
    V_0_11 = 4 [(.google.fhir.proto.fhir_original_code) = "0.11"];
    V_0_0_80 = 5 [(.google.fhir.proto.fhir_original_code) = "0.0.80"];
    V_0_0_81 = 6 [(.google.fhir.proto.fhir_original_code) = "0.0.81"];
    V_0_0_82 = 7 [(.google.fhir.proto.fhir_original_code) = "0.0.82"];
    V_0_4_0 = 8 [(.google.fhir.proto.fhir_original_code) = "0.4.0"];
    V_0_5_0 = 9 [(.google.fhir.proto.fhir_original_code) = "0.5.0"];
    V_1_0_0 = 10 [(.google.fhir.proto.fhir_original_code) = "1.0.0"];
    V_1_0_1 = 11 [(.google.fhir.proto.fhir_original_code) = "1.0.1"];
    V_1_0_2 = 12 [(.google.fhir.proto.fhir_original_code) = "1.0.2"];
    V_1_1_0 = 13 [(.google.fhir.proto.fhir_original_code) = "1.1.0"];
    V_1_4_0 = 14 [(.google.fhir.proto.fhir_original_code) = "1.4.0"];
    V_1_6_0 = 15 [(.google.fhir.proto.fhir_original_code) = "1.6.0"];
    V_1_8_0 = 16 [(.google.fhir.proto.fhir_original_code) = "1.8.0"];
    V_3_0_0 = 17 [(.google.fhir.proto.fhir_original_code) = "3.0.0"];
    V_3_0_1 = 18 [(.google.fhir.proto.fhir_original_code) = "3.0.1"];
    V_3_3_0 = 19 [(.google.fhir.proto.fhir_original_code) = "3.3.0"];
    V_3_5_0 = 20 [(.google.fhir.proto.fhir_original_code) = "3.5.0"];
    V_4_0_0 = 21 [(.google.fhir.proto.fhir_original_code) = "4.0.0"];
    V_4_0_1 = 22 [(.google.fhir.proto.fhir_original_code) = "4.0.1"];
    V_5_0_0 = 51 [(.google.fhir.proto.fhir_original_code) = "5.0.0"];
  }
}

// A code that identifies the status of the family history record.
// See http://hl7.org/fhir/history-status
message FamilyHistoryStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/history-status";

    INVALID_UNINITIALIZED = 0;
    PARTIAL = 1;
    COMPLETED = 2;
    ENTERED_IN_ERROR = 3;
    HEALTH_UNKNOWN = 4;
  }
}

// The kind of operation to perform as a part of a property based filter.
// See http://hl7.org/fhir/filter-operator
message FilterOperatorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/filter-operator";

    INVALID_UNINITIALIZED = 0;
    EQUALS = 1 [(.google.fhir.proto.fhir_original_code) = "="];
    IS_A = 2;
    DESCENDENT_OF = 3;
    IS_NOT_A = 4;
    REGEX = 5;
    IN = 6;
    NOT_IN = 7;
    GENERALIZES = 8;
    EXISTS = 9;
  }
}

// This value set includes Status codes.
// See http://hl7.org/fhir/fm-status
message FinancialResourceStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/fm-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    CANCELLED = 2;
    DRAFT = 3;
    ENTERED_IN_ERROR = 4;
  }
}

// Indicates whether this flag is active and needs to be displayed to a user, or
// whether it is no longer needed or was entered in error. See
// http://hl7.org/fhir/flag-status
message FlagStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/flag-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    INACTIVE = 2;
    ENTERED_IN_ERROR = 3;
  }
}

// Codes indicating whether the goal has been accepted by a stakeholder.
// See http://terminology.hl7.org/CodeSystem/goal-acceptance-status
message GoalAcceptanceStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/goal-acceptance-status";

    INVALID_UNINITIALIZED = 0;
    AGREE = 1;
    DISAGREE = 2;
    PENDING = 3;
  }
}

// Codes that reflect the current state of a goal and whether the goal is still
// being targeted. See http://hl7.org/fhir/goal-status
message GoalLifecycleStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/goal-status";

    INVALID_UNINITIALIZED = 0;
    PROPOSED = 1;
    PLANNED = 2;
    ACCEPTED = 3;
    ACTIVE = 4;
    ON_HOLD = 5;
    COMPLETED = 6;
    CANCELLED = 7;
    ENTERED_IN_ERROR = 8;
    REJECTED = 9;
  }
}

// How a compartment must be linked.
// See http://hl7.org/fhir/graph-compartment-rule
message GraphCompartmentRuleCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/graph-compartment-rule";

    INVALID_UNINITIALIZED = 0;
    IDENTICAL = 1;
    MATCHING = 2;
    DIFFERENT = 3;
    CUSTOM = 4;
  }
}

// Defines how a compartment rule is used.
// See http://hl7.org/fhir/graph-compartment-use
message GraphCompartmentUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/graph-compartment-use";

    INVALID_UNINITIALIZED = 0;
    CONDITION = 1;
    REQUIREMENT = 2;
  }
}

// Possible group measure aggregates (E.g. Mean, Median).
// See http://hl7.org/fhir/group-measure
message GroupMeasureCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/group-measure";

    INVALID_UNINITIALIZED = 0;
    MEAN = 1;
    MEDIAN = 2;
    MEAN_OF_MEAN = 3;
    MEAN_OF_MEDIAN = 4;
    MEDIAN_OF_MEAN = 5;
    MEDIAN_OF_MEDIAN = 6;
  }
}

// Types of resources that are part of group.
// See http://hl7.org/fhir/group-type
message GroupTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/group-type";

    INVALID_UNINITIALIZED = 0;
    PERSON = 1;
    ANIMAL = 2;
    PRACTITIONER = 3;
    DEVICE = 4;
    MEDICATION = 5;
    SUBSTANCE = 6;
  }
}

// The status of a guidance response.
// See http://hl7.org/fhir/guidance-response-status
message GuidanceResponseStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/guidance-response-status";

    INVALID_UNINITIALIZED = 0;
    SUCCESS = 1;
    DATA_REQUESTED = 2;
    DATA_REQUIRED = 3;
    IN_PROGRESS = 4;
    FAILURE = 5;
    ENTERED_IN_ERROR = 6;
  }
}

// A code that indicates how the page is generated.
// See http://hl7.org/fhir/guide-page-generation
message GuidePageGenerationCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/guide-page-generation";

    INVALID_UNINITIALIZED = 0;
    HTML = 1;
    MARKDOWN = 2;
    XML = 3;
    GENERATED = 4;
  }
}

// Code of parameter that is input to the guide.
// See http://hl7.org/fhir/guide-parameter-code
message GuideParameterCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/guide-parameter-code";

    INVALID_UNINITIALIZED = 0;
    APPLY = 1;
    PATH_RESOURCE = 2;
    PATH_PAGES = 3;
    PATH_TX_CACHE = 4;
    EXPANSION_PARAMETER = 5;
    RULE_BROKEN_LINKS = 6;
    GENERATE_XML = 7;
    GENERATE_JSON = 8;
    GENERATE_TURTLE = 9;
    HTML_TEMPLATE = 10;
  }
}

// An HL7 administrative unit that owns artifacts in the FHIR specification.
// See http://terminology.hl7.org/CodeSystem/hl7-work-group
message HL7WorkgroupCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/hl7-work-group";

    INVALID_UNINITIALIZED = 0;
    CBCC = 1;
    CDS = 2;
    CQI = 3;
    CG = 4;
    DEV = 5;
    EHR = 6;
    FHIR = 7;
    FM = 8;
    HSI = 9;
    II = 10;
    INM = 11;
    ITS = 12;
    MNM = 13;
    OO = 14;
    PA = 15;
    PC = 16;
    PHER = 17;
    PHX = 18;
    BRR = 19;
    SD = 20;
    SEC = 21;
    US = 22;
    VOCAB = 23;
    AID = 24;
  }
}

// HTTP verbs (in the HTTP command line). See [HTTP
// rfc](https://tools.ietf.org/html/rfc7231) for details. See
// http://hl7.org/fhir/http-verb
message HTTPVerbCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/http-verb";

    INVALID_UNINITIALIZED = 0;
    GET = 1 [(.google.fhir.proto.fhir_original_code) = "GET"];
    HEAD = 2 [(.google.fhir.proto.fhir_original_code) = "HEAD"];
    POST = 3 [(.google.fhir.proto.fhir_original_code) = "POST"];
    PUT = 4 [(.google.fhir.proto.fhir_original_code) = "PUT"];
    DELETE = 5 [(.google.fhir.proto.fhir_original_code) = "DELETE"];
    PATCH = 6 [(.google.fhir.proto.fhir_original_code) = "PATCH"];
  }
}

// A code that represents the preferred display order of the components of a
// human name. See http://terminology.hl7.org/CodeSystem/name-assembly-order
message HumanNameAssemblyOrderCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/name-assembly-order";

    INVALID_UNINITIALIZED = 0;
    NL1 = 1 [(.google.fhir.proto.fhir_original_code) = "NL1"];
    NL2 = 2 [(.google.fhir.proto.fhir_original_code) = "NL2"];
    NL3 = 3 [(.google.fhir.proto.fhir_original_code) = "NL3"];
    NL4 = 4 [(.google.fhir.proto.fhir_original_code) = "NL4"];
  }
}

// Identifies the purpose for this identifier, if known .
// See http://hl7.org/fhir/identifier-use
message IdentifierUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/identifier-use";

    INVALID_UNINITIALIZED = 0;
    USUAL = 1;
    OFFICIAL = 2;
    TEMP = 3;
    SECONDARY = 4;
    OLD = 5;
  }
}

// The level of confidence that this link represents the same actual person,
// based on NIST Authentication Levels. See
// http://hl7.org/fhir/identity-assuranceLevel
message IdentityAssuranceLevelCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/identity-assuranceLevel";

    INVALID_UNINITIALIZED = 0;
    LEVEL1 = 1;
    LEVEL2 = 2;
    LEVEL3 = 3;
    LEVEL4 = 4;
  }
}

// The status of the ImagingStudy.
// See http://hl7.org/fhir/imagingstudy-status
message ImagingStudyStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/imagingstudy-status";

    INVALID_UNINITIALIZED = 0;
    REGISTERED = 1;
    AVAILABLE = 2;
    CANCELLED = 3;
    ENTERED_IN_ERROR = 4;
    UNKNOWN = 5;
  }
}

// A set codes that define the functional status of an implanted device.
// See http://terminology.hl7.org/CodeSystem/implantStatus
message ImplantStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/implantStatus";

    INVALID_UNINITIALIZED = 0;
    FUNCTIONAL = 1;
    NON_FUNCTIONAL = 2;
    DISABLED = 3;
    UNKNOWN = 4;
  }
}

// Codes indicating the kind of the price component.
// See http://hl7.org/fhir/invoice-priceComponentType
message InvoicePriceComponentTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/invoice-priceComponentType";

    INVALID_UNINITIALIZED = 0;
    BASE = 1;
    SURCHARGE = 2;
    DEDUCTION = 3;
    DISCOUNT = 4;
    TAX = 5;
    INFORMATIONAL = 6;
  }
}

// Codes identifying the lifecycle stage of an Invoice.
// See http://hl7.org/fhir/invoice-status
message InvoiceStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/invoice-status";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    ISSUED = 2;
    BALANCED = 3;
    CANCELLED = 4;
    ENTERED_IN_ERROR = 5;
  }
}

// How the issue affects the success of the action.
// See http://hl7.org/fhir/issue-severity
message IssueSeverityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/issue-severity";

    INVALID_UNINITIALIZED = 0;
    FATAL = 1;
    ERROR = 2;
    WARNING = 3;
    INFORMATION = 4;
  }
}

// A code that describes the type of issue.
// See http://hl7.org/fhir/issue-type
message IssueTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/issue-type";

    INVALID_UNINITIALIZED = 0;
    INVALID = 1;
    STRUCTURE = 2;
    REQUIRED = 3;
    VALUE = 4;
    INVARIANT = 5;
    SECURITY = 6;
    LOGIN = 7;
    UNKNOWN = 8;
    EXPIRED = 9;
    FORBIDDEN = 10;
    SUPPRESSED = 11;
    PROCESSING = 12;
    NOT_SUPPORTED = 13;
    DUPLICATE = 14;
    MULTIPLE_MATCHES = 15;
    NOT_FOUND = 16;
    DELETED = 17;
    TOO_LONG = 18;
    CODE_INVALID = 19;
    EXTENSION = 20;
    TOO_COSTLY = 21;
    BUSINESS_RULE = 22;
    CONFLICT = 23;
    TRANSIENT = 24;
    LOCK_ERROR = 25;
    NO_STORE = 26;
    EXCEPTION = 27;
    TIMEOUT = 28;
    INCOMPLETE = 29;
    THROTTLED = 30;
    INFORMATIONAL = 31;
  }
}

// The type of link between this patient resource and another patient resource.
// See http://hl7.org/fhir/link-type
message LinkTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/link-type";

    INVALID_UNINITIALIZED = 0;
    REPLACED_BY = 1;
    REPLACES = 2;
    REFER = 3;
    SEEALSO = 4;
  }
}

// Used to distinguish different roles a resource can play within a set of
// linked resources. See http://hl7.org/fhir/linkage-type
message LinkageTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/linkage-type";

    INVALID_UNINITIALIZED = 0;
    SOURCE = 1;
    ALTERNATE = 2;
    HISTORICAL = 3;
  }
}

// The processing mode that applies to this list.
// See http://hl7.org/fhir/list-mode
message ListModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/list-mode";

    INVALID_UNINITIALIZED = 0;
    WORKING = 1;
    SNAPSHOT = 2;
    CHANGES = 3;
  }
}

// The current state of the list.
// See http://hl7.org/fhir/list-status
message ListStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/list-status";

    INVALID_UNINITIALIZED = 0;
    CURRENT = 1;
    RETIRED = 2;
    ENTERED_IN_ERROR = 3;
  }
}

// Indicates whether a resource instance represents a specific location or a
// class of locations. See http://hl7.org/fhir/location-mode
message LocationModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/location-mode";

    INVALID_UNINITIALIZED = 0;
    INSTANCE = 1;
    KIND = 2;
  }
}

// Indicates whether the location is still in use.
// See http://hl7.org/fhir/location-status
message LocationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/location-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    SUSPENDED = 2;
    INACTIVE = 3;
  }
}

// A Master Patient Index (MPI) assessment of whether a candidate patient record
// is a match or not. See http://terminology.hl7.org/CodeSystem/match-grade
message MatchGradeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/match-grade";

    INVALID_UNINITIALIZED = 0;
    CERTAIN = 1;
    PROBABLE = 2;
    POSSIBLE = 3;
    CERTAINLY_NOT = 4;
  }
}

// Observation values that indicate what change in a measurement value or score
// is indicative of an improvement in the measured item or scored issue. See
// http://terminology.hl7.org/CodeSystem/measure-improvement-notation
message MeasureImprovementNotationCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/measure-improvement-notation";

    INVALID_UNINITIALIZED = 0;
    INCREASE = 1;
    DECREASE = 2;
  }
}

// The status of the measure report.
// See http://hl7.org/fhir/measure-report-status
message MeasureReportStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/measure-report-status";

    INVALID_UNINITIALIZED = 0;
    COMPLETE = 1;
    PENDING = 2;
    ERROR = 3;
  }
}

// The type of the measure report.
// See http://hl7.org/fhir/measure-report-type
message MeasureReportTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/measure-report-type";

    INVALID_UNINITIALIZED = 0;
    INDIVIDUAL = 1;
    SUBJECT_LIST = 2;
    SUMMARY = 3;
    DATA_COLLECTION = 4;
  }
}

// MedicationAdministration Status Codes
// See http://terminology.hl7.org/CodeSystem/medication-admin-status
message MedicationAdministrationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/medication-admin-status";

    INVALID_UNINITIALIZED = 0;
    IN_PROGRESS = 1;
    NOT_DONE = 2;
    ON_HOLD = 3;
    COMPLETED = 4;
    ENTERED_IN_ERROR = 5;
    STOPPED = 6;
    UNKNOWN = 7;
  }
}

// MedicationDispense Status Codes
// See http://terminology.hl7.org/CodeSystem/medicationdispense-status
message MedicationDispenseStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/medicationdispense-status";

    INVALID_UNINITIALIZED = 0;
    PREPARATION = 1;
    IN_PROGRESS = 2;
    CANCELLED = 3;
    ON_HOLD = 4;
    COMPLETED = 5;
    ENTERED_IN_ERROR = 6;
    STOPPED = 7;
    DECLINED = 8;
    UNKNOWN = 9;
  }
}

// MedicationKnowledge Status Codes
// See http://terminology.hl7.org/CodeSystem/medicationknowledge-status
message MedicationKnowledgeStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/medicationknowledge-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    INACTIVE = 2;
    ENTERED_IN_ERROR = 3;
  }
}

// MedicationRequest Intent Codes
// See http://hl7.org/fhir/CodeSystem/medicationrequest-intent
message MedicationRequestIntentCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/CodeSystem/medicationrequest-intent";

    INVALID_UNINITIALIZED = 0;
    PROPOSAL = 1;
    PLAN = 2;
    ORDER = 3;
    ORIGINAL_ORDER = 4;
    REFLEX_ORDER = 5;
    FILLER_ORDER = 6;
    INSTANCE_ORDER = 7;
    OPTION = 8;
  }
}

// Medication Status Codes
// See http://hl7.org/fhir/CodeSystem/medication-statement-status
message MedicationStatementStatusCodes {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/CodeSystem/medication-statement-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    COMPLETED = 2;
    ENTERED_IN_ERROR = 3;
    INTENDED = 4;
    STOPPED = 5;
    ON_HOLD = 6;
    UNKNOWN = 7;
    NOT_TAKEN = 8;
  }
}

// Medication Status Codes
// See http://hl7.org/fhir/CodeSystem/medication-status
message MedicationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/CodeSystem/medication-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    INACTIVE = 2;
    ENTERED_IN_ERROR = 3;
  }
}

// MedicationRequest Status Codes
// See http://hl7.org/fhir/CodeSystem/medicationrequest-status
message MedicationrequestStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/CodeSystem/medicationrequest-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    ON_HOLD = 2;
    CANCELLED = 3;
    COMPLETED = 4;
    ENTERED_IN_ERROR = 5;
    STOPPED = 6;
    DRAFT = 7;
    UNKNOWN = 8;
  }
}

// The impact of the content of a message.
// See http://hl7.org/fhir/message-significance-category
message MessageSignificanceCategoryCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/message-significance-category";

    INVALID_UNINITIALIZED = 0;
    CONSEQUENCE = 1;
    CURRENCY = 2;
    NOTIFICATION = 3;
  }
}

// HL7-defined table of codes which identify conditions under which
// acknowledgments are required to be returned in response to a message. See
// http://hl7.org/fhir/messageheader-response-request
message MessageheaderResponseRequestCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/messageheader-response-request";

    INVALID_UNINITIALIZED = 0;
    ALWAYS = 1;
    ON_ERROR = 2;
    NEVER = 3;
    ON_SUCCESS = 4;
  }
}

// The use of a human name.
// See http://hl7.org/fhir/name-use
message NameUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/name-use";

    INVALID_UNINITIALIZED = 0;
    USUAL = 1;
    OFFICIAL = 2;
    TEMP = 3;
    NICKNAME = 4;
    ANONYMOUS = 5;
    OLD = 6;
    MAIDEN = 7;
  }
}

// Identifies the style of unique identifier used to identify a namespace.
// See http://hl7.org/fhir/namingsystem-identifier-type
message NamingSystemIdentifierTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/namingsystem-identifier-type";

    INVALID_UNINITIALIZED = 0;
    OID = 1;
    UUID = 2;
    URI = 3;
    OTHER = 4;
  }
}

// Identifies the purpose of the naming system.
// See http://hl7.org/fhir/namingsystem-type
message NamingSystemTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/namingsystem-type";

    INVALID_UNINITIALIZED = 0;
    CODESYSTEM = 1;
    IDENTIFIER = 2;
    ROOT = 3;
  }
}

// The status of a resource narrative.
// See http://hl7.org/fhir/narrative-status
message NarrativeStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/narrative-status";

    INVALID_UNINITIALIZED = 0;
    GENERATED = 1;
    EXTENSIONS = 2;
    ADDITIONAL = 3;
    EMPTY = 4;
  }
}

// The presentation types of notes.
// See http://hl7.org/fhir/note-type
message NoteTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/note-type";

    INVALID_UNINITIALIZED = 0;
    DISPLAY = 1;
    PRINT = 2;
    PRINTOPER = 3;
  }
}

// Permitted data type for observation value.
// See http://hl7.org/fhir/permitted-data-type
message ObservationDataTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/permitted-data-type";

    INVALID_UNINITIALIZED = 0;
    QUANTITY = 1 [(.google.fhir.proto.fhir_original_code) = "Quantity"];
    CODEABLE_CONCEPT = 2
        [(.google.fhir.proto.fhir_original_code) = "CodeableConcept"];
    STRING = 3;
    BOOLEAN = 4;
    INTEGER = 5;
    RANGE = 6 [(.google.fhir.proto.fhir_original_code) = "Range"];
    RATIO = 7 [(.google.fhir.proto.fhir_original_code) = "Ratio"];
    SAMPLED_DATA = 8 [(.google.fhir.proto.fhir_original_code) = "SampledData"];
    TIME = 9;
    DATE_TIME = 10 [(.google.fhir.proto.fhir_original_code) = "dateTime"];
    PERIOD = 11 [(.google.fhir.proto.fhir_original_code) = "Period"];
  }
}

// Codes identifying the category of observation range.
// See http://hl7.org/fhir/observation-range-category
message ObservationRangeCategoryCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/observation-range-category";

    INVALID_UNINITIALIZED = 0;
    REFERENCE = 1;
    CRITICAL = 2;
    ABSOLUTE = 3;
  }
}

// Codes providing the status of an observation.
// See http://hl7.org/fhir/observation-status
message ObservationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/observation-status";

    INVALID_UNINITIALIZED = 0;
    REGISTERED = 1;
    PRELIMINARY = 2;
    FINAL = 3;
    AMENDED = 4;
    CORRECTED = 5;
    CANCELLED = 6;
    ENTERED_IN_ERROR = 7;
    UNKNOWN = 8;
  }
}

// Whether an operation is a normal operation or a query.
// See http://hl7.org/fhir/operation-kind
message OperationKindCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/operation-kind";

    INVALID_UNINITIALIZED = 0;
    OPERATION = 1;
    QUERY = 2;
  }
}

// Whether an operation parameter is an input or an output parameter.
// See http://hl7.org/fhir/operation-parameter-use
message OperationParameterUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/operation-parameter-use";

    INVALID_UNINITIALIZED = 0;
    IN = 1;
    OUT = 2;
  }
}

// Type for orientation.
// See http://hl7.org/fhir/orientation-type
message OrientationTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/orientation-type";

    INVALID_UNINITIALIZED = 0;
    SENSE = 1;
    ANTISENSE = 2;
  }
}

// Is the Participant required to attend the appointment.
// See http://hl7.org/fhir/participantrequired
message ParticipantRequiredCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/participantrequired";

    INVALID_UNINITIALIZED = 0;
    REQUIRED = 1;
    OPTIONAL = 2;
    INFORMATION_ONLY = 3;
  }
}

// The Participation status of an appointment.
// See http://hl7.org/fhir/participationstatus
message ParticipationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/participationstatus";

    INVALID_UNINITIALIZED = 0;
    ACCEPTED = 1;
    DECLINED = 2;
    TENTATIVE = 3;
    NEEDS_ACTION = 4;
  }
}

// How a property is represented when serialized.
// See http://hl7.org/fhir/property-representation
message PropertyRepresentationCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/property-representation";

    INVALID_UNINITIALIZED = 0;
    XML_ATTR = 1 [(.google.fhir.proto.fhir_original_code) = "xmlAttr"];
    XML_TEXT = 2 [(.google.fhir.proto.fhir_original_code) = "xmlText"];
    TYPE_ATTR = 3 [(.google.fhir.proto.fhir_original_code) = "typeAttr"];
    CDA_TEXT = 4 [(.google.fhir.proto.fhir_original_code) = "cdaText"];
    XHTML = 5;
  }
}

// The type of a property value.
// See http://hl7.org/fhir/concept-property-type
message PropertyTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/concept-property-type";

    INVALID_UNINITIALIZED = 0;
    CODE = 1;
    CODING = 2 [(.google.fhir.proto.fhir_original_code) = "Coding"];
    STRING = 3;
    INTEGER = 4;
    BOOLEAN = 5;
    DATE_TIME = 6 [(.google.fhir.proto.fhir_original_code) = "dateTime"];
    DECIMAL = 7;
  }
}

// How an entity was used in an activity.
// See http://hl7.org/fhir/provenance-entity-role
message ProvenanceEntityRoleCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/provenance-entity-role";

    INVALID_UNINITIALIZED = 0;
    DERIVATION = 1;
    REVISION = 2;
    QUOTATION = 3;
    SOURCE = 4;
    REMOVAL = 5;
  }
}

// The lifecycle status of an artifact.
// See http://hl7.org/fhir/publication-status
message PublicationStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/publication-status";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    ACTIVE = 2;
    RETIRED = 3;
    UNKNOWN = 4;
  }
}

// Type for quality report.
// See http://hl7.org/fhir/quality-type
message QualityTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/quality-type";

    INVALID_UNINITIALIZED = 0;
    INDEL = 1;
    SNP = 2;
    UNKNOWN = 3;
  }
}

// How the Quantity should be understood and represented.
// See http://hl7.org/fhir/quantity-comparator
message QuantityComparatorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/quantity-comparator";

    INVALID_UNINITIALIZED = 0;
    LESS_THAN = 1 [(.google.fhir.proto.fhir_original_code) = "<"];
    LESS_THAN_OR_EQUAL_TO = 2 [(.google.fhir.proto.fhir_original_code) = "<="];
    GREATER_THAN_OR_EQUAL_TO = 3
        [(.google.fhir.proto.fhir_original_code) = ">="];
    GREATER_THAN = 4 [(.google.fhir.proto.fhir_original_code) = ">"];
  }
}

// The criteria by which a question is enabled.
// See http://hl7.org/fhir/questionnaire-enable-operator
message QuestionnaireItemOperatorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/questionnaire-enable-operator";

    INVALID_UNINITIALIZED = 0;
    EXISTS = 1;
    EQUALS = 2 [(.google.fhir.proto.fhir_original_code) = "="];
    NOT_EQUAL_TO = 3 [(.google.fhir.proto.fhir_original_code) = "!="];
    GREATER_THAN = 4 [(.google.fhir.proto.fhir_original_code) = ">"];
    LESS_THAN = 5 [(.google.fhir.proto.fhir_original_code) = "<"];
    GREATER_THAN_OR_EQUAL_TO = 6
        [(.google.fhir.proto.fhir_original_code) = ">="];
    LESS_THAN_OR_EQUAL_TO = 7 [(.google.fhir.proto.fhir_original_code) = "<="];
  }
}

// Distinguishes groups from questions and display text and indicates data type
// for questions. See http://hl7.org/fhir/item-type
message QuestionnaireItemTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/item-type";

    INVALID_UNINITIALIZED = 0;
    GROUP = 1;
    DISPLAY = 2;
    QUESTION = 3;
    BOOLEAN = 4;
    DECIMAL = 5;
    INTEGER = 6;
    DATE = 7;
    DATE_TIME = 8 [(.google.fhir.proto.fhir_original_code) = "dateTime"];
    TIME = 9;
    STRING = 10;
    TEXT = 11;
    URL = 12;
    CHOICE = 13;
    OPEN_CHOICE = 14;
    ATTACHMENT = 15;
    REFERENCE = 16;
    QUANTITY = 17;
  }
}

// Identifies the modes of usage of a questionnaire that should enable a
// particular questionnaire item. See
// http://terminology.hl7.org/CodeSystem/questionnaire-usage-mode
message QuestionnaireItemUsageModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/questionnaire-usage-mode";

    INVALID_UNINITIALIZED = 0;
    CAPTURE_DISPLAY = 1;
    CAPTURE = 2;
    DISPLAY = 3;
    DISPLAY_NON_EMPTY = 4;
    CAPTURE_DISPLAY_NON_EMPTY = 5;
  }
}

// Lifecycle status of the questionnaire response.
// See http://hl7.org/fhir/questionnaire-answers-status
message QuestionnaireResponseStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/questionnaire-answers-status";

    INVALID_UNINITIALIZED = 0;
    IN_PROGRESS = 1;
    COMPLETED = 2;
    AMENDED = 3;
    ENTERED_IN_ERROR = 4;
    STOPPED = 5;
  }
}

// A set of flags that defines how references are supported.
// See http://hl7.org/fhir/reference-handling-policy
message ReferenceHandlingPolicyCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/reference-handling-policy";

    INVALID_UNINITIALIZED = 0;
    LITERAL = 1;
    LOGICAL = 2;
    RESOLVES = 3;
    ENFORCED = 4;
    LOCAL = 5;
  }
}

// Whether a reference needs to be version specific or version independent, or
// whether either can be used. See http://hl7.org/fhir/reference-version-rules
message ReferenceVersionRulesCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/reference-version-rules";

    INVALID_UNINITIALIZED = 0;
    EITHER = 1;
    INDEPENDENT = 2;
    SPECIFIC = 3;
  }
}

// The type of relationship to the related artifact.
// See http://hl7.org/fhir/related-artifact-type
message RelatedArtifactTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/related-artifact-type";

    INVALID_UNINITIALIZED = 0;
    DOCUMENTATION = 1;
    JUSTIFICATION = 2;
    CITATION = 3;
    PREDECESSOR = 4;
    SUCCESSOR = 5;
    DERIVED_FROM = 6;
    DEPENDS_ON = 7;
    COMPOSED_OF = 8;
  }
}

// Type for access of external URI.
// See http://hl7.org/fhir/repository-type
message RepositoryTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/repository-type";

    INVALID_UNINITIALIZED = 0;
    DIRECTLINK = 1;
    OPENAPI = 2;
    LOGIN = 3;
    OAUTH = 4;
    OTHER = 5;
  }
}

// Codes indicating the degree of authority/intentionality associated with a
// request. See http://hl7.org/fhir/request-intent
message RequestIntentCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/request-intent";

    INVALID_UNINITIALIZED = 0;
    PROPOSAL = 1;
    PLAN = 2;
    DIRECTIVE = 3;
    ORDER = 4;
    ORIGINAL_ORDER = 5;
    REFLEX_ORDER = 6;
    FILLER_ORDER = 7;
    INSTANCE_ORDER = 8;
    OPTION = 9;
  }
}

// Identifies the level of importance to be assigned to actioning the request.
// See http://hl7.org/fhir/request-priority
message RequestPriorityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/request-priority";

    INVALID_UNINITIALIZED = 0;
    ROUTINE = 1;
    URGENT = 2;
    ASAP = 3;
    STAT = 4;
  }
}

// A list of all the request resource types defined in this version of the FHIR
// specification. See http://hl7.org/fhir/request-resource-types
message RequestResourceTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/request-resource-types";

    INVALID_UNINITIALIZED = 0;
    APPOINTMENT = 1 [(.google.fhir.proto.fhir_original_code) = "Appointment"];
    APPOINTMENT_RESPONSE = 2
        [(.google.fhir.proto.fhir_original_code) = "AppointmentResponse"];
    CARE_PLAN = 3 [(.google.fhir.proto.fhir_original_code) = "CarePlan"];
    CLAIM = 4 [(.google.fhir.proto.fhir_original_code) = "Claim"];
    COMMUNICATION_REQUEST = 5
        [(.google.fhir.proto.fhir_original_code) = "CommunicationRequest"];
    CONTRACT = 6 [(.google.fhir.proto.fhir_original_code) = "Contract"];
    DEVICE_REQUEST = 7
        [(.google.fhir.proto.fhir_original_code) = "DeviceRequest"];
    ENROLLMENT_REQUEST = 8
        [(.google.fhir.proto.fhir_original_code) = "EnrollmentRequest"];
    IMMUNIZATION_RECOMMENDATION = 9 [(.google.fhir.proto.fhir_original_code) =
                                         "ImmunizationRecommendation"];
    MEDICATION_REQUEST = 10
        [(.google.fhir.proto.fhir_original_code) = "MedicationRequest"];
    NUTRITION_ORDER = 11
        [(.google.fhir.proto.fhir_original_code) = "NutritionOrder"];
    SERVICE_REQUEST = 12
        [(.google.fhir.proto.fhir_original_code) = "ServiceRequest"];
    SUPPLY_REQUEST = 13
        [(.google.fhir.proto.fhir_original_code) = "SupplyRequest"];
    TASK = 14 [(.google.fhir.proto.fhir_original_code) = "Task"];
    VISION_PRESCRIPTION = 15
        [(.google.fhir.proto.fhir_original_code) = "VisionPrescription"];
  }
}

// Codes identifying the lifecycle stage of a request.
// See http://hl7.org/fhir/request-status
message RequestStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/request-status";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    ACTIVE = 2;
    ON_HOLD = 3;
    REVOKED = 4;
    COMPLETED = 5;
    ENTERED_IN_ERROR = 6;
    UNKNOWN = 7;
  }
}

// The possible types of research elements (E.g. Population, Exposure, Outcome).
// See http://hl7.org/fhir/research-element-type
message ResearchElementTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/research-element-type";

    INVALID_UNINITIALIZED = 0;
    POPULATION = 1;
    EXPOSURE = 2;
    OUTCOME = 3;
  }
}

// Codes that convey the current status of the research study.
// See http://hl7.org/fhir/research-study-status
message ResearchStudyStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/research-study-status";

    INVALID_UNINITIALIZED = 0;
    ACTIVE = 1;
    ADMINISTRATIVELY_COMPLETED = 2;
    APPROVED = 3;
    CLOSED_TO_ACCRUAL = 4;
    CLOSED_TO_ACCRUAL_AND_INTERVENTION = 5;
    COMPLETED = 6;
    DISAPPROVED = 7;
    IN_REVIEW = 8;
    TEMPORARILY_CLOSED_TO_ACCRUAL = 9;
    TEMPORARILY_CLOSED_TO_ACCRUAL_AND_INTERVENTION = 10;
    WITHDRAWN = 11;
  }
}

// Indicates the progression of a study subject through a study.
// See http://hl7.org/fhir/research-subject-status
message ResearchSubjectStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/research-subject-status";

    INVALID_UNINITIALIZED = 0;
    CANDIDATE = 1;
    ELIGIBLE = 2;
    FOLLOW_UP = 3;
    INELIGIBLE = 4;
    NOT_REGISTERED = 5;
    OFF_STUDY = 6;
    ON_STUDY = 7;
    ON_STUDY_INTERVENTION = 8;
    ON_STUDY_OBSERVATION = 9;
    PENDING_ON_STUDY = 10;
    POTENTIAL_CANDIDATE = 11;
    SCREENING = 12;
    WITHDRAWN = 13;
  }
}

// Provides general guidance around the kind of access Control to Read, Search,
// Create, Update, or Delete a resource. See
// http://terminology.hl7.org/CodeSystem/resource-security-category
message ResourceSecurityCategoryCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/resource-security-category";

    INVALID_UNINITIALIZED = 0;
    ANONYMOUS = 1;
    BUSINESS = 2;
    INDIVIDUAL = 3;
    PATIENT = 4;
    NOT_CLASSIFIED = 5;
  }
}

// One of the resource types defined as part of this version of FHIR.
// See http://hl7.org/fhir/resource-types
message ResourceTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/resource-types";

    INVALID_UNINITIALIZED = 0;
    ACCOUNT = 1 [(.google.fhir.proto.fhir_original_code) = "Account"];
    ACTIVITY_DEFINITION = 2
        [(.google.fhir.proto.fhir_original_code) = "ActivityDefinition"];
    ADVERSE_EVENT = 3
        [(.google.fhir.proto.fhir_original_code) = "AdverseEvent"];
    ALLERGY_INTOLERANCE = 4
        [(.google.fhir.proto.fhir_original_code) = "AllergyIntolerance"];
    APPOINTMENT = 5 [(.google.fhir.proto.fhir_original_code) = "Appointment"];
    APPOINTMENT_RESPONSE = 6
        [(.google.fhir.proto.fhir_original_code) = "AppointmentResponse"];
    AUDIT_EVENT = 7 [(.google.fhir.proto.fhir_original_code) = "AuditEvent"];
    BASIC = 8 [(.google.fhir.proto.fhir_original_code) = "Basic"];
    BINARY = 9 [(.google.fhir.proto.fhir_original_code) = "Binary"];
    BIOLOGICALLY_DERIVED_PRODUCT = 10 [(.google.fhir.proto.fhir_original_code) =
                                           "BiologicallyDerivedProduct"];
    BODY_STRUCTURE = 11
        [(.google.fhir.proto.fhir_original_code) = "BodyStructure"];
    BUNDLE = 12 [(.google.fhir.proto.fhir_original_code) = "Bundle"];
    CAPABILITY_STATEMENT = 13
        [(.google.fhir.proto.fhir_original_code) = "CapabilityStatement"];
    CARE_PLAN = 14 [(.google.fhir.proto.fhir_original_code) = "CarePlan"];
    CARE_TEAM = 15 [(.google.fhir.proto.fhir_original_code) = "CareTeam"];
    CATALOG_ENTRY = 16
        [(.google.fhir.proto.fhir_original_code) = "CatalogEntry"];
    CHARGE_ITEM = 17 [(.google.fhir.proto.fhir_original_code) = "ChargeItem"];
    CHARGE_ITEM_DEFINITION = 18
        [(.google.fhir.proto.fhir_original_code) = "ChargeItemDefinition"];
    CLAIM = 19 [(.google.fhir.proto.fhir_original_code) = "Claim"];
    CLAIM_RESPONSE = 20
        [(.google.fhir.proto.fhir_original_code) = "ClaimResponse"];
    CLINICAL_IMPRESSION = 21
        [(.google.fhir.proto.fhir_original_code) = "ClinicalImpression"];
    CODE_SYSTEM = 22 [(.google.fhir.proto.fhir_original_code) = "CodeSystem"];
    COMMUNICATION = 23
        [(.google.fhir.proto.fhir_original_code) = "Communication"];
    COMMUNICATION_REQUEST = 24
        [(.google.fhir.proto.fhir_original_code) = "CommunicationRequest"];
    COMPARTMENT_DEFINITION = 25
        [(.google.fhir.proto.fhir_original_code) = "CompartmentDefinition"];
    COMPOSITION = 26 [(.google.fhir.proto.fhir_original_code) = "Composition"];
    CONCEPT_MAP = 27 [(.google.fhir.proto.fhir_original_code) = "ConceptMap"];
    CONDITION = 28 [(.google.fhir.proto.fhir_original_code) = "Condition"];
    CONSENT = 29 [(.google.fhir.proto.fhir_original_code) = "Consent"];
    CONTRACT = 30 [(.google.fhir.proto.fhir_original_code) = "Contract"];
    COVERAGE = 31 [(.google.fhir.proto.fhir_original_code) = "Coverage"];
    COVERAGE_ELIGIBILITY_REQUEST = 32 [(.google.fhir.proto.fhir_original_code) =
                                           "CoverageEligibilityRequest"];
    COVERAGE_ELIGIBILITY_RESPONSE = 33
        [(.google.fhir.proto.fhir_original_code) =
             "CoverageEligibilityResponse"];
    DETECTED_ISSUE = 34
        [(.google.fhir.proto.fhir_original_code) = "DetectedIssue"];
    DEVICE = 35 [(.google.fhir.proto.fhir_original_code) = "Device"];
    DEVICE_DEFINITION = 36
        [(.google.fhir.proto.fhir_original_code) = "DeviceDefinition"];
    DEVICE_METRIC = 37
        [(.google.fhir.proto.fhir_original_code) = "DeviceMetric"];
    DEVICE_REQUEST = 38
        [(.google.fhir.proto.fhir_original_code) = "DeviceRequest"];
    DEVICE_USE_STATEMENT = 39
        [(.google.fhir.proto.fhir_original_code) = "DeviceUseStatement"];
    DIAGNOSTIC_REPORT = 40
        [(.google.fhir.proto.fhir_original_code) = "DiagnosticReport"];
    DOCUMENT_MANIFEST = 41
        [(.google.fhir.proto.fhir_original_code) = "DocumentManifest"];
    DOCUMENT_REFERENCE = 42
        [(.google.fhir.proto.fhir_original_code) = "DocumentReference"];
    DOMAIN_RESOURCE = 43
        [(.google.fhir.proto.fhir_original_code) = "DomainResource"];
    EFFECT_EVIDENCE_SYNTHESIS = 44
        [(.google.fhir.proto.fhir_original_code) = "EffectEvidenceSynthesis"];
    ENCOUNTER = 45 [(.google.fhir.proto.fhir_original_code) = "Encounter"];
    ENDPOINT = 46 [(.google.fhir.proto.fhir_original_code) = "Endpoint"];
    ENROLLMENT_REQUEST = 47
        [(.google.fhir.proto.fhir_original_code) = "EnrollmentRequest"];
    ENROLLMENT_RESPONSE = 48
        [(.google.fhir.proto.fhir_original_code) = "EnrollmentResponse"];
    EPISODE_OF_CARE = 49
        [(.google.fhir.proto.fhir_original_code) = "EpisodeOfCare"];
    EVENT_DEFINITION = 50
        [(.google.fhir.proto.fhir_original_code) = "EventDefinition"];
    EVIDENCE = 51 [(.google.fhir.proto.fhir_original_code) = "Evidence"];
    EVIDENCE_VARIABLE = 52
        [(.google.fhir.proto.fhir_original_code) = "EvidenceVariable"];
    EXAMPLE_SCENARIO = 53
        [(.google.fhir.proto.fhir_original_code) = "ExampleScenario"];
    EXPLANATION_OF_BENEFIT = 54
        [(.google.fhir.proto.fhir_original_code) = "ExplanationOfBenefit"];
    FAMILY_MEMBER_HISTORY = 55
        [(.google.fhir.proto.fhir_original_code) = "FamilyMemberHistory"];
    FLAG = 56 [(.google.fhir.proto.fhir_original_code) = "Flag"];
    GOAL = 57 [(.google.fhir.proto.fhir_original_code) = "Goal"];
    GRAPH_DEFINITION = 58
        [(.google.fhir.proto.fhir_original_code) = "GraphDefinition"];
    GROUP = 59 [(.google.fhir.proto.fhir_original_code) = "Group"];
    GUIDANCE_RESPONSE = 60
        [(.google.fhir.proto.fhir_original_code) = "GuidanceResponse"];
    HEALTHCARE_SERVICE = 61
        [(.google.fhir.proto.fhir_original_code) = "HealthcareService"];
    IMAGING_STUDY = 62
        [(.google.fhir.proto.fhir_original_code) = "ImagingStudy"];
    IMMUNIZATION = 63
        [(.google.fhir.proto.fhir_original_code) = "Immunization"];
    IMMUNIZATION_EVALUATION = 64
        [(.google.fhir.proto.fhir_original_code) = "ImmunizationEvaluation"];
    IMMUNIZATION_RECOMMENDATION = 65 [(.google.fhir.proto.fhir_original_code) =
                                          "ImmunizationRecommendation"];
    IMPLEMENTATION_GUIDE = 66
        [(.google.fhir.proto.fhir_original_code) = "ImplementationGuide"];
    INSURANCE_PLAN = 67
        [(.google.fhir.proto.fhir_original_code) = "InsurancePlan"];
    INVOICE = 68 [(.google.fhir.proto.fhir_original_code) = "Invoice"];
    LIBRARY = 69 [(.google.fhir.proto.fhir_original_code) = "Library"];
    LINKAGE = 70 [(.google.fhir.proto.fhir_original_code) = "Linkage"];
    LIST = 71 [(.google.fhir.proto.fhir_original_code) = "List"];
    LOCATION = 72 [(.google.fhir.proto.fhir_original_code) = "Location"];
    MEASURE = 73 [(.google.fhir.proto.fhir_original_code) = "Measure"];
    MEASURE_REPORT = 74
        [(.google.fhir.proto.fhir_original_code) = "MeasureReport"];
    MEDIA = 75 [(.google.fhir.proto.fhir_original_code) = "Media"];
    MEDICATION = 76 [(.google.fhir.proto.fhir_original_code) = "Medication"];
    MEDICATION_ADMINISTRATION = 77
        [(.google.fhir.proto.fhir_original_code) = "MedicationAdministration"];
    MEDICATION_DISPENSE = 78
        [(.google.fhir.proto.fhir_original_code) = "MedicationDispense"];
    MEDICATION_KNOWLEDGE = 79
        [(.google.fhir.proto.fhir_original_code) = "MedicationKnowledge"];
    MEDICATION_REQUEST = 80
        [(.google.fhir.proto.fhir_original_code) = "MedicationRequest"];
    MEDICATION_STATEMENT = 81
        [(.google.fhir.proto.fhir_original_code) = "MedicationStatement"];
    MEDICINAL_PRODUCT = 82
        [(.google.fhir.proto.fhir_original_code) = "MedicinalProduct"];
    MEDICINAL_PRODUCT_AUTHORIZATION = 83
        [(.google.fhir.proto.fhir_original_code) =
             "MedicinalProductAuthorization"];
    MEDICINAL_PRODUCT_CONTRAINDICATION = 84
        [(.google.fhir.proto.fhir_original_code) =
             "MedicinalProductContraindication"];
    MEDICINAL_PRODUCT_INDICATION = 85 [(.google.fhir.proto.fhir_original_code) =
                                           "MedicinalProductIndication"];
    MEDICINAL_PRODUCT_INGREDIENT = 86 [(.google.fhir.proto.fhir_original_code) =
                                           "MedicinalProductIngredient"];
    MEDICINAL_PRODUCT_INTERACTION = 87
        [(.google.fhir.proto.fhir_original_code) =
             "MedicinalProductInteraction"];
    MEDICINAL_PRODUCT_MANUFACTURED = 88
        [(.google.fhir.proto.fhir_original_code) =
             "MedicinalProductManufactured"];
    MEDICINAL_PRODUCT_PACKAGED = 89
        [(.google.fhir.proto.fhir_original_code) = "MedicinalProductPackaged"];
    MEDICINAL_PRODUCT_PHARMACEUTICAL = 90
        [(.google.fhir.proto.fhir_original_code) =
             "MedicinalProductPharmaceutical"];
    MEDICINAL_PRODUCT_UNDESIRABLE_EFFECT = 91
        [(.google.fhir.proto.fhir_original_code) =
             "MedicinalProductUndesirableEffect"];
    MESSAGE_DEFINITION = 92
        [(.google.fhir.proto.fhir_original_code) = "MessageDefinition"];
    MESSAGE_HEADER = 93
        [(.google.fhir.proto.fhir_original_code) = "MessageHeader"];
    MOLECULAR_SEQUENCE = 94
        [(.google.fhir.proto.fhir_original_code) = "MolecularSequence"];
    NAMING_SYSTEM = 95
        [(.google.fhir.proto.fhir_original_code) = "NamingSystem"];
    NUTRITION_ORDER = 96
        [(.google.fhir.proto.fhir_original_code) = "NutritionOrder"];
    OBSERVATION = 97 [(.google.fhir.proto.fhir_original_code) = "Observation"];
    OBSERVATION_DEFINITION = 98
        [(.google.fhir.proto.fhir_original_code) = "ObservationDefinition"];
    OPERATION_DEFINITION = 99
        [(.google.fhir.proto.fhir_original_code) = "OperationDefinition"];
    OPERATION_OUTCOME = 100
        [(.google.fhir.proto.fhir_original_code) = "OperationOutcome"];
    ORGANIZATION = 101
        [(.google.fhir.proto.fhir_original_code) = "Organization"];
    ORGANIZATION_AFFILIATION = 102
        [(.google.fhir.proto.fhir_original_code) = "OrganizationAffiliation"];
    PARAMETERS = 103 [(.google.fhir.proto.fhir_original_code) = "Parameters"];
    PATIENT = 104 [(.google.fhir.proto.fhir_original_code) = "Patient"];
    PAYMENT_NOTICE = 105
        [(.google.fhir.proto.fhir_original_code) = "PaymentNotice"];
    PAYMENT_RECONCILIATION = 106
        [(.google.fhir.proto.fhir_original_code) = "PaymentReconciliation"];
    PERSON = 107 [(.google.fhir.proto.fhir_original_code) = "Person"];
    PLAN_DEFINITION = 108
        [(.google.fhir.proto.fhir_original_code) = "PlanDefinition"];
    PRACTITIONER = 109
        [(.google.fhir.proto.fhir_original_code) = "Practitioner"];
    PRACTITIONER_ROLE = 110
        [(.google.fhir.proto.fhir_original_code) = "PractitionerRole"];
    PROCEDURE = 111 [(.google.fhir.proto.fhir_original_code) = "Procedure"];
    PROVENANCE = 112 [(.google.fhir.proto.fhir_original_code) = "Provenance"];
    QUESTIONNAIRE = 113
        [(.google.fhir.proto.fhir_original_code) = "Questionnaire"];
    QUESTIONNAIRE_RESPONSE = 114
        [(.google.fhir.proto.fhir_original_code) = "QuestionnaireResponse"];
    RELATED_PERSON = 115
        [(.google.fhir.proto.fhir_original_code) = "RelatedPerson"];
    REQUEST_GROUP = 116
        [(.google.fhir.proto.fhir_original_code) = "RequestGroup"];
    RESEARCH_DEFINITION = 117
        [(.google.fhir.proto.fhir_original_code) = "ResearchDefinition"];
    RESEARCH_ELEMENT_DEFINITION = 118
        [(.google.fhir.proto.fhir_original_code) = "ResearchElementDefinition"];
    RESEARCH_STUDY = 119
        [(.google.fhir.proto.fhir_original_code) = "ResearchStudy"];
    RESEARCH_SUBJECT = 120
        [(.google.fhir.proto.fhir_original_code) = "ResearchSubject"];
    RESOURCE = 121 [(.google.fhir.proto.fhir_original_code) = "Resource"];
    RISK_ASSESSMENT = 122
        [(.google.fhir.proto.fhir_original_code) = "RiskAssessment"];
    RISK_EVIDENCE_SYNTHESIS = 123
        [(.google.fhir.proto.fhir_original_code) = "RiskEvidenceSynthesis"];
    SCHEDULE = 124 [(.google.fhir.proto.fhir_original_code) = "Schedule"];
    SEARCH_PARAMETER = 125
        [(.google.fhir.proto.fhir_original_code) = "SearchParameter"];
    SERVICE_REQUEST = 126
        [(.google.fhir.proto.fhir_original_code) = "ServiceRequest"];
    SLOT = 127 [(.google.fhir.proto.fhir_original_code) = "Slot"];
    SPECIMEN = 128 [(.google.fhir.proto.fhir_original_code) = "Specimen"];
    SPECIMEN_DEFINITION = 129
        [(.google.fhir.proto.fhir_original_code) = "SpecimenDefinition"];
    STRUCTURE_DEFINITION = 130
        [(.google.fhir.proto.fhir_original_code) = "StructureDefinition"];
    STRUCTURE_MAP = 131
        [(.google.fhir.proto.fhir_original_code) = "StructureMap"];
    SUBSCRIPTION = 132
        [(.google.fhir.proto.fhir_original_code) = "Subscription"];
    SUBSTANCE = 133 [(.google.fhir.proto.fhir_original_code) = "Substance"];
    SUBSTANCE_NUCLEIC_ACID = 134
        [(.google.fhir.proto.fhir_original_code) = "SubstanceNucleicAcid"];
    SUBSTANCE_POLYMER = 135
        [(.google.fhir.proto.fhir_original_code) = "SubstancePolymer"];
    SUBSTANCE_PROTEIN = 136
        [(.google.fhir.proto.fhir_original_code) = "SubstanceProtein"];
    SUBSTANCE_REFERENCE_INFORMATION = 137
        [(.google.fhir.proto.fhir_original_code) =
             "SubstanceReferenceInformation"];
    SUBSTANCE_SOURCE_MATERIAL = 138
        [(.google.fhir.proto.fhir_original_code) = "SubstanceSourceMaterial"];
    SUBSTANCE_SPECIFICATION = 139
        [(.google.fhir.proto.fhir_original_code) = "SubstanceSpecification"];
    SUPPLY_DELIVERY = 140
        [(.google.fhir.proto.fhir_original_code) = "SupplyDelivery"];
    SUPPLY_REQUEST = 141
        [(.google.fhir.proto.fhir_original_code) = "SupplyRequest"];
    TASK = 142 [(.google.fhir.proto.fhir_original_code) = "Task"];
    TERMINOLOGY_CAPABILITIES = 143
        [(.google.fhir.proto.fhir_original_code) = "TerminologyCapabilities"];
    TEST_REPORT = 144 [(.google.fhir.proto.fhir_original_code) = "TestReport"];
    TEST_SCRIPT = 145 [(.google.fhir.proto.fhir_original_code) = "TestScript"];
    VALUE_SET = 146 [(.google.fhir.proto.fhir_original_code) = "ValueSet"];
    VERIFICATION_RESULT = 147
        [(.google.fhir.proto.fhir_original_code) = "VerificationResult"];
    VISION_PRESCRIPTION = 148
        [(.google.fhir.proto.fhir_original_code) = "VisionPrescription"];
  }
}

// How the system supports versioning for a resource.
// See http://hl7.org/fhir/versioning-policy
message ResourceVersionPolicyCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/versioning-policy";

    INVALID_UNINITIALIZED = 0;
    NO_VERSION = 1;
    VERSIONED = 2;
    VERSIONED_UPDATE = 3;
  }
}

// The kind of response to a message.
// See http://hl7.org/fhir/response-code
message ResponseTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/response-code";

    INVALID_UNINITIALIZED = 0;
    OK = 1;
    TRANSIENT_ERROR = 2;
    FATAL_ERROR = 3;
  }
}

// The mode of a RESTful capability statement.
// See http://hl7.org/fhir/restful-capability-mode
message RestfulCapabilityModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/restful-capability-mode";

    INVALID_UNINITIALIZED = 0;
    CLIENT = 1;
    SERVER = 2;
  }
}

// The license that applies to an Implementation Guide (using an SPDX license
// Identifiers, or 'not-open-source'). The binding is required but new SPDX
// license Identifiers are allowed to be used (https://spdx.org/licenses/). See
// http://hl7.org/fhir/spdx-license
message SPDXLicenseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/spdx-license";

    INVALID_UNINITIALIZED = 0;
    NOT_OPEN_SOURCE = 1;
    BSD_ZERO_CLAUSE_LICENSE = 2
        [(.google.fhir.proto.fhir_original_code) = "0BSD"];
    AAL = 3 [(.google.fhir.proto.fhir_original_code) = "AAL"];
    ABSTYLES = 4 [(.google.fhir.proto.fhir_original_code) = "Abstyles"];
    ADOBE_2006 = 5 [(.google.fhir.proto.fhir_original_code) = "Adobe-2006"];
    ADOBE_GLYPH = 6 [(.google.fhir.proto.fhir_original_code) = "Adobe-Glyph"];
    ADSL = 7 [(.google.fhir.proto.fhir_original_code) = "ADSL"];
    AFL_1_1 = 8 [(.google.fhir.proto.fhir_original_code) = "AFL-1.1"];
    AFL_1_2 = 9 [(.google.fhir.proto.fhir_original_code) = "AFL-1.2"];
    AFL_2_0 = 10 [(.google.fhir.proto.fhir_original_code) = "AFL-2.0"];
    AFL_2_1 = 11 [(.google.fhir.proto.fhir_original_code) = "AFL-2.1"];
    AFL_3_0 = 12 [(.google.fhir.proto.fhir_original_code) = "AFL-3.0"];
    AFMPARSE = 13 [(.google.fhir.proto.fhir_original_code) = "Afmparse"];
    AGPL_1_0_ONLY = 14
        [(.google.fhir.proto.fhir_original_code) = "AGPL-1.0-only"];
    AGPL_1_0_OR_LATER = 15
        [(.google.fhir.proto.fhir_original_code) = "AGPL-1.0-or-later"];
    AGPL_3_0_ONLY = 16
        [(.google.fhir.proto.fhir_original_code) = "AGPL-3.0-only"];
    AGPL_3_0_OR_LATER = 17
        [(.google.fhir.proto.fhir_original_code) = "AGPL-3.0-or-later"];
    ALADDIN = 18 [(.google.fhir.proto.fhir_original_code) = "Aladdin"];
    AMDPLPA = 19 [(.google.fhir.proto.fhir_original_code) = "AMDPLPA"];
    AML = 20 [(.google.fhir.proto.fhir_original_code) = "AML"];
    AMPAS = 21 [(.google.fhir.proto.fhir_original_code) = "AMPAS"];
    ANTLR_PD = 22 [(.google.fhir.proto.fhir_original_code) = "ANTLR-PD"];
    APACHE_1_0 = 23 [(.google.fhir.proto.fhir_original_code) = "Apache-1.0"];
    APACHE_1_1 = 24 [(.google.fhir.proto.fhir_original_code) = "Apache-1.1"];
    APACHE_2_0 = 25 [(.google.fhir.proto.fhir_original_code) = "Apache-2.0"];
    APAFML = 26 [(.google.fhir.proto.fhir_original_code) = "APAFML"];
    APL_1_0 = 27 [(.google.fhir.proto.fhir_original_code) = "APL-1.0"];
    APSL_1_0 = 28 [(.google.fhir.proto.fhir_original_code) = "APSL-1.0"];
    APSL_1_1 = 29 [(.google.fhir.proto.fhir_original_code) = "APSL-1.1"];
    APSL_1_2 = 30 [(.google.fhir.proto.fhir_original_code) = "APSL-1.2"];
    APSL_2_0 = 31 [(.google.fhir.proto.fhir_original_code) = "APSL-2.0"];
    ARTISTIC_1_0_CL8 = 32
        [(.google.fhir.proto.fhir_original_code) = "Artistic-1.0-cl8"];
    ARTISTIC_1_0_PERL = 33
        [(.google.fhir.proto.fhir_original_code) = "Artistic-1.0-Perl"];
    ARTISTIC_1_0 = 34
        [(.google.fhir.proto.fhir_original_code) = "Artistic-1.0"];
    ARTISTIC_2_0 = 35
        [(.google.fhir.proto.fhir_original_code) = "Artistic-2.0"];
    BAHYPH = 36 [(.google.fhir.proto.fhir_original_code) = "Bahyph"];
    BARR = 37 [(.google.fhir.proto.fhir_original_code) = "Barr"];
    BEERWARE = 38 [(.google.fhir.proto.fhir_original_code) = "Beerware"];
    BIT_TORRENT_1_0 = 39
        [(.google.fhir.proto.fhir_original_code) = "BitTorrent-1.0"];
    BIT_TORRENT_1_1 = 40
        [(.google.fhir.proto.fhir_original_code) = "BitTorrent-1.1"];
    BORCEUX = 41 [(.google.fhir.proto.fhir_original_code) = "Borceux"];
    BSD_1_CLAUSE = 42
        [(.google.fhir.proto.fhir_original_code) = "BSD-1-Clause"];
    BSD_2_CLAUSE_FREE_BSD = 43
        [(.google.fhir.proto.fhir_original_code) = "BSD-2-Clause-FreeBSD"];
    BSD_2_CLAUSE_NET_BSD = 44
        [(.google.fhir.proto.fhir_original_code) = "BSD-2-Clause-NetBSD"];
    BSD_2_CLAUSE_PATENT = 45
        [(.google.fhir.proto.fhir_original_code) = "BSD-2-Clause-Patent"];
    BSD_2_CLAUSE = 46
        [(.google.fhir.proto.fhir_original_code) = "BSD-2-Clause"];
    BSD_3_CLAUSE_ATTRIBUTION = 47
        [(.google.fhir.proto.fhir_original_code) = "BSD-3-Clause-Attribution"];
    BSD_3_CLAUSE_CLEAR = 48
        [(.google.fhir.proto.fhir_original_code) = "BSD-3-Clause-Clear"];
    BSD_3_CLAUSE_LBNL = 49
        [(.google.fhir.proto.fhir_original_code) = "BSD-3-Clause-LBNL"];
    BSD_3_CLAUSE_NO_NUCLEAR_LICENSE_2014 = 50
        [(.google.fhir.proto.fhir_original_code) =
             "BSD-3-Clause-No-Nuclear-License-2014"];
    BSD_3_CLAUSE_NO_NUCLEAR_LICENSE = 51
        [(.google.fhir.proto.fhir_original_code) =
             "BSD-3-Clause-No-Nuclear-License"];
    BSD_3_CLAUSE_NO_NUCLEAR_WARRANTY = 52
        [(.google.fhir.proto.fhir_original_code) =
             "BSD-3-Clause-No-Nuclear-Warranty"];
    BSD_3_CLAUSE = 53
        [(.google.fhir.proto.fhir_original_code) = "BSD-3-Clause"];
    BSD_4_CLAUSE_UC = 54
        [(.google.fhir.proto.fhir_original_code) = "BSD-4-Clause-UC"];
    BSD_4_CLAUSE = 55
        [(.google.fhir.proto.fhir_original_code) = "BSD-4-Clause"];
    BSD_PROTECTION = 56
        [(.google.fhir.proto.fhir_original_code) = "BSD-Protection"];
    BSD_SOURCE_CODE = 57
        [(.google.fhir.proto.fhir_original_code) = "BSD-Source-Code"];
    BSL_1_0 = 58 [(.google.fhir.proto.fhir_original_code) = "BSL-1.0"];
    BZIP2_1_0_5 = 59 [(.google.fhir.proto.fhir_original_code) = "bzip2-1.0.5"];
    BZIP2_1_0_6 = 60 [(.google.fhir.proto.fhir_original_code) = "bzip2-1.0.6"];
    CALDERA = 61 [(.google.fhir.proto.fhir_original_code) = "Caldera"];
    CATOSL_1_1 = 62 [(.google.fhir.proto.fhir_original_code) = "CATOSL-1.1"];
    CC_BY_1_0 = 63 [(.google.fhir.proto.fhir_original_code) = "CC-BY-1.0"];
    CC_BY_2_0 = 64 [(.google.fhir.proto.fhir_original_code) = "CC-BY-2.0"];
    CC_BY_2_5 = 65 [(.google.fhir.proto.fhir_original_code) = "CC-BY-2.5"];
    CC_BY_3_0 = 66 [(.google.fhir.proto.fhir_original_code) = "CC-BY-3.0"];
    CC_BY_4_0 = 67 [(.google.fhir.proto.fhir_original_code) = "CC-BY-4.0"];
    CC_BY_NC_1_0 = 68
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-1.0"];
    CC_BY_NC_2_0 = 69
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-2.0"];
    CC_BY_NC_2_5 = 70
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-2.5"];
    CC_BY_NC_3_0 = 71
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-3.0"];
    CC_BY_NC_4_0 = 72
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-4.0"];
    CC_BY_NC_ND_1_0 = 73
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-ND-1.0"];
    CC_BY_NC_ND_2_0 = 74
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-ND-2.0"];
    CC_BY_NC_ND_2_5 = 75
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-ND-2.5"];
    CC_BY_NC_ND_3_0 = 76
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-ND-3.0"];
    CC_BY_NC_ND_4_0 = 77
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-ND-4.0"];
    CC_BY_NC_SA_1_0 = 78
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-SA-1.0"];
    CC_BY_NC_SA_2_0 = 79
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-SA-2.0"];
    CC_BY_NC_SA_2_5 = 80
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-SA-2.5"];
    CC_BY_NC_SA_3_0 = 81
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-SA-3.0"];
    CC_BY_NC_SA_4_0 = 82
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-NC-SA-4.0"];
    CC_BY_ND_1_0 = 83
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-ND-1.0"];
    CC_BY_ND_2_0 = 84
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-ND-2.0"];
    CC_BY_ND_2_5 = 85
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-ND-2.5"];
    CC_BY_ND_3_0 = 86
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-ND-3.0"];
    CC_BY_ND_4_0 = 87
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-ND-4.0"];
    CC_BY_SA_1_0 = 88
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-SA-1.0"];
    CC_BY_SA_2_0 = 89
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-SA-2.0"];
    CC_BY_SA_2_5 = 90
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-SA-2.5"];
    CC_BY_SA_3_0 = 91
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-SA-3.0"];
    CC_BY_SA_4_0 = 92
        [(.google.fhir.proto.fhir_original_code) = "CC-BY-SA-4.0"];
    CC0_1_0 = 93 [(.google.fhir.proto.fhir_original_code) = "CC0-1.0"];
    CDDL_1_0 = 94 [(.google.fhir.proto.fhir_original_code) = "CDDL-1.0"];
    CDDL_1_1 = 95 [(.google.fhir.proto.fhir_original_code) = "CDDL-1.1"];
    CDLA_PERMISSIVE_1_0 = 96
        [(.google.fhir.proto.fhir_original_code) = "CDLA-Permissive-1.0"];
    CDLA_SHARING_1_0 = 97
        [(.google.fhir.proto.fhir_original_code) = "CDLA-Sharing-1.0"];
    CECILL_1_0 = 98 [(.google.fhir.proto.fhir_original_code) = "CECILL-1.0"];
    CECILL_1_1 = 99 [(.google.fhir.proto.fhir_original_code) = "CECILL-1.1"];
    CECILL_2_0 = 100 [(.google.fhir.proto.fhir_original_code) = "CECILL-2.0"];
    CECILL_2_1 = 101 [(.google.fhir.proto.fhir_original_code) = "CECILL-2.1"];
    CECILL_B = 102 [(.google.fhir.proto.fhir_original_code) = "CECILL-B"];
    CECILL_C = 103 [(.google.fhir.proto.fhir_original_code) = "CECILL-C"];
    CL_ARTISTIC = 104 [(.google.fhir.proto.fhir_original_code) = "ClArtistic"];
    CNRI_JYTHON = 105 [(.google.fhir.proto.fhir_original_code) = "CNRI-Jython"];
    CNRI_PYTHON_GPL_COMPATIBLE = 106 [(.google.fhir.proto.fhir_original_code) =
                                          "CNRI-Python-GPL-Compatible"];
    CNRI_PYTHON = 107 [(.google.fhir.proto.fhir_original_code) = "CNRI-Python"];
    CONDOR_1_1 = 108 [(.google.fhir.proto.fhir_original_code) = "Condor-1.1"];
    CPAL_1_0 = 109 [(.google.fhir.proto.fhir_original_code) = "CPAL-1.0"];
    CPL_1_0 = 110 [(.google.fhir.proto.fhir_original_code) = "CPL-1.0"];
    CPOL_1_02 = 111 [(.google.fhir.proto.fhir_original_code) = "CPOL-1.02"];
    CROSSWORD = 112 [(.google.fhir.proto.fhir_original_code) = "Crossword"];
    CRYSTAL_STACKER = 113
        [(.google.fhir.proto.fhir_original_code) = "CrystalStacker"];
    CUA_OPL_1_0 = 114 [(.google.fhir.proto.fhir_original_code) = "CUA-OPL-1.0"];
    CUBE = 115 [(.google.fhir.proto.fhir_original_code) = "Cube"];
    CURL = 116;
    D_FSL_1_0 = 117 [(.google.fhir.proto.fhir_original_code) = "D-FSL-1.0"];
    DIFFMARK = 118;
    DOC = 119 [(.google.fhir.proto.fhir_original_code) = "DOC"];
    DOTSEQN = 120 [(.google.fhir.proto.fhir_original_code) = "Dotseqn"];
    DSDP = 121 [(.google.fhir.proto.fhir_original_code) = "DSDP"];
    DVIPDFM = 122;
    ECL_1_0 = 123 [(.google.fhir.proto.fhir_original_code) = "ECL-1.0"];
    ECL_2_0 = 124 [(.google.fhir.proto.fhir_original_code) = "ECL-2.0"];
    EFL_1_0 = 125 [(.google.fhir.proto.fhir_original_code) = "EFL-1.0"];
    EFL_2_0 = 126 [(.google.fhir.proto.fhir_original_code) = "EFL-2.0"];
    E_GENIX = 127 [(.google.fhir.proto.fhir_original_code) = "eGenix"];
    ENTESSA = 128 [(.google.fhir.proto.fhir_original_code) = "Entessa"];
    EPL_1_0 = 129 [(.google.fhir.proto.fhir_original_code) = "EPL-1.0"];
    EPL_2_0 = 130 [(.google.fhir.proto.fhir_original_code) = "EPL-2.0"];
    ERL_PL_1_1 = 131 [(.google.fhir.proto.fhir_original_code) = "ErlPL-1.1"];
    EU_DATAGRID = 132 [(.google.fhir.proto.fhir_original_code) = "EUDatagrid"];
    EUPL_1_0 = 133 [(.google.fhir.proto.fhir_original_code) = "EUPL-1.0"];
    EUPL_1_1 = 134 [(.google.fhir.proto.fhir_original_code) = "EUPL-1.1"];
    EUPL_1_2 = 135 [(.google.fhir.proto.fhir_original_code) = "EUPL-1.2"];
    EUROSYM = 136 [(.google.fhir.proto.fhir_original_code) = "Eurosym"];
    FAIR = 137 [(.google.fhir.proto.fhir_original_code) = "Fair"];
    FRAMEWORX_1_0 = 138
        [(.google.fhir.proto.fhir_original_code) = "Frameworx-1.0"];
    FREE_IMAGE = 139 [(.google.fhir.proto.fhir_original_code) = "FreeImage"];
    FSFAP = 140 [(.google.fhir.proto.fhir_original_code) = "FSFAP"];
    FSFUL = 141 [(.google.fhir.proto.fhir_original_code) = "FSFUL"];
    FSFULLR = 142 [(.google.fhir.proto.fhir_original_code) = "FSFULLR"];
    FTL = 143 [(.google.fhir.proto.fhir_original_code) = "FTL"];
    GFDL_1_1_ONLY = 144
        [(.google.fhir.proto.fhir_original_code) = "GFDL-1.1-only"];
    GFDL_1_1_OR_LATER = 145
        [(.google.fhir.proto.fhir_original_code) = "GFDL-1.1-or-later"];
    GFDL_1_2_ONLY = 146
        [(.google.fhir.proto.fhir_original_code) = "GFDL-1.2-only"];
    GFDL_1_2_OR_LATER = 147
        [(.google.fhir.proto.fhir_original_code) = "GFDL-1.2-or-later"];
    GFDL_1_3_ONLY = 148
        [(.google.fhir.proto.fhir_original_code) = "GFDL-1.3-only"];
    GFDL_1_3_OR_LATER = 149
        [(.google.fhir.proto.fhir_original_code) = "GFDL-1.3-or-later"];
    GIFTWARE = 150 [(.google.fhir.proto.fhir_original_code) = "Giftware"];
    GL2PS = 151 [(.google.fhir.proto.fhir_original_code) = "GL2PS"];
    GLIDE = 152 [(.google.fhir.proto.fhir_original_code) = "Glide"];
    GLULXE = 153 [(.google.fhir.proto.fhir_original_code) = "Glulxe"];
    GNUPLOT = 154;
    GPL_1_0_ONLY = 155
        [(.google.fhir.proto.fhir_original_code) = "GPL-1.0-only"];
    GPL_1_0_OR_LATER = 156
        [(.google.fhir.proto.fhir_original_code) = "GPL-1.0-or-later"];
    GPL_2_0_ONLY = 157
        [(.google.fhir.proto.fhir_original_code) = "GPL-2.0-only"];
    GPL_2_0_OR_LATER = 158
        [(.google.fhir.proto.fhir_original_code) = "GPL-2.0-or-later"];
    GPL_3_0_ONLY = 159
        [(.google.fhir.proto.fhir_original_code) = "GPL-3.0-only"];
    GPL_3_0_OR_LATER = 160
        [(.google.fhir.proto.fhir_original_code) = "GPL-3.0-or-later"];
    G_SOAP_1_3B = 161 [(.google.fhir.proto.fhir_original_code) = "gSOAP-1.3b"];
    HASKELL_REPORT = 162
        [(.google.fhir.proto.fhir_original_code) = "HaskellReport"];
    HPND = 163 [(.google.fhir.proto.fhir_original_code) = "HPND"];
    IBM_PIBS = 164 [(.google.fhir.proto.fhir_original_code) = "IBM-pibs"];
    ICU = 165 [(.google.fhir.proto.fhir_original_code) = "ICU"];
    IJG = 166 [(.google.fhir.proto.fhir_original_code) = "IJG"];
    IMAGE_MAGICK = 167
        [(.google.fhir.proto.fhir_original_code) = "ImageMagick"];
    I_MATIX = 168 [(.google.fhir.proto.fhir_original_code) = "iMatix"];
    IMLIB2 = 169 [(.google.fhir.proto.fhir_original_code) = "Imlib2"];
    INFO_ZIP = 170 [(.google.fhir.proto.fhir_original_code) = "Info-ZIP"];
    INTEL_ACPI = 171 [(.google.fhir.proto.fhir_original_code) = "Intel-ACPI"];
    INTEL = 172 [(.google.fhir.proto.fhir_original_code) = "Intel"];
    INTERBASE_1_0 = 173
        [(.google.fhir.proto.fhir_original_code) = "Interbase-1.0"];
    IPA = 174 [(.google.fhir.proto.fhir_original_code) = "IPA"];
    IPL_1_0 = 175 [(.google.fhir.proto.fhir_original_code) = "IPL-1.0"];
    ISC = 176 [(.google.fhir.proto.fhir_original_code) = "ISC"];
    JAS_PER_2_0 = 177 [(.google.fhir.proto.fhir_original_code) = "JasPer-2.0"];
    JSON = 178 [(.google.fhir.proto.fhir_original_code) = "JSON"];
    LAL_1_2 = 179 [(.google.fhir.proto.fhir_original_code) = "LAL-1.2"];
    LAL_1_3 = 180 [(.google.fhir.proto.fhir_original_code) = "LAL-1.3"];
    LATEX2E = 181 [(.google.fhir.proto.fhir_original_code) = "Latex2e"];
    LEPTONICA = 182 [(.google.fhir.proto.fhir_original_code) = "Leptonica"];
    LGPL_2_0_ONLY = 183
        [(.google.fhir.proto.fhir_original_code) = "LGPL-2.0-only"];
    LGPL_2_0_OR_LATER = 184
        [(.google.fhir.proto.fhir_original_code) = "LGPL-2.0-or-later"];
    LGPL_2_1_ONLY = 185
        [(.google.fhir.proto.fhir_original_code) = "LGPL-2.1-only"];
    LGPL_2_1_OR_LATER = 186
        [(.google.fhir.proto.fhir_original_code) = "LGPL-2.1-or-later"];
    LGPL_3_0_ONLY = 187
        [(.google.fhir.proto.fhir_original_code) = "LGPL-3.0-only"];
    LGPL_3_0_OR_LATER = 188
        [(.google.fhir.proto.fhir_original_code) = "LGPL-3.0-or-later"];
    LGPLLR = 189 [(.google.fhir.proto.fhir_original_code) = "LGPLLR"];
    LIBPNG = 190 [(.google.fhir.proto.fhir_original_code) = "Libpng"];
    LIBTIFF = 191;
    LI_LI_Q_P_1_1 = 192
        [(.google.fhir.proto.fhir_original_code) = "LiLiQ-P-1.1"];
    LI_LI_Q_R_1_1 = 193
        [(.google.fhir.proto.fhir_original_code) = "LiLiQ-R-1.1"];
    LI_LI_Q_RPLUS_1_1 = 194
        [(.google.fhir.proto.fhir_original_code) = "LiLiQ-Rplus-1.1"];
    LINUX_OPEN_IB = 195
        [(.google.fhir.proto.fhir_original_code) = "Linux-OpenIB"];
    LPL_1_0 = 196 [(.google.fhir.proto.fhir_original_code) = "LPL-1.0"];
    LPL_1_02 = 197 [(.google.fhir.proto.fhir_original_code) = "LPL-1.02"];
    LPPL_1_0 = 198 [(.google.fhir.proto.fhir_original_code) = "LPPL-1.0"];
    LPPL_1_1 = 199 [(.google.fhir.proto.fhir_original_code) = "LPPL-1.1"];
    LPPL_1_2 = 200 [(.google.fhir.proto.fhir_original_code) = "LPPL-1.2"];
    LPPL_1_3A = 201 [(.google.fhir.proto.fhir_original_code) = "LPPL-1.3a"];
    LPPL_1_3C = 202 [(.google.fhir.proto.fhir_original_code) = "LPPL-1.3c"];
    MAKE_INDEX = 203 [(.google.fhir.proto.fhir_original_code) = "MakeIndex"];
    MIR_OS = 204 [(.google.fhir.proto.fhir_original_code) = "MirOS"];
    MIT_0 = 205 [(.google.fhir.proto.fhir_original_code) = "MIT-0"];
    MIT_ADVERTISING = 206
        [(.google.fhir.proto.fhir_original_code) = "MIT-advertising"];
    MIT_CMU = 207 [(.google.fhir.proto.fhir_original_code) = "MIT-CMU"];
    MIT_ENNA = 208 [(.google.fhir.proto.fhir_original_code) = "MIT-enna"];
    MIT_FEH = 209 [(.google.fhir.proto.fhir_original_code) = "MIT-feh"];
    MIT = 210 [(.google.fhir.proto.fhir_original_code) = "MIT"];
    MITNFA = 211 [(.google.fhir.proto.fhir_original_code) = "MITNFA"];
    MOTOSOTO = 212 [(.google.fhir.proto.fhir_original_code) = "Motosoto"];
    MPICH2 = 213;
    MPL_1_0 = 214 [(.google.fhir.proto.fhir_original_code) = "MPL-1.0"];
    MPL_1_1 = 215 [(.google.fhir.proto.fhir_original_code) = "MPL-1.1"];
    MPL_2_0_NO_COPYLEFT_EXCEPTION = 216
        [(.google.fhir.proto.fhir_original_code) =
             "MPL-2.0-no-copyleft-exception"];
    MPL_2_0 = 217 [(.google.fhir.proto.fhir_original_code) = "MPL-2.0"];
    MS_PL = 218 [(.google.fhir.proto.fhir_original_code) = "MS-PL"];
    MS_RL = 219 [(.google.fhir.proto.fhir_original_code) = "MS-RL"];
    MTLL = 220 [(.google.fhir.proto.fhir_original_code) = "MTLL"];
    MULTICS = 221 [(.google.fhir.proto.fhir_original_code) = "Multics"];
    MUP = 222 [(.google.fhir.proto.fhir_original_code) = "Mup"];
    NASA_1_3 = 223 [(.google.fhir.proto.fhir_original_code) = "NASA-1.3"];
    NAUMEN = 224 [(.google.fhir.proto.fhir_original_code) = "Naumen"];
    NBPL_1_0 = 225 [(.google.fhir.proto.fhir_original_code) = "NBPL-1.0"];
    NCSA = 226 [(.google.fhir.proto.fhir_original_code) = "NCSA"];
    NET_SNMP = 227 [(.google.fhir.proto.fhir_original_code) = "Net-SNMP"];
    NET_CDF = 228 [(.google.fhir.proto.fhir_original_code) = "NetCDF"];
    NEWSLETR = 229 [(.google.fhir.proto.fhir_original_code) = "Newsletr"];
    NGPL = 230 [(.google.fhir.proto.fhir_original_code) = "NGPL"];
    NLOD_1_0 = 231 [(.google.fhir.proto.fhir_original_code) = "NLOD-1.0"];
    NLPL = 232 [(.google.fhir.proto.fhir_original_code) = "NLPL"];
    NOKIA = 233 [(.google.fhir.proto.fhir_original_code) = "Nokia"];
    NOSL = 234 [(.google.fhir.proto.fhir_original_code) = "NOSL"];
    NOWEB = 235 [(.google.fhir.proto.fhir_original_code) = "Noweb"];
    NPL_1_0 = 236 [(.google.fhir.proto.fhir_original_code) = "NPL-1.0"];
    NPL_1_1 = 237 [(.google.fhir.proto.fhir_original_code) = "NPL-1.1"];
    NPOSL_3_0 = 238 [(.google.fhir.proto.fhir_original_code) = "NPOSL-3.0"];
    NRL = 239 [(.google.fhir.proto.fhir_original_code) = "NRL"];
    NTP = 240 [(.google.fhir.proto.fhir_original_code) = "NTP"];
    OCCT_PL = 241 [(.google.fhir.proto.fhir_original_code) = "OCCT-PL"];
    OCLC_2_0 = 242 [(.google.fhir.proto.fhir_original_code) = "OCLC-2.0"];
    O_DB_L_1_0 = 243 [(.google.fhir.proto.fhir_original_code) = "ODbL-1.0"];
    OFL_1_0 = 244 [(.google.fhir.proto.fhir_original_code) = "OFL-1.0"];
    OFL_1_1 = 245 [(.google.fhir.proto.fhir_original_code) = "OFL-1.1"];
    OGTSL = 246 [(.google.fhir.proto.fhir_original_code) = "OGTSL"];
    OLDAP_1_1 = 247 [(.google.fhir.proto.fhir_original_code) = "OLDAP-1.1"];
    OLDAP_1_2 = 248 [(.google.fhir.proto.fhir_original_code) = "OLDAP-1.2"];
    OLDAP_1_3 = 249 [(.google.fhir.proto.fhir_original_code) = "OLDAP-1.3"];
    OLDAP_1_4 = 250 [(.google.fhir.proto.fhir_original_code) = "OLDAP-1.4"];
    OLDAP_2_0_1 = 251 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.0.1"];
    OLDAP_2_0 = 252 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.0"];
    OLDAP_2_1 = 253 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.1"];
    OLDAP_2_2_1 = 254 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.2.1"];
    OLDAP_2_2_2 = 255 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.2.2"];
    OLDAP_2_2 = 256 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.2"];
    OLDAP_2_3 = 257 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.3"];
    OLDAP_2_4 = 258 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.4"];
    OLDAP_2_5 = 259 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.5"];
    OLDAP_2_6 = 260 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.6"];
    OLDAP_2_7 = 261 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.7"];
    OLDAP_2_8 = 262 [(.google.fhir.proto.fhir_original_code) = "OLDAP-2.8"];
    OML = 263 [(.google.fhir.proto.fhir_original_code) = "OML"];
    OPEN_SSL = 264 [(.google.fhir.proto.fhir_original_code) = "OpenSSL"];
    OPL_1_0 = 265 [(.google.fhir.proto.fhir_original_code) = "OPL-1.0"];
    OSET_PL_2_1 = 266 [(.google.fhir.proto.fhir_original_code) = "OSET-PL-2.1"];
    OSL_1_0 = 267 [(.google.fhir.proto.fhir_original_code) = "OSL-1.0"];
    OSL_1_1 = 268 [(.google.fhir.proto.fhir_original_code) = "OSL-1.1"];
    OSL_2_0 = 269 [(.google.fhir.proto.fhir_original_code) = "OSL-2.0"];
    OSL_2_1 = 270 [(.google.fhir.proto.fhir_original_code) = "OSL-2.1"];
    OSL_3_0 = 271 [(.google.fhir.proto.fhir_original_code) = "OSL-3.0"];
    PDDL_1_0 = 272 [(.google.fhir.proto.fhir_original_code) = "PDDL-1.0"];
    PHP_3_0 = 273 [(.google.fhir.proto.fhir_original_code) = "PHP-3.0"];
    PHP_3_01 = 274 [(.google.fhir.proto.fhir_original_code) = "PHP-3.01"];
    PLEXUS = 275 [(.google.fhir.proto.fhir_original_code) = "Plexus"];
    POSTGRE_SQL = 276 [(.google.fhir.proto.fhir_original_code) = "PostgreSQL"];
    PSFRAG = 277;
    PSUTILS = 278;
    PYTHON_2_0 = 279 [(.google.fhir.proto.fhir_original_code) = "Python-2.0"];
    QHULL = 280 [(.google.fhir.proto.fhir_original_code) = "Qhull"];
    QPL_1_0 = 281 [(.google.fhir.proto.fhir_original_code) = "QPL-1.0"];
    RDISC = 282 [(.google.fhir.proto.fhir_original_code) = "Rdisc"];
    R_HE_COS_1_1 = 283 [(.google.fhir.proto.fhir_original_code) = "RHeCos-1.1"];
    RPL_1_1 = 284 [(.google.fhir.proto.fhir_original_code) = "RPL-1.1"];
    RPL_1_5 = 285 [(.google.fhir.proto.fhir_original_code) = "RPL-1.5"];
    RPSL_1_0 = 286 [(.google.fhir.proto.fhir_original_code) = "RPSL-1.0"];
    RSA_MD = 287 [(.google.fhir.proto.fhir_original_code) = "RSA-MD"];
    RSCPL = 288 [(.google.fhir.proto.fhir_original_code) = "RSCPL"];
    RUBY = 289 [(.google.fhir.proto.fhir_original_code) = "Ruby"];
    SAX_PD = 290 [(.google.fhir.proto.fhir_original_code) = "SAX-PD"];
    SAXPATH = 291 [(.google.fhir.proto.fhir_original_code) = "Saxpath"];
    SCEA = 292 [(.google.fhir.proto.fhir_original_code) = "SCEA"];
    SENDMAIL = 293 [(.google.fhir.proto.fhir_original_code) = "Sendmail"];
    SGI_B_1_0 = 294 [(.google.fhir.proto.fhir_original_code) = "SGI-B-1.0"];
    SGI_B_1_1 = 295 [(.google.fhir.proto.fhir_original_code) = "SGI-B-1.1"];
    SGI_B_2_0 = 296 [(.google.fhir.proto.fhir_original_code) = "SGI-B-2.0"];
    SIM_PL_2_0 = 297 [(.google.fhir.proto.fhir_original_code) = "SimPL-2.0"];
    SISSL_1_2 = 298 [(.google.fhir.proto.fhir_original_code) = "SISSL-1.2"];
    SISSL = 299 [(.google.fhir.proto.fhir_original_code) = "SISSL"];
    SLEEPYCAT = 300 [(.google.fhir.proto.fhir_original_code) = "Sleepycat"];
    SMLNJ = 301 [(.google.fhir.proto.fhir_original_code) = "SMLNJ"];
    SMPPL = 302 [(.google.fhir.proto.fhir_original_code) = "SMPPL"];
    SNIA = 303 [(.google.fhir.proto.fhir_original_code) = "SNIA"];
    SPENCER_86 = 304 [(.google.fhir.proto.fhir_original_code) = "Spencer-86"];
    SPENCER_94 = 305 [(.google.fhir.proto.fhir_original_code) = "Spencer-94"];
    SPENCER_99 = 306 [(.google.fhir.proto.fhir_original_code) = "Spencer-99"];
    SPL_1_0 = 307 [(.google.fhir.proto.fhir_original_code) = "SPL-1.0"];
    SUGAR_CRM_1_1_3 = 308
        [(.google.fhir.proto.fhir_original_code) = "SugarCRM-1.1.3"];
    SWL = 309 [(.google.fhir.proto.fhir_original_code) = "SWL"];
    TCL = 310 [(.google.fhir.proto.fhir_original_code) = "TCL"];
    TCP_WRAPPERS = 311
        [(.google.fhir.proto.fhir_original_code) = "TCP-wrappers"];
    T_MATE = 312 [(.google.fhir.proto.fhir_original_code) = "TMate"];
    TORQUE_1_1 = 313 [(.google.fhir.proto.fhir_original_code) = "TORQUE-1.1"];
    TOSL = 314 [(.google.fhir.proto.fhir_original_code) = "TOSL"];
    UNICODE_DFS_2015 = 315
        [(.google.fhir.proto.fhir_original_code) = "Unicode-DFS-2015"];
    UNICODE_DFS_2016 = 316
        [(.google.fhir.proto.fhir_original_code) = "Unicode-DFS-2016"];
    UNICODE_TOU = 317 [(.google.fhir.proto.fhir_original_code) = "Unicode-TOU"];
    UNLICENSE = 318 [(.google.fhir.proto.fhir_original_code) = "Unlicense"];
    UPL_1_0 = 319 [(.google.fhir.proto.fhir_original_code) = "UPL-1.0"];
    VIM = 320 [(.google.fhir.proto.fhir_original_code) = "Vim"];
    VOSTROM = 321 [(.google.fhir.proto.fhir_original_code) = "VOSTROM"];
    VSL_1_0 = 322 [(.google.fhir.proto.fhir_original_code) = "VSL-1.0"];
    W3C_19980720 = 323
        [(.google.fhir.proto.fhir_original_code) = "W3C-19980720"];
    W3C_20150513 = 324
        [(.google.fhir.proto.fhir_original_code) = "W3C-20150513"];
    W3C = 325 [(.google.fhir.proto.fhir_original_code) = "W3C"];
    WATCOM_1_0 = 326 [(.google.fhir.proto.fhir_original_code) = "Watcom-1.0"];
    WSUIPA = 327 [(.google.fhir.proto.fhir_original_code) = "Wsuipa"];
    WTFPL = 328 [(.google.fhir.proto.fhir_original_code) = "WTFPL"];
    X11 = 329 [(.google.fhir.proto.fhir_original_code) = "X11"];
    XEROX = 330 [(.google.fhir.proto.fhir_original_code) = "Xerox"];
    X_FREE86_1_1 = 331
        [(.google.fhir.proto.fhir_original_code) = "XFree86-1.1"];
    XINETD = 332;
    XNET = 333 [(.google.fhir.proto.fhir_original_code) = "Xnet"];
    XPP = 334;
    X_SKAT = 335 [(.google.fhir.proto.fhir_original_code) = "XSkat"];
    YPL_1_0 = 336 [(.google.fhir.proto.fhir_original_code) = "YPL-1.0"];
    YPL_1_1 = 337 [(.google.fhir.proto.fhir_original_code) = "YPL-1.1"];
    ZED = 338 [(.google.fhir.proto.fhir_original_code) = "Zed"];
    ZEND_2_0 = 339 [(.google.fhir.proto.fhir_original_code) = "Zend-2.0"];
    ZIMBRA_1_3 = 340 [(.google.fhir.proto.fhir_original_code) = "Zimbra-1.3"];
    ZIMBRA_1_4 = 341 [(.google.fhir.proto.fhir_original_code) = "Zimbra-1.4"];
    ZLIB_ACKNOWLEDGEMENT = 342;
    ZLIB = 343 [(.google.fhir.proto.fhir_original_code) = "Zlib"];
    ZPL_1_1 = 344 [(.google.fhir.proto.fhir_original_code) = "ZPL-1.1"];
    ZPL_2_0 = 345 [(.google.fhir.proto.fhir_original_code) = "ZPL-2.0"];
    ZPL_2_1 = 346 [(.google.fhir.proto.fhir_original_code) = "ZPL-2.1"];
  }
}

// What Search Comparator Codes are supported in search.
// See http://hl7.org/fhir/search-comparator
message SearchComparatorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/search-comparator";

    INVALID_UNINITIALIZED = 0;
    EQ = 1;
    NE = 2;
    GT = 3;
    LT = 4;
    GE = 5;
    LE = 6;
    SA = 7;
    EB = 8;
    AP = 9;
  }
}

// Why an entry is in the result set - whether it's included as a match or
// because of an _include requirement, or to convey information or warning
// information about the search process. See
// http://hl7.org/fhir/search-entry-mode
message SearchEntryModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/search-entry-mode";

    INVALID_UNINITIALIZED = 0;
    MATCH = 1;
    INCLUDE = 2;
    OUTCOME = 3;
  }
}

// A supported modifier for a search parameter.
// See http://hl7.org/fhir/search-modifier-code
message SearchModifierCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/search-modifier-code";

    INVALID_UNINITIALIZED = 0;
    MISSING = 1;
    EXACT = 2;
    CONTAINS = 3;
    NOT = 4;
    TEXT = 5;
    IN = 6;
    NOT_IN = 7;
    BELOW = 8;
    ABOVE = 9;
    TYPE = 10;
    IDENTIFIER = 11;
    OF_TYPE = 12 [(.google.fhir.proto.fhir_original_code) = "ofType"];
  }
}

// Data types allowed to be used for search parameters.
// See http://hl7.org/fhir/search-param-type
message SearchParamTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/search-param-type";

    INVALID_UNINITIALIZED = 0;
    NUMBER = 1;
    DATE = 2;
    STRING = 3;
    TOKEN = 4;
    REFERENCE = 5;
    COMPOSITE = 6;
    QUANTITY = 7;
    URI = 8;
    SPECIAL = 9;
  }
}

// Type if a sequence -- DNA, RNA, or amino acid sequence.
// See http://hl7.org/fhir/sequence-type
message SequenceTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/sequence-type";

    INVALID_UNINITIALIZED = 0;
    AA = 1;
    DNA = 2;
    RNA = 3;
  }
}

// How slices are interpreted when evaluating an instance.
// See http://hl7.org/fhir/resource-slicing-rules
message SlicingRulesCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/resource-slicing-rules";

    INVALID_UNINITIALIZED = 0;
    CLOSED = 1;
    OPEN = 2;
    OPEN_AT_END = 3 [(.google.fhir.proto.fhir_original_code) = "openAtEnd"];
  }
}

// The free/busy status of the slot.
// See http://hl7.org/fhir/slotstatus
message SlotStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/slotstatus";

    INVALID_UNINITIALIZED = 0;
    BUSY = 1;
    FREE = 2;
    BUSY_UNAVAILABLE = 3;
    BUSY_TENTATIVE = 4;
    ENTERED_IN_ERROR = 5;
  }
}

// Codes that define what the server is capable of.
// See http://terminology.hl7.org/CodeSystem/smart-capabilities
message SmartCapabilitiesCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/smart-capabilities";

    INVALID_UNINITIALIZED = 0;
    LAUNCH_EHR = 1;
    LAUNCH_STANDALONE = 2;
    CLIENT_PUBLIC = 3;
    CLIENT_CONFIDENTIAL_SYMMETRIC = 4;
    SSO_OPENID_CONNECT = 5;
    CONTEXT_PASSTHROUGH_BANNER = 6;
    CONTEXT_PASSTHROUGH_STYLE = 7;
    CONTEXT_EHR_PATIENT = 8;
    CONTEXT_EHR_ENCOUNTER = 9;
    CONTEXT_STANDALONE_PATIENT = 10;
    CONTEXT_STANDALONE_ENCOUNTER = 11;
    PERMISSION_OFFLINE = 12;
    PERMISSION_PATIENT = 13;
    PERMISSION_USER = 14;
  }
}

// The possible sort directions, ascending or descending.
// See http://hl7.org/fhir/sort-direction
message SortDirectionCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/sort-direction";

    INVALID_UNINITIALIZED = 0;
    ASCENDING = 1;
    DESCENDING = 2;
  }
}

// Degree of preference of a type of conditioned specimen.
// See http://hl7.org/fhir/specimen-contained-preference
message SpecimenContainedPreferenceCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/specimen-contained-preference";

    INVALID_UNINITIALIZED = 0;
    PREFERRED = 1;
    ALTERNATE = 2;
  }
}

// Codes providing the status/availability of a specimen.
// See http://hl7.org/fhir/specimen-status
message SpecimenStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/specimen-status";

    INVALID_UNINITIALIZED = 0;
    AVAILABLE = 1;
    UNAVAILABLE = 2;
    UNSATISFACTORY = 3;
    ENTERED_IN_ERROR = 4;
  }
}

// HL7 Ballot/Standards status of artifact.
// See http://terminology.hl7.org/CodeSystem/standards-status
message StandardsStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/standards-status";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    NORMATIVE = 2;
    TRIAL_USE = 3;
    INFORMATIVE = 4;
    DEPRECATED = 5;
    EXTERNAL = 6;
  }
}

// The validation status of the target
// See http://hl7.org/fhir/CodeSystem/status
message StatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/CodeSystem/status";

    INVALID_UNINITIALIZED = 0;
    ATTESTED = 1;
    VALIDATED = 2;
    IN_PROCESS = 3;
    REQ_REVALID = 4;
    VAL_FAIL = 5;
    REVAL_FAIL = 6;
  }
}

// Type for strand.
// See http://hl7.org/fhir/strand-type
message StrandTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/strand-type";

    INVALID_UNINITIALIZED = 0;
    WATSON = 1;
    CRICK = 2;
  }
}

// Defines the type of structure that a definition is describing.
// See http://hl7.org/fhir/structure-definition-kind
message StructureDefinitionKindCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/structure-definition-kind";

    INVALID_UNINITIALIZED = 0;
    PRIMITIVE_TYPE = 1;
    COMPLEX_TYPE = 2;
    RESOURCE = 3;
    LOGICAL = 4;
  }
}

// How to interpret the context.
// See http://hl7.org/fhir/map-context-type
message StructureMapContextTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/map-context-type";

    INVALID_UNINITIALIZED = 0;
    TYPE = 1;
    VARIABLE = 2;
  }
}

// If this is the default rule set to apply for the source type, or this
// combination of types. See http://hl7.org/fhir/map-group-type-mode
message StructureMapGroupTypeModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/map-group-type-mode";

    INVALID_UNINITIALIZED = 0;
    NONE = 1;
    TYPES = 2;
    TYPE_AND_TYPES = 3;
  }
}

// Mode for this instance of data.
// See http://hl7.org/fhir/map-input-mode
message StructureMapInputModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/map-input-mode";

    INVALID_UNINITIALIZED = 0;
    SOURCE = 1;
    TARGET = 2;
  }
}

// How the referenced structure is used in this mapping.
// See http://hl7.org/fhir/map-model-mode
message StructureMapModelModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/map-model-mode";

    INVALID_UNINITIALIZED = 0;
    SOURCE = 1;
    QUERIED = 2;
    TARGET = 3;
    PRODUCED = 4;
  }
}

// If field is a list, how to manage the source.
// See http://hl7.org/fhir/map-source-list-mode
message StructureMapSourceListModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/map-source-list-mode";

    INVALID_UNINITIALIZED = 0;
    FIRST = 1;
    NOT_FIRST = 2 [(.google.fhir.proto.fhir_original_code) = "not_first"];
    LAST = 3;
    NOT_LAST = 4 [(.google.fhir.proto.fhir_original_code) = "not_last"];
    ONLY_ONE = 5 [(.google.fhir.proto.fhir_original_code) = "only_one"];
  }
}

// If field is a list, how to manage the production.
// See http://hl7.org/fhir/map-target-list-mode
message StructureMapTargetListModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/map-target-list-mode";

    INVALID_UNINITIALIZED = 0;
    FIRST = 1;
    SHARE = 2;
    LAST = 3;
    COLLATE = 4;
  }
}

// How data is copied/created.
// See http://hl7.org/fhir/map-transform
message StructureMapTransformCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/map-transform";

    INVALID_UNINITIALIZED = 0;
    CREATE = 1;
    COPY = 2;
    TRUNCATE = 3;
    ESCAPE = 4;
    CAST = 5;
    APPEND = 6;
    TRANSLATE = 7;
    REFERENCE = 8;
    DATE_OP = 9 [(.google.fhir.proto.fhir_original_code) = "dateOp"];
    UUID = 10;
    POINTER = 11;
    EVALUATE = 12;
    CC = 13;
    C = 14;
    QTY = 15;
    ID = 16;
    CP = 17;
  }
}

// The type of method used to execute a subscription.
// See http://hl7.org/fhir/subscription-channel-type
message SubscriptionChannelTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/subscription-channel-type";

    INVALID_UNINITIALIZED = 0;
    REST_HOOK = 1;
    WEBSOCKET = 2;
    EMAIL = 3;
    SMS = 4;
    MESSAGE = 5;
  }
}

// The status of a subscription.
// See http://hl7.org/fhir/subscription-status
message SubscriptionStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/subscription-status";

    INVALID_UNINITIALIZED = 0;
    REQUESTED = 1;
    ACTIVE = 2;
    ERROR = 3;
    OFF = 4;
  }
}

// Status of the supply delivery.
// See http://hl7.org/fhir/supplydelivery-status
message SupplyDeliveryStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/supplydelivery-status";

    INVALID_UNINITIALIZED = 0;
    IN_PROGRESS = 1;
    COMPLETED = 2;
    ABANDONED = 3;
    ENTERED_IN_ERROR = 4;
  }
}

// This value sets refers to a specific supply item.
// See http://terminology.hl7.org/CodeSystem/supply-item-type
message SupplyItemTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/supply-item-type";

    INVALID_UNINITIALIZED = 0;
    MEDICATION = 1;
    DEVICE = 2;
  }
}

// Status of the supply request.
// See http://hl7.org/fhir/supplyrequest-status
message SupplyRequestStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/supplyrequest-status";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    ACTIVE = 2;
    SUSPENDED = 3;
    CANCELLED = 4;
    COMPLETED = 5;
    ENTERED_IN_ERROR = 6;
    UNKNOWN = 7;
  }
}

// Distinguishes whether the task is a proposal, plan or full order.
// See http://hl7.org/fhir/task-intent
message TaskIntentCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/task-intent";

    INVALID_UNINITIALIZED = 0;
    UNKNOWN = 1;
  }
}

// The current status of the task.
// See http://hl7.org/fhir/task-status
message TaskStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/task-status";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    REQUESTED = 2;
    RECEIVED = 3;
    ACCEPTED = 4;
    REJECTED = 5;
    READY = 6;
    CANCELLED = 7;
    IN_PROGRESS = 8;
    ON_HOLD = 9;
    FAILED = 10;
    COMPLETED = 11;
    ENTERED_IN_ERROR = 12;
  }
}

// Life cycle of the Status Code of a Template Design (Version)
// See urn:oid:2.16.840.1.113883.3.1937.98.5.8
message TemplateStatusCodeLifeCycleCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "urn:oid:2.16.840.1.113883.3.1937.98.5.8";

    INVALID_UNINITIALIZED = 0;
    DRAFT = 1;
    PENDING = 2;
    ACTIVE = 3;
    REVIEW = 4;
    CANCELLED = 5;
    REJECTED = 6;
    RETIRED = 7;
    TERMINATED = 8;
  }
}

// The results of executing an action.
// See http://hl7.org/fhir/report-action-result-codes
message TestReportActionResultCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/report-action-result-codes";

    INVALID_UNINITIALIZED = 0;
    PASS = 1;
    SKIP = 2;
    FAIL = 3;
    WARNING = 4;
    ERROR = 5;
  }
}

// The type of participant.
// See http://hl7.org/fhir/report-participant-type
message TestReportParticipantTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/report-participant-type";

    INVALID_UNINITIALIZED = 0;
    TEST_ENGINE = 1;
    CLIENT = 2;
    SERVER = 3;
  }
}

// The reported execution result.
// See http://hl7.org/fhir/report-result-codes
message TestReportResultCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/report-result-codes";

    INVALID_UNINITIALIZED = 0;
    PASS = 1;
    FAIL = 2;
    PENDING = 3;
  }
}

// The current status of the test report.
// See http://hl7.org/fhir/report-status-codes
message TestReportStatusCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/report-status-codes";

    INVALID_UNINITIALIZED = 0;
    COMPLETED = 1;
    IN_PROGRESS = 2;
    WAITING = 3;
    STOPPED = 4;
    ENTERED_IN_ERROR = 5;
  }
}

// The allowable request method or HTTP operation codes.
// See http://hl7.org/fhir/http-operations
message TestScriptRequestMethodCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/http-operations";

    INVALID_UNINITIALIZED = 0;
    DELETE = 1;
    GET = 2;
    OPTIONS = 3;
    PATCH = 4;
    POST = 5;
    PUT = 6;
    HEAD = 7;
  }
}

// The type of trigger.
// See http://hl7.org/fhir/trigger-type
message TriggerTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/trigger-type";

    INVALID_UNINITIALIZED = 0;
    NAMED_EVENT = 1;
    PERIODIC = 2;
    DATA_CHANGED = 3;
    DATA_ADDED = 4;
    DATA_MODIFIED = 5;
    DATA_REMOVED = 6;
    DATA_ACCESSED = 7;
    DATA_ACCESS_ENDED = 8;
  }
}

// How a type relates to its baseDefinition.
// See http://hl7.org/fhir/type-derivation-rule
message TypeDerivationRuleCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/type-derivation-rule";

    INVALID_UNINITIALIZED = 0;
    SPECIALIZATION = 1;
    CONSTRAINT = 2;
  }
}

// Codes to identify how UDI data was entered.
// See http://hl7.org/fhir/udi-entry-type
message UDIEntryTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/udi-entry-type";

    INVALID_UNINITIALIZED = 0;
    BARCODE = 1;
    RFID = 2;
    MANUAL = 3;
    CARD = 4;
    SELF_REPORTED = 5;
    UNKNOWN = 6;
  }
}

// The purpose of the Claim: predetermination, preauthorization, claim.
// See http://hl7.org/fhir/claim-use
message UseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/claim-use";

    INVALID_UNINITIALIZED = 0;
    CLAIM = 1;
    PREAUTHORIZATION = 2;
    PREDETERMINATION = 3;
  }
}

// FHIR Value set/code system definition for HL7 v2 table 0444 ( Name assembly
// order) See http://terminology.hl7.org/CodeSystem/v2-0444
message V20444Code {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v2-0444";

    INVALID_UNINITIALIZED = 0;
    F = 1 [(.google.fhir.proto.fhir_original_code) = "F"];
    G = 2 [(.google.fhir.proto.fhir_original_code) = "G"];
  }
}

//  Codes that provide guidance around the circumstances in which a given
//  address should be used.
// See http://terminology.hl7.org/CodeSystem/v3-AddressUse
message V3AddressUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-AddressUse";

    INVALID_UNINITIALIZED = 0;
    GENERAL_ADDRESS_USE = 1
        [(.google.fhir.proto.fhir_original_code) = "_GeneralAddressUse"];
    BAD = 2 [(.google.fhir.proto.fhir_original_code) = "BAD"];
    CONF = 3 [(.google.fhir.proto.fhir_original_code) = "CONF"];
    H = 4 [(.google.fhir.proto.fhir_original_code) = "H"];
    HP = 5 [(.google.fhir.proto.fhir_original_code) = "HP"];
    HV = 6 [(.google.fhir.proto.fhir_original_code) = "HV"];
    OLD = 7 [(.google.fhir.proto.fhir_original_code) = "OLD"];
    TMP = 8 [(.google.fhir.proto.fhir_original_code) = "TMP"];
    WP = 9 [(.google.fhir.proto.fhir_original_code) = "WP"];
    DIR = 10 [(.google.fhir.proto.fhir_original_code) = "DIR"];
    PUB = 11 [(.google.fhir.proto.fhir_original_code) = "PUB"];
    POSTAL_ADDRESS_USE = 12
        [(.google.fhir.proto.fhir_original_code) = "_PostalAddressUse"];
    PHYS = 13 [(.google.fhir.proto.fhir_original_code) = "PHYS"];
    PST = 14 [(.google.fhir.proto.fhir_original_code) = "PST"];
    TELECOMMUNICATION_ADDRESS_USE = 15
        [(.google.fhir.proto.fhir_original_code) =
             "_TelecommunicationAddressUse"];
    AS = 16 [(.google.fhir.proto.fhir_original_code) = "AS"];
    EC = 17 [(.google.fhir.proto.fhir_original_code) = "EC"];
    MC = 18 [(.google.fhir.proto.fhir_original_code) = "MC"];
    PG = 19 [(.google.fhir.proto.fhir_original_code) = "PG"];
  }
}

//  A set of codes specifying the security classification of acts and roles in
//  accordance with the definition for concept domain "Confidentiality".
// See http://terminology.hl7.org/CodeSystem/v3-Confidentiality
message V3ConfidentialityCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-Confidentiality";

    INVALID_UNINITIALIZED = 0;
    CONFIDENTIALITY = 1
        [(.google.fhir.proto.fhir_original_code) = "_Confidentiality"];
    L = 2 [(.google.fhir.proto.fhir_original_code) = "L"];
    M = 3 [(.google.fhir.proto.fhir_original_code) = "M"];
    N = 4 [(.google.fhir.proto.fhir_original_code) = "N"];
    R = 5 [(.google.fhir.proto.fhir_original_code) = "R"];
    U = 6 [(.google.fhir.proto.fhir_original_code) = "U"];
    V = 7 [(.google.fhir.proto.fhir_original_code) = "V"];
    CONFIDENTIALITY_BY_ACCESS_KIND = 8
        [(.google.fhir.proto.fhir_original_code) =
             "_ConfidentialityByAccessKind"];
    B = 9 [(.google.fhir.proto.fhir_original_code) = "B"];
    D = 10 [(.google.fhir.proto.fhir_original_code) = "D"];
    I = 11 [(.google.fhir.proto.fhir_original_code) = "I"];
    CONFIDENTIALITY_BY_INFO_TYPE = 12 [(.google.fhir.proto.fhir_original_code) =
                                           "_ConfidentialityByInfoType"];
    ETH = 13 [(.google.fhir.proto.fhir_original_code) = "ETH"];
    HIV = 14 [(.google.fhir.proto.fhir_original_code) = "HIV"];
    PSY = 15 [(.google.fhir.proto.fhir_original_code) = "PSY"];
    SDV = 16 [(.google.fhir.proto.fhir_original_code) = "SDV"];
    CONFIDENTIALITY_MODIFIERS = 17
        [(.google.fhir.proto.fhir_original_code) = "_ConfidentialityModifiers"];
    C = 18 [(.google.fhir.proto.fhir_original_code) = "C"];
    S = 19 [(.google.fhir.proto.fhir_original_code) = "S"];
    T = 20 [(.google.fhir.proto.fhir_original_code) = "T"];
  }
}

//   OpenIssue:
//
// Needs description
// See http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifier
message V3EntityNamePartQualifierCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifier";

    INVALID_UNINITIALIZED = 0;
    ORGANIZATION_NAME_PART_QUALIFIER = 1
        [(.google.fhir.proto.fhir_original_code) =
             "_OrganizationNamePartQualifier"];
    AC = 2 [(.google.fhir.proto.fhir_original_code) = "AC"];
    AD = 3 [(.google.fhir.proto.fhir_original_code) = "AD"];
    BR = 4 [(.google.fhir.proto.fhir_original_code) = "BR"];
    CL = 5 [(.google.fhir.proto.fhir_original_code) = "CL"];
    IN = 6 [(.google.fhir.proto.fhir_original_code) = "IN"];
    LS = 7 [(.google.fhir.proto.fhir_original_code) = "LS"];
    NB = 8 [(.google.fhir.proto.fhir_original_code) = "NB"];
    PR = 9 [(.google.fhir.proto.fhir_original_code) = "PR"];
    SP = 10 [(.google.fhir.proto.fhir_original_code) = "SP"];
    TITLE = 11 [(.google.fhir.proto.fhir_original_code) = "TITLE"];
    VV = 12 [(.google.fhir.proto.fhir_original_code) = "VV"];
    PHARMACEUTICAL_ENTITY_NAME_PART_QUALIFIERS = 13
        [(.google.fhir.proto.fhir_original_code) =
             "PharmaceuticalEntityNamePartQualifiers"];
    CON = 14 [(.google.fhir.proto.fhir_original_code) = "CON"];
    DEV = 15 [(.google.fhir.proto.fhir_original_code) = "DEV"];
    FLAV = 16 [(.google.fhir.proto.fhir_original_code) = "FLAV"];
    FORMUL = 17 [(.google.fhir.proto.fhir_original_code) = "FORMUL"];
    FRM = 18 [(.google.fhir.proto.fhir_original_code) = "FRM"];
    INV = 19 [(.google.fhir.proto.fhir_original_code) = "INV"];
    POPUL = 20 [(.google.fhir.proto.fhir_original_code) = "POPUL"];
    SCI = 21 [(.google.fhir.proto.fhir_original_code) = "SCI"];
    STR = 22 [(.google.fhir.proto.fhir_original_code) = "STR"];
    TIME = 23 [(.google.fhir.proto.fhir_original_code) = "TIME"];
    TMK = 24 [(.google.fhir.proto.fhir_original_code) = "TMK"];
    USE = 25 [(.google.fhir.proto.fhir_original_code) = "USE"];
    PERSON_NAME_PART_QUALIFIER = 26
        [(.google.fhir.proto.fhir_original_code) = "_PersonNamePartQualifier"];
    PERSON_NAME_PART_AFFIX_TYPES = 27
        [(.google.fhir.proto.fhir_original_code) = "_PersonNamePartAffixTypes"];
    PERSON_NAME_PART_CHANGE_QUALIFIER = 28
        [(.google.fhir.proto.fhir_original_code) =
             "_PersonNamePartChangeQualifier"];
    PERSON_NAME_PART_MISC_QUALIFIER = 29
        [(.google.fhir.proto.fhir_original_code) =
             "_PersonNamePartMiscQualifier"];
  }
}

//   Description:
//
// The qualifier is a set of codes each of which specifies a certain subcategory
// of the name part in addition to the main name part type. For example, a given
// name may be flagged as a nickname, a family name may be a pseudonym or a name
// of public records. See
// http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifierR2
message V3EntityNamePartQualifierR2Code {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifierR2";

    INVALID_UNINITIALIZED = 0;
    AD = 1 [(.google.fhir.proto.fhir_original_code) = "AD"];
    SP = 2 [(.google.fhir.proto.fhir_original_code) = "SP"];
    BR = 3 [(.google.fhir.proto.fhir_original_code) = "BR"];
    CL = 4 [(.google.fhir.proto.fhir_original_code) = "CL"];
    IN = 5 [(.google.fhir.proto.fhir_original_code) = "IN"];
    LS = 6 [(.google.fhir.proto.fhir_original_code) = "LS"];
    MID = 7 [(.google.fhir.proto.fhir_original_code) = "MID"];
    PFX = 8 [(.google.fhir.proto.fhir_original_code) = "PFX"];
    PHARMACEUTICAL_ENTITY_NAME_PART_QUALIFIERS = 9
        [(.google.fhir.proto.fhir_original_code) =
             "PharmaceuticalEntityNamePartQualifiers"];
    CON = 10 [(.google.fhir.proto.fhir_original_code) = "CON"];
    DEV = 11 [(.google.fhir.proto.fhir_original_code) = "DEV"];
    FLAV = 12 [(.google.fhir.proto.fhir_original_code) = "FLAV"];
    FORMUL = 13 [(.google.fhir.proto.fhir_original_code) = "FORMUL"];
    FRM = 14 [(.google.fhir.proto.fhir_original_code) = "FRM"];
    INV = 15 [(.google.fhir.proto.fhir_original_code) = "INV"];
    POPUL = 16 [(.google.fhir.proto.fhir_original_code) = "POPUL"];
    SCI = 17 [(.google.fhir.proto.fhir_original_code) = "SCI"];
    STR = 18 [(.google.fhir.proto.fhir_original_code) = "STR"];
    TIME = 19 [(.google.fhir.proto.fhir_original_code) = "TIME"];
    TMK = 20 [(.google.fhir.proto.fhir_original_code) = "TMK"];
    USE = 21 [(.google.fhir.proto.fhir_original_code) = "USE"];
    SFX = 22 [(.google.fhir.proto.fhir_original_code) = "SFX"];
    TITLE_STYLES = 23 [(.google.fhir.proto.fhir_original_code) = "TitleStyles"];
    AC = 24 [(.google.fhir.proto.fhir_original_code) = "AC"];
    HON = 25 [(.google.fhir.proto.fhir_original_code) = "HON"];
    NB = 26 [(.google.fhir.proto.fhir_original_code) = "NB"];
    PR = 27 [(.google.fhir.proto.fhir_original_code) = "PR"];
  }
}

// **** MISSING DEFINITIONS ****
// See http://terminology.hl7.org/CodeSystem/v3-EntityNameUse
message V3EntityNameUseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-EntityNameUse";

    INVALID_UNINITIALIZED = 0;
    NAME_REPRESENTATION_USE = 1
        [(.google.fhir.proto.fhir_original_code) = "_NameRepresentationUse"];
    ABC = 2 [(.google.fhir.proto.fhir_original_code) = "ABC"];
    IDE = 3 [(.google.fhir.proto.fhir_original_code) = "IDE"];
    SYL = 4 [(.google.fhir.proto.fhir_original_code) = "SYL"];
    ASGN = 5 [(.google.fhir.proto.fhir_original_code) = "ASGN"];
    C = 6 [(.google.fhir.proto.fhir_original_code) = "C"];
    I = 7 [(.google.fhir.proto.fhir_original_code) = "I"];
    L = 8 [(.google.fhir.proto.fhir_original_code) = "L"];
    OR = 9 [(.google.fhir.proto.fhir_original_code) = "OR"];
    P = 10 [(.google.fhir.proto.fhir_original_code) = "P"];
    A = 11 [(.google.fhir.proto.fhir_original_code) = "A"];
    R = 12 [(.google.fhir.proto.fhir_original_code) = "R"];
    SRCH = 13 [(.google.fhir.proto.fhir_original_code) = "SRCH"];
    PHON = 14 [(.google.fhir.proto.fhir_original_code) = "PHON"];
    SNDX = 15 [(.google.fhir.proto.fhir_original_code) = "SNDX"];
  }
}

//   Description:
//
// A set of codes advising a system or user which name in a set of names to
// select for a given purpose. See
// http://terminology.hl7.org/CodeSystem/v3-EntityNameUseR2
message V3EntityNameUseR2Code {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-EntityNameUseR2";

    INVALID_UNINITIALIZED = 0;
    ASSUMED = 1 [(.google.fhir.proto.fhir_original_code) = "Assumed"];
    A = 2 [(.google.fhir.proto.fhir_original_code) = "A"];
    ANON = 3 [(.google.fhir.proto.fhir_original_code) = "ANON"];
    I = 4 [(.google.fhir.proto.fhir_original_code) = "I"];
    P = 5 [(.google.fhir.proto.fhir_original_code) = "P"];
    R = 6 [(.google.fhir.proto.fhir_original_code) = "R"];
    C = 7 [(.google.fhir.proto.fhir_original_code) = "C"];
    M = 8 [(.google.fhir.proto.fhir_original_code) = "M"];
    NAME_REPRESENTATION_USE = 9
        [(.google.fhir.proto.fhir_original_code) = "NameRepresentationUse"];
    ABC = 10 [(.google.fhir.proto.fhir_original_code) = "ABC"];
    IDE = 11 [(.google.fhir.proto.fhir_original_code) = "IDE"];
    SYL = 12 [(.google.fhir.proto.fhir_original_code) = "SYL"];
    OLD = 13 [(.google.fhir.proto.fhir_original_code) = "OLD"];
    DN = 14 [(.google.fhir.proto.fhir_original_code) = "DN"];
    OR = 15 [(.google.fhir.proto.fhir_original_code) = "OR"];
    PHON = 16 [(.google.fhir.proto.fhir_original_code) = "PHON"];
    SRCH = 17 [(.google.fhir.proto.fhir_original_code) = "SRCH"];
    T = 18 [(.google.fhir.proto.fhir_original_code) = "T"];
  }
}

//  A collection of codes specifying why a valid value is not present.
// See http://terminology.hl7.org/CodeSystem/v3-NullFlavor
message V3NullFlavorCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-NullFlavor";

    INVALID_UNINITIALIZED = 0;
    NI = 1 [(.google.fhir.proto.fhir_original_code) = "NI"];
    INV = 2 [(.google.fhir.proto.fhir_original_code) = "INV"];
    DER = 3 [(.google.fhir.proto.fhir_original_code) = "DER"];
    OTH = 4 [(.google.fhir.proto.fhir_original_code) = "OTH"];
    NINF = 5 [(.google.fhir.proto.fhir_original_code) = "NINF"];
    PINF = 6 [(.google.fhir.proto.fhir_original_code) = "PINF"];
    UNC = 7 [(.google.fhir.proto.fhir_original_code) = "UNC"];
    MSK = 8 [(.google.fhir.proto.fhir_original_code) = "MSK"];
    NA = 9 [(.google.fhir.proto.fhir_original_code) = "NA"];
    UNK = 10 [(.google.fhir.proto.fhir_original_code) = "UNK"];
    ASKU = 11 [(.google.fhir.proto.fhir_original_code) = "ASKU"];
    NAV = 12 [(.google.fhir.proto.fhir_original_code) = "NAV"];
    NASK = 13 [(.google.fhir.proto.fhir_original_code) = "NASK"];
    NAVU = 14 [(.google.fhir.proto.fhir_original_code) = "NAVU"];
    QS = 15 [(.google.fhir.proto.fhir_original_code) = "QS"];
    TRC = 16 [(.google.fhir.proto.fhir_original_code) = "TRC"];
    NP = 17 [(.google.fhir.proto.fhir_original_code) = "NP"];
  }
}

//  A set of codes specifying the modality by which the Entity playing the Role
//  is participating in the Act.  Examples:
//
// Physically present, over the telephone, written communication.  Rationale:
//
// Particularly for author (originator) participants this is used to specify
// whether the information represented by the act was initially provided
// verbally, (hand-)written, or electronically.  Open Issue:
//
// There needs to be a reexamination of the hierarchies as there seems to be
// some muddling between ELECTRONIC and other concepts that involve electronic
// communication that are in other hierarchies. See
// http://terminology.hl7.org/CodeSystem/v3-ParticipationMode
message V3ParticipationModeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-ParticipationMode";

    INVALID_UNINITIALIZED = 0;
    ELECTRONIC = 1 [(.google.fhir.proto.fhir_original_code) = "ELECTRONIC"];
    PHYSICAL = 2 [(.google.fhir.proto.fhir_original_code) = "PHYSICAL"];
    REMOTE = 3 [(.google.fhir.proto.fhir_original_code) = "REMOTE"];
    VERBAL = 4 [(.google.fhir.proto.fhir_original_code) = "VERBAL"];
    DICTATE = 5 [(.google.fhir.proto.fhir_original_code) = "DICTATE"];
    FACE = 6 [(.google.fhir.proto.fhir_original_code) = "FACE"];
    PHONE = 7 [(.google.fhir.proto.fhir_original_code) = "PHONE"];
    VIDEOCONF = 8 [(.google.fhir.proto.fhir_original_code) = "VIDEOCONF"];
    WRITTEN = 9 [(.google.fhir.proto.fhir_original_code) = "WRITTEN"];
    FAXWRIT = 10 [(.google.fhir.proto.fhir_original_code) = "FAXWRIT"];
    HANDWRIT = 11 [(.google.fhir.proto.fhir_original_code) = "HANDWRIT"];
    MAILWRIT = 12 [(.google.fhir.proto.fhir_original_code) = "MAILWRIT"];
    ONLINEWRIT = 13 [(.google.fhir.proto.fhir_original_code) = "ONLINEWRIT"];
    EMAILWRIT = 14 [(.google.fhir.proto.fhir_original_code) = "EMAILWRIT"];
    TYPEWRIT = 15 [(.google.fhir.proto.fhir_original_code) = "TYPEWRIT"];
  }
}

// **** MISSING DEFINITIONS ****
// See http://terminology.hl7.org/CodeSystem/v3-ProbabilityDistributionType
message V3ProbabilityDistributionTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-ProbabilityDistributionType";

    INVALID_UNINITIALIZED = 0;
    B = 1 [(.google.fhir.proto.fhir_original_code) = "B"];
    E = 2 [(.google.fhir.proto.fhir_original_code) = "E"];
    F = 3 [(.google.fhir.proto.fhir_original_code) = "F"];
    G = 4 [(.google.fhir.proto.fhir_original_code) = "G"];
    LN = 5 [(.google.fhir.proto.fhir_original_code) = "LN"];
    N = 6 [(.google.fhir.proto.fhir_original_code) = "N"];
    T = 7 [(.google.fhir.proto.fhir_original_code) = "T"];
    U = 8 [(.google.fhir.proto.fhir_original_code) = "U"];
    X2 = 9 [(.google.fhir.proto.fhir_original_code) = "X2"];
  }
}

//  A set of codes further specifying the kind of Role; specific classification
//  codes for further qualifying RoleClass codes.
// See http://terminology.hl7.org/CodeSystem/v3-RoleCode
message V3RoleCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-RoleCode";

    INVALID_UNINITIALIZED = 0;
    AFFILIATION_ROLE_TYPE = 1
        [(.google.fhir.proto.fhir_original_code) = "_AffiliationRoleType"];
    AGENT_ROLE_TYPE = 2
        [(.google.fhir.proto.fhir_original_code) = "_AgentRoleType"];
    AMENDER = 3 [(.google.fhir.proto.fhir_original_code) = "AMENDER"];
    CLASSIFIER = 4 [(.google.fhir.proto.fhir_original_code) = "CLASSIFIER"];
    CONSENTER = 5 [(.google.fhir.proto.fhir_original_code) = "CONSENTER"];
    CONSWIT = 6 [(.google.fhir.proto.fhir_original_code) = "CONSWIT"];
    COPART = 7 [(.google.fhir.proto.fhir_original_code) = "COPART"];
    DECLASSIFIER = 8 [(.google.fhir.proto.fhir_original_code) = "DECLASSIFIER"];
    DELEGATEE = 9 [(.google.fhir.proto.fhir_original_code) = "DELEGATEE"];
    DELEGATOR = 10 [(.google.fhir.proto.fhir_original_code) = "DELEGATOR"];
    DOWNGRDER = 11 [(.google.fhir.proto.fhir_original_code) = "DOWNGRDER"];
    DRIVCLASSIFIER = 12
        [(.google.fhir.proto.fhir_original_code) = "DRIVCLASSIFIER"];
    GRANTEE = 13 [(.google.fhir.proto.fhir_original_code) = "GRANTEE"];
    GRANTOR = 14 [(.google.fhir.proto.fhir_original_code) = "GRANTOR"];
    INTPRTER = 15 [(.google.fhir.proto.fhir_original_code) = "INTPRTER"];
    REVIEWER = 16 [(.google.fhir.proto.fhir_original_code) = "REVIEWER"];
    VALIDATOR = 17 [(.google.fhir.proto.fhir_original_code) = "VALIDATOR"];
    COVERAGE_SPONSOR_ROLE_TYPE = 18
        [(.google.fhir.proto.fhir_original_code) = "_CoverageSponsorRoleType"];
    FULLINS = 19 [(.google.fhir.proto.fhir_original_code) = "FULLINS"];
    SELFINS = 20 [(.google.fhir.proto.fhir_original_code) = "SELFINS"];
    PAYOR_ROLE_TYPE = 21
        [(.google.fhir.proto.fhir_original_code) = "_PayorRoleType"];
    ENROLBKR = 22 [(.google.fhir.proto.fhir_original_code) = "ENROLBKR"];
    TPA = 23 [(.google.fhir.proto.fhir_original_code) = "TPA"];
    UMO = 24 [(.google.fhir.proto.fhir_original_code) = "UMO"];
    RESPRSN = 25 [(.google.fhir.proto.fhir_original_code) = "RESPRSN"];
    EXCEST = 26 [(.google.fhir.proto.fhir_original_code) = "EXCEST"];
    GUADLTM = 27 [(.google.fhir.proto.fhir_original_code) = "GUADLTM"];
    GUARD = 28 [(.google.fhir.proto.fhir_original_code) = "GUARD"];
    POWATT = 29 [(.google.fhir.proto.fhir_original_code) = "POWATT"];
    DPOWATT = 30 [(.google.fhir.proto.fhir_original_code) = "DPOWATT"];
    HPOWATT = 31 [(.google.fhir.proto.fhir_original_code) = "HPOWATT"];
    SPOWATT = 32 [(.google.fhir.proto.fhir_original_code) = "SPOWATT"];
    ASSIGNED_ROLE_TYPE = 33
        [(.google.fhir.proto.fhir_original_code) = "_AssignedRoleType"];
    ASSIGNED_NON_PERSON_LIVING_SUBJECT_ROLE_TYPE = 34
        [(.google.fhir.proto.fhir_original_code) =
             "_AssignedNonPersonLivingSubjectRoleType"];
    ASSIST = 35 [(.google.fhir.proto.fhir_original_code) = "ASSIST"];
    BIOTH = 36 [(.google.fhir.proto.fhir_original_code) = "BIOTH"];
    ANTIBIOT = 37 [(.google.fhir.proto.fhir_original_code) = "ANTIBIOT"];
    DEBR = 38 [(.google.fhir.proto.fhir_original_code) = "DEBR"];
    CCO = 39 [(.google.fhir.proto.fhir_original_code) = "CCO"];
    SEE = 40 [(.google.fhir.proto.fhir_original_code) = "SEE"];
    SNIFF = 41 [(.google.fhir.proto.fhir_original_code) = "SNIFF"];
    CERTIFIED_ENTITY_TYPE = 42
        [(.google.fhir.proto.fhir_original_code) = "_CertifiedEntityType"];
    CITIZEN_ROLE_TYPE = 43
        [(.google.fhir.proto.fhir_original_code) = "_CitizenRoleType"];
    CAS = 44 [(.google.fhir.proto.fhir_original_code) = "CAS"];
    CASM = 45 [(.google.fhir.proto.fhir_original_code) = "CASM"];
    CN = 46 [(.google.fhir.proto.fhir_original_code) = "CN"];
    CNRP = 47 [(.google.fhir.proto.fhir_original_code) = "CNRP"];
    CNRPM = 48 [(.google.fhir.proto.fhir_original_code) = "CNRPM"];
    CPCA = 49 [(.google.fhir.proto.fhir_original_code) = "CPCA"];
    CRP = 50 [(.google.fhir.proto.fhir_original_code) = "CRP"];
    CRPM = 51 [(.google.fhir.proto.fhir_original_code) = "CRPM"];
    CONTACT_ROLE_TYPE = 52
        [(.google.fhir.proto.fhir_original_code) = "_ContactRoleType"];
    ADMINISTRATIVE_CONTACT_ROLE_TYPE = 53
        [(.google.fhir.proto.fhir_original_code) =
             "_AdministrativeContactRoleType"];
    BILL = 54 [(.google.fhir.proto.fhir_original_code) = "BILL"];
    ORG = 55 [(.google.fhir.proto.fhir_original_code) = "ORG"];
    PAYOR = 56 [(.google.fhir.proto.fhir_original_code) = "PAYOR"];
    ECON = 57 [
      (.google.fhir.proto.deprecated_code) = true,
      (.google.fhir.proto.fhir_original_code) = "ECON"
    ];
    NOK = 58 [
      (.google.fhir.proto.deprecated_code) = true,
      (.google.fhir.proto.fhir_original_code) = "NOK"
    ];
    IDENTIFIED_ENTITY_TYPE = 59
        [(.google.fhir.proto.fhir_original_code) = "_IdentifiedEntityType"];
    LOCATION_IDENTIFIED_ENTITY_ROLE_CODE = 60
        [(.google.fhir.proto.fhir_original_code) =
             "_LocationIdentifiedEntityRoleCode"];
    ACHFID = 61 [(.google.fhir.proto.fhir_original_code) = "ACHFID"];
    JURID = 62 [(.google.fhir.proto.fhir_original_code) = "JURID"];
    LOCHFID = 63 [(.google.fhir.proto.fhir_original_code) = "LOCHFID"];
    LIVING_SUBJECT_PRODUCTION_CLASS = 64
        [(.google.fhir.proto.fhir_original_code) =
             "_LivingSubjectProductionClass"];
    BF = 65 [(.google.fhir.proto.fhir_original_code) = "BF"];
    BL = 66 [(.google.fhir.proto.fhir_original_code) = "BL"];
    BR = 67 [(.google.fhir.proto.fhir_original_code) = "BR"];
    CO = 68 [(.google.fhir.proto.fhir_original_code) = "CO"];
    DA = 69 [(.google.fhir.proto.fhir_original_code) = "DA"];
    DR = 70 [(.google.fhir.proto.fhir_original_code) = "DR"];
    DU = 71 [(.google.fhir.proto.fhir_original_code) = "DU"];
    FI = 72 [(.google.fhir.proto.fhir_original_code) = "FI"];
    LY = 73 [(.google.fhir.proto.fhir_original_code) = "LY"];
    MT = 74 [(.google.fhir.proto.fhir_original_code) = "MT"];
    MU = 75 [(.google.fhir.proto.fhir_original_code) = "MU"];
    PL = 76 [(.google.fhir.proto.fhir_original_code) = "PL"];
    RC = 77 [(.google.fhir.proto.fhir_original_code) = "RC"];
    SH = 78 [(.google.fhir.proto.fhir_original_code) = "SH"];
    VL = 79 [(.google.fhir.proto.fhir_original_code) = "VL"];
    WL = 80 [(.google.fhir.proto.fhir_original_code) = "WL"];
    WO = 81 [(.google.fhir.proto.fhir_original_code) = "WO"];
    MEDICATION_GENERALIZATION_ROLE_TYPE = 82
        [(.google.fhir.proto.fhir_original_code) =
             "_MedicationGeneralizationRoleType"];
    DC = 83 [(.google.fhir.proto.fhir_original_code) = "DC"];
    GD = 84 [(.google.fhir.proto.fhir_original_code) = "GD"];
    GDF = 85 [(.google.fhir.proto.fhir_original_code) = "GDF"];
    GDS = 86 [(.google.fhir.proto.fhir_original_code) = "GDS"];
    GDSF = 87 [(.google.fhir.proto.fhir_original_code) = "GDSF"];
    MGDSF = 88 [(.google.fhir.proto.fhir_original_code) = "MGDSF"];
    MEMBER_ROLE_TYPE = 89
        [(.google.fhir.proto.fhir_original_code) = "_MemberRoleType"];
    TRB = 90 [(.google.fhir.proto.fhir_original_code) = "TRB"];
    PERSONAL_RELATIONSHIP_ROLE_TYPE = 91
        [(.google.fhir.proto.fhir_original_code) =
             "_PersonalRelationshipRoleType"];
    FAMMEMB = 92 [(.google.fhir.proto.fhir_original_code) = "FAMMEMB"];
    CHILD = 93 [(.google.fhir.proto.fhir_original_code) = "CHILD"];
    CHLDADOPT = 94 [(.google.fhir.proto.fhir_original_code) = "CHLDADOPT"];
    DAUADOPT = 95 [(.google.fhir.proto.fhir_original_code) = "DAUADOPT"];
    SONADOPT = 96 [(.google.fhir.proto.fhir_original_code) = "SONADOPT"];
    CHLDFOST = 97 [(.google.fhir.proto.fhir_original_code) = "CHLDFOST"];
    DAUFOST = 98 [(.google.fhir.proto.fhir_original_code) = "DAUFOST"];
    SONFOST = 99 [(.google.fhir.proto.fhir_original_code) = "SONFOST"];
    DAUC = 100 [(.google.fhir.proto.fhir_original_code) = "DAUC"];
    DAU = 101 [(.google.fhir.proto.fhir_original_code) = "DAU"];
    STPDAU = 102 [(.google.fhir.proto.fhir_original_code) = "STPDAU"];
    NCHILD = 103 [(.google.fhir.proto.fhir_original_code) = "NCHILD"];
    SON = 104 [(.google.fhir.proto.fhir_original_code) = "SON"];
    SONC = 105 [(.google.fhir.proto.fhir_original_code) = "SONC"];
    STPSON = 106 [(.google.fhir.proto.fhir_original_code) = "STPSON"];
    STPCHLD = 107 [(.google.fhir.proto.fhir_original_code) = "STPCHLD"];
    EXT = 108 [(.google.fhir.proto.fhir_original_code) = "EXT"];
    AUNT = 109 [(.google.fhir.proto.fhir_original_code) = "AUNT"];
    MAUNT = 110 [(.google.fhir.proto.fhir_original_code) = "MAUNT"];
    PAUNT = 111 [(.google.fhir.proto.fhir_original_code) = "PAUNT"];
    COUSN = 112 [(.google.fhir.proto.fhir_original_code) = "COUSN"];
    MCOUSN = 113 [(.google.fhir.proto.fhir_original_code) = "MCOUSN"];
    PCOUSN = 114 [(.google.fhir.proto.fhir_original_code) = "PCOUSN"];
    GGRPRN = 115 [(.google.fhir.proto.fhir_original_code) = "GGRPRN"];
    GGRFTH = 116 [(.google.fhir.proto.fhir_original_code) = "GGRFTH"];
    MGGRFTH = 117 [(.google.fhir.proto.fhir_original_code) = "MGGRFTH"];
    PGGRFTH = 118 [(.google.fhir.proto.fhir_original_code) = "PGGRFTH"];
    GGRMTH = 119 [(.google.fhir.proto.fhir_original_code) = "GGRMTH"];
    MGGRMTH = 120 [(.google.fhir.proto.fhir_original_code) = "MGGRMTH"];
    PGGRMTH = 121 [(.google.fhir.proto.fhir_original_code) = "PGGRMTH"];
    MGGRPRN = 122 [(.google.fhir.proto.fhir_original_code) = "MGGRPRN"];
    PGGRPRN = 123 [(.google.fhir.proto.fhir_original_code) = "PGGRPRN"];
    GRNDCHILD = 124 [(.google.fhir.proto.fhir_original_code) = "GRNDCHILD"];
    GRNDDAU = 125 [(.google.fhir.proto.fhir_original_code) = "GRNDDAU"];
    GRNDSON = 126 [(.google.fhir.proto.fhir_original_code) = "GRNDSON"];
    GRPRN = 127 [(.google.fhir.proto.fhir_original_code) = "GRPRN"];
    GRFTH = 128 [(.google.fhir.proto.fhir_original_code) = "GRFTH"];
    MGRFTH = 129 [(.google.fhir.proto.fhir_original_code) = "MGRFTH"];
    PGRFTH = 130 [(.google.fhir.proto.fhir_original_code) = "PGRFTH"];
    GRMTH = 131 [(.google.fhir.proto.fhir_original_code) = "GRMTH"];
    MGRMTH = 132 [(.google.fhir.proto.fhir_original_code) = "MGRMTH"];
    PGRMTH = 133 [(.google.fhir.proto.fhir_original_code) = "PGRMTH"];
    MGRPRN = 134 [(.google.fhir.proto.fhir_original_code) = "MGRPRN"];
    PGRPRN = 135 [(.google.fhir.proto.fhir_original_code) = "PGRPRN"];
    INLAW = 136 [(.google.fhir.proto.fhir_original_code) = "INLAW"];
    CHLDINLAW = 137 [(.google.fhir.proto.fhir_original_code) = "CHLDINLAW"];
    DAUINLAW = 138 [(.google.fhir.proto.fhir_original_code) = "DAUINLAW"];
    SONINLAW = 139 [(.google.fhir.proto.fhir_original_code) = "SONINLAW"];
    PRNINLAW = 140 [(.google.fhir.proto.fhir_original_code) = "PRNINLAW"];
    FTHINLAW = 141 [(.google.fhir.proto.fhir_original_code) = "FTHINLAW"];
    MTHINLAW = 142 [(.google.fhir.proto.fhir_original_code) = "MTHINLAW"];
    SIBINLAW = 143 [(.google.fhir.proto.fhir_original_code) = "SIBINLAW"];
    BROINLAW = 144 [(.google.fhir.proto.fhir_original_code) = "BROINLAW"];
    SISINLAW = 145 [(.google.fhir.proto.fhir_original_code) = "SISINLAW"];
    NIENEPH = 146 [(.google.fhir.proto.fhir_original_code) = "NIENEPH"];
    NEPHEW = 147 [(.google.fhir.proto.fhir_original_code) = "NEPHEW"];
    NIECE = 148 [(.google.fhir.proto.fhir_original_code) = "NIECE"];
    UNCLE = 149 [(.google.fhir.proto.fhir_original_code) = "UNCLE"];
    MUNCLE = 150 [(.google.fhir.proto.fhir_original_code) = "MUNCLE"];
    PUNCLE = 151 [(.google.fhir.proto.fhir_original_code) = "PUNCLE"];
    PRN = 152 [(.google.fhir.proto.fhir_original_code) = "PRN"];
    ADOPTP = 153 [(.google.fhir.proto.fhir_original_code) = "ADOPTP"];
    ADOPTF = 154 [(.google.fhir.proto.fhir_original_code) = "ADOPTF"];
    ADOPTM = 155 [(.google.fhir.proto.fhir_original_code) = "ADOPTM"];
    FTH = 156 [(.google.fhir.proto.fhir_original_code) = "FTH"];
    FTHFOST = 157 [(.google.fhir.proto.fhir_original_code) = "FTHFOST"];
    NFTH = 158 [(.google.fhir.proto.fhir_original_code) = "NFTH"];
    NFTHF = 159 [(.google.fhir.proto.fhir_original_code) = "NFTHF"];
    STPFTH = 160 [(.google.fhir.proto.fhir_original_code) = "STPFTH"];
    MTH = 161 [(.google.fhir.proto.fhir_original_code) = "MTH"];
    GESTM = 162 [(.google.fhir.proto.fhir_original_code) = "GESTM"];
    MTHFOST = 163 [(.google.fhir.proto.fhir_original_code) = "MTHFOST"];
    NMTH = 164 [(.google.fhir.proto.fhir_original_code) = "NMTH"];
    NMTHF = 165 [(.google.fhir.proto.fhir_original_code) = "NMTHF"];
    STPMTH = 166 [(.google.fhir.proto.fhir_original_code) = "STPMTH"];
    NPRN = 167 [(.google.fhir.proto.fhir_original_code) = "NPRN"];
    PRNFOST = 168 [(.google.fhir.proto.fhir_original_code) = "PRNFOST"];
    STPPRN = 169 [(.google.fhir.proto.fhir_original_code) = "STPPRN"];
    SIB = 170 [(.google.fhir.proto.fhir_original_code) = "SIB"];
    BRO = 171 [(.google.fhir.proto.fhir_original_code) = "BRO"];
    HBRO = 172 [(.google.fhir.proto.fhir_original_code) = "HBRO"];
    NBRO = 173 [(.google.fhir.proto.fhir_original_code) = "NBRO"];
    TWINBRO = 174 [(.google.fhir.proto.fhir_original_code) = "TWINBRO"];
    FTWINBRO = 175 [(.google.fhir.proto.fhir_original_code) = "FTWINBRO"];
    ITWINBRO = 176 [(.google.fhir.proto.fhir_original_code) = "ITWINBRO"];
    STPBRO = 177 [(.google.fhir.proto.fhir_original_code) = "STPBRO"];
    HSIB = 178 [(.google.fhir.proto.fhir_original_code) = "HSIB"];
    HSIS = 179 [(.google.fhir.proto.fhir_original_code) = "HSIS"];
    NSIB = 180 [(.google.fhir.proto.fhir_original_code) = "NSIB"];
    NSIS = 181 [(.google.fhir.proto.fhir_original_code) = "NSIS"];
    TWINSIS = 182 [(.google.fhir.proto.fhir_original_code) = "TWINSIS"];
    FTWINSIS = 183 [(.google.fhir.proto.fhir_original_code) = "FTWINSIS"];
    ITWINSIS = 184 [(.google.fhir.proto.fhir_original_code) = "ITWINSIS"];
    TWIN = 185 [(.google.fhir.proto.fhir_original_code) = "TWIN"];
    FTWIN = 186 [(.google.fhir.proto.fhir_original_code) = "FTWIN"];
    ITWIN = 187 [(.google.fhir.proto.fhir_original_code) = "ITWIN"];
    SIS = 188 [(.google.fhir.proto.fhir_original_code) = "SIS"];
    STPSIS = 189 [(.google.fhir.proto.fhir_original_code) = "STPSIS"];
    STPSIB = 190 [(.google.fhir.proto.fhir_original_code) = "STPSIB"];
    SIGOTHR = 191 [(.google.fhir.proto.fhir_original_code) = "SIGOTHR"];
    DOMPART = 192 [(.google.fhir.proto.fhir_original_code) = "DOMPART"];
    FMRSPS = 193 [(.google.fhir.proto.fhir_original_code) = "FMRSPS"];
    SPS = 194 [(.google.fhir.proto.fhir_original_code) = "SPS"];
    HUSB = 195 [(.google.fhir.proto.fhir_original_code) = "HUSB"];
    WIFE = 196 [(.google.fhir.proto.fhir_original_code) = "WIFE"];
    FRND = 197 [(.google.fhir.proto.fhir_original_code) = "FRND"];
    NBOR = 198 [(.google.fhir.proto.fhir_original_code) = "NBOR"];
    ONESELF = 199 [(.google.fhir.proto.fhir_original_code) = "ONESELF"];
    ROOM = 200 [(.google.fhir.proto.fhir_original_code) = "ROOM"];
    POLICY_OR_PROGRAM_COVERAGE_ROLE_TYPE = 201
        [(.google.fhir.proto.fhir_original_code) =
             "_PolicyOrProgramCoverageRoleType"];
    COVERAGE_ROLE_TYPE = 202
        [(.google.fhir.proto.fhir_original_code) = "_CoverageRoleType"];
    FAMDEP = 203 [(.google.fhir.proto.fhir_original_code) = "FAMDEP"];
    HANDIC = 204 [(.google.fhir.proto.fhir_original_code) = "HANDIC"];
    INJ = 205 [(.google.fhir.proto.fhir_original_code) = "INJ"];
    SELF = 206 [(.google.fhir.proto.fhir_original_code) = "SELF"];
    SPON = 207 [(.google.fhir.proto.fhir_original_code) = "SPON"];
    STUD = 208 [(.google.fhir.proto.fhir_original_code) = "STUD"];
    FSTUD = 209 [(.google.fhir.proto.fhir_original_code) = "FSTUD"];
    PSTUD = 210 [(.google.fhir.proto.fhir_original_code) = "PSTUD"];
    ADOPT = 211 [(.google.fhir.proto.fhir_original_code) = "ADOPT"];
    GCHILD = 212 [(.google.fhir.proto.fhir_original_code) = "GCHILD"];
    GPARNT = 213 [(.google.fhir.proto.fhir_original_code) = "GPARNT"];
    NAT = 214 [(.google.fhir.proto.fhir_original_code) = "NAT"];
    NIENE = 215 [(.google.fhir.proto.fhir_original_code) = "NIENE"];
    PARNT = 216 [(.google.fhir.proto.fhir_original_code) = "PARNT"];
    SPSE = 217 [(.google.fhir.proto.fhir_original_code) = "SPSE"];
    STEP = 218 [(.google.fhir.proto.fhir_original_code) = "STEP"];
    COVERED_PARTY_ROLE_TYPE = 219
        [(.google.fhir.proto.fhir_original_code) = "_CoveredPartyRoleType"];
    CLAIMANT_COVERED_PARTY_ROLE_TYPE = 220
        [(.google.fhir.proto.fhir_original_code) =
             "_ClaimantCoveredPartyRoleType"];
    CRIMEVIC = 221 [(.google.fhir.proto.fhir_original_code) = "CRIMEVIC"];
    INJWKR = 222 [(.google.fhir.proto.fhir_original_code) = "INJWKR"];
    DEPENDENT_COVERED_PARTY_ROLE_TYPE = 223
        [(.google.fhir.proto.fhir_original_code) =
             "_DependentCoveredPartyRoleType"];
    COCBEN = 224 [(.google.fhir.proto.fhir_original_code) = "COCBEN"];
    DIFFABL = 225 [(.google.fhir.proto.fhir_original_code) = "DIFFABL"];
    WARD = 226 [(.google.fhir.proto.fhir_original_code) = "WARD"];
    INDIVIDUAL_INSURED_PARTY_ROLE_TYPE = 227
        [(.google.fhir.proto.fhir_original_code) =
             "_IndividualInsuredPartyRoleType"];
    RETIREE = 228 [(.google.fhir.proto.fhir_original_code) = "RETIREE"];
    PROGRAM_ELIGIBLE_PARTY_ROLE_TYPE = 229
        [(.google.fhir.proto.fhir_original_code) =
             "_ProgramEligiblePartyRoleType"];
    INDIG = 230 [(.google.fhir.proto.fhir_original_code) = "INDIG"];
    MIL = 231 [(.google.fhir.proto.fhir_original_code) = "MIL"];
    ACTMIL = 232 [(.google.fhir.proto.fhir_original_code) = "ACTMIL"];
    RETMIL = 233 [(.google.fhir.proto.fhir_original_code) = "RETMIL"];
    VET = 234 [(.google.fhir.proto.fhir_original_code) = "VET"];
    SUBSCRIBER_COVERED_PARTY_ROLE_TYPE = 235
        [(.google.fhir.proto.fhir_original_code) =
             "_SubscriberCoveredPartyRoleType"];
    RESEARCH_SUBJECT_ROLE_BASIS = 236
        [(.google.fhir.proto.fhir_original_code) = "_ResearchSubjectRoleBasis"];
    ERL = 237 [(.google.fhir.proto.fhir_original_code) = "ERL"];
    SCN = 238 [(.google.fhir.proto.fhir_original_code) = "SCN"];
    SERVICE_DELIVERY_LOCATION_ROLE_TYPE = 239
        [(.google.fhir.proto.fhir_original_code) =
             "_ServiceDeliveryLocationRoleType"];
    DEDICATED_SERVICE_DELIVERY_LOCATION_ROLE_TYPE = 240
        [(.google.fhir.proto.fhir_original_code) =
             "_DedicatedServiceDeliveryLocationRoleType"];
    DEDICATED_CLINICAL_LOCATION_ROLE_TYPE = 241
        [(.google.fhir.proto.fhir_original_code) =
             "_DedicatedClinicalLocationRoleType"];
    DX = 242 [(.google.fhir.proto.fhir_original_code) = "DX"];
    CVDX = 243 [(.google.fhir.proto.fhir_original_code) = "CVDX"];
    CATH = 244 [(.google.fhir.proto.fhir_original_code) = "CATH"];
    ECHO = 245 [(.google.fhir.proto.fhir_original_code) = "ECHO"];
    GIDX = 246 [(.google.fhir.proto.fhir_original_code) = "GIDX"];
    ENDOS = 247 [(.google.fhir.proto.fhir_original_code) = "ENDOS"];
    RADDX = 248 [(.google.fhir.proto.fhir_original_code) = "RADDX"];
    RADO = 249 [(.google.fhir.proto.fhir_original_code) = "RADO"];
    RNEU = 250 [(.google.fhir.proto.fhir_original_code) = "RNEU"];
    HOSP = 251 [(.google.fhir.proto.fhir_original_code) = "HOSP"];
    CHR = 252 [(.google.fhir.proto.fhir_original_code) = "CHR"];
    GACH = 253 [(.google.fhir.proto.fhir_original_code) = "GACH"];
    MHSP = 254 [(.google.fhir.proto.fhir_original_code) = "MHSP"];
    PSYCHF = 255 [(.google.fhir.proto.fhir_original_code) = "PSYCHF"];
    RH = 256 [(.google.fhir.proto.fhir_original_code) = "RH"];
    RHAT = 257 [(.google.fhir.proto.fhir_original_code) = "RHAT"];
    RHII = 258 [(.google.fhir.proto.fhir_original_code) = "RHII"];
    RHMAD = 259 [(.google.fhir.proto.fhir_original_code) = "RHMAD"];
    RHPI = 260 [(.google.fhir.proto.fhir_original_code) = "RHPI"];
    RHPIH = 261 [(.google.fhir.proto.fhir_original_code) = "RHPIH"];
    RHPIMS = 262 [(.google.fhir.proto.fhir_original_code) = "RHPIMS"];
    RHPIVS = 263 [(.google.fhir.proto.fhir_original_code) = "RHPIVS"];
    RHYAD = 264 [(.google.fhir.proto.fhir_original_code) = "RHYAD"];
    HU = 265 [(.google.fhir.proto.fhir_original_code) = "HU"];
    BMTU = 266 [(.google.fhir.proto.fhir_original_code) = "BMTU"];
    CCU = 267 [(.google.fhir.proto.fhir_original_code) = "CCU"];
    CHEST = 268 [(.google.fhir.proto.fhir_original_code) = "CHEST"];
    EPIL = 269 [(.google.fhir.proto.fhir_original_code) = "EPIL"];
    ER = 270 [(.google.fhir.proto.fhir_original_code) = "ER"];
    ETU = 271 [(.google.fhir.proto.fhir_original_code) = "ETU"];
    HD = 272 [(.google.fhir.proto.fhir_original_code) = "HD"];
    HLAB = 273 [(.google.fhir.proto.fhir_original_code) = "HLAB"];
    INLAB = 274 [(.google.fhir.proto.fhir_original_code) = "INLAB"];
    OUTLAB = 275 [(.google.fhir.proto.fhir_original_code) = "OUTLAB"];
    HRAD = 276 [(.google.fhir.proto.fhir_original_code) = "HRAD"];
    HUSCS = 277 [(.google.fhir.proto.fhir_original_code) = "HUSCS"];
    ICU = 278 [(.google.fhir.proto.fhir_original_code) = "ICU"];
    PEDICU = 279 [(.google.fhir.proto.fhir_original_code) = "PEDICU"];
    PEDNICU = 280 [(.google.fhir.proto.fhir_original_code) = "PEDNICU"];
    INPHARM = 281 [(.google.fhir.proto.fhir_original_code) = "INPHARM"];
    MBL = 282 [(.google.fhir.proto.fhir_original_code) = "MBL"];
    NCCS = 283 [(.google.fhir.proto.fhir_original_code) = "NCCS"];
    NS = 284 [(.google.fhir.proto.fhir_original_code) = "NS"];
    OUTPHARM = 285 [(.google.fhir.proto.fhir_original_code) = "OUTPHARM"];
    PEDU = 286 [(.google.fhir.proto.fhir_original_code) = "PEDU"];
    PHU = 287 [(.google.fhir.proto.fhir_original_code) = "PHU"];
    RHU = 288 [(.google.fhir.proto.fhir_original_code) = "RHU"];
    SLEEP = 289 [(.google.fhir.proto.fhir_original_code) = "SLEEP"];
    NCCF = 290 [(.google.fhir.proto.fhir_original_code) = "NCCF"];
    SNF = 291 [(.google.fhir.proto.fhir_original_code) = "SNF"];
    OF = 292 [(.google.fhir.proto.fhir_original_code) = "OF"];
    ALL = 293 [(.google.fhir.proto.fhir_original_code) = "ALL"];
    AMPUT = 294 [(.google.fhir.proto.fhir_original_code) = "AMPUT"];
    BMTC = 295 [(.google.fhir.proto.fhir_original_code) = "BMTC"];
    BREAST = 296 [(.google.fhir.proto.fhir_original_code) = "BREAST"];
    CANC = 297 [(.google.fhir.proto.fhir_original_code) = "CANC"];
    CAPC = 298 [(.google.fhir.proto.fhir_original_code) = "CAPC"];
    CARD = 299 [(.google.fhir.proto.fhir_original_code) = "CARD"];
    PEDCARD = 300 [(.google.fhir.proto.fhir_original_code) = "PEDCARD"];
    COAG = 301 [(.google.fhir.proto.fhir_original_code) = "COAG"];
    CRS = 302 [(.google.fhir.proto.fhir_original_code) = "CRS"];
    DERM = 303 [(.google.fhir.proto.fhir_original_code) = "DERM"];
    ENDO = 304 [(.google.fhir.proto.fhir_original_code) = "ENDO"];
    PEDE = 305 [(.google.fhir.proto.fhir_original_code) = "PEDE"];
    ENT = 306 [(.google.fhir.proto.fhir_original_code) = "ENT"];
    FMC = 307 [(.google.fhir.proto.fhir_original_code) = "FMC"];
    GI = 308 [(.google.fhir.proto.fhir_original_code) = "GI"];
    PEDGI = 309 [(.google.fhir.proto.fhir_original_code) = "PEDGI"];
    GIM = 310 [(.google.fhir.proto.fhir_original_code) = "GIM"];
    GYN = 311 [(.google.fhir.proto.fhir_original_code) = "GYN"];
    HEM = 312 [(.google.fhir.proto.fhir_original_code) = "HEM"];
    PEDHEM = 313 [(.google.fhir.proto.fhir_original_code) = "PEDHEM"];
    HTN = 314 [(.google.fhir.proto.fhir_original_code) = "HTN"];
    IEC = 315 [(.google.fhir.proto.fhir_original_code) = "IEC"];
    INFD = 316 [(.google.fhir.proto.fhir_original_code) = "INFD"];
    PEDID = 317 [(.google.fhir.proto.fhir_original_code) = "PEDID"];
    INV = 318 [(.google.fhir.proto.fhir_original_code) = "INV"];
    LYMPH = 319 [(.google.fhir.proto.fhir_original_code) = "LYMPH"];
    MGEN = 320 [(.google.fhir.proto.fhir_original_code) = "MGEN"];
    NEPH = 321 [(.google.fhir.proto.fhir_original_code) = "NEPH"];
    PEDNEPH = 322 [(.google.fhir.proto.fhir_original_code) = "PEDNEPH"];
    NEUR = 323 [(.google.fhir.proto.fhir_original_code) = "NEUR"];
    OB = 324 [(.google.fhir.proto.fhir_original_code) = "OB"];
    OMS = 325 [(.google.fhir.proto.fhir_original_code) = "OMS"];
    ONCL = 326 [(.google.fhir.proto.fhir_original_code) = "ONCL"];
    PEDHO = 327 [(.google.fhir.proto.fhir_original_code) = "PEDHO"];
    OPH = 328 [(.google.fhir.proto.fhir_original_code) = "OPH"];
    OPTC = 329 [(.google.fhir.proto.fhir_original_code) = "OPTC"];
    ORTHO = 330 [(.google.fhir.proto.fhir_original_code) = "ORTHO"];
    HAND = 331 [(.google.fhir.proto.fhir_original_code) = "HAND"];
    PAINCL = 332 [(.google.fhir.proto.fhir_original_code) = "PAINCL"];
    PC = 333 [(.google.fhir.proto.fhir_original_code) = "PC"];
    PEDC = 334 [(.google.fhir.proto.fhir_original_code) = "PEDC"];
    PEDRHEUM = 335 [(.google.fhir.proto.fhir_original_code) = "PEDRHEUM"];
    POD = 336 [(.google.fhir.proto.fhir_original_code) = "POD"];
    PREV = 337 [(.google.fhir.proto.fhir_original_code) = "PREV"];
    PROCTO = 338 [(.google.fhir.proto.fhir_original_code) = "PROCTO"];
    PROFF = 339 [(.google.fhir.proto.fhir_original_code) = "PROFF"];
    PROS = 340 [(.google.fhir.proto.fhir_original_code) = "PROS"];
    PSI = 341 [(.google.fhir.proto.fhir_original_code) = "PSI"];
    PSY = 342 [(.google.fhir.proto.fhir_original_code) = "PSY"];
    RHEUM = 343 [(.google.fhir.proto.fhir_original_code) = "RHEUM"];
    SPMED = 344 [(.google.fhir.proto.fhir_original_code) = "SPMED"];
    SU = 345 [(.google.fhir.proto.fhir_original_code) = "SU"];
    PLS = 346 [(.google.fhir.proto.fhir_original_code) = "PLS"];
    URO = 347 [(.google.fhir.proto.fhir_original_code) = "URO"];
    TR = 348 [(.google.fhir.proto.fhir_original_code) = "TR"];
    TRAVEL = 349 [(.google.fhir.proto.fhir_original_code) = "TRAVEL"];
    WND = 350 [(.google.fhir.proto.fhir_original_code) = "WND"];
    RTF = 351 [(.google.fhir.proto.fhir_original_code) = "RTF"];
    PRC = 352 [(.google.fhir.proto.fhir_original_code) = "PRC"];
    SURF = 353 [(.google.fhir.proto.fhir_original_code) = "SURF"];
    DEDICATED_NON_CLINICAL_LOCATION_ROLE_TYPE = 354
        [(.google.fhir.proto.fhir_original_code) =
             "_DedicatedNonClinicalLocationRoleType"];
    DADDR = 355 [(.google.fhir.proto.fhir_original_code) = "DADDR"];
    MOBL = 356 [(.google.fhir.proto.fhir_original_code) = "MOBL"];
    AMB = 357 [(.google.fhir.proto.fhir_original_code) = "AMB"];
    PHARM = 358 [(.google.fhir.proto.fhir_original_code) = "PHARM"];
    INCIDENTAL_SERVICE_DELIVERY_LOCATION_ROLE_TYPE = 359
        [(.google.fhir.proto.fhir_original_code) =
             "_IncidentalServiceDeliveryLocationRoleType"];
    ACC = 360 [(.google.fhir.proto.fhir_original_code) = "ACC"];
    COMM = 361 [(.google.fhir.proto.fhir_original_code) = "COMM"];
    CSC = 362 [(.google.fhir.proto.fhir_original_code) = "CSC"];
    PTRES = 363 [(.google.fhir.proto.fhir_original_code) = "PTRES"];
    SCHOOL = 364 [(.google.fhir.proto.fhir_original_code) = "SCHOOL"];
    UPC = 365 [(.google.fhir.proto.fhir_original_code) = "UPC"];
    WORK = 366 [(.google.fhir.proto.fhir_original_code) = "WORK"];
    SPECIMEN_ROLE_TYPE = 367
        [(.google.fhir.proto.fhir_original_code) = "_SpecimenRoleType"];
    C = 368 [(.google.fhir.proto.fhir_original_code) = "C"];
    G = 369 [(.google.fhir.proto.fhir_original_code) = "G"];
    L = 370 [(.google.fhir.proto.fhir_original_code) = "L"];
    P = 371 [(.google.fhir.proto.fhir_original_code) = "P"];
    Q = 372 [(.google.fhir.proto.fhir_original_code) = "Q"];
    B = 373 [(.google.fhir.proto.fhir_original_code) = "B"];
    E = 374 [(.google.fhir.proto.fhir_original_code) = "E"];
    F = 375 [(.google.fhir.proto.fhir_original_code) = "F"];
    O = 376 [(.google.fhir.proto.fhir_original_code) = "O"];
    V = 377 [(.google.fhir.proto.fhir_original_code) = "V"];
    R = 378 [(.google.fhir.proto.fhir_original_code) = "R"];
    CLAIM = 379 [(.google.fhir.proto.fhir_original_code) = "CLAIM"];
    COMMUNITY_LABORATORY = 380
        [(.google.fhir.proto.fhir_original_code) = "communityLaboratory"];
    GT = 381 [(.google.fhir.proto.fhir_original_code) = "GT"];
    HOME_HEALTH = 382 [(.google.fhir.proto.fhir_original_code) = "homeHealth"];
    LABORATORY = 383;
    PATHOLOGIST = 384;
    PH = 385 [(.google.fhir.proto.fhir_original_code) = "PH"];
    PHLEBOTOMIST = 386;
    PROG = 387 [(.google.fhir.proto.fhir_original_code) = "PROG"];
    PT = 388 [(.google.fhir.proto.fhir_original_code) = "PT"];
    SUBJECT = 389;
    THIRD_PARTY = 390 [(.google.fhir.proto.fhir_original_code) = "thirdParty"];
    DEP = 391 [(.google.fhir.proto.fhir_original_code) = "DEP"];
    DEPEN = 392 [(.google.fhir.proto.fhir_original_code) = "DEPEN"];
    FM = 393 [(.google.fhir.proto.fhir_original_code) = "FM"];
    INDIV = 394 [(.google.fhir.proto.fhir_original_code) = "INDIV"];
    NAMED = 395 [(.google.fhir.proto.fhir_original_code) = "NAMED"];
    PSYCHCF = 396 [(.google.fhir.proto.fhir_original_code) = "PSYCHCF"];
    SUBSCR = 397 [(.google.fhir.proto.fhir_original_code) = "SUBSCR"];
  }
}

// **** MISSING DEFINITIONS ****
// See http://terminology.hl7.org/CodeSystem/v3-TimingEvent
message V3TimingEventCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://terminology.hl7.org/CodeSystem/v3-TimingEvent";

    INVALID_UNINITIALIZED = 0;
    AC = 1 [(.google.fhir.proto.fhir_original_code) = "AC"];
    ACD = 2 [(.google.fhir.proto.fhir_original_code) = "ACD"];
    ACM = 3 [(.google.fhir.proto.fhir_original_code) = "ACM"];
    ACV = 4 [(.google.fhir.proto.fhir_original_code) = "ACV"];
    C = 5 [(.google.fhir.proto.fhir_original_code) = "C"];
    CD = 6 [(.google.fhir.proto.fhir_original_code) = "CD"];
    CM = 7 [(.google.fhir.proto.fhir_original_code) = "CM"];
    CV = 8 [(.google.fhir.proto.fhir_original_code) = "CV"];
    HS = 9 [(.google.fhir.proto.fhir_original_code) = "HS"];
    IC = 10 [(.google.fhir.proto.fhir_original_code) = "IC"];
    ICD = 11 [(.google.fhir.proto.fhir_original_code) = "ICD"];
    ICM = 12 [(.google.fhir.proto.fhir_original_code) = "ICM"];
    ICV = 13 [(.google.fhir.proto.fhir_original_code) = "ICV"];
    PC = 14 [(.google.fhir.proto.fhir_original_code) = "PC"];
    PCD = 15 [(.google.fhir.proto.fhir_original_code) = "PCD"];
    PCM = 16 [(.google.fhir.proto.fhir_original_code) = "PCM"];
    PCV = 17 [(.google.fhir.proto.fhir_original_code) = "PCV"];
    WAKE = 18 [(.google.fhir.proto.fhir_original_code) = "WAKE"];
  }
}

// A coded concept listing the base codes.
// See http://hl7.org/fhir/vision-base-codes
message VisionBaseCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/vision-base-codes";

    INVALID_UNINITIALIZED = 0;
    UP = 1;
    DOWN = 2;
    IN = 3;
    OUT = 4;
  }
}

// A coded concept listing the eye codes.
// See http://hl7.org/fhir/vision-eye-codes
message VisionEyesCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/vision-eye-codes";

    INVALID_UNINITIALIZED = 0;
    RIGHT = 1;
    LEFT = 2;
  }
}

// How a search parameter relates to the set of elements returned by evaluating
// its xpath query. See http://hl7.org/fhir/search-xpath-usage
message XPathUsageTypeCode {
  enum Value {
    option (.google.fhir.proto.fhir_code_system_url) =
        "http://hl7.org/fhir/search-xpath-usage";

    INVALID_UNINITIALIZED = 0;
    NORMAL = 1;
    PHONETIC = 2;
    NEARBY = 3;
    DISTANCE = 4;
    OTHER = 5;
  }
}
