{
  "resourceType" : "StructureDefinition",
  "id" : "pt-lm-ServiceRequest",
  "text" : {
    "status" : "empty",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>"
  },
  "url" : "http://medmij.nl/fhir/StructureDefinition/pt-lm-ServiceRequest",
  "version" : "0.1.0",
  "name" : "LmServiceRequest",
  "title" : "ServiceRequest",
  "status" : "active",
  "date" : "2026-05-08T08:30:17+00:00",
  "publisher" : "koppelmij",
  "contact" : [{
    "name" : "koppelmij",
    "telecom" : [{
      "system" : "url",
      "value" : "https://github.com/KoppelMij/"
    }]
  }],
  "description" : "Patient-specific clinical order for a digital (eHealth) activity that a healthcare professional requests for a patient, such as completing a questionnaire, performing home measurements, viewing educational content, or launching a third-party module.",
  "purpose" : "To represent the clinical order to start or perform a specific digital (eHealth) activity for a patient. This ServiceRequest provides the clinical intent, context, requested schedule, and patient-specific instructions, and can serve as the basis for one or more Task resources that manage execution and tracking of the activity.",
  "copyright" : "Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise.",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "logical",
  "abstract" : true,
  "type" : "http://medmij.nl/fhir/StructureDefinition/pt-lm-ServiceRequest",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation" : "specialization",
  "snapshot" : {
    "extension" : [{
      "url" : "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString" : "4.0.1"
    }],
    "element" : [{
      "id" : "pt-lm-ServiceRequest",
      "path" : "pt-lm-ServiceRequest",
      "short" : "ServiceRequest",
      "definition" : "Patient-specific clinical order for a digital (eHealth) activity that a healthcare professional requests for a patient, such as completing a questionnaire, performing home measurements, viewing educational content, or launching a third-party module.",
      "alias" : ["Zorgopdracht"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element",
        "min" : 0,
        "max" : "*"
      },
      "condition" : ["ele-1"],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "isModifier" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.id",
      "path" : "pt-lm-ServiceRequest.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "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" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "string"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.extension",
      "path" : "pt-lm-ServiceRequest.extension",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "url"
        }],
        "description" : "Extensions are always sliced by (at least) url",
        "rules" : "open"
      },
      "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. 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 can 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"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (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,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Identifier",
      "path" : "pt-lm-ServiceRequest.Identifier",
      "short" : "Business identifier that uniquely identifies this ServiceRequest within or across systems.",
      "definition" : "Business identifier that uniquely identifies this ServiceRequest within or across systems.",
      "alias" : ["Identifier"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "pt-lm-ServiceRequest.Identifier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Identifier"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Status",
      "path" : "pt-lm-ServiceRequest.Status",
      "short" : "Current state of the service request (e.g. draft, active, completed, cancelled).",
      "definition" : "Current state of the service request (e.g. draft, active, completed, cancelled).",
      "alias" : ["Status"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "pt-lm-ServiceRequest.Status",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Intent",
      "path" : "pt-lm-ServiceRequest.Intent",
      "short" : "Indicates the level of authority or intention associated with the request (e.g., order or plan).",
      "definition" : "Indicates the level of authority or intention associated with the request (e.g., order or plan).",
      "alias" : ["Bedoeling"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "pt-lm-ServiceRequest.Intent",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Subject",
      "path" : "pt-lm-ServiceRequest.Subject",
      "short" : "Patient for whom the digital activity is requested.",
      "definition" : "Patient for whom the digital activity is requested.",
      "alias" : ["Patiënt"],
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "pt-lm-ServiceRequest.Subject",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.patientInstruction",
      "path" : "pt-lm-ServiceRequest.patientInstruction",
      "short" : "Patient or consumer-oriented instructions for how the requested activity should be performed. Use this element for patient-specific guidance that should be shown alongside the Task(s) executing this order (e.g., home blood pressure monitoring for 8 weeks, once daily in the morning).",
      "definition" : "Patient or consumer-oriented instructions for how the requested activity should be performed. Use this element for patient-specific guidance that should be shown alongside the Task(s) executing this order (e.g., home blood pressure monitoring for 8 weeks, once daily in the morning).",
      "alias" : ["PatiëntenInstructie"],
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "pt-lm-ServiceRequest.patientInstruction",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Occurrence",
      "path" : "pt-lm-ServiceRequest.Occurrence",
      "short" : "Requested schedule for performing the provider module, such as duration, frequency and time of day.",
      "definition" : "Requested schedule for performing the provider module, such as duration, frequency and time of day.",
      "alias" : ["Tijdschema"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "pt-lm-ServiceRequest.Occurrence",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Timing"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Requester",
      "path" : "pt-lm-ServiceRequest.Requester",
      "short" : "Healthcare professional role that requests this activity for the patient.",
      "definition" : "Healthcare professional role that requests this activity for the patient.",
      "alias" : ["Aanvrager"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "pt-lm-ServiceRequest.Requester",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.AuthoredOn",
      "path" : "pt-lm-ServiceRequest.AuthoredOn",
      "short" : "Date and time when this service request was created.",
      "definition" : "Date and time when this service request was created.",
      "alias" : ["AanmaakDatumTijd"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "pt-lm-ServiceRequest.AuthoredOn",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "pt-lm-ServiceRequest",
      "path" : "pt-lm-ServiceRequest",
      "short" : "ServiceRequest",
      "definition" : "Patient-specific clinical order for a digital (eHealth) activity that a healthcare professional requests for a patient, such as completing a questionnaire, performing home measurements, viewing educational content, or launching a third-party module.",
      "alias" : ["Zorgopdracht"]
    },
    {
      "id" : "pt-lm-ServiceRequest.Identifier",
      "path" : "pt-lm-ServiceRequest.Identifier",
      "short" : "Business identifier that uniquely identifies this ServiceRequest within or across systems.",
      "definition" : "Business identifier that uniquely identifies this ServiceRequest within or across systems.",
      "alias" : ["Identifier"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Status",
      "path" : "pt-lm-ServiceRequest.Status",
      "short" : "Current state of the service request (e.g. draft, active, completed, cancelled).",
      "definition" : "Current state of the service request (e.g. draft, active, completed, cancelled).",
      "alias" : ["Status"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Intent",
      "path" : "pt-lm-ServiceRequest.Intent",
      "short" : "Indicates the level of authority or intention associated with the request (e.g., order or plan).",
      "definition" : "Indicates the level of authority or intention associated with the request (e.g., order or plan).",
      "alias" : ["Bedoeling"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Subject",
      "path" : "pt-lm-ServiceRequest.Subject",
      "short" : "Patient for whom the digital activity is requested.",
      "definition" : "Patient for whom the digital activity is requested.",
      "alias" : ["Patiënt"],
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.patientInstruction",
      "path" : "pt-lm-ServiceRequest.patientInstruction",
      "short" : "Patient or consumer-oriented instructions for how the requested activity should be performed. Use this element for patient-specific guidance that should be shown alongside the Task(s) executing this order (e.g., home blood pressure monitoring for 8 weeks, once daily in the morning).",
      "definition" : "Patient or consumer-oriented instructions for how the requested activity should be performed. Use this element for patient-specific guidance that should be shown alongside the Task(s) executing this order (e.g., home blood pressure monitoring for 8 weeks, once daily in the morning).",
      "alias" : ["PatiëntenInstructie"],
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Occurrence",
      "path" : "pt-lm-ServiceRequest.Occurrence",
      "short" : "Requested schedule for performing the provider module, such as duration, frequency and time of day.",
      "definition" : "Requested schedule for performing the provider module, such as duration, frequency and time of day.",
      "alias" : ["Tijdschema"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Timing"
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.Requester",
      "path" : "pt-lm-ServiceRequest.Requester",
      "short" : "Healthcare professional role that requests this activity for the patient.",
      "definition" : "Healthcare professional role that requests this activity for the patient.",
      "alias" : ["Aanvrager"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
      }]
    },
    {
      "id" : "pt-lm-ServiceRequest.AuthoredOn",
      "path" : "pt-lm-ServiceRequest.AuthoredOn",
      "short" : "Date and time when this service request was created.",
      "definition" : "Date and time when this service request was created.",
      "alias" : ["AanmaakDatumTijd"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }]
    }]
  }
}