{
  "resourceType": "StructureDefinition",
  "id": "ei-requestgroup",
  "meta": {
    "lastUpdated": "2017-09-25T09:40:51.335+00:00"
  },
  "url": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-requestgroup",
  "version": "1.1",
  "name": "Enterprise Imaging Service Request",
  "status": "draft",
  "experimental": false,
  "date": "2017-09-12T07:57:14.504+00:00",
  "description": "RequestedGroup in EI is used to represent the Service Requset",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "agfa-ei-model",
      "name": "Enterprise Imaging Data Model"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "RequestGroup",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RequestGroup",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RequestGroup.identifier",
        "path": "RequestGroup.identifier",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "SERVICE_REQUEST#ACCESSION_NR"
          }
        ]
      },
      {
        "id": "RequestGroup.identifier.use",
        "path": "RequestGroup.identifier.use",
        "max": "0"
      },
      {
        "id": "RequestGroup.identifier.type",
        "path": "RequestGroup.identifier.type",
        "max": "0"
      },
      {
        "id": "RequestGroup.identifier.period",
        "path": "RequestGroup.identifier.period",
        "max": "0"
      },
      {
        "id": "RequestGroup.identifier.assigner",
        "path": "RequestGroup.identifier.assigner",
        "max": "0"
      },
      {
        "id": "RequestGroup.definition",
        "path": "RequestGroup.definition",
        "max": "0"
      },
      {
        "id": "RequestGroup.replaces",
        "path": "RequestGroup.replaces",
        "max": "0"
      },
      {
        "id": "RequestGroup.status",
        "path": "RequestGroup.status",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "ScheduledProcedureStep#RISSTATUS"
          }
        ]
      },
      {
        "id": "RequestGroup.priority",
        "path": "RequestGroup.priority",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REQUESTED_PROCEDURE#PRIORITY"
          }
        ]
      },
      {
        "id": "RequestGroup.subject",
        "path": "RequestGroup.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/eipatient"
          }
        ],
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "SERICE_REQUEST#PATIENT"
          }
        ]
      },
      {
        "id": "RequestGroup.context",
        "path": "RequestGroup.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-encounter"
          }
        ]
      },
      {
        "id": "RequestGroup.authoredOn",
        "path": "RequestGroup.authoredOn",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "SERVICE_REQUEST#DATE_REQUESTED"
          }
        ]
      },
      {
        "id": "RequestGroup.author",
        "path": "RequestGroup.author",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-practitioner"
          }
        ],
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "SERVICE_REQUEST#REQ_PHYSICIAN"
          }
        ]
      },
      {
        "id": "RequestGroup.action.label",
        "path": "RequestGroup.action.label",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.title",
        "path": "RequestGroup.action.title",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.description",
        "path": "RequestGroup.action.description",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.textEquivalent",
        "path": "RequestGroup.action.textEquivalent",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.code",
        "path": "RequestGroup.action.code",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.documentation",
        "path": "RequestGroup.action.documentation",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.condition",
        "path": "RequestGroup.action.condition",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.relatedAction",
        "path": "RequestGroup.action.relatedAction",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.timing[x]",
        "path": "RequestGroup.action.timing[x]",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.participant",
        "path": "RequestGroup.action.participant",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.type",
        "path": "RequestGroup.action.type",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.groupingBehavior",
        "path": "RequestGroup.action.groupingBehavior",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.selectionBehavior",
        "path": "RequestGroup.action.selectionBehavior",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.requiredBehavior",
        "path": "RequestGroup.action.requiredBehavior",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.precheckBehavior",
        "path": "RequestGroup.action.precheckBehavior",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.cardinalityBehavior",
        "path": "RequestGroup.action.cardinalityBehavior",
        "max": "0"
      },
      {
        "id": "RequestGroup.action.resource",
        "path": "RequestGroup.action.resource",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-procedurerequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          }
        ]
      },
      {
        "id": "RequestGroup.action.action",
        "path": "RequestGroup.action.action",
        "max": "0"
      }
    ]
  }
}