FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.xver-r4b.r3
Resource TypeStructureDefinition
IdStructureDefinition-profile-ServiceRequest-for-ReferralRequest.json
FHIR VersionR3
Sourcehttp://hl7.org/fhir/uv/xver-r4b.r3/0.1.0/StructureDefinition-profile-ServiceRequest-for-ReferralRequest.html
URLhttp://hl7.org/fhir/4.3/StructureDefinition/profile-ServiceRequest-for-ReferralRequest
Version0.1.0
Statusactive
Date2026-03-17T16:04:24.8511073-05:00
NameProfile_R4B_ServiceRequest_R3_ReferralRequest
TitleCross-version Profile for R4B.ServiceRequest for use in FHIR STU3
Realmuv
Authorityhl7
DescriptionThis cross-version profile allows R4B ServiceRequest content to be represented via FHIR STU3 ReferralRequest resources.
TypeReferralRequest
Kindresource

Resources that use this resource

StructureDefinition
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-BiologicallyDerivedProduct.requestR4B: Procedure request (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-DeviceUseStatement.basedOnR4B: Fulfills plan, proposal or order (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-DeviceUseStatement.derivedFromR4B: Supporting information (new)

Resources that this resource uses

StructureDefinition
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.identifierR4B: Identifiers assigned to this order additional types
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.instantiatesCanonicalR4B: Instantiates FHIR protocol or definition additional types
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.instantiatesUriR4B: Instantiates external protocol or definition (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.insuranceR4B: Associated insurance coverage (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.intentR4B: proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.locationCodeR4B: Requested location (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.locationReferenceR4B: Requested location (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.metaR4B: Metadata about the resource additional types
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.noteR4B: Comments additional types
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.occurrenceR4B: When service should occur additional types
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.patientInstructionR4B: Patient or consumer-oriented instructions (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.quantityR4B: Service amount (new)
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.requisitionR4B: Composite Request ID additional types
hl7.fhir.uv.xver-r4b.r3#0.1.0extension-ServiceRequest.textR4B: Text summary of the resource, for human interpretation additional types

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition profile-ServiceRequest-for-ReferralRequest

NameFlagsCard.TypeDescription & Constraintsdoco
.. ReferralRequest 0..*ReferralRequestA request for referral or transfer of care
... meta
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:meta 0..1MetaR4B: Metadata about the resource additional types
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.meta
... text
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:text 0..1(Complex)R4B: Text summary of the resource, for human interpretation additional types
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.text
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... extension:instantiatesUri 0..*uriR4B: Instantiates external protocol or definition (new)
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.instantiatesUri
.... extension:quantity 0..1Quantity, Ratio, RangeR4B: Service amount (new)
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.quantity
.... extension:occurrence 0..1Period, TimingR4B: When service should occur additional types
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.occurrence
.... extension:locationCode 0..*CodeableConceptR4B: Requested location (new)
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.locationCode
Binding: ServiceDeliveryLocationRoleType|2014-03-26 (example): A location type where services are delivered.
.... extension:locationReference 0..*Reference(Cross-version Profile for R4B.Location for use in FHIR STU3(0.1.0) | Location)R4B: Requested location (new)
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.locationReference
.... extension:insurance 0..*Reference(Cross-version Profile for R4B.Coverage for use in FHIR STU3(0.1.0) | Coverage | Cross-version Profile for R4B.ClaimResponse for use in FHIR STU3(0.1.0) | ClaimResponse)R4B: Associated insurance coverage (new)
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.insurance
.... extension:patientInstruction 0..1stringR4B: Patient or consumer-oriented instructions (new)
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.patientInstruction
... identifier
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:identifier 0..*IdentifierR4B: Identifiers assigned to this order additional types
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.identifier
... definition
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:instantiatesCanonical 0..*uriR4B: Instantiates FHIR protocol or definition additional types
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.instantiatesCanonical
... basedOn
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:basedOn 0..*?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: What request fulfills
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... replaces
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:replaces 0..*?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: What request replaces additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... groupIdentifier
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:requisition 0..1IdentifierR4B: Composite Request ID additional types
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.requisition
... intent
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:intent 0..1codeR4B: proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.intent
Binding: RequestIntent (required): The kind of service request.
... subject
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:subject 0..1?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: Individual or Entity the service is ordered for
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... context
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:encounter 0..1?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: Encounter in which the request was created additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... recipient
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:performer 0..*?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: Requested performer
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... reasonReference
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:reasonReference 0..*?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: Explanation/Justification for service or service
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... supportingInfo
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:supportingInfo 0..*?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: Additional clinical information additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... note
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:note 0..*AnnotationR4B: Comments additional types
URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.note
... relevantHistory
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
..... extension:relevantHistory 0..*?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]]R4B: Request provenance additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "profile-ServiceRequest-for-ReferralRequest",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "extension": [
        {
          "url": "packageId",
          "valueId": "hl7.fhir.uv.xver-r4b.r3"
        },
        {
          "url": "version",
          "valueString": "0.1.0"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/package-source"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4b.r3"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4b.r3"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/4.3/StructureDefinition/profile-ServiceRequest-for-ReferralRequest",
  "version": "0.1.0",
  "name": "Profile_R4B_ServiceRequest_R3_ReferralRequest",
  "title": "Cross-version Profile for R4B.ServiceRequest for use in FHIR STU3",
  "status": "active",
  "experimental": false,
  "date": "2026-03-17T16:04:24.8511073-05:00",
  "publisher": "FHIR Infrastructure",
  "contact": [
    {
      "name": "FHIR Infrastructure",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "This cross-version profile allows R4B ServiceRequest content to be represented via FHIR STU3 ReferralRequest resources.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ReferralRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
  "derivation": "constraint",
  "snapshot": {
    "element": [
      {
        "id": "ReferralRequest",
        "path": "ReferralRequest",
        "short": "A request for referral or transfer of care",
        "definition": "Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization.",
        "alias": [
          "ReferralRequest TransferOfCare Request"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "dom-2",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression": "contained.contained.empty()",
            "xpath": "not(parent::f:contained and f:contained)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-1",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
            "expression": "contained.text.empty()",
            "xpath": "not(parent::f:contained and f:text)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-4",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-3",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
            "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()",
            "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Entity. Role, or Act"
          },
          {
            "identity": "w5",
            "map": "clinical.careprovision"
          }
        ]
      },
      {
        "id": "ReferralRequest.id",
        "path": "ReferralRequest.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "isSummary": true
      },
      {
        "id": "ReferralRequest.meta",
        "path": "ReferralRequest.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.meta",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Meta"
          }
        ],
        "isSummary": true
      },
      {
        "id": "ReferralRequest.meta.id",
        "path": "ReferralRequest.meta.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.meta.extension",
        "path": "ReferralRequest.meta.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.meta.extension:meta",
        "path": "ReferralRequest.meta.extension",
        "sliceName": "meta",
        "short": "R4B: Metadata about the resource additional types",
        "definition": "R4B: `ServiceRequest.meta` additional types (Meta) additional types from child elements (lastUpdated, profile, security, source, tag, versionId)",
        "comment": "Element `ServiceRequest.meta` is mapped to FHIR STU3 element `ProcedureRequest.meta` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.meta` is mapped to FHIR STU3 element `ReferralRequest.meta` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.meta` do not cover the following types: Meta.\nThe mappings for `ServiceRequest.meta` do not cover the following types based on type expansion: lastUpdated, profile, security, source, tag, versionId.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.meta|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.meta.versionId",
        "path": "ReferralRequest.meta.versionId",
        "short": "Version specific identifier",
        "definition": "The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted.",
        "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Meta.versionId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "isSummary": true
      },
      {
        "id": "ReferralRequest.meta.lastUpdated",
        "path": "ReferralRequest.meta.lastUpdated",
        "short": "When the resource version last changed",
        "definition": "When the resource last changed - e.g. when the version changed.",
        "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Meta.lastUpdated",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "instant"
          }
        ],
        "isSummary": true
      },
      {
        "id": "ReferralRequest.meta.profile",
        "path": "ReferralRequest.meta.profile",
        "short": "Profiles this resource claims to conform to",
        "definition": "A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/STU3/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/STU3/).",
        "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Meta.profile",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "isSummary": true
      },
      {
        "id": "ReferralRequest.meta.security",
        "path": "ReferralRequest.meta.security",
        "short": "Security Labels applied to this resource",
        "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
        "comment": "The security labels can be updated without changing the stated version of the resource  The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Meta.security",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SecurityLabels"
            }
          ],
          "strength": "extensible",
          "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/security-labels|3.0.2"
          }
        }
      },
      {
        "id": "ReferralRequest.meta.tag",
        "path": "ReferralRequest.meta.tag",
        "short": "Tags applied to this resource",
        "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
        "comment": "The tags can be updated without changing the stated version of the resource.  The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Meta.tag",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Tags"
            }
          ],
          "strength": "example",
          "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\"",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/common-tags|3.0.2"
          }
        }
      },
      {
        "id": "ReferralRequest.implicitRules",
        "path": "ReferralRequest.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.implicitRules",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true,
        "isSummary": true
      },
      {
        "id": "ReferralRequest.language",
        "path": "ReferralRequest.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.language",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueReference": {
                "reference": "http://hl7.org/fhir/ValueSet/all-languages|3.0.2"
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Language"
            }
          ],
          "strength": "extensible",
          "description": "A human language.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/languages|3.0.2"
          }
        }
      },
      {
        "id": "ReferralRequest.text",
        "path": "ReferralRequest.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "id": "ReferralRequest.text.id",
        "path": "ReferralRequest.text.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.text.extension",
        "path": "ReferralRequest.text.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.text.extension:text",
        "path": "ReferralRequest.text.extension",
        "sliceName": "text",
        "short": "R4B: Text summary of the resource, for human interpretation additional types",
        "definition": "R4B: `ServiceRequest.text` additional types (Narrative) additional types from child elements (div, status)",
        "comment": "Element `ServiceRequest.text` is mapped to FHIR STU3 element `ProcedureRequest.text` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.text` is mapped to FHIR STU3 element `ReferralRequest.text` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.text` do not cover the following types: Narrative.\nThe mappings for `ServiceRequest.text` do not cover the following types based on type expansion: div, status.\nContained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.text|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.text.status",
        "path": "ReferralRequest.text.status",
        "short": "generated | extensions | additional | empty",
        "definition": "The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Narrative.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "NarrativeStatus"
            }
          ],
          "strength": "required",
          "description": "The status of a resource narrative",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/narrative-status|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.text.div",
        "path": "ReferralRequest.text.div",
        "short": "Limited xhtml content",
        "definition": "The actual narrative content, a stripped down version of XHTML.",
        "comment": "The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained stylesheets. The XHTML content may not contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Narrative.div",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "xhtml"
          }
        ],
        "constraint": [
          {
            "key": "txt-1",
            "severity": "error",
            "human": "The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes",
            "expression": "htmlchecks()",
            "xpath": "not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])",
            "source": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          },
          {
            "key": "txt-2",
            "severity": "error",
            "human": "The narrative SHALL have some non-whitespace content",
            "expression": "htmlchecks()",
            "xpath": "descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]",
            "source": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.contained",
        "path": "ReferralRequest.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.contained",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension",
        "path": "ReferralRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:instantiatesUri",
        "path": "ReferralRequest.extension",
        "sliceName": "instantiatesUri",
        "short": "R4B: Instantiates external protocol or definition (new)",
        "definition": "R4B: `ServiceRequest.instantiatesUri` (new:uri)",
        "comment": "Element `ServiceRequest.instantiatesUri` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.instantiatesUri` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.instantiatesUri` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nThis might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.instantiatesUri|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.extension:quantity",
        "path": "ReferralRequest.extension",
        "sliceName": "quantity",
        "short": "R4B: Service amount (new)",
        "definition": "R4B: `ServiceRequest.quantity[x]` (new:Quantity, Range, Ratio)",
        "comment": "Element `ServiceRequest.quantity[x]` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.quantity[x]` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.quantity[x]` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.quantity|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.extension:occurrence",
        "path": "ReferralRequest.extension",
        "sliceName": "occurrence",
        "short": "R4B: When service should occur additional types",
        "definition": "R4B: `ServiceRequest.occurrence[x]` additional types (Period, Timing)",
        "comment": "Element `ServiceRequest.occurrence[x]` is mapped to FHIR STU3 element `ProcedureRequest.occurrence[x]` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.occurrence[x]` is mapped to FHIR STU3 element `ReferralRequest.occurrence[x]` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.occurrence[x]` do not cover the following types: Period, Timing.\nThe target context `ProcedureRequest.occurrence[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `ProcedureRequest`.\nThe target context `ReferralRequest.occurrence[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `ReferralRequest`.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.occurrence|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.extension:locationCode",
        "path": "ReferralRequest.extension",
        "sliceName": "locationCode",
        "short": "R4B: Requested location (new)",
        "definition": "R4B: `ServiceRequest.locationCode` (new:CodeableConcept)",
        "comment": "Element `ServiceRequest.locationCode` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.locationCode` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.locationCode` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.locationCode|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.extension:locationReference",
        "path": "ReferralRequest.extension",
        "sliceName": "locationReference",
        "short": "R4B: Requested location (new)",
        "definition": "R4B: `ServiceRequest.locationReference` (new:Reference(Location))",
        "comment": "Element `ServiceRequest.locationReference` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.locationReference` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.locationReference` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.locationReference|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.extension:insurance",
        "path": "ReferralRequest.extension",
        "sliceName": "insurance",
        "short": "R4B: Associated insurance coverage (new)",
        "definition": "R4B: `ServiceRequest.insurance` (new:Reference(Coverage,ClaimResponse))",
        "comment": "Element `ServiceRequest.insurance` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.insurance` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.insurance` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.insurance|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.extension:patientInstruction",
        "path": "ReferralRequest.extension",
        "sliceName": "patientInstruction",
        "short": "R4B: Patient or consumer-oriented instructions (new)",
        "definition": "R4B: `ServiceRequest.patientInstruction` (new:string)",
        "comment": "Element `ServiceRequest.patientInstruction` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.patientInstruction` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.patientInstruction` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.patientInstruction|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.modifierExtension",
        "path": "ReferralRequest.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier",
        "path": "ReferralRequest.identifier",
        "short": "Business identifier",
        "definition": "Business identifier that uniquely identifies the referral/care transfer request instance.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.identifier",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RF1-6 / RF1-11"
          },
          {
            "identity": "w5",
            "map": "id"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.id",
        "path": "ReferralRequest.identifier.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.extension",
        "path": "ReferralRequest.identifier.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.extension:identifier",
        "path": "ReferralRequest.identifier.extension",
        "sliceName": "identifier",
        "short": "R4B: Identifiers assigned to this order additional types",
        "definition": "R4B: `ServiceRequest.identifier` additional types (Identifier) additional types from child elements (assigner, period, system, type, use, value)",
        "comment": "Element `ServiceRequest.identifier` is mapped to FHIR STU3 element `ProcedureRequest.identifier` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.identifier` is mapped to FHIR STU3 element `ReferralRequest.identifier` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.identifier` do not cover the following types: Identifier.\nThe mappings for `ServiceRequest.identifier` do not cover the following types based on type expansion: assigner, period, system, type, use, value.\nThe identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2).  For further discussion and examples see the resource notes section below.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.identifier|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.use",
        "path": "ReferralRequest.identifier.use",
        "short": "usual | official | temp | secondary (If known)",
        "definition": "The purpose of this identifier.",
        "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
        "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.use",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "IdentifierUse"
            }
          ],
          "strength": "required",
          "description": "Identifies the purpose for this identifier, if known .",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/identifier-use|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Role.code or implied by context"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.type",
        "path": "ReferralRequest.identifier.type",
        "short": "Description of identifier",
        "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
        "comment": "This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. \n\nWhere the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
        "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "IdentifierType"
            }
          ],
          "strength": "extensible",
          "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/identifier-type|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.5"
          },
          {
            "identity": "rim",
            "map": "Role.code or implied by context"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.system",
        "path": "ReferralRequest.identifier.system",
        "short": "The namespace for the identifier value",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
        "requirements": "There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.system",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueUri": "http://www.acme.com/identifiers/patient"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / EI-2-4"
          },
          {
            "identity": "rim",
            "map": "II.root or Role.id.root"
          },
          {
            "identity": "servd",
            "map": "./IdentifierType"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.value",
        "path": "ReferralRequest.identifier.value",
        "short": "The value that is unique",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
        "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/STU3/extension-rendered-value.html).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueString": "123456"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.1 / EI.1"
          },
          {
            "identity": "rim",
            "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.period",
        "path": "ReferralRequest.identifier.period",
        "short": "Time period when id is/was valid for use",
        "definition": "Time period during which identifier is/was valid for use.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.period",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.7 + CX.8"
          },
          {
            "identity": "rim",
            "map": "Role.effectiveTime or implied by context"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.assigner",
        "path": "ReferralRequest.identifier.assigner",
        "short": "Organization that issued id (may be just text)",
        "definition": "Organization that issued/manages the identifier.",
        "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.assigner",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / (CX.4,CX.9,CX.10)"
          },
          {
            "identity": "rim",
            "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"
          },
          {
            "identity": "servd",
            "map": "./IdentifierIssuingAuthority"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition",
        "path": "ReferralRequest.definition",
        "short": "Instantiates protocol or definition",
        "definition": "A protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.definition",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=DEFN].target"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition.id",
        "path": "ReferralRequest.definition.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition.extension",
        "path": "ReferralRequest.definition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition.extension:instantiatesCanonical",
        "path": "ReferralRequest.definition.extension",
        "sliceName": "instantiatesCanonical",
        "short": "R4B: Instantiates FHIR protocol or definition additional types",
        "definition": "R4B: `ServiceRequest.instantiatesCanonical` additional types (canonical(http://hl7.org/fhir/StructureDefinition/ActivityDefinition), canonical(http://hl7.org/fhir/StructureDefinition/PlanDefinition)) additional types from child elements (value)",
        "comment": "Element `ServiceRequest.instantiatesCanonical` is mapped to FHIR STU3 element `ProcedureRequest.definition` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.instantiatesCanonical` is mapped to FHIR STU3 element `ReferralRequest.definition` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.instantiatesCanonical` do not cover the following types: canonical.\nThe mappings for `ServiceRequest.instantiatesCanonical` do not cover the following types based on type expansion: value.\nNote: This is a business identifier, not a resource identifier (see [discussion](https://hl7.org/fhir/resource.htm#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.instantiatesCanonical|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition.reference",
        "path": "ReferralRequest.definition.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition.identifier",
        "path": "ReferralRequest.definition.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.definition.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.basedOn",
        "path": "ReferralRequest.basedOn",
        "short": "Request fulfilled by this request",
        "definition": "Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part.",
        "alias": [
          "fulfills"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.basedOn",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "ReferralRequest.basedOn.id",
        "path": "ReferralRequest.basedOn.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.basedOn.extension",
        "path": "ReferralRequest.basedOn.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.basedOn.extension:basedOn",
        "path": "ReferralRequest.basedOn.extension",
        "sliceName": "basedOn",
        "short": "R4B: What request fulfills",
        "definition": "R4B: `ServiceRequest.basedOn`",
        "comment": "Element `ServiceRequest.basedOn` is mapped to FHIR STU3 element `ProcedureRequest.basedOn` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.basedOn` is mapped to FHIR STU3 element `ReferralRequest.basedOn` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.basedOn` with unmapped reference targets: CarePlan, MedicationRequest, ServiceRequest.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.basedOn.reference",
        "path": "ReferralRequest.basedOn.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.basedOn.identifier",
        "path": "ReferralRequest.basedOn.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.basedOn.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.basedOn.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces",
        "path": "ReferralRequest.replaces",
        "short": "Request(s) replaced by this request",
        "definition": "Completed or terminated request(s) whose function is taken by this new request.",
        "comment": "The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing.",
        "requirements": "Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests.",
        "alias": [
          "supersedes",
          "prior",
          "renewed order"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.replaces",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=RPLC].target"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces.id",
        "path": "ReferralRequest.replaces.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces.extension",
        "path": "ReferralRequest.replaces.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces.extension:replaces",
        "path": "ReferralRequest.replaces.extension",
        "sliceName": "replaces",
        "short": "R4B: What request replaces additional types",
        "definition": "R4B: `ServiceRequest.replaces` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.replaces` is mapped to FHIR STU3 element `ProcedureRequest.replaces` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.replaces` is mapped to FHIR STU3 element `ReferralRequest.replaces` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.replaces` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.replaces` with unmapped reference targets: ServiceRequest.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces.reference",
        "path": "ReferralRequest.replaces.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces.identifier",
        "path": "ReferralRequest.replaces.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.replaces.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier",
        "path": "ReferralRequest.groupIdentifier",
        "short": "Composite request this is part of",
        "definition": "The business identifier of the logical \"grouping\" request/order that this referral is a part of.",
        "requirements": "Allows multiple orders to be collected as part of a single requisition.",
        "alias": [
          "grouperId",
          "requisition"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.groupIdentifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "ReferralRequest.groupIdentifier.id",
        "path": "ReferralRequest.groupIdentifier.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.extension",
        "path": "ReferralRequest.groupIdentifier.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.extension:requisition",
        "path": "ReferralRequest.groupIdentifier.extension",
        "sliceName": "requisition",
        "short": "R4B: Composite Request ID additional types",
        "definition": "R4B: `ServiceRequest.requisition` additional types (Identifier) additional types from child elements (assigner, period, system, type, use, value)",
        "comment": "Element `ServiceRequest.requisition` is mapped to FHIR STU3 element `ProcedureRequest.requisition` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.requisition` is mapped to FHIR STU3 element `ReferralRequest.groupIdentifier` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.requisition` do not cover the following types: Identifier.\nThe mappings for `ServiceRequest.requisition` do not cover the following types based on type expansion: assigner, period, system, type, use, value.\nRequests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.requisition|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.use",
        "path": "ReferralRequest.groupIdentifier.use",
        "short": "usual | official | temp | secondary (If known)",
        "definition": "The purpose of this identifier.",
        "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
        "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.use",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "IdentifierUse"
            }
          ],
          "strength": "required",
          "description": "Identifies the purpose for this identifier, if known .",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/identifier-use|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Role.code or implied by context"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.type",
        "path": "ReferralRequest.groupIdentifier.type",
        "short": "Description of identifier",
        "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
        "comment": "This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. \n\nWhere the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
        "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "IdentifierType"
            }
          ],
          "strength": "extensible",
          "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/identifier-type|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.5"
          },
          {
            "identity": "rim",
            "map": "Role.code or implied by context"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.system",
        "path": "ReferralRequest.groupIdentifier.system",
        "short": "The namespace for the identifier value",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
        "requirements": "There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.system",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueUri": "http://www.acme.com/identifiers/patient"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / EI-2-4"
          },
          {
            "identity": "rim",
            "map": "II.root or Role.id.root"
          },
          {
            "identity": "servd",
            "map": "./IdentifierType"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.value",
        "path": "ReferralRequest.groupIdentifier.value",
        "short": "The value that is unique",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
        "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/STU3/extension-rendered-value.html).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "General",
            "valueString": "123456"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.1 / EI.1"
          },
          {
            "identity": "rim",
            "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.period",
        "path": "ReferralRequest.groupIdentifier.period",
        "short": "Time period when id is/was valid for use",
        "definition": "Time period during which identifier is/was valid for use.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.period",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.7 + CX.8"
          },
          {
            "identity": "rim",
            "map": "Role.effectiveTime or implied by context"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.assigner",
        "path": "ReferralRequest.groupIdentifier.assigner",
        "short": "Organization that issued id (may be just text)",
        "definition": "Organization that issued/manages the identifier.",
        "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Identifier.assigner",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / (CX.4,CX.9,CX.10)"
          },
          {
            "identity": "rim",
            "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"
          },
          {
            "identity": "servd",
            "map": "./IdentifierIssuingAuthority"
          }
        ]
      },
      {
        "id": "ReferralRequest.status",
        "path": "ReferralRequest.status",
        "short": "draft | active | suspended | cancelled | completed | entered-in-error | unknown",
        "definition": "The status of the authorization/intention reflected by the referral request record.",
        "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
        "requirements": "Workflow status is handled by the Task resource.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ReferralRequest.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralRequestStatus"
            }
          ],
          "strength": "required",
          "description": "The status of the referral.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/request-status|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RF1-1"
          },
          {
            "identity": "w5",
            "map": "status"
          }
        ]
      },
      {
        "id": "ReferralRequest.intent",
        "path": "ReferralRequest.intent",
        "short": "proposal | plan | order",
        "definition": "Distinguishes the \"level\" of authorization/demand implicit in this request.",
        "requirements": "The same resource structure is used when capturing proposals/recommendations, plans and actual requests.",
        "alias": [
          "category"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "ReferralRequest.intent",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralCategory"
            }
          ],
          "strength": "required",
          "description": "Codes identifying the stage lifecycle stage of a request",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/request-intent|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "class"
          }
        ]
      },
      {
        "id": "ReferralRequest.intent.id",
        "path": "ReferralRequest.intent.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "ReferralRequest.intent.extension",
        "path": "ReferralRequest.intent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.intent.extension:intent",
        "path": "ReferralRequest.intent.extension",
        "sliceName": "intent",
        "short": "R4B: proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option",
        "definition": "R4B: `ServiceRequest.intent`",
        "comment": "Element `ServiceRequest.intent` is mapped to FHIR STU3 element `ProcedureRequest.intent` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.intent` is mapped to FHIR STU3 element `ReferralRequest.intent` as `SourceIsBroaderThanTarget`.\nThe target context `ProcedureRequest.intent` is a modifier element, so this extension does not need to be defined as a modifier.\nThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.intent|0.1.0"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.intent.value",
        "path": "ReferralRequest.intent.value",
        "representation": [
          "xmlAttr"
        ],
        "short": "Primitive value for code",
        "definition": "Primitive value for code",
        "min": 0,
        "max": "1",
        "base": {
          "path": "string.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                "valueString": "[^\\s]+([\\s]?[^\\s]+)*"
              }
            ],
            "_code": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                  "valueString": "string"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                  "valueString": "xsd:token"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type",
                  "valueString": "xsd:token"
                }
              ]
            }
          }
        ]
      },
      {
        "id": "ReferralRequest.type",
        "path": "ReferralRequest.type",
        "short": "Referral/Transition of care request type",
        "definition": "An indication of the type of referral (or where applicable the type of transfer of care) request.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralType"
            }
          ],
          "strength": "example",
          "description": "Codes for types of referral; e.g. consult, transfer, temporary transfer.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/referral-type|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RF1-10"
          },
          {
            "identity": "w5",
            "map": "class"
          }
        ]
      },
      {
        "id": "ReferralRequest.priority",
        "path": "ReferralRequest.priority",
        "short": "Urgency of referral / transfer of care request",
        "definition": "An indication of the urgency of referral (or where applicable the type of transfer of care) request.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.priority",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralPriority"
            }
          ],
          "strength": "required",
          "description": "Codes indicating the relative priority of the referral.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/request-priority|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RF1-2"
          },
          {
            "identity": "w5",
            "map": "grade"
          }
        ]
      },
      {
        "id": "ReferralRequest.serviceRequested",
        "path": "ReferralRequest.serviceRequested",
        "short": "Actions requested as part of the referral",
        "definition": "The service(s) that is/are requested to be provided to the patient.  For example: cardiac pacemaker insertion.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.serviceRequested",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "RequestedService"
            }
          ],
          "strength": "example",
          "description": "Codes indicating the types of services that might be requested as part of a referral.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes|20091109"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PR1-3 / OBR-4"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject",
        "path": "ReferralRequest.subject",
        "short": "Patient referred to care or transfer",
        "definition": "The patient who is the subject of a referral or transfer of care request.",
        "comment": "Referral of family, group or community is to be catered for by profiles.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ReferralRequest.subject",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3"
          },
          {
            "identity": "w5",
            "map": "who.focus"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject.id",
        "path": "ReferralRequest.subject.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject.extension",
        "path": "ReferralRequest.subject.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject.extension:subject",
        "path": "ReferralRequest.subject.extension",
        "sliceName": "subject",
        "short": "R4B: Individual or Entity the service is ordered for",
        "definition": "R4B: `ServiceRequest.subject`",
        "comment": "Element `ServiceRequest.subject` is mapped to FHIR STU3 element `ProcedureRequest.subject` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.subject` is mapped to FHIR STU3 element `ReferralRequest.subject` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.subject` with unmapped reference targets: Device, Group, Location, Patient.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject.reference",
        "path": "ReferralRequest.subject.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject.identifier",
        "path": "ReferralRequest.subject.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.subject.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.context",
        "path": "ReferralRequest.context",
        "short": "Originating encounter",
        "definition": "The encounter at which the request for referral or transfer of care is initiated.",
        "alias": [
          "encounter"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.context",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PV1-19"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "id": "ReferralRequest.context.id",
        "path": "ReferralRequest.context.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.context.extension",
        "path": "ReferralRequest.context.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.context.extension:encounter",
        "path": "ReferralRequest.context.extension",
        "sliceName": "encounter",
        "short": "R4B: Encounter in which the request was created additional types",
        "definition": "R4B: `ServiceRequest.encounter` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.encounter` is mapped to FHIR STU3 element `ProcedureRequest.context` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.encounter` is mapped to FHIR STU3 element `ReferralRequest.context` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.encounter` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.encounter` with unmapped reference targets: Encounter.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.context.reference",
        "path": "ReferralRequest.context.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.context.identifier",
        "path": "ReferralRequest.context.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.context.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.context.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.occurrence[x]",
        "path": "ReferralRequest.occurrence[x]",
        "short": "When the service(s) requested in the referral should occur",
        "definition": "The period of time within which the services identified in the referral/transfer of care is specified or required to occur.",
        "comment": "When the occurrenceDateTime is used, then it is indicating that the requested service must happen before the specified date.",
        "requirements": "Use cases: (1) to indicate that the requested service is not to happen before a specified date, and saving the start date in Period.start; (2) to indicate that the requested service must happen before a specified date, and saving the end date in Period.end; (3) to indicate that the requested service must happen during the specified dates (\"start\" and \"end\" values).",
        "alias": [
          "timing"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.occurrence[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "OBR-7/OBR-8"
          },
          {
            "identity": "w5",
            "map": "when.planned"
          }
        ]
      },
      {
        "id": "ReferralRequest.authoredOn",
        "path": "ReferralRequest.authoredOn",
        "short": "Date of creation/activation",
        "definition": "Date/DateTime of creation for draft requests and date of activation for active requests.",
        "alias": [
          "createdOn"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.authoredOn",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RF1-7 / RF1-9?"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "id": "ReferralRequest.requester",
        "path": "ReferralRequest.requester",
        "short": "Who/what is requesting service",
        "definition": "The individual who initiated the request and has responsibility for its activation.",
        "alias": [
          "author"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.requester",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "rfr-1",
            "severity": "error",
            "human": "onBehalfOf can only be specified if agent is practitioner or device",
            "expression": "(agent.resolve() is Device) or (agent.resolve() is Practitioner) or onBehalfOf.exists().not()",
            "xpath": "contains(f:agent/f:reference/@value, '/Practitioner/') or contains(f:agent/f:reference/@value, '/Device/') or not(exists(f:onBehalfOf))",
            "source": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          }
        ]
      },
      {
        "id": "ReferralRequest.requester.id",
        "path": "ReferralRequest.requester.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.requester.extension",
        "path": "ReferralRequest.requester.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.requester.modifierExtension",
        "path": "ReferralRequest.requester.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.requester.agent",
        "path": "ReferralRequest.requester.agent",
        "short": "Individual making the request",
        "definition": "The device, practitioner, etc. who initiated the request.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "ReferralRequest.requester.agent",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".player"
          },
          {
            "identity": "w5",
            "map": "who.author"
          }
        ]
      },
      {
        "id": "ReferralRequest.requester.onBehalfOf",
        "path": "ReferralRequest.requester.onBehalfOf",
        "short": "Organization agent is acting for",
        "definition": "The organization the device or practitioner was acting on behalf of.",
        "requirements": "Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when authoring the request.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.requester.onBehalfOf",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "condition": [
          "rfr-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".scoper"
          }
        ]
      },
      {
        "id": "ReferralRequest.specialty",
        "path": "ReferralRequest.specialty",
        "short": "The clinical specialty (discipline) that the referral is requested for",
        "definition": "Indication of the clinical domain or discipline to which the referral or transfer of care request is sent.  For example: Cardiology Gastroenterology Diabetology.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.specialty",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isModifier": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralSpecialty"
            }
          ],
          "strength": "example",
          "description": "Codes indicating the types of capability the referred to service provider must have.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/practitioner-specialty|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RF1-3"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient",
        "path": "ReferralRequest.recipient",
        "short": "Receiver of referral / transfer of care request",
        "definition": "The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.",
        "comment": "There will be a primary receiver. But the request can be received by any number of \"copied to\" providers or organizations.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.recipient",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/HealthcareService"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT"
          },
          {
            "identity": "w5",
            "map": "who.actor"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient.id",
        "path": "ReferralRequest.recipient.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient.extension",
        "path": "ReferralRequest.recipient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient.extension:performer",
        "path": "ReferralRequest.recipient.extension",
        "sliceName": "performer",
        "short": "R4B: Requested performer",
        "definition": "R4B: `ServiceRequest.performer`",
        "comment": "Element `ServiceRequest.performer` is mapped to FHIR STU3 element `ProcedureRequest.performer` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.performer` is mapped to FHIR STU3 element `ReferralRequest.recipient` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.performer` with unmapped reference targets: CareTeam, Device, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, RelatedPerson.\nIf multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order.  If order of preference is needed use the [request-performerOrder extension](https://hl7.org/fhir/extension-request-performerorder.html).  Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient.reference",
        "path": "ReferralRequest.recipient.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient.identifier",
        "path": "ReferralRequest.recipient.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.recipient.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonCode",
        "path": "ReferralRequest.reasonCode",
        "short": "Reason for referral / transfer of care request",
        "definition": "Description of clinical condition indicating why referral/transfer of care is requested.  For example:  Pathological Anomalies, Disabled (physical or mental),  Behavioral Management.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.reasonCode",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralReason"
            }
          ],
          "strength": "example",
          "description": "Codes indicating why the referral is being requested.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/clinical-findings|3.0.2"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RF1-10"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference",
        "path": "ReferralRequest.reasonReference",
        "short": "Why is service needed?",
        "definition": "Indicates another resource whose existence justifies this request.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.reasonReference",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=RSON].target"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference.id",
        "path": "ReferralRequest.reasonReference.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference.extension",
        "path": "ReferralRequest.reasonReference.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference.extension:reasonReference",
        "path": "ReferralRequest.reasonReference.extension",
        "sliceName": "reasonReference",
        "short": "R4B: Explanation/Justification for service or service",
        "definition": "R4B: `ServiceRequest.reasonReference`",
        "comment": "Element `ServiceRequest.reasonReference` is mapped to FHIR STU3 element `ProcedureRequest.reasonReference` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.reasonReference` is mapped to FHIR STU3 element `ReferralRequest.reasonReference` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.reasonReference` with unmapped reference targets: Condition, DiagnosticReport, DocumentReference, Observation.\nThis element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.    To be as specific as possible,  a reference to  *Observation* or *Condition* should be used if available.  Otherwise when referencing  *DiagnosticReport*  it should contain a finding  in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`.   When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request.  Use  the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](https://hl7.org/fhir/servicerequest-example-di.html).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference.reference",
        "path": "ReferralRequest.reasonReference.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference.identifier",
        "path": "ReferralRequest.reasonReference.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.reasonReference.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.description",
        "path": "ReferralRequest.description",
        "short": "A textual description of the referral",
        "definition": "The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ReferralRequest.description",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.supportingInfo",
        "path": "ReferralRequest.supportingInfo",
        "short": "Additonal information to support referral or transfer of care request",
        "definition": "Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care.  For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.supportingInfo",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "isModifier": false
      },
      {
        "id": "ReferralRequest.supportingInfo.id",
        "path": "ReferralRequest.supportingInfo.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.supportingInfo.extension",
        "path": "ReferralRequest.supportingInfo.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.supportingInfo.extension:supportingInfo",
        "path": "ReferralRequest.supportingInfo.extension",
        "sliceName": "supportingInfo",
        "short": "R4B: Additional clinical information additional types",
        "definition": "R4B: `ServiceRequest.supportingInfo` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.supportingInfo` is mapped to FHIR STU3 element `ProcedureRequest.supportingInfo` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.supportingInfo` is mapped to FHIR STU3 element `ReferralRequest.supportingInfo` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.supportingInfo` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.supportingInfo` with unmapped reference targets: Resource.\nTo represent information about how the services are to be delivered use the `instructions` element.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.supportingInfo.reference",
        "path": "ReferralRequest.supportingInfo.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.supportingInfo.identifier",
        "path": "ReferralRequest.supportingInfo.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.supportingInfo.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.supportingInfo.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.note",
        "path": "ReferralRequest.note",
        "short": "Comments made about referral request",
        "definition": "Comments made about the referral request by any of the participants.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.note",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Annotation"
          }
        ]
      },
      {
        "id": "ReferralRequest.note.id",
        "path": "ReferralRequest.note.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.note.extension",
        "path": "ReferralRequest.note.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.note.extension:note",
        "path": "ReferralRequest.note.extension",
        "sliceName": "note",
        "short": "R4B: Comments additional types",
        "definition": "R4B: `ServiceRequest.note` additional types (Annotation) additional types from child elements (author[x], text, time)",
        "comment": "Element `ServiceRequest.note` is mapped to FHIR STU3 element `ProcedureRequest.note` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.note` is mapped to FHIR STU3 element `ReferralRequest.note` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.note` do not cover the following types: Annotation.\nThe mappings for `ServiceRequest.note` do not cover the following types based on type expansion: author[x], text, time.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.note|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.note.author[x]",
        "path": "ReferralRequest.note.author[x]",
        "short": "Individual responsible for the annotation",
        "definition": "The individual responsible for making the annotation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Annotation.author[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Act.participant[typeCode=AUT].role"
          }
        ]
      },
      {
        "id": "ReferralRequest.note.time",
        "path": "ReferralRequest.note.time",
        "short": "When the annotation was made",
        "definition": "Indicates when this particular annotation was made.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Annotation.time",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Act.effectiveTime"
          }
        ]
      },
      {
        "id": "ReferralRequest.note.text",
        "path": "ReferralRequest.note.text",
        "short": "The annotation  - text content",
        "definition": "The text of the annotation.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Annotation.text",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Act.text"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory",
        "path": "ReferralRequest.relevantHistory",
        "short": "Key events in history of request",
        "definition": "Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource.",
        "comment": "This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude.",
        "alias": [
          "eventHistory"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "ReferralRequest.relevantHistory",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Provenance"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory.id",
        "path": "ReferralRequest.relevantHistory.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory.extension",
        "path": "ReferralRequest.relevantHistory.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory.extension:relevantHistory",
        "path": "ReferralRequest.relevantHistory.extension",
        "sliceName": "relevantHistory",
        "short": "R4B: Request provenance additional types",
        "definition": "R4B: `ServiceRequest.relevantHistory` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.relevantHistory` is mapped to FHIR STU3 element `ProcedureRequest.relevantHistory` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.relevantHistory` is mapped to FHIR STU3 element `ReferralRequest.relevantHistory` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.relevantHistory` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.relevantHistory` with unmapped reference targets: Provenance.\nThis might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory.reference",
        "path": "ReferralRequest.relevantHistory.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory.identifier",
        "path": "ReferralRequest.relevantHistory.identifier",
        "short": "Logical reference, when literal reference is not known",
        "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.relevantHistory.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "ReferralRequest",
        "path": "ReferralRequest"
      },
      {
        "id": "ReferralRequest.meta.extension",
        "path": "ReferralRequest.meta.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.meta.extension:meta",
        "path": "ReferralRequest.meta.extension",
        "sliceName": "meta",
        "short": "R4B: Metadata about the resource additional types",
        "definition": "R4B: `ServiceRequest.meta` additional types (Meta) additional types from child elements (lastUpdated, profile, security, source, tag, versionId)",
        "comment": "Element `ServiceRequest.meta` is mapped to FHIR STU3 element `ProcedureRequest.meta` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.meta` is mapped to FHIR STU3 element `ReferralRequest.meta` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.meta` do not cover the following types: Meta.\nThe mappings for `ServiceRequest.meta` do not cover the following types based on type expansion: lastUpdated, profile, security, source, tag, versionId.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.meta|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.text.extension",
        "path": "ReferralRequest.text.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.text.extension:text",
        "path": "ReferralRequest.text.extension",
        "sliceName": "text",
        "short": "R4B: Text summary of the resource, for human interpretation additional types",
        "definition": "R4B: `ServiceRequest.text` additional types (Narrative) additional types from child elements (div, status)",
        "comment": "Element `ServiceRequest.text` is mapped to FHIR STU3 element `ProcedureRequest.text` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.text` is mapped to FHIR STU3 element `ReferralRequest.text` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.text` do not cover the following types: Narrative.\nThe mappings for `ServiceRequest.text` do not cover the following types based on type expansion: div, status.\nContained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.text|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension",
        "path": "ReferralRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.extension:instantiatesUri",
        "path": "ReferralRequest.extension",
        "sliceName": "instantiatesUri",
        "short": "R4B: Instantiates external protocol or definition (new)",
        "definition": "R4B: `ServiceRequest.instantiatesUri` (new:uri)",
        "comment": "Element `ServiceRequest.instantiatesUri` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.instantiatesUri` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.instantiatesUri` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nThis might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.instantiatesUri|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:quantity",
        "path": "ReferralRequest.extension",
        "sliceName": "quantity",
        "short": "R4B: Service amount (new)",
        "definition": "R4B: `ServiceRequest.quantity[x]` (new:Quantity, Range, Ratio)",
        "comment": "Element `ServiceRequest.quantity[x]` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.quantity[x]` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.quantity[x]` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.quantity|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:occurrence",
        "path": "ReferralRequest.extension",
        "sliceName": "occurrence",
        "short": "R4B: When service should occur additional types",
        "definition": "R4B: `ServiceRequest.occurrence[x]` additional types (Period, Timing)",
        "comment": "Element `ServiceRequest.occurrence[x]` is mapped to FHIR STU3 element `ProcedureRequest.occurrence[x]` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.occurrence[x]` is mapped to FHIR STU3 element `ReferralRequest.occurrence[x]` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.occurrence[x]` do not cover the following types: Period, Timing.\nThe target context `ProcedureRequest.occurrence[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `ProcedureRequest`.\nThe target context `ReferralRequest.occurrence[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `ReferralRequest`.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.occurrence|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:locationCode",
        "path": "ReferralRequest.extension",
        "sliceName": "locationCode",
        "short": "R4B: Requested location (new)",
        "definition": "R4B: `ServiceRequest.locationCode` (new:CodeableConcept)",
        "comment": "Element `ServiceRequest.locationCode` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.locationCode` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.locationCode` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.locationCode|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:locationReference",
        "path": "ReferralRequest.extension",
        "sliceName": "locationReference",
        "short": "R4B: Requested location (new)",
        "definition": "R4B: `ServiceRequest.locationReference` (new:Reference(Location))",
        "comment": "Element `ServiceRequest.locationReference` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.locationReference` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.locationReference` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.locationReference|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:insurance",
        "path": "ReferralRequest.extension",
        "sliceName": "insurance",
        "short": "R4B: Associated insurance coverage (new)",
        "definition": "R4B: `ServiceRequest.insurance` (new:Reference(Coverage,ClaimResponse))",
        "comment": "Element `ServiceRequest.insurance` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.insurance` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.insurance` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.insurance|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:patientInstruction",
        "path": "ReferralRequest.extension",
        "sliceName": "patientInstruction",
        "short": "R4B: Patient or consumer-oriented instructions (new)",
        "definition": "R4B: `ServiceRequest.patientInstruction` (new:string)",
        "comment": "Element `ServiceRequest.patientInstruction` has a context of ProcedureRequest based on following the parent source element upwards and mapping to `ProcedureRequest`.\nElement `ServiceRequest.patientInstruction` has a context of ReferralRequest based on following the parent source element upwards and mapping to `ReferralRequest`.\nElement `ServiceRequest.patientInstruction` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.patientInstruction|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier.extension",
        "path": "ReferralRequest.identifier.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.identifier.extension:identifier",
        "path": "ReferralRequest.identifier.extension",
        "sliceName": "identifier",
        "short": "R4B: Identifiers assigned to this order additional types",
        "definition": "R4B: `ServiceRequest.identifier` additional types (Identifier) additional types from child elements (assigner, period, system, type, use, value)",
        "comment": "Element `ServiceRequest.identifier` is mapped to FHIR STU3 element `ProcedureRequest.identifier` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.identifier` is mapped to FHIR STU3 element `ReferralRequest.identifier` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.identifier` do not cover the following types: Identifier.\nThe mappings for `ServiceRequest.identifier` do not cover the following types based on type expansion: assigner, period, system, type, use, value.\nThe identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2).  For further discussion and examples see the resource notes section below.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.identifier|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.definition.extension",
        "path": "ReferralRequest.definition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.definition.extension:instantiatesCanonical",
        "path": "ReferralRequest.definition.extension",
        "sliceName": "instantiatesCanonical",
        "short": "R4B: Instantiates FHIR protocol or definition additional types",
        "definition": "R4B: `ServiceRequest.instantiatesCanonical` additional types (canonical(http://hl7.org/fhir/StructureDefinition/ActivityDefinition), canonical(http://hl7.org/fhir/StructureDefinition/PlanDefinition)) additional types from child elements (value)",
        "comment": "Element `ServiceRequest.instantiatesCanonical` is mapped to FHIR STU3 element `ProcedureRequest.definition` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.instantiatesCanonical` is mapped to FHIR STU3 element `ReferralRequest.definition` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.instantiatesCanonical` do not cover the following types: canonical.\nThe mappings for `ServiceRequest.instantiatesCanonical` do not cover the following types based on type expansion: value.\nNote: This is a business identifier, not a resource identifier (see [discussion](https://hl7.org/fhir/resource.htm#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.instantiatesCanonical|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.basedOn.extension",
        "path": "ReferralRequest.basedOn.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.basedOn.extension:basedOn",
        "path": "ReferralRequest.basedOn.extension",
        "sliceName": "basedOn",
        "short": "R4B: What request fulfills",
        "definition": "R4B: `ServiceRequest.basedOn`",
        "comment": "Element `ServiceRequest.basedOn` is mapped to FHIR STU3 element `ProcedureRequest.basedOn` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.basedOn` is mapped to FHIR STU3 element `ReferralRequest.basedOn` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.basedOn` with unmapped reference targets: CarePlan, MedicationRequest, ServiceRequest.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces.extension",
        "path": "ReferralRequest.replaces.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.replaces.extension:replaces",
        "path": "ReferralRequest.replaces.extension",
        "sliceName": "replaces",
        "short": "R4B: What request replaces additional types",
        "definition": "R4B: `ServiceRequest.replaces` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.replaces` is mapped to FHIR STU3 element `ProcedureRequest.replaces` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.replaces` is mapped to FHIR STU3 element `ReferralRequest.replaces` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.replaces` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.replaces` with unmapped reference targets: ServiceRequest.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.extension",
        "path": "ReferralRequest.groupIdentifier.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.groupIdentifier.extension:requisition",
        "path": "ReferralRequest.groupIdentifier.extension",
        "sliceName": "requisition",
        "short": "R4B: Composite Request ID additional types",
        "definition": "R4B: `ServiceRequest.requisition` additional types (Identifier) additional types from child elements (assigner, period, system, type, use, value)",
        "comment": "Element `ServiceRequest.requisition` is mapped to FHIR STU3 element `ProcedureRequest.requisition` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.requisition` is mapped to FHIR STU3 element `ReferralRequest.groupIdentifier` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.requisition` do not cover the following types: Identifier.\nThe mappings for `ServiceRequest.requisition` do not cover the following types based on type expansion: assigner, period, system, type, use, value.\nRequests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.requisition|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.intent.extension",
        "path": "ReferralRequest.intent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.intent.extension:intent",
        "path": "ReferralRequest.intent.extension",
        "sliceName": "intent",
        "short": "R4B: proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option",
        "definition": "R4B: `ServiceRequest.intent`",
        "comment": "Element `ServiceRequest.intent` is mapped to FHIR STU3 element `ProcedureRequest.intent` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.intent` is mapped to FHIR STU3 element `ReferralRequest.intent` as `SourceIsBroaderThanTarget`.\nThe target context `ProcedureRequest.intent` is a modifier element, so this extension does not need to be defined as a modifier.\nThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.intent|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.subject.extension",
        "path": "ReferralRequest.subject.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.subject.extension:subject",
        "path": "ReferralRequest.subject.extension",
        "sliceName": "subject",
        "short": "R4B: Individual or Entity the service is ordered for",
        "definition": "R4B: `ServiceRequest.subject`",
        "comment": "Element `ServiceRequest.subject` is mapped to FHIR STU3 element `ProcedureRequest.subject` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.subject` is mapped to FHIR STU3 element `ReferralRequest.subject` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.subject` with unmapped reference targets: Device, Group, Location, Patient.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.context.extension",
        "path": "ReferralRequest.context.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.context.extension:encounter",
        "path": "ReferralRequest.context.extension",
        "sliceName": "encounter",
        "short": "R4B: Encounter in which the request was created additional types",
        "definition": "R4B: `ServiceRequest.encounter` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.encounter` is mapped to FHIR STU3 element `ProcedureRequest.context` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.encounter` is mapped to FHIR STU3 element `ReferralRequest.context` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.encounter` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.encounter` with unmapped reference targets: Encounter.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient.extension",
        "path": "ReferralRequest.recipient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.recipient.extension:performer",
        "path": "ReferralRequest.recipient.extension",
        "sliceName": "performer",
        "short": "R4B: Requested performer",
        "definition": "R4B: `ServiceRequest.performer`",
        "comment": "Element `ServiceRequest.performer` is mapped to FHIR STU3 element `ProcedureRequest.performer` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.performer` is mapped to FHIR STU3 element `ReferralRequest.recipient` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.performer` with unmapped reference targets: CareTeam, Device, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, RelatedPerson.\nIf multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order.  If order of preference is needed use the [request-performerOrder extension](https://hl7.org/fhir/extension-request-performerorder.html).  Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonReference.extension",
        "path": "ReferralRequest.reasonReference.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.reasonReference.extension:reasonReference",
        "path": "ReferralRequest.reasonReference.extension",
        "sliceName": "reasonReference",
        "short": "R4B: Explanation/Justification for service or service",
        "definition": "R4B: `ServiceRequest.reasonReference`",
        "comment": "Element `ServiceRequest.reasonReference` is mapped to FHIR STU3 element `ProcedureRequest.reasonReference` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.reasonReference` is mapped to FHIR STU3 element `ReferralRequest.reasonReference` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.reasonReference` with unmapped reference targets: Condition, DiagnosticReport, DocumentReference, Observation.\nThis element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.    To be as specific as possible,  a reference to  *Observation* or *Condition* should be used if available.  Otherwise when referencing  *DiagnosticReport*  it should contain a finding  in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`.   When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request.  Use  the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](https://hl7.org/fhir/servicerequest-example-di.html).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.supportingInfo.extension",
        "path": "ReferralRequest.supportingInfo.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.supportingInfo.extension:supportingInfo",
        "path": "ReferralRequest.supportingInfo.extension",
        "sliceName": "supportingInfo",
        "short": "R4B: Additional clinical information additional types",
        "definition": "R4B: `ServiceRequest.supportingInfo` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.supportingInfo` is mapped to FHIR STU3 element `ProcedureRequest.supportingInfo` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.supportingInfo` is mapped to FHIR STU3 element `ReferralRequest.supportingInfo` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.supportingInfo` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.supportingInfo` with unmapped reference targets: Resource.\nTo represent information about how the services are to be delivered use the `instructions` element.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      },
      {
        "id": "ReferralRequest.note.extension",
        "path": "ReferralRequest.note.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.note.extension:note",
        "path": "ReferralRequest.note.extension",
        "sliceName": "note",
        "short": "R4B: Comments additional types",
        "definition": "R4B: `ServiceRequest.note` additional types (Annotation) additional types from child elements (author[x], text, time)",
        "comment": "Element `ServiceRequest.note` is mapped to FHIR STU3 element `ProcedureRequest.note` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.note` is mapped to FHIR STU3 element `ReferralRequest.note` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.note` do not cover the following types: Annotation.\nThe mappings for `ServiceRequest.note` do not cover the following types based on type expansion: author[x], text, time.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.3/StructureDefinition/extension-ServiceRequest.note|0.1.0"
          }
        ]
      },
      {
        "id": "ReferralRequest.relevantHistory.extension",
        "path": "ReferralRequest.relevantHistory.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 0,
        "max": "*"
      },
      {
        "id": "ReferralRequest.relevantHistory.extension:relevantHistory",
        "path": "ReferralRequest.relevantHistory.extension",
        "sliceName": "relevantHistory",
        "short": "R4B: Request provenance additional types",
        "definition": "R4B: `ServiceRequest.relevantHistory` additional types from child elements (display, identifier, reference, type)",
        "comment": "Element `ServiceRequest.relevantHistory` is mapped to FHIR STU3 element `ProcedureRequest.relevantHistory` as `SourceIsBroaderThanTarget`.\nElement `ServiceRequest.relevantHistory` is mapped to FHIR STU3 element `ReferralRequest.relevantHistory` as `SourceIsBroaderThanTarget`.\nThe mappings for `ServiceRequest.relevantHistory` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `ServiceRequest.relevantHistory` with unmapped reference targets: Provenance.\nThis might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
          }
        ]
      }
    ]
  }
}