Skip to main content

ServiceRequest

A record of a request for service, prescription or order, as defined by FHIR R4.

resourceTypestringrequired

Must be “ServiceRequest”.

Possible values: [ServiceRequest]

Example: ServiceRequest
iduuid

Logical id of this artifact.

Example: aaefdf1f-a463-4772-8614-dc36b1ab6548
meta object
versionIdstring

Its an auto generated FHIR property

Example: 1
lastUpdateddate-time

Its an auto generated FHIR property

Example: 2025-04-03T14:11:58.948+02:00
sourceuri

Its an auto generated FHIR property

Example: #XgwiRHevOEIOczKf
extension object[]required

Additional content defined by implementations

  • Array [
  • urlurl

    URL to extract the practitioner id

    Example: https://fhir.mona.icu/StructureDefinition/lastChangedBy
    valueReference object

    The field maintains a history of the last practitioner to interact with the service request. It begins with the creator's ID and is subsequently updated with each modifying practitioner's ID, always reflecting the most recent change.

    referencestring
    displaystring
  • ]
  • statusstringrequired

    Status of the service request. If the status is revoked that will be interpreted as a soft delete and in UI prescription will be showed under is revoked section.

    Possible values: [active, on-hold, revoked, draft]

    Example: active
    statusReason object[]

    Reason for current status

  • Array [
  • coding object[]
  • Array [
  • systemstring
    Example: http://www.nlm.nih.gov/research/umls/rxnorm
    codestring
    Example: 313002
    displaystring
    Example: Amoxicillin 500 MG Oral Capsule
  • ]
  • textstring
    Example: Amoxicillin 500mg Capsule
  • ]
  • intentstringrequired

    When a user creates a new prescription in the UI, the system validates the service. This validation affects both the FHIR's 'intent' and the API's 'is_approved' field. If the service fails validation ('is_approved' = false in the API), FHIR sets the prescription's 'intent' to 'plan', indicating it needs further review.If the service passes validation ('is_approved' = true in the API), the FHIR sets the 'intent' to 'order', signifying it's ready for fulfillment.

    Possible values: [plan, order]

    Example: order
    category object[]required

    We store type of service category in ServiceRequest, service category information is fetched from the terminology

  • Array [
  • coding object[]
  • Array [
  • systemstring
    Example: http://www.nlm.nih.gov/research/umls/rxnorm
    codestring
    Example: 313002
    displaystring
    Example: Amoxicillin 500 MG Oral Capsule
  • ]
  • textstring
    Example: Amoxicillin 500mg Capsule
  • ]
  • code objectrequired

    What is being requested/ordered, fetched from the terminology

    coding object[]
  • Array [
  • systemstring
    Example: http://www.nlm.nih.gov/research/umls/rxnorm
    codestring
    Example: 313002
    displaystring
    Example: Amoxicillin 500 MG Oral Capsule
  • ]
  • textstring
    Example: Amoxicillin 500mg Capsule
    subject objectrequired

    Reference to the Patient Id

    referencestring
    displaystring
    encounter objectrequired

    Reference to the Encounter Id

    referencestring
    displaystring
    authoredOndate-timerequired

    Timestamp at which prescription was created

    Example: 2024-03-25T14:30:00Z
    requester objectrequired

    Reference to the Practitioner Id

    referencestring
    displaystring
    asNeededBooleanboolean

    This boolean field is only used when we have frequency type as-needed (Bei Bedarf)

    Example: true
    occurrenceTiming objectrequired

    The timing of the service request

    repeat object
    boundsPeriod object
    startdate-time

    The start of the period. The start date.

    enddate-time

    The end of the period. The end date.

    countinteger

    The number of times to repeat the action.

    durationnumber

    The length of time an event is to occur.

    durationUnitstring

    The units of time for the duration.

    Possible values: [s, min, h, d, wk, mo, a]

    frequencyinteger

    The number of times the action should occur within the period.

    periodnumber

    The period of time the frequency is applied to.

    periodUnitstring

    The units of time for the period.

    Possible values: [s, min, h, d, wk, mo, a]

    timeOfDaytime[]
    dayOfWeekstring[]

    Possible values: [mon, tue, wed, thu, fri, sat, sun]

    code object
    coding object[]
  • Array [
  • systemstring
    Example: http://www.nlm.nih.gov/research/umls/rxnorm
    codestring
    Example: 313002
    displaystring
    Example: Amoxicillin 500 MG Oral Capsule
  • ]
  • textstring
    Example: Amoxicillin 500mg Capsule
    locationCode object[]required

    Requested location, information is predefined and remains same for all ServiceRequest

  • Array [
  • coding object[]
  • Array [
  • systemstring
    Example: http://www.nlm.nih.gov/research/umls/rxnorm
    codestring
    Example: 313002
    displaystring
    Example: Amoxicillin 500 MG Oral Capsule
  • ]
  • textstring
    Example: Amoxicillin 500mg Capsule
  • ]
  • note object[]
  • Array [
  • textstring
    Example: Instructions for the prescribed service
  • ]
  • ServiceRequest
    {
    "resourceType": "ServiceRequest",
    "id": "aaefdf1f-a463-4772-8614-dc36b1ab6548",
    "meta": {
    "versionId": "1",
    "lastUpdated": "2025-04-03T14:11:58.948+02:00",
    "source": "#XgwiRHevOEIOczKf"
    },
    "extension": [
    {
    "url": "https://fhir.mona.icu/StructureDefinition/lastChangedBy",
    "valueReference": "Practitioner/da46528c-4848-4c48-9728-5465a187656f"
    }
    ],
    "status": "active",
    "statusReason": [
    {
    "text": "Reason to keep the status of the prescription"
    }
    ],
    "intent": "order",
    "category": [
    {
    "coding": [
    {
    "system": "https://fhir.mona.icu/CodeSystem/mona-service-request-category",
    "code": "procedure-prescription",
    "display": "Procedure Prescription"
    }
    ],
    "text": "Procedure Prescription"
    },
    {
    "coding": [
    {
    "system": "https://fhir.mona.icu/CodeSystem/mona-procedure-category",
    "code": "LABORATORY_TESTS",
    "display": "Labortests"
    }
    ],
    "text": "Labortests"
    }
    ],
    "code": {
    "text": "BGA"
    },
    "subject": {
    "reference": "Patient/ccd2c136-2c70-44e5-8f7f-362b9fca89a7",
    "display": "John Doe"
    },
    "encounter": {
    "reference": "Encounter/f12ee825-bea8-4f93-9d29-66744992196f"
    },
    "authoredOn": "2024-03-25T14:30:00Z",
    "requester": {
    "reference": "Practitioner/da46528c-4848-4c48-9728-5465a187656f"
    },
    "asNeededBoolean": true,
    "occurrenceTiming": {
    "repeat": {
    "boundsPeriod": {
    "start": "2025-04-01T08:00:00Z",
    "end": "2025-04-06T08:00:00Z"
    },
    "frequency": 4,
    "period": 1,
    "periodUnit": "d"
    },
    "code": {
    "coding": [
    {
    "system": "https://fhir.mona.icu/CodeSystem/mona-prescription-timing",
    "code": "e08e8baa-97c0-4125-96ca-e2fedc1e0503",
    "display": "4x täglich"
    },
    {
    "system": "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation",
    "code": "QID",
    "display": "Four times a day at institution specified time"
    }
    ],
    "text": "4x täglich"
    }
    },
    "locationCode": [
    {
    "coding": [
    {
    "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
    "code": "ICU",
    "display": "Intensive care unit"
    }
    ],
    "text": "Intensive care unit"
    }
    ],
    "note": [
    {
    "text": "Genaue Überwachung der aPTT"
    }
    ]
    }