MyFHIRServerCapabilityStatement
type: CapabilityStatement
node role: treeRoot
id:
  v: MyFHIRServerCapabilityStatement
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: CapabilityStatement MyFHIRServerCapabilityStatement My FHIR Server Capability Statement Implementation Guide Version: 0.1.0 FHIR Version: 4.0.1 Supported Formats: xml, json Supported Patch Formats: application/json-patch+json Published on: 2025-10-24 Published by: Kimsber Note to Implementers: FHIR Capabilities Any FHIR capability may be 'allowed' by the system unless explicitly marked as 'SHALL NOT'. A few items are marked as MAY in the Implementation Guide to highlight their potential relevance to the use case. FHIR RESTful Capabilities Mode: server Capabilities by Resource/Profile Summary The summary table lists the resources that are part of this configuration, and for each resource it lists: The relevant profiles (if any) The interactions supported by each resource (Read, Search, Update, and Create, are always shown, while VRead, Patch, Delete, History on Instance, or History on Type are only present if at least one of the resources has support for them. The required, recommended, and some optional search parameters (if any). The linked resources enabled for _include The other resources enabled for _revinclude The operations on the resource (if any) Resource Type Profile R S U C Searches _include _revinclude Operations Patient http://hl7.org/fhir/StructureDefinition/Patient Y Y _id, birthdate, gender, identifier, name $everything Bundle http://hl7.org/fhir/StructureDefinition/Bundle Y Y _id, identifier CarePlan http://hl7.org/fhir/StructureDefinition/CarePlan Y Y patient, category, date, status Condition http://hl7.org/fhir/StructureDefinition/Condition Y Y _id, clinical-status, code, subject, onset-date, abatement-date, severity Encounter http://hl7.org/fhir/StructureDefinition/Encounter Y Y _id, class, date, identifier, location, subject, status Goal http://hl7.org/fhir/StructureDefinition/Goal Y Y patient, lifecycle-status, target-date, description MedicationAdministration http://hl7.org/fhir/StructureDefinition/MedicationAdministration …
url:
  v: http://example.org/fhir/CapabilityStatement/MyFHIRServer
  l: MyFHIRServer
version:
  v: 0.1.0
name:
  v: MyFHIRServerCapabilityStatement
title:
  v: My FHIR Server Capability Statement
status:
  v: active
experimental:
  v: false
date:
  v: 2025-10-24
publisher:
  v: Kimsber
contact:
  name:
    v: Kimsber
  telecom:
    system:
      v: url
    value:
      v: https://github.com/Kimsber
description:
  v: 此 CapabilityStatement 定義了伺服端必須支援的 FHIR RESTful API 功能
kind:
  v: instance
fhir version:
  v: 4.0.1
format:
  v: xml
format:
  v: json
patch format:
  v: application/json-patch+json
rest:
  mode:
    v: server
  resource:
    type:
      v: Patient
    profile:
      v: http://hl7.org/fhir/StructureDefinition/Patient
      l: Patient
      extension:
        value: Code
    interaction:
      extension:
        value: Code
      code:
        v: read
    interaction:
      extension:
        value: Code
      code:
        v: search-type
    search param:
      extension:
        value: Code
      name:
        v: _id
      definition:
        v: http://example.org/fhir/SearchParameter/Patient-_id
        l: Patient- id
      type:
        v: token
    search param:
      extension:
        value: Code
      name:
        v: birthdate
      definition:
        v: http://example.org/fhir/SearchParameter/Patient-birthdate
        l: Patient-birthdate
      type:
        v: date
    search param:
      extension:
        value: Code
      name:
        v: gender
      definition:
        v: http://example.org/fhir/SearchParameter/Patient-gender
        l: Patient-gender
      type:
        v: token
    search param:
      extension:
        value: Code
      name:
        v: identifier
      definition:
        v: http://example.org/fhir/SearchParameter/Patient-identifier
        l: Patient-identifier
      type:
        v: token
    search param:
      extension:
        value: Code
      name:
        v: name
      definition:
        v: http://example.org/fhir/SearchParameter/Patient-name
        l: Patient-name
      type:
        v: string
    operation:
      extension:
        value: Code
      name:
        v: everything
      definition:
        v: http://hl7.org/fhir/OperationDefinition/Patient-everything
        l: Patient-everything
  resource:
    type:
      v: Bundle
    profile:
      v: http://hl7.org/fhir/StructureDefinition/Bundle
      l: Bundle
      extension:
        value: Code
    interaction:
      extension:
        value: Code
      code:
        v: read
    interaction:
      extension:
        value: Code
      code:
        v: search-type
    search param:
      extension:
        value: Code
      name:
        v: _id
      definition:
        v: http://example.org/fhir/SearchParameter/Bundle-_id
        l: Bundle- id
      type:
        v: token
    search param:
      extension:
        value: Code
      name:
        v: identifier
      definition:
        v: http://example.org/fhir/SearchParameter/Bundle-identifier
        l: Bundle-identifier
      type:
        v: token
  resource:
    type:
      v: CarePlan
    profile:
      v: http://hl7.org/fhir/StructureDefinition/CarePlan
      l: CarePlan
      extension:
        value: Code
    interaction:
      extension:
        value: Code
      code:
        v: read
    interaction:
      extension:
        value: Code
      code:
        v: search-type
    search param:
      extension:
        value: Code
      name:
        v: patient
      definition:
        v: http://example.org/fhir/SearchParameter/CarePlan-patient
        l: CarePlan-patient
      type:
        v: reference
    search param:
      extension:
        value: Code
      name:
        v: category
      definition:
        v: http://example.org/fhir/SearchParameter/CarePlan-category
        l: CarePlan-category
      type:
        v: token
    search param:
      extension:
        value: Code

Code
v: SHOULD

Code
v: SHALL

Code
v: SHALL

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHALL

Code
v: SHALL

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHALL

Code
v: SHALL

Code
v: SHOULD

Code
v: SHOULD

Code
v: SHOULD

v: date

v: date

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
    l: capabilitystatement-expectation
  value: Code
    v: SHOULD
name:
  v: status
definition:
  v: http://example.org/fhir/SearchParameter/CarePlan-status
  l: CarePlan-status
type:
  v: token

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  l: Condition
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/Condition-_id
    l: Condition- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: clinical-status
  definition:
    v: http://example.org/fhir/SearchParameter/Condition-clinical-status
    l: Condition-clinical-status
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: code
  definition:
    v: http://example.org/fhir/SearchParameter/Condition-code
    l: Condition-code
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: subject
  definition:
    v: http://example.org/fhir/SearchParameter/Condition-subject
    l: Condition-subject
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: onset-date
  definition:
    v: http://example.org/fhir/SearchParameter/Condition-onset-date
    l: Condition-onset-date
  type:
    v: date
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: abatement-date
  definition:
    v: http://example.org/fhir/SearchParameter/Condition-abatement-date
    l: Condition-abatement-date
  type:
    v: date
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: severity
  definition:
    v: http://example.org/fhir/SearchParameter/Condition-severity
    l: Condition-severity
  type:
    v: token

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/Encounter-_id
    l: Encounter- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: class
  definition:
    v: http://example.org/fhir/SearchParameter/Encounter-class
    l: Encounter-class
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: date
  definition:
    v: http://example.org/fhir/SearchParameter/Encounter-date
    l: Encounter-date
  type:
    v: date
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: identifier
  definition:
    v: http://example.org/fhir/SearchParameter/Encounter-identifier
    l: Encounter-identifier
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: location
  definition:
    v: http://example.org/fhir/SearchParameter/Encounter-location
    l: Encounter-location
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: subject
  definition:
    v: http://example.org/fhir/SearchParameter/Encounter-subject
    l: Encounter-subject
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: status
  definition:
    v: http://example.org/fhir/SearchParameter/Encounter-status
    l: Encounter-status
  type:
    v: token

type:
  v: Goal
profile:
  v: http://hl7.org/fhir/StructureDefinition/Goal
  l: Goal
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: patient
  definition:
    v: http://example.org/fhir/SearchParameter/Goal-patient
    l: Goal-patient
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: lifecycle-status
  definition:
    v: http://example.org/fhir/SearchParameter/Goal-lifecycle-status
    l: Goal-lifecycle-status
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: target-date
  definition:
    v: http://example.org/fhir/SearchParameter/Goal-target-date
    l: Goal-target-date
  type:
    v: date
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: description
  definition:
    v: http://example.org/fhir/SearchParameter/Goal-description
    l: Goal-description
  type:
    v: token

type:
  v: MedicationAdministration
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
  l: MedicationAdministration
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: code
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-code
    l: MedicationAdministration-code
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: identifier
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-identifier
    l: MedicationAdministration-identifier
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: medication
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-medication
    l: MedicationAdministration-medication
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: patient
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-patient
    l: MedicationAdministration-patient
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: status
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-status
    l: MedicationAdministration-status
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: context
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-context
    l: MedicationAdministration-context
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: device
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-device
    l: MedicationAdministration-device
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: effective-time
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-effective-time
    l: MedicationAdministration-effective-time
  type:
    v: date
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: performer
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-performer
    l: MedicationAdministration-performer
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: reason-given
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-reason-given
    l: MedicationAdministration-reason-given
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: reason-not-given
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-reason-not-given
    l: MedicationAdministration-reason-not-given
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: request
  definition:
    v: http://example.org/fhir/SearchParameter/MedicationAdministration-request
    l: MedicationAdministration-request
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code

Code
v: SHOULD

v: subject

v: reference

type:
  v: Observation
profile:
  v: http://hl7.org/fhir/StructureDefinition/Observation
  l: Observation
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-_id
    l: Observation- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: category
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-category
    l: Observation-category
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: code
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-code
    l: Observation-code
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: date
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-date
    l: Observation-date
  type:
    v: date
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: performer
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-performer
    l: Observation-performer
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: status
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-status
    l: Observation-status
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: subject
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-subject
    l: Observation-subject
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: patient
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-patient
    l: Observation-patient
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _lastUpdated
  definition:
    v: http://example.org/fhir/SearchParameter/Observation-_lastUpdated
    l: Observation- lastUpdated
  type:
    v: date

type:
  v: Organization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Organization
  l: Organization
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/Organization-_id
    l: Organization- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: identifier
  definition:
    v: http://example.org/fhir/SearchParameter/Organization-identifier
    l: Organization-identifier
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: name
  definition:
    v: http://example.org/fhir/SearchParameter/Organization-name
    l: Organization-name
  type:
    v: string
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: type
  definition:
    v: http://example.org/fhir/SearchParameter/Organization-type
    l: Organization-type
  type:
    v: token

type:
  v: Practitioner
profile:
  v: http://hl7.org/fhir/StructureDefinition/Practitioner
  l: Practitioner
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/Practitioner-_id
    l: Practitioner- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: identifier
  definition:
    v: http://example.org/fhir/SearchParameter/Practitioner-identifier
    l: Practitioner-identifier
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: name
  definition:
    v: http://example.org/fhir/SearchParameter/Practitioner-name
    l: Practitioner-name
  type:
    v: string

type:
  v: PractitionerRole
profile:
  v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  l: PractitionerRole
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/PractitionerRole-_id
    l: PractitionerRole- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: identifier
  definition:
    v: http://example.org/fhir/SearchParameter/PractitionerRole-identifier
    l: PractitionerRole-identifier
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: specialty
  definition:
    v: http://example.org/fhir/SearchParameter/PractitionerRole-specialty
    l: PractitionerRole-specialty
  type:
    v: token

type:
  v: Procedure
profile:
  v: http://hl7.org/fhir/StructureDefinition/Procedure
  l: Procedure
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/Procedure-_id
    l: Procedure- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: code
  definition:
    v: http://example.org/fhir/SearchParameter/Procedure-code
    l: Procedure-code
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: status
  definition:
    v: http://example.org/fhir/SearchParameter/Procedure-status
    l: Procedure-status
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: subject
  definition:
    v: http://example.org/fhir/SearchParameter/Procedure-subject
    l: Procedure-subject
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: date
  definition:
    v: http://example.org/fhir/SearchParameter/Procedure-date
    l: Procedure-date
  type:
    v: date

type:
  v: QuestionnaireResponse
profile:
  v: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
  l: QuestionnaireResponse
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: create
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  code:
    v: update
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: _id
  definition:
    v: http://example.org/fhir/SearchParameter/QuestionnaireResponse-_id
    l: QuestionnaireResponse- id
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: patient
  definition:
    v: http://example.org/fhir/SearchParameter/QuestionnaireResponse-patient
    l: QuestionnaireResponse-patient
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: status
  definition:
    v: http://example.org/fhir/SearchParameter/QuestionnaireResponse-status
    l: QuestionnaireResponse-status
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: authored
  definition:
    v: http://example.org/fhir/SearchParameter/QuestionnaireResponse-authored
    l: QuestionnaireResponse-authored
  type:
    v: date
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: questionnaire
  definition:
    v: http://example.org/fhir/SearchParameter/QuestionnaireResponse-questionnaire
    l: QuestionnaireResponse-questionnaire
  type:
    v: reference
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: subject
  definition:
    v: http://example.org/fhir/SearchParameter/QuestionnaireResponse-subject
    l: QuestionnaireResponse-subject
  type:
    v: reference
operation:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  name:
    v: extract
  definition:
    v: http://hl7.org/fhir/uv/sdc/OperationDefinition/QuestionnaireResponse-extract
    l: QuestionnaireResponse-extract
  documentation:
    v: 伺服器必須實現 $extract 操作以： 1. 接收已填寫的 QuestionnaireResponse 2. 解析 Questionnaire 中的 extraction extension 3. 根據提取定義轉換為結構化 FHIR 資源 4. 返回 Bundle 或單一資源 技術要求： • 支援 ObservationExtract（最常見） • 支援 DefinitionExtract（複雜資源） • 支援 TemplateExtract（預設樣板） • StructureMapExtract（高級轉換） 提取優先級： 1. 簡單 Observation 提取（計分、測量） 2. 複雜資源提取（診斷/藥物） 3. 自動計算欄位（如 BMI） 4. 交易 Bundle 生成 回傳格式： { "resourceType": "Bundle", "type": "transaction", "entry": [ { "resource": { "resourceType": "Observation", "code": { "coding": [{ "code": "PHQ9", "system": "http://loinc.org" }] }, "value": { "integer": 12 }, "derivedFrom": [{ "reference": "QuestionnaireResponse/qr123" }] } } ] } 這是 SDC 工作流的最終步驟，用於自動導入結構化資料

type:
  v: Questionnaire
profile:
  v: http://hl7.org/fhir/StructureDefinition/Questionnaire
  l: Questionnaire
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: read
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  code:
    v: search-type
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  code:
    v: create
interaction:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  code:
    v: update
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: identifier
  definition:
    v: http://example.org/fhir/SearchParameter/Questionnaire-identifier
    l: Questionnaire-identifier
  type:
    v: token
search param:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHOULD
  name:
    v: title
  definition:
    v: http://example.org/fhir/SearchParameter/Questionnaire-title
    l: Questionnaire-title
  type:
    v: string
operation:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: SHALL
  name:
    v: populate
  definition:
    v: http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-populate
    l: Questionnaire-populate
  documentation:
    v: 伺服器必須實現 $populate 操作以： 1. 接收 Client 的預填請求 2. 根據 questionnaire.item.definition 查詢患者資料 3. 根據 FHIRPath expression 預填答案 4. 返回已預填的 QuestionnaireResponse 技術要求： • FHIRPath 引擎支援 • 資料查詢引擎（能查詢 Patient/Observation 等資源） • Extension 解析（processingPriority/itemWeight/calculatedExpression） 實現優先級： 1. 基本預填（根據 definition 字段） 2. FHIRPath 評估 3. answerExpression 支援 4. 複雜表達式與條件 回傳格式： { "resourceType": "QuestionnaireResponse", "questionnaire": "Questionnaire/q1", "status": "in-progress", "item": [ { "linkId": "patient-name", "answer": [{ "valueString": "[自動填入的病人名稱]" }] } ] }
operation:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
      l: capabilitystatement-expectation
    value: Code
      v: MAY
  name:
    v: render
  definition:
    v: http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-render
    l: Questionnaire-render
  documentation:
    v: 伺服器可選支援 $render 操作以： • 將 Questionnaire 轉換為可用格式（HTML/PDF/JSON） • 應用主題樣式和客製化呈現 • 支援多語言 大多數 Client 會自行實現渲染，此操作非必要