{
  "resourceType": "StructureDefinition",
  "id": "MobileFormServiceRequest",
  "meta": {
    "lastUpdated": "2020-11-02T14:36:22.741+00:00"
  },
  "url": "http://ki.purified.link/fhir/StructureDefinition/MobileFormServiceRequest",
  "version": "1.0.0",
  "name": "MobileFormServiceRequest",
  "title": "MobileFormServiceRequest",
  "status": "draft",
  "date": "2020-11-02T13:37:12.6635875Z",
  "publisher": "Service Well AB",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "mobileform-workflow",
      "uri": "http://ki.purified.link/fhir/mobileform-workflow",
      "name": "MobileForm Workflow"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "quick",
      "uri": "http://siframework.org/cqf",
      "name": "Quality Improvement and Clinical Knowledge (QUICK)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest",
        "path": "ServiceRequest",
        "short": "A request for a mobileform-plandefinition to be performed"
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "definition": "Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.\r\n\r\nDetta är kundens id"
      },
      {
        "id": "ServiceRequest.identifier.use",
        "path": "ServiceRequest.identifier.use",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier.type",
        "path": "ServiceRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier.system",
        "path": "ServiceRequest.identifier.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n\r\nAnvänds av oss ofta tillsamans med value för att veta vilket system (t ex en serveradress)"
      },
      {
        "id": "ServiceRequest.identifier.value",
        "path": "ServiceRequest.identifier.value",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.\r\n\r\nAnvänds tillsammans med system för att ge en unik url"
      },
      {
        "id": "ServiceRequest.identifier.period",
        "path": "ServiceRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier.assigner.reference",
        "path": "ServiceRequest.identifier.assigner.reference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier.assigner.type",
        "path": "ServiceRequest.identifier.assigner.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier.assigner.identifier",
        "path": "ServiceRequest.identifier.assigner.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.instantiatesCanonical",
        "path": "ServiceRequest.instantiatesCanonical",
        "label": "MobileFormPlanDefinition URL",
        "short": "URL to the MobileFormPlan",
        "definition": "This field contains the url for the MobileFormPlan to be used when making a dispatch",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.instantiatesUri",
        "path": "ServiceRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "ServiceRequest.basedOn",
        "path": "ServiceRequest.basedOn",
        "definition": "Plan/proposal/order fulfilled by this request.\r\n\r\nInte aktuell för oss i nuläget",
        "max": "0"
      },
      {
        "id": "ServiceRequest.replaces",
        "path": "ServiceRequest.replaces",
        "definition": "The request takes the place of the referenced completed or terminated request(s).\r\n\r\nAnvänds om ska ersätta existerande",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requisition",
        "path": "ServiceRequest.requisition",
        "definition": "A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.\r\n\r\nDetta är vår batch"
      },
      {
        "id": "ServiceRequest.requisition.use",
        "path": "ServiceRequest.requisition.use",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requisition.type",
        "path": "ServiceRequest.requisition.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requisition.period",
        "path": "ServiceRequest.requisition.period",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requisition.assigner.identifier",
        "path": "ServiceRequest.requisition.assigner.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "definition": "The status used in MobileForms can be decided by the customer"
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "definition": "The intent must be included in MobileFormServiceRequest",
        "fixedCode": "proposal"
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "definition": "A code that classifies the service for searching, sorting and display purposes (e.g. \"Surgical Procedure\").\r\n\r\nDen här tror vi inte behövs nu eftersom vi bara vill skicka Questionnaires just nu",
        "max": "0"
      },
      {
        "id": "ServiceRequest.priority",
        "path": "ServiceRequest.priority",
        "max": "0"
      },
      {
        "id": "ServiceRequest.doNotPerform",
        "path": "ServiceRequest.doNotPerform",
        "definition": "Set this to true if the record is saying that the service/procedure should NOT be performed.\r\n\r\nKan användas med replaces",
        "max": "0"
      },
      {
        "id": "ServiceRequest.orderDetail",
        "path": "ServiceRequest.orderDetail",
        "max": "0"
      },
      {
        "id": "ServiceRequest.quantity[x]",
        "path": "ServiceRequest.quantity[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "short": "Person to receive the MobilePlan",
        "definition": "The subject shall contain a person or patient to receive the MobilePlan"
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "definition": "The date/time at which the requested service should occur.\r\n\r\nVi tror att detta hanteas i PlanDefinition",
        "max": "0"
      },
      {
        "id": "ServiceRequest.asNeeded[x]",
        "path": "ServiceRequest.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "definition": "The individual who initiated the request and has responsibility for its activation.\r\n\r\nOrganization som begär en ServiceRequest",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.requester.identifier.period",
        "path": "ServiceRequest.requester.identifier.period",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requester.identifier.assigner",
        "path": "ServiceRequest.requester.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ServiceRequest.performerType",
        "path": "ServiceRequest.performerType",
        "max": "0"
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.locationCode",
        "path": "ServiceRequest.locationCode",
        "max": "0"
      },
      {
        "id": "ServiceRequest.locationReference",
        "path": "ServiceRequest.locationReference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonCode",
        "path": "ServiceRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonReference",
        "path": "ServiceRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.insurance",
        "path": "ServiceRequest.insurance",
        "max": "0"
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "max": "0"
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite",
        "path": "ServiceRequest.bodySite",
        "max": "0"
      },
      {
        "id": "ServiceRequest.note",
        "path": "ServiceRequest.note",
        "max": "0"
      },
      {
        "id": "ServiceRequest.patientInstruction",
        "path": "ServiceRequest.patientInstruction",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory",
        "path": "ServiceRequest.relevantHistory",
        "max": "0"
      }
    ]
  }
}