臺灣社政領域基礎實作指引
0.0.1 - ci-build

臺灣社政領域基礎實作指引, published by 衛生福利部社會及家庭署. This guide is not an authorized publication; it is the continuous build for version 0.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/sfaassn2025-source/base/ and changes regularly. See the Directory of published versions

Resource Profile: 申請或服務請求-ServiceRequest TWSS Base

Official URL: https://sfaa.gov.tw/base/StructureDefinition/ServiceRequest-twss-base Version: 0.0.1
Draft as of 2026-08-10 Computable Name: ServiceRequestTWSSBase

申請或服務請求-ServiceRequest TWSS Base Profile 表達社家署業務中的申請或服務請求。本 Profile 因 TWSS Base 的 reference target 與 TW Core ServiceRequest 0.3.2 限制不同,且 TWSS Base 需求尚未穩定要求 TW Core 的所有限制,故繼承原生 ServiceRequest,並沿用相容的 TW Core 0.3.2 規則。

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..* Identifier Identifiers assigned to this order
.... use ?!SΣ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 0..1 string The value that is unique
Example General: 123456
... replaces SΣ 0..* Reference(申請或服務請求-ServiceRequest TWSS Base) What request replaces
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
... category SΣ 1..1 CodeableConceptTW 服務請求類型。
Binding: ServiceRequestCategoryCodes (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConceptTW 申請、服務或補助項目的主要代碼。
Binding: ProcedureCodes(SNOMEDCT) (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... orderDetail SΣC 0..* CodeableConceptTW Additional order information
Binding: ServiceRequestOrderDetailsCodes (example): Codified order entry details which are based on order context.
... subject SΣ 1..1 Reference(個案資料-Patient TWSS Base) Individual or Entity the service is ordered for
... occurrence[x] SΣ 0..1 When service should occur
.... occurrenceDateTime dateTime
.... occurrencePeriod Period
.... occurrenceTiming Timing
... authoredOn SΣ 0..1 dateTime 通報時間、申請日期、轉介申請日期或請求建立時間。
... requester SΣ 0..1 Reference(個案資料-Patient TWSS Base | 關係人資料-RelatedPerson TWSS Base | 人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Who/what is requesting service
... performer SΣ 0..* Reference(人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Requested performer
... reasonCode SΣ 0..* CodeableConceptTW Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
... reasonReference SΣ 0..* Reference(健康與障礙狀況-Condition TWSS Base | 共用公文-DocumentReference TWSS Base) Explanation/Justification for service or service
... supportingInfo S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 補助資格或補助案件-Coverage TWSS Base | 關係人資料-RelatedPerson TWSS Base | 個案服務案件-EpisodeOfCare TWSS Base | 共用公文-DocumentReference TWSS Base) Additional clinical information
... note S 0..* Annotation Comments

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
ServiceRequest.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
ServiceRequest.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
ServiceRequest.status Base required RequestStatus 📍4.0.1 FHIR Std.
ServiceRequest.intent Base required RequestIntent 📍4.0.1 FHIR Std.
ServiceRequest.category Base example Service Request Category Codes 📦4.0.1 FHIR Std.
ServiceRequest.priority Base required Request priority 📍4.0.1 FHIR Std.
ServiceRequest.code Base example Procedure Codes (SNOMED CT) 📦4.0.1 FHIR Std.
ServiceRequest.orderDetail Base example Service Request Order Details Codes 📍4.0.1 FHIR Std.
ServiceRequest.reasonCode Base example Procedure Reason Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error ServiceRequest If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error ServiceRequest If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice ServiceRequest A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
prr-1 error ServiceRequest orderDetail SHALL only be present if code is present orderDetail.empty() or code.exists()

This structure is derived from ServiceRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest 0..* ServiceRequest A request for a service to be performed
... identifier S 0..* Identifier Identifiers assigned to this order
.... use S 0..1 code usual | official | temp | secondary | old (If known)
.... type S 0..1 CodeableConcept Description of identifier
.... system S 0..1 uri The namespace for the identifier value
.... value S 0..1 string The value that is unique
... basedOn S 0..* Reference(申請或服務請求-ServiceRequest TWSS Base | 個案服務計畫-CarePlan TWSS Base) What request fulfills
... replaces S 0..* Reference(申請或服務請求-ServiceRequest TWSS Base) What request replaces
... intent S 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
... category S 1..1 CodeableConceptTW 服務請求類型。
Binding: ServiceRequestCategoryCodes (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... priority S 0..1 code routine | urgent | asap | stat
... code S 1..1 CodeableConceptTW 申請、服務或補助項目的主要代碼。
Binding: ProcedureCodes(SNOMEDCT) (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... orderDetail S 0..* CodeableConceptTW Additional order information
... subject S 1..1 Reference(個案資料-Patient TWSS Base) Individual or Entity the service is ordered for
... occurrence[x] S 0..1 dateTime, Period, Timing When service should occur
... authoredOn S 0..1 dateTime 通報時間、申請日期、轉介申請日期或請求建立時間。
... requester S 0..1 Reference(個案資料-Patient TWSS Base | 關係人資料-RelatedPerson TWSS Base | 人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Who/what is requesting service
... performer S 0..* Reference(人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Requested performer
... reasonCode S 0..* CodeableConceptTW Explanation/Justification for procedure or service
... reasonReference S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 共用公文-DocumentReference TWSS Base) Explanation/Justification for service or service
... supportingInfo S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 補助資格或補助案件-Coverage TWSS Base | 關係人資料-RelatedPerson TWSS Base | 個案服務案件-EpisodeOfCare TWSS Base | 共用公文-DocumentReference TWSS Base) Additional clinical information
... note S 0..* Annotation Comments

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
ServiceRequest.category Base example Service Request Category Codes 📦4.0.1 FHIR Std.
ServiceRequest.code Base example Procedure Codes (SNOMED CT) 📦4.0.1 FHIR Std.
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..* Identifier Identifiers assigned to this order
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!SΣ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 0..1 string The value that is unique
Example General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... instantiatesCanonical Σ 0..* canonical(ActivityDefinition | PlanDefinition) Instantiates FHIR protocol or definition
... instantiatesUri Σ 0..* uri Instantiates external protocol or definition
... basedOn SΣ 0..* Reference(申請或服務請求-ServiceRequest TWSS Base | 個案服務計畫-CarePlan TWSS Base) What request fulfills
... replaces SΣ 0..* Reference(申請或服務請求-ServiceRequest TWSS Base) What request replaces
... requisition Σ 0..1 Identifier Composite Request ID
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
... category SΣ 1..1 CodeableConceptTW 服務請求類型。
Binding: ServiceRequestCategoryCodes (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConceptTW 申請、服務或補助項目的主要代碼。
Binding: ProcedureCodes(SNOMEDCT) (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... orderDetail SΣC 0..* CodeableConceptTW Additional order information
Binding: ServiceRequestOrderDetailsCodes (example): Codified order entry details which are based on order context.
... quantity[x] Σ 0..1 Service amount
.... quantityQuantity Quantity
.... quantityRatio Ratio
.... quantityRange Range
... subject SΣ 1..1 Reference(個案資料-Patient TWSS Base) Individual or Entity the service is ordered for
... encounter Σ 0..1 Reference(Encounter) Encounter in which the request was created
... occurrence[x] SΣ 0..1 When service should occur
.... occurrenceDateTime dateTime
.... occurrencePeriod Period
.... occurrenceTiming Timing
... asNeeded[x] Σ 0..1 Preconditions for service
Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "on flare-up", etc.
.... asNeededBoolean boolean
.... asNeededCodeableConcept CodeableConcept
... authoredOn SΣ 0..1 dateTime 通報時間、申請日期、轉介申請日期或請求建立時間。
... requester SΣ 0..1 Reference(個案資料-Patient TWSS Base | 關係人資料-RelatedPerson TWSS Base | 人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Who/what is requesting service
... performerType Σ 0..1 CodeableConcept Performer role
Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
... performer SΣ 0..* Reference(人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Requested performer
... locationCode Σ 0..* CodeableConcept Requested location
Binding: ServiceDeliveryLocationRoleType (3.0.0) (example): A location type where services are delivered.
... locationReference Σ 0..* Reference(Location) Requested location
... reasonCode SΣ 0..* CodeableConceptTW Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
... reasonReference SΣ 0..* Reference(健康與障礙狀況-Condition TWSS Base | 共用公文-DocumentReference TWSS Base) Explanation/Justification for service or service
... insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
... supportingInfo S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 補助資格或補助案件-Coverage TWSS Base | 關係人資料-RelatedPerson TWSS Base | 個案服務案件-EpisodeOfCare TWSS Base | 共用公文-DocumentReference TWSS Base) Additional clinical information
... specimen Σ 0..* Reference(Specimen) Procedure Samples
... bodySite Σ 0..* CodeableConcept Location on Body
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
... note S 0..* Annotation Comments
... patientInstruction Σ 0..1 string Patient or consumer-oriented instructions
... relevantHistory 0..* Reference(Provenance) Request provenance

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
ServiceRequest.language Base preferred Common Languages 📍4.0.1 FHIR Std.
ServiceRequest.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
ServiceRequest.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
ServiceRequest.status Base required RequestStatus 📍4.0.1 FHIR Std.
ServiceRequest.intent Base required RequestIntent 📍4.0.1 FHIR Std.
ServiceRequest.category Base example Service Request Category Codes 📦4.0.1 FHIR Std.
ServiceRequest.priority Base required Request priority 📍4.0.1 FHIR Std.
ServiceRequest.code Base example Procedure Codes (SNOMED CT) 📦4.0.1 FHIR Std.
ServiceRequest.orderDetail Base example Service Request Order Details Codes 📍4.0.1 FHIR Std.
ServiceRequest.asNeeded[x] Base example SNOMED CT Medication As Needed Reason Codes 📍4.0.1 FHIR Std.
ServiceRequest.performerType Base example Participant Roles 📍4.0.1 FHIR Std.
ServiceRequest.locationCode Base example ServiceDeliveryLocationRoleType 📍3.0.0 THO v7.3
ServiceRequest.reasonCode Base example Procedure Reason Codes 📍4.0.1 FHIR Std.
ServiceRequest.bodySite Base example SNOMED CT Body Structures 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error ServiceRequest If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error ServiceRequest If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice ServiceRequest A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
prr-1 error ServiceRequest orderDetail SHALL only be present if code is present orderDetail.empty() or code.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..* Identifier Identifiers assigned to this order
.... use ?!SΣ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 0..1 string The value that is unique
Example General: 123456
... replaces SΣ 0..* Reference(申請或服務請求-ServiceRequest TWSS Base) What request replaces
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
... category SΣ 1..1 CodeableConceptTW 服務請求類型。
Binding: ServiceRequestCategoryCodes (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConceptTW 申請、服務或補助項目的主要代碼。
Binding: ProcedureCodes(SNOMEDCT) (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... orderDetail SΣC 0..* CodeableConceptTW Additional order information
Binding: ServiceRequestOrderDetailsCodes (example): Codified order entry details which are based on order context.
... subject SΣ 1..1 Reference(個案資料-Patient TWSS Base) Individual or Entity the service is ordered for
... occurrence[x] SΣ 0..1 When service should occur
.... occurrenceDateTime dateTime
.... occurrencePeriod Period
.... occurrenceTiming Timing
... authoredOn SΣ 0..1 dateTime 通報時間、申請日期、轉介申請日期或請求建立時間。
... requester SΣ 0..1 Reference(個案資料-Patient TWSS Base | 關係人資料-RelatedPerson TWSS Base | 人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Who/what is requesting service
... performer SΣ 0..* Reference(人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Requested performer
... reasonCode SΣ 0..* CodeableConceptTW Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
... reasonReference SΣ 0..* Reference(健康與障礙狀況-Condition TWSS Base | 共用公文-DocumentReference TWSS Base) Explanation/Justification for service or service
... supportingInfo S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 補助資格或補助案件-Coverage TWSS Base | 關係人資料-RelatedPerson TWSS Base | 個案服務案件-EpisodeOfCare TWSS Base | 共用公文-DocumentReference TWSS Base) Additional clinical information
... note S 0..* Annotation Comments

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
ServiceRequest.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
ServiceRequest.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
ServiceRequest.status Base required RequestStatus 📍4.0.1 FHIR Std.
ServiceRequest.intent Base required RequestIntent 📍4.0.1 FHIR Std.
ServiceRequest.category Base example Service Request Category Codes 📦4.0.1 FHIR Std.
ServiceRequest.priority Base required Request priority 📍4.0.1 FHIR Std.
ServiceRequest.code Base example Procedure Codes (SNOMED CT) 📦4.0.1 FHIR Std.
ServiceRequest.orderDetail Base example Service Request Order Details Codes 📍4.0.1 FHIR Std.
ServiceRequest.reasonCode Base example Procedure Reason Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error ServiceRequest If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error ServiceRequest If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice ServiceRequest A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
prr-1 error ServiceRequest orderDetail SHALL only be present if code is present orderDetail.empty() or code.exists()

Differential View

This structure is derived from ServiceRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest 0..* ServiceRequest A request for a service to be performed
... identifier S 0..* Identifier Identifiers assigned to this order
.... use S 0..1 code usual | official | temp | secondary | old (If known)
.... type S 0..1 CodeableConcept Description of identifier
.... system S 0..1 uri The namespace for the identifier value
.... value S 0..1 string The value that is unique
... basedOn S 0..* Reference(申請或服務請求-ServiceRequest TWSS Base | 個案服務計畫-CarePlan TWSS Base) What request fulfills
... replaces S 0..* Reference(申請或服務請求-ServiceRequest TWSS Base) What request replaces
... intent S 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
... category S 1..1 CodeableConceptTW 服務請求類型。
Binding: ServiceRequestCategoryCodes (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... priority S 0..1 code routine | urgent | asap | stat
... code S 1..1 CodeableConceptTW 申請、服務或補助項目的主要代碼。
Binding: ProcedureCodes(SNOMEDCT) (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... orderDetail S 0..* CodeableConceptTW Additional order information
... subject S 1..1 Reference(個案資料-Patient TWSS Base) Individual or Entity the service is ordered for
... occurrence[x] S 0..1 dateTime, Period, Timing When service should occur
... authoredOn S 0..1 dateTime 通報時間、申請日期、轉介申請日期或請求建立時間。
... requester S 0..1 Reference(個案資料-Patient TWSS Base | 關係人資料-RelatedPerson TWSS Base | 人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Who/what is requesting service
... performer S 0..* Reference(人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Requested performer
... reasonCode S 0..* CodeableConceptTW Explanation/Justification for procedure or service
... reasonReference S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 共用公文-DocumentReference TWSS Base) Explanation/Justification for service or service
... supportingInfo S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 補助資格或補助案件-Coverage TWSS Base | 關係人資料-RelatedPerson TWSS Base | 個案服務案件-EpisodeOfCare TWSS Base | 共用公文-DocumentReference TWSS Base) Additional clinical information
... note S 0..* Annotation Comments

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
ServiceRequest.category Base example Service Request Category Codes 📦4.0.1 FHIR Std.
ServiceRequest.code Base example Procedure Codes (SNOMED CT) 📦4.0.1 FHIR Std.

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..* Identifier Identifiers assigned to this order
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!SΣ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 0..1 string The value that is unique
Example General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... instantiatesCanonical Σ 0..* canonical(ActivityDefinition | PlanDefinition) Instantiates FHIR protocol or definition
... instantiatesUri Σ 0..* uri Instantiates external protocol or definition
... basedOn SΣ 0..* Reference(申請或服務請求-ServiceRequest TWSS Base | 個案服務計畫-CarePlan TWSS Base) What request fulfills
... replaces SΣ 0..* Reference(申請或服務請求-ServiceRequest TWSS Base) What request replaces
... requisition Σ 0..1 Identifier Composite Request ID
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
... category SΣ 1..1 CodeableConceptTW 服務請求類型。
Binding: ServiceRequestCategoryCodes (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConceptTW 申請、服務或補助項目的主要代碼。
Binding: ProcedureCodes(SNOMEDCT) (example): 依申請、通報、轉介或服務情境,由業務子 Profile 指定適用的代碼。
... orderDetail SΣC 0..* CodeableConceptTW Additional order information
Binding: ServiceRequestOrderDetailsCodes (example): Codified order entry details which are based on order context.
... quantity[x] Σ 0..1 Service amount
.... quantityQuantity Quantity
.... quantityRatio Ratio
.... quantityRange Range
... subject SΣ 1..1 Reference(個案資料-Patient TWSS Base) Individual or Entity the service is ordered for
... encounter Σ 0..1 Reference(Encounter) Encounter in which the request was created
... occurrence[x] SΣ 0..1 When service should occur
.... occurrenceDateTime dateTime
.... occurrencePeriod Period
.... occurrenceTiming Timing
... asNeeded[x] Σ 0..1 Preconditions for service
Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "on flare-up", etc.
.... asNeededBoolean boolean
.... asNeededCodeableConcept CodeableConcept
... authoredOn SΣ 0..1 dateTime 通報時間、申請日期、轉介申請日期或請求建立時間。
... requester SΣ 0..1 Reference(個案資料-Patient TWSS Base | 關係人資料-RelatedPerson TWSS Base | 人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Who/what is requesting service
... performerType Σ 0..1 CodeableConcept Performer role
Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
... performer SΣ 0..* Reference(人員資料-Practitioner TWSS Base | 人員角色-PractitionerRole TWSS Base | 機構資料-Organization TWSS Base) Requested performer
... locationCode Σ 0..* CodeableConcept Requested location
Binding: ServiceDeliveryLocationRoleType (3.0.0) (example): A location type where services are delivered.
... locationReference Σ 0..* Reference(Location) Requested location
... reasonCode SΣ 0..* CodeableConceptTW Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
... reasonReference SΣ 0..* Reference(健康與障礙狀況-Condition TWSS Base | 共用公文-DocumentReference TWSS Base) Explanation/Justification for service or service
... insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
... supportingInfo S 0..* Reference(健康與障礙狀況-Condition TWSS Base | 補助資格或補助案件-Coverage TWSS Base | 關係人資料-RelatedPerson TWSS Base | 個案服務案件-EpisodeOfCare TWSS Base | 共用公文-DocumentReference TWSS Base) Additional clinical information
... specimen Σ 0..* Reference(Specimen) Procedure Samples
... bodySite Σ 0..* CodeableConcept Location on Body
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
... note S 0..* Annotation Comments
... patientInstruction Σ 0..1 string Patient or consumer-oriented instructions
... relevantHistory 0..* Reference(Provenance) Request provenance

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
ServiceRequest.language Base preferred Common Languages 📍4.0.1 FHIR Std.
ServiceRequest.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
ServiceRequest.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
ServiceRequest.status Base required RequestStatus 📍4.0.1 FHIR Std.
ServiceRequest.intent Base required RequestIntent 📍4.0.1 FHIR Std.
ServiceRequest.category Base example Service Request Category Codes 📦4.0.1 FHIR Std.
ServiceRequest.priority Base required Request priority 📍4.0.1 FHIR Std.
ServiceRequest.code Base example Procedure Codes (SNOMED CT) 📦4.0.1 FHIR Std.
ServiceRequest.orderDetail Base example Service Request Order Details Codes 📍4.0.1 FHIR Std.
ServiceRequest.asNeeded[x] Base example SNOMED CT Medication As Needed Reason Codes 📍4.0.1 FHIR Std.
ServiceRequest.performerType Base example Participant Roles 📍4.0.1 FHIR Std.
ServiceRequest.locationCode Base example ServiceDeliveryLocationRoleType 📍3.0.0 THO v7.3
ServiceRequest.reasonCode Base example Procedure Reason Codes 📍4.0.1 FHIR Std.
ServiceRequest.bodySite Base example SNOMED CT Body Structures 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error ServiceRequest If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error ServiceRequest If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error ServiceRequest If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice ServiceRequest A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
prr-1 error ServiceRequest orderDetail SHALL only be present if code is present orderDetail.empty() or code.exists()

 

Other representations of profile: CSV, Excel, Schematron

Notes:

建議應該支援以下查詢參數:

  1. 建議(SHOULD) 支援透過查詢參數 _id 查詢所有 ServiceRequest: (如何透過 token 查詢)
    GET [base]/ServiceRequest?_id=[id]
    GET [base]/ServiceRequest/[id]

  2. 建議(SHOULD) 支援透過查詢參數 identifier 查詢所有 ServiceRequest: (如何透過 token 查詢)
    GET [base]/ServiceRequest?identifier=[system]|[code]

  3. 建議(SHOULD) 支援透過查詢參數 patient 查詢所有 ServiceRequest: (如何透過 reference 查詢)
    GET [base]/ServiceRequest?patient={Type/}[id]

  4. 建議(SHOULD) 支援透過查詢參數 status 查詢所有 ServiceRequest: (如何透過 token 查詢)
    GET [base]/ServiceRequest?status=[code]

  5. 建議(SHOULD) 支援透過查詢參數 categorycode 查詢所有 ServiceRequest: (如何透過 token 查詢)
    category 用於查詢服務請求大類,例如 http://snomed.info/sct|410606002code 用於查詢實際申請、服務或補助項目。
    GET [base]/ServiceRequest?category=[system]|[code]
    GET [base]/ServiceRequest?code=[system]|[code]

  6. 建議(SHOULD) 支援透過查詢參數 authored 查詢所有 ServiceRequest: (如何透過 date 查詢)
    GET [base]/ServiceRequest?authored={gt|lt|ge|le}[date]