{
  "resourceType": "StructureDefinition",
  "id": "f5fb70c6-826a-4a4d-af51-37bf66f7016b",
  "meta": {
    "lastUpdated": "2018-03-01T16:28:31.381+00:00"
  },
  "url": "StructureDefinition/MyReferralRequest",
  "name": "MyReferralRequest",
  "status": "draft",
  "date": "2017-09-11T17:22:08.45+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ReferralRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ReferralRequest.identifier.use",
        "path": "ReferralRequest.identifier.use",
        "max": "0"
      },
      {
        "id": "ReferralRequest.identifier.type",
        "path": "ReferralRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "ReferralRequest.identifier.period",
        "path": "ReferralRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "ReferralRequest.definition",
        "path": "ReferralRequest.definition",
        "max": "0"
      },
      {
        "id": "ReferralRequest.basedOn",
        "path": "ReferralRequest.basedOn",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "StructureDefinition/MyReferralRequest"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces",
        "path": "ReferralRequest.replaces",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "StructureDefinition/MyReferralRequest"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.use",
        "path": "ReferralRequest.groupIdentifier.use",
        "max": "0"
      },
      {
        "id": "ReferralRequest.groupIdentifier.type",
        "path": "ReferralRequest.groupIdentifier.type",
        "max": "0"
      },
      {
        "id": "ReferralRequest.groupIdentifier.period",
        "path": "ReferralRequest.groupIdentifier.period",
        "max": "0"
      },
      {
        "id": "ReferralRequest.type",
        "path": "ReferralRequest.type",
        "max": "0"
      },
      {
        "id": "ReferralRequest.subject",
        "path": "ReferralRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "StructureDefinition/MyPatient"
          }
        ]
      },
      {
        "id": "ReferralRequest.context",
        "path": "ReferralRequest.context",
        "max": "0"
      },
      {
        "id": "ReferralRequest.requester",
        "path": "ReferralRequest.requester",
        "min": 1
      },
      {
        "id": "ReferralRequest.requester.agent",
        "path": "ReferralRequest.requester.agent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "profile": "StructureDefinition/MyPractitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "StructureDefinition/MyPatient"
          }
        ]
      },
      {
        "id": "ReferralRequest.specialty",
        "path": "ReferralRequest.specialty",
        "max": "0"
      },
      {
        "id": "ReferralRequest.recipient",
        "path": "ReferralRequest.recipient",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "StructureDefinition/MyHealthcareService"
          },
          {
            "code": "Reference",
            "profile": "StructureDefinition/MyPractitioner"
          }
        ]
      },
      {
        "id": "ReferralRequest.reasonCode",
        "path": "ReferralRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "ReferralRequest.reasonReference",
        "path": "ReferralRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "ReferralRequest.description",
        "path": "ReferralRequest.description",
        "max": "0"
      },
      {
        "id": "ReferralRequest.supportingInfo",
        "path": "ReferralRequest.supportingInfo",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          },
          {
            "code": "Reference",
            "targetProfile": "StructureDefinition/MyDocumentReference"
          }
        ]
      }
    ]
  }
}