FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagetw.gov.mohw.hpa.pad
Resource TypeStructureDefinition
IdStructureDefinition-PhysicalActivityModel.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/hpapa2025/pad/StructureDefinition-PhysicalActivityModel.html
URLhttps://hpacorepa.hpa.gov.tw/pad/StructureDefinition/PhysicalActivityModel
Version0.1.0
Statusactive
Date2025-12-25T07:56:00+00:00
NamePhysicalActivityModel
Title情境1-運動紀錄之資料模型
Realmtw
Authoritynational
Description本邏輯模型用於描述使用者之運動紀錄的資料結構,協助國民健康署推動以資料驅動的健康促進服務。為利實作者理解與應用,資料欄位採通俗命名,實作時可參考「Mappings」功能頁籤,對應至實際所使用之Profiles與資料項目。亦可參照[視覺化邏輯模型圖](vision-1.html)進行欄位對照與整體結構掌握。
Typehttps://hpacorepa.hpa.gov.tw/pad/StructureDefinition/PhysicalActivityModel
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition PhysicalActivityModel

NameFlagsCard.TypeDescription & Constraintsdoco
.. PhysicalActivityModel 0..*Base情境1-運動紀錄之資料模型
... physActRecord 0..1BackboneElement身體活動紀錄
.... dailySteps 0..1integer每日步數
.... dailyFloors 0..1integer每日爬升樓層
.... dailyDistance 0..1integer每日運動距離
.... standHours 0..1integer站立時數
... physiologicalMetrics 0..1BackboneElement生理檢測
.... heartRate 0..*integer心率
.... sleepHours 0..1integer睡眠時數
.... stressIndex 0..*integer壓力指數
... exerciseRecord 0..*BackboneElement運動紀錄
.... exerciseType 1..1code運動類型
.... mvpa 1..1integerMVPA分鐘數
.... exerciseDateTime 1..1dateTime運動時間/日期
.... energyExpended 1..1integer預估消耗熱量
.... exerciseIntensity 1..1decimal運動強度
.... exerciseRecordSource 1..1CodeableConcept運動紀錄來源

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "PhysicalActivityModel",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://hpacorepa.hpa.gov.tw/pad/StructureDefinition/PhysicalActivityModel",
  "version": "0.1.0",
  "name": "PhysicalActivityModel",
  "title": "情境1-運動紀錄之資料模型",
  "status": "active",
  "date": "2025-12-25T07:56:00+00:00",
  "publisher": "衛生福利部國民健康署",
  "contact": [
    {
      "name": "衛生福利部國民健康署",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.hpa.gov.tw"
        }
      ]
    }
  ],
  "description": "本邏輯模型用於描述使用者之運動紀錄的資料結構,協助國民健康署推動以資料驅動的健康促進服務。為利實作者理解與應用,資料欄位採通俗命名,實作時可參考「Mappings」功能頁籤,對應至實際所使用之Profiles與資料項目。亦可參照[視覺化邏輯模型圖](vision-1.html)進行欄位對照與整體結構掌握。",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "PhysAct",
      "uri": "https://hpacorepa.hpa.gov.tw/pad/",
      "name": "Mapping to PhysicalActivityModel"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "https://hpacorepa.hpa.gov.tw/pad/StructureDefinition/PhysicalActivityModel",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "PhysicalActivityModel",
        "path": "PhysicalActivityModel",
        "short": "情境1-運動紀錄之資料模型",
        "definition": "本邏輯模型用於描述使用者之運動紀錄的資料結構,協助國民健康署推動以資料驅動的健康促進服務。為利實作者理解與應用,資料欄位採通俗命名,實作時可參考「Mappings」功能頁籤,對應至實際所使用之Profiles與資料項目。亦可參照[視覺化邏輯模型圖](vision-1.html)進行欄位對照與整體結構掌握。",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "BundlePhysicalActivity"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord",
        "path": "PhysicalActivityModel.physActRecord",
        "short": "身體活動紀錄",
        "definition": "身體活動紀錄",
        "min": 0,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.physActRecord",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "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"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "(身體活動紀錄)"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.id",
        "path": "PhysicalActivityModel.physActRecord.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": "PhysicalActivityModel.physActRecord.extension",
        "path": "PhysicalActivityModel.physActRecord.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": "PhysicalActivityModel.physActRecord.modifierExtension",
        "path": "PhysicalActivityModel.physActRecord.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "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.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "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": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.dailySteps",
        "path": "PhysicalActivityModel.physActRecord.dailySteps",
        "short": "每日步數",
        "definition": "每日步數",
        "min": 0,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.physActRecord.dailySteps",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationDailyStepsPAD.where(code.coding.code = '41950-7' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.dailyFloors",
        "path": "PhysicalActivityModel.physActRecord.dailyFloors",
        "short": "每日爬升樓層",
        "definition": "每日爬升樓層",
        "min": 0,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.physActRecord.dailyFloors",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationDailyFloorsPAD.where(code.coding.code = '129016000' and code.coding.system='http://snomed.info/sct').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.dailyDistance",
        "path": "PhysicalActivityModel.physActRecord.dailyDistance",
        "short": "每日運動距離",
        "definition": "每日運動距離",
        "min": 0,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.physActRecord.dailyDistance",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationDailyDistancePAD.where(code.coding.code = '246132006' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.standHours",
        "path": "PhysicalActivityModel.physActRecord.standHours",
        "short": "站立時數",
        "definition": "站立時數",
        "min": 0,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.physActRecord.standHours",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationStandHoursPAD.where(code.coding.code = '10904000' and code.coding.system='http://snomed.info/sct').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics",
        "path": "PhysicalActivityModel.physiologicalMetrics",
        "short": "生理檢測",
        "definition": "生理檢測",
        "min": 0,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.physiologicalMetrics",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "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"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "(生理檢測)"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics.id",
        "path": "PhysicalActivityModel.physiologicalMetrics.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": "PhysicalActivityModel.physiologicalMetrics.extension",
        "path": "PhysicalActivityModel.physiologicalMetrics.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": "PhysicalActivityModel.physiologicalMetrics.modifierExtension",
        "path": "PhysicalActivityModel.physiologicalMetrics.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "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.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "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": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics.heartRate",
        "path": "PhysicalActivityModel.physiologicalMetrics.heartRate",
        "short": "心率",
        "definition": "心率",
        "min": 0,
        "max": "*",
        "base": {
          "path": "PhysicalActivityModel.physiologicalMetrics.heartRate",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationHeartRatePAD.where(code.coding.code = '8867-4' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics.sleepHours",
        "path": "PhysicalActivityModel.physiologicalMetrics.sleepHours",
        "short": "睡眠時數",
        "definition": "睡眠時數",
        "min": 0,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.physiologicalMetrics.sleepHours",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationSleepHoursPAD.where(code.coding.code = '93832-4' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics.stressIndex",
        "path": "PhysicalActivityModel.physiologicalMetrics.stressIndex",
        "short": "壓力指數",
        "definition": "壓力指數",
        "min": 0,
        "max": "*",
        "base": {
          "path": "PhysicalActivityModel.physiologicalMetrics.stressIndex",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationStressIndexPAD.where(code.coding.code = '93038-8' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord",
        "path": "PhysicalActivityModel.exerciseRecord",
        "short": "運動紀錄",
        "definition": "運動紀錄",
        "min": 0,
        "max": "*",
        "base": {
          "path": "PhysicalActivityModel.exerciseRecord",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "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"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "(運動紀錄)"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.id",
        "path": "PhysicalActivityModel.exerciseRecord.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": "PhysicalActivityModel.exerciseRecord.extension",
        "path": "PhysicalActivityModel.exerciseRecord.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": "PhysicalActivityModel.exerciseRecord.modifierExtension",
        "path": "PhysicalActivityModel.exerciseRecord.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "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.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "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": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseType",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseType",
        "short": "運動類型",
        "definition": "運動類型",
        "min": 1,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.exerciseRecord.exerciseType",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'exerciseType' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Type].valueCodeableConcept.coding.code"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.mvpa",
        "path": "PhysicalActivityModel.exerciseRecord.mvpa",
        "short": "MVPA分鐘數",
        "definition": "MVPA分鐘數",
        "min": 1,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.exerciseRecord.mvpa",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'mvpa' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[MVPA].valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseDateTime",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseDateTime",
        "short": "運動時間/日期",
        "definition": "運動時間/日期",
        "min": 1,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.exerciseRecord.exerciseDateTime",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = '82287-4' and code.coding.system='http://loinc.org').effectivePeriod"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.energyExpended",
        "path": "PhysicalActivityModel.exerciseRecord.energyExpended",
        "short": "預估消耗熱量",
        "definition": "預估消耗熱量",
        "min": 1,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.exerciseRecord.energyExpended",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'energyExpended' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Kcal].valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseIntensity",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseIntensity",
        "short": "運動強度",
        "definition": "運動強度",
        "min": 1,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.exerciseRecord.exerciseIntensity",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'exerciseIntensity' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Intensity].valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseRecordSource",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseRecordSource",
        "short": "運動紀錄來源",
        "definition": "運動紀錄來源",
        "min": 1,
        "max": "1",
        "base": {
          "path": "PhysicalActivityModel.exerciseRecord.exerciseRecordSource",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'exerciseRecordSource' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Source].valueCodeableConcept.coding.code"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "PhysicalActivityModel",
        "path": "PhysicalActivityModel",
        "short": "情境1-運動紀錄之資料模型",
        "definition": "本邏輯模型用於描述使用者之運動紀錄的資料結構,協助國民健康署推動以資料驅動的健康促進服務。為利實作者理解與應用,資料欄位採通俗命名,實作時可參考「Mappings」功能頁籤,對應至實際所使用之Profiles與資料項目。亦可參照[視覺化邏輯模型圖](vision-1.html)進行欄位對照與整體結構掌握。",
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "BundlePhysicalActivity"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord",
        "path": "PhysicalActivityModel.physActRecord",
        "short": "身體活動紀錄",
        "definition": "身體活動紀錄",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "(身體活動紀錄)"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.dailySteps",
        "path": "PhysicalActivityModel.physActRecord.dailySteps",
        "short": "每日步數",
        "definition": "每日步數",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationDailyStepsPAD.where(code.coding.code = '41950-7' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.dailyFloors",
        "path": "PhysicalActivityModel.physActRecord.dailyFloors",
        "short": "每日爬升樓層",
        "definition": "每日爬升樓層",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationDailyFloorsPAD.where(code.coding.code = '129016000' and code.coding.system='http://snomed.info/sct').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.dailyDistance",
        "path": "PhysicalActivityModel.physActRecord.dailyDistance",
        "short": "每日運動距離",
        "definition": "每日運動距離",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationDailyDistancePAD.where(code.coding.code = '246132006' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physActRecord.standHours",
        "path": "PhysicalActivityModel.physActRecord.standHours",
        "short": "站立時數",
        "definition": "站立時數",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationStandHoursPAD.where(code.coding.code = '10904000' and code.coding.system='http://snomed.info/sct').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics",
        "path": "PhysicalActivityModel.physiologicalMetrics",
        "short": "生理檢測",
        "definition": "生理檢測",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "(生理檢測)"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics.heartRate",
        "path": "PhysicalActivityModel.physiologicalMetrics.heartRate",
        "short": "心率",
        "definition": "心率",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationHeartRatePAD.where(code.coding.code = '8867-4' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics.sleepHours",
        "path": "PhysicalActivityModel.physiologicalMetrics.sleepHours",
        "short": "睡眠時數",
        "definition": "睡眠時數",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationSleepHoursPAD.where(code.coding.code = '93832-4' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.physiologicalMetrics.stressIndex",
        "path": "PhysicalActivityModel.physiologicalMetrics.stressIndex",
        "short": "壓力指數",
        "definition": "壓力指數",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationStressIndexPAD.where(code.coding.code = '93038-8' and code.coding.system='http://loinc.org').valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord",
        "path": "PhysicalActivityModel.exerciseRecord",
        "short": "運動紀錄",
        "definition": "運動紀錄",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "(運動紀錄)"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseType",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseType",
        "short": "運動類型",
        "definition": "運動類型",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'exerciseType' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Type].valueCodeableConcept.coding.code"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.mvpa",
        "path": "PhysicalActivityModel.exerciseRecord.mvpa",
        "short": "MVPA分鐘數",
        "definition": "MVPA分鐘數",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'mvpa' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[MVPA].valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseDateTime",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseDateTime",
        "short": "運動時間/日期",
        "definition": "運動時間/日期",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = '82287-4' and code.coding.system='http://loinc.org').effectivePeriod"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.energyExpended",
        "path": "PhysicalActivityModel.exerciseRecord.energyExpended",
        "short": "預估消耗熱量",
        "definition": "預估消耗熱量",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'energyExpended' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Kcal].valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseIntensity",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseIntensity",
        "short": "運動強度",
        "definition": "運動強度",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'exerciseIntensity' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Intensity].valueQuantity.value"
          }
        ]
      },
      {
        "id": "PhysicalActivityModel.exerciseRecord.exerciseRecordSource",
        "path": "PhysicalActivityModel.exerciseRecord.exerciseRecordSource",
        "short": "運動紀錄來源",
        "definition": "運動紀錄來源",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "PhysAct",
            "map": "entry:ObservationExercise.where(code.coding.code = 'exerciseRecordSource' and code.coding.system='https://hpacorepa.hpa.gov.tw/pad/CodeSystem/pad-metrics').component[Source].valueCodeableConcept.coding.code"
          }
        ]
      }
    ]
  }
}