{
  "resourceType": "StructureDefinition",
  "id": "BSeR-Referral-Request-Task",
  "url": "http://hl7.org/fhir/us/bser/StructureDefinition/BSeR-Referral-Request-Task",
  "name": "BSeR Referral Request Task",
  "status": "draft",
  "contact": [
    {
      "name": "Salimah Shakir",
      "telecom": [
        {
          "system": "phone",
          "value": "8184306686",
          "use": "work"
        },
        {
          "system": "email",
          "value": "salimah@shakirconsulting.com",
          "use": "work"
        }
      ]
    }
  ],
  "kind": "resource",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Task"
  ],
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task",
        "path": "Task"
      },
      {
        "id": "Task.id",
        "path": "Task.id",
        "short": "id",
        "definition": "MAY contain zero or one [0..1] id (CONF:4383-720).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Task.meta",
        "path": "Task.meta",
        "short": "meta",
        "definition": "MAY contain zero or one [0..1] meta (CONF:4383-719).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Task.meta.profile",
        "path": "Task.meta.profile",
        "short": "profile",
        "definition": "The meta, if present, SHALL contain exactly one [1..1] profile=\"http://hl7.org/fhir/us/bser/StructureDefinition/BSeR-Referral-Request-Task\" (CONF:4383-721).",
        "min": 1,
        "max": "1",
        "patternString": "http://hl7.org/fhir/us/bser/StructureDefinition/BSeR-Referral-Request-Task"
      },
      {
        "id": "Task.identifier",
        "path": "Task.identifier",
        "short": "identifier",
        "definition": "MAY contain zero or more [0..*] identifier (CONF:4383-726).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "short": "basedOn",
        "definition": "MAY contain zero or more [0..*] basedOn (CONF:4383-722).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Task.basedOn.reference",
        "path": "Task.basedOn.reference",
        "short": "reference",
        "definition": "The basedOn, if present, SHALL contain exactly one [1..1] reference=\"BSeR Referral Request\" (CONF:4383-727).",
        "min": 1,
        "max": "1",
        "patternString": "BSeR Referral Request"
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "short": "status",
        "definition": "SHALL contain exactly one [1..1] status, which SHALL be selected from ValueSet task-status http://hl7.org/fhir/ValueSet/task-status (CONF:4383-728).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/task-status",
            "display": "task-status"
          }
        }
      },
      {
        "id": "Task.statusReason",
        "path": "Task.statusReason",
        "short": "statusReason",
        "definition": "MAY contain zero or one [0..1] statusReason (CONF:4383-729).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Task.businessStatus",
        "path": "Task.businessStatus",
        "short": "businessStatus",
        "definition": "MAY contain zero or one [0..1] businessStatus (CONF:4383-730).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "short": "intent",
        "definition": "SHALL contain exactly one [1..1] intent=\"request-intent\" (CONF:4383-731).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "patternString": "request-intent"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "short": "for",
        "definition": "SHALL contain exactly one [1..1] for=\"BSeR Referral Initiator\" (CONF:4383-732).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "patternString": "BSeR Referral Initiator"
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "short": "authoredOn",
        "definition": "MAY contain zero or one [0..1] authoredOn (CONF:4383-733).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Task.lastModified",
        "path": "Task.lastModified",
        "short": "lastModified",
        "definition": "MAY contain zero or one [0..1] lastModified (CONF:4383-734).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Task.requester",
        "path": "Task.requester",
        "short": "requester",
        "definition": "MAY contain zero or one [0..1] requester (CONF:4383-723).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Task.requester.agent",
        "path": "Task.requester.agent",
        "short": "agent",
        "definition": "The requester, if present, SHALL contain exactly one [1..1] agent=\"BSeR Referral Initiator\" (CONF:4383-735).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "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/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ],
        "patternString": "BSeR Referral Initiator"
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "short": "owner",
        "definition": "SHALL contain exactly one [1..1] owner=\"BSeR Referral Initiator\" (CONF:4383-736).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "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/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ],
        "patternString": "BSeR Referral Initiator"
      },
      {
        "id": "Task.note",
        "path": "Task.note",
        "short": "note",
        "definition": "MAY contain zero or more [0..*] note (CONF:4383-724).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Task.note.author[x]",
        "path": "Task.note.author[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "author[x]",
        "definition": "The note, if present, SHALL contain exactly one [1..1] author[x], where author[x] is (CONF:4383-725)",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.note.author[x]:authorReference",
        "path": "Task.note.authorReference",
        "sliceName": "authorReference",
        "short": "authorReference",
        "definition": "The note, if present, SHALL contain exactly one [1..1] authorReference=\"BSeR Practitioner\" (CONF:4383-737).",
        "patternString": "BSeR Practitioner"
      }
    ]
  }
}