0.4.4 - ci-build

StandardPatientHealthRecordIG, published by MITRE. This is not an authorized publication; it is the continuous build for version 0.4.4). This version is based on the current content of https://github.com/HL7/standard-patient-health-record-ig/ and changes regularly. See the Directory of published versions

Logical Model: AppleHealthKitWorkoutSample - XML Profile

Draft as of 2023-09-13

XML representation of the apple-health-kit-workout-sample logical model.

Raw xml | Download



<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="apple-health-kit-workout-sample"/>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Placeholder</div>
  </text>
  <url
       value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-health-kit-workout-sample"/>
  <version value="0.4.4"/>
  <name value="AppleHealthKitWorkoutSample"/>
  <title value="Apple HealthKit Workout Sample Logical Model"/>
  <status value="draft"/>
  <date value="2023-09-13T16:34:31+00:00"/>
  <publisher value="MITRE"/>
  <contact>
    <name value="MITRE"/>
    <telecom>
      <system value="url"/>
      <value
             value="https://open-health-manager.github.io/standard-patient-health-record-ig"/>
    </telecom>
  </contact>
  <description value="Data elements for the Apple HealthKit HKWorkout."/>
  <fhirVersion value="4.0.1"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <kind value="logical"/>
  <abstract value="false"/>
  <type
        value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-health-kit-workout-sample"/>
  <baseDefinition
                  value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-health-kit-sample"/>
  <derivation value="specialization"/>
  <snapshot>
    <element id="apple-health-kit-workout-sample">
      <path value="apple-health-kit-workout-sample"/>
      <short value="Apple HealthKit Workout Sample Logical Model"/>
      <definition value="Data elements for the Apple HealthKit HKWorkout."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Base"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <isModifier value="false"/>
    </element>
    <element id="apple-health-kit-workout-sample.uuid">
      <path value="apple-health-kit-workout-sample.uuid"/>
      <short
             value="The universally unique identifier (UUID) for this HealthKit object."/>
      <definition
                  value="The universally unique identifier (UUID) for this HealthKit object."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.uuid"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.metadata">
      <path value="apple-health-kit-workout-sample.metadata"/>
      <short value="The metadata for this HealthKit object."/>
      <definition value="The metadata for this HealthKit object."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="apple-health-kit-object.metadata"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="apple-health-kit-workout-sample.metadata.id">
      <path value="apple-health-kit-workout-sample.metadata.id"/>
      <representation value="xmlAttr"/>
      <short value="Unique id for inter-element referencing"/>
      <definition
                  value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.metadata.extension">
      <path value="apple-health-kit-workout-sample.metadata.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <description value="Extensions are always sliced by (at least) url"/>
        <rules value="open"/>
      </slicing>
      <short value="Additional content defined by implementations"/>
      <definition
                  value="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
               value="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 value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.metadata.modifierExtension">
      <path
            value="apple-health-kit-workout-sample.metadata.modifierExtension"/>
      <short value="Extensions that cannot be ignored even if unrecognized"/>
      <definition
                  value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
      <comment
               value="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
                    value="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 value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="true"/>
      <isModifierReason
                        value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.metadata.key">
      <path value="apple-health-kit-workout-sample.metadata.key"/>
      <short
             value="Constants used to add metadata to objects stored in HealthKit."/>
      <definition
                  value="Constants used to add metadata to objects stored in HealthKit."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.metadata.key"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.metadata.value[x]">
      <path value="apple-health-kit-workout-sample.metadata.value[x]"/>
      <short value="The metadata dictionary value."/>
      <definition value="The metadata dictionary value."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.metadata.value[x]"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <type>
        <code value="dateTime"/>
      </type>
      <type>
        <code value="integer"/>
      </type>
      <type>
        <code value="decimal"/>
      </type>
      <type>
        <code value="boolean"/>
      </type>
      <type>
        <code value="positiveInt"/>
      </type>
      <type>
        <code value="unsignedInt"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device">
      <path value="apple-health-kit-workout-sample.device"/>
      <short value="The device that generated the data for this object."/>
      <definition
                  value="The device that generated the data for this object."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="apple-health-kit-workout-sample.device.id">
      <path value="apple-health-kit-workout-sample.device.id"/>
      <representation value="xmlAttr"/>
      <short value="Unique id for inter-element referencing"/>
      <definition
                  value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.device.extension">
      <path value="apple-health-kit-workout-sample.device.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <description value="Extensions are always sliced by (at least) url"/>
        <rules value="open"/>
      </slicing>
      <short value="Additional content defined by implementations"/>
      <definition
                  value="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
               value="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 value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.device.modifierExtension">
      <path value="apple-health-kit-workout-sample.device.modifierExtension"/>
      <short value="Extensions that cannot be ignored even if unrecognized"/>
      <definition
                  value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
      <comment
               value="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
                    value="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 value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="true"/>
      <isModifierReason
                        value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.device.udiDeviceIdentifier">
      <path
            value="apple-health-kit-workout-sample.device.udiDeviceIdentifier"/>
      <short
             value="The device identifier portion of the US Food and Drug Administration’s Unique Device Identifier (UDI)."/>
      <definition
                  value="The device identifier portion of the US Food and Drug Administration’s Unique Device Identifier (UDI)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.udiDeviceIdentifier"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device.firmwareVersion">
      <path value="apple-health-kit-workout-sample.device.firmwareVersion"/>
      <short
             value="An arbitrary string representing the current version of the firmware running on the device."/>
      <definition
                  value="An arbitrary string representing the current version of the firmware running on the device."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.firmwareVersion"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device.hardwareVersion">
      <path value="apple-health-kit-workout-sample.device.hardwareVersion"/>
      <short
             value="An arbitrary string representing the hardware version of the device."/>
      <definition
                  value="An arbitrary string representing the hardware version of the device."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.hardwareVersion"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device.localIdentifier">
      <path value="apple-health-kit-workout-sample.device.localIdentifier"/>
      <short
             value="An identifier that uniquely identifies the device object on the hardware running this code."/>
      <definition
                  value="An identifier that uniquely identifies the device object on the hardware running this code."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.localIdentifier"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device.manufacturer">
      <path value="apple-health-kit-workout-sample.device.manufacturer"/>
      <short value="A string representing the device’s manufacturer."/>
      <definition value="A string representing the device’s manufacturer."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.manufacturer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device.model">
      <path value="apple-health-kit-workout-sample.device.model"/>
      <short value="A string representing the device’s model."/>
      <definition value="A string representing the device’s model."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.model"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device.name">
      <path value="apple-health-kit-workout-sample.device.name"/>
      <short value="The user-facing name for the device."/>
      <definition value="The user-facing name for the device."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.name"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.device.softwareVersion">
      <path value="apple-health-kit-workout-sample.device.softwareVersion"/>
      <short
             value="An arbitrary string representing the version of the software running on the device."/>
      <definition
                  value="An arbitrary string representing the version of the software running on the device."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.device.softwareVersion"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision">
      <path value="apple-health-kit-workout-sample.sourceRevision"/>
      <short value="The app or device that created this object."/>
      <definition value="The app or device that created this object."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.sourceRevision"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision.id">
      <path value="apple-health-kit-workout-sample.sourceRevision.id"/>
      <representation value="xmlAttr"/>
      <short value="Unique id for inter-element referencing"/>
      <definition
                  value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision.extension">
      <path value="apple-health-kit-workout-sample.sourceRevision.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <description value="Extensions are always sliced by (at least) url"/>
        <rules value="open"/>
      </slicing>
      <short value="Additional content defined by implementations"/>
      <definition
                  value="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
               value="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 value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.modifierExtension">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.modifierExtension"/>
      <short value="Extensions that cannot be ignored even if unrecognized"/>
      <definition
                  value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
      <comment
               value="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
                    value="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 value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="true"/>
      <isModifierReason
                        value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision.source">
      <path value="apple-health-kit-workout-sample.sourceRevision.source"/>
      <short value="The source for a sample."/>
      <definition value="The source for a sample."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.sourceRevision.source"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision.source.id">
      <path value="apple-health-kit-workout-sample.sourceRevision.source.id"/>
      <representation value="xmlAttr"/>
      <short value="Unique id for inter-element referencing"/>
      <definition
                  value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.source.extension">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.source.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <description value="Extensions are always sliced by (at least) url"/>
        <rules value="open"/>
      </slicing>
      <short value="Additional content defined by implementations"/>
      <definition
                  value="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
               value="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 value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.source.modifierExtension">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.source.modifierExtension"/>
      <short value="Extensions that cannot be ignored even if unrecognized"/>
      <definition
                  value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
      <comment
               value="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
                    value="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 value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="true"/>
      <isModifierReason
                        value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.source.bundleIdentifier">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.source.bundleIdentifier"/>
      <short value="The source’s bundle identifier."/>
      <definition value="The source’s bundle identifier."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path
              value="apple-health-kit-object.sourceRevision.source.bundleIdentifier"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision.source.name">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.source.name"/>
      <short value="The source’s name."/>
      <definition value="The source’s name."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.sourceRevision.source.name"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision.version">
      <path value="apple-health-kit-workout-sample.sourceRevision.version"/>
      <short
             value="A string that identifies a particular version of the source."/>
      <definition
                  value="A string that identifies a particular version of the source."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.sourceRevision.version"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion"/>
      <short
             value="A string that identifies the operating system used to save a sample."/>
      <definition
                  value="A string that identifies the operating system used to save a sample."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path
              value="apple-health-kit-object.sourceRevision.operatingSystemVersion"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.id">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.id"/>
      <representation value="xmlAttr"/>
      <short value="Unique id for inter-element referencing"/>
      <definition
                  value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.extension">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <description value="Extensions are always sliced by (at least) url"/>
        <rules value="open"/>
      </slicing>
      <short value="Additional content defined by implementations"/>
      <definition
                  value="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
               value="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 value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.modifierExtension">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.modifierExtension"/>
      <short value="Extensions that cannot be ignored even if unrecognized"/>
      <definition
                  value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
      <comment
               value="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
                    value="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 value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ext-1"/>
        <severity value="error"/>
        <human value="Must have either extensions or value[x], not both"/>
        <expression value="extension.exists() != value.exists()"/>
        <xpath
               value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="true"/>
      <isModifierReason
                        value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.majorVersion">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.majorVersion"/>
      <short value="The major release number, such as 10 in version 10.9.3."/>
      <definition
                  value="The major release number, such as 10 in version 10.9.3."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path
              value="apple-health-kit-object.sourceRevision.operatingSystemVersion.majorVersion"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.minorVersion">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.minorVersion"/>
      <short value="The minor release number, such as 9 in version 10.9.3."/>
      <definition
                  value="The minor release number, such as 9 in version 10.9.3."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path
              value="apple-health-kit-object.sourceRevision.operatingSystemVersion.minorVersion"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
    </element>
    <element
             id="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.patchVersion">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.operatingSystemVersion.patchVersion"/>
      <short value="The update release number, such as 3 in version 10.9.3."/>
      <definition
                  value="The update release number, such as 3 in version 10.9.3."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path
              value="apple-health-kit-object.sourceRevision.operatingSystemVersion.patchVersion"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.sourceRevision.productType">
      <path
            value="apple-health-kit-workout-sample.sourceRevision.productType"/>
      <short
             value="A string that identifies the device used to save a sample."/>
      <definition
                  value="A string that identifies the device used to save a sample."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-object.sourceRevision.productType"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.startDate">
      <path value="apple-health-kit-workout-sample.startDate"/>
      <short value="The sample's start date."/>
      <definition value="The sample's start date."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-sample.startDate"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.endDate">
      <path value="apple-health-kit-workout-sample.endDate"/>
      <short value="The sample's end date."/>
      <definition value="The sample's end date."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-sample.endDate"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.hasUndeterminedDuration">
      <path value="apple-health-kit-workout-sample.hasUndeterminedDuration"/>
      <short value="Indicates whether the sample has an unknown duration."/>
      <definition
                  value="Indicates whether the sample has an unknown duration."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-sample.hasUndeterminedDuration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.sampleType">
      <path value="apple-health-kit-workout-sample.sampleType"/>
      <short value="The sample type."/>
      <definition value="The sample type."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-sample.sampleType"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="extensible"/>
        <valueSet
                  value="https://open-health-manager.github.io/standard-patient-health-record-ig/ValueSet/apple-health-kit-sample-type-value-set"/>
      </binding>
    </element>
    <element id="apple-health-kit-workout-sample.duration">
      <path value="apple-health-kit-workout-sample.duration"/>
      <short value="The workout duration in number of seconds."/>
      <definition value="The workout duration in number of seconds."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-workout-sample.duration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.workoutActivityType">
      <path value="apple-health-kit-workout-sample.workoutActivityType"/>
      <short value="The sample's workout activity type."/>
      <definition
                  value="When HKSample is an HKWorkoutActivity, the corresponding workoutActivityType."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="apple-health-kit-workout-sample.workoutActivityType"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="extensible"/>
        <valueSet
                  value="https://open-health-manager.github.io/standard-patient-health-record-ig/ValueSet/apple-health-kit-workout-activity-type-value-set"/>
      </binding>
    </element>
    <element id="apple-health-kit-workout-sample.workoutActivities">
      <path value="apple-health-kit-workout-sample.workoutActivities"/>
      <short value="The sample's workout activities."/>
      <definition value="The sample's workout activities."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="apple-health-kit-workout-sample.workoutActivities"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-health-kit-workout-activity"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.workoutEvents">
      <path value="apple-health-kit-workout-sample.workoutEvents"/>
      <short value="The sample's workout events."/>
      <definition
                  value="The sample's workout events, in agreement with workoutActivities."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="apple-health-kit-workout-sample.workoutEvents"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-health-kit-workout-event"/>
      </type>
    </element>
  </snapshot>
  <differential>
    <element id="apple-health-kit-workout-sample">
      <path value="apple-health-kit-workout-sample"/>
      <short value="Apple HealthKit Workout Sample Logical Model"/>
      <definition value="Data elements for the Apple HealthKit HKWorkout."/>
    </element>
    <element id="apple-health-kit-workout-sample.duration">
      <path value="apple-health-kit-workout-sample.duration"/>
      <short value="The workout duration in number of seconds."/>
      <definition value="The workout duration in number of seconds."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="decimal"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.workoutActivityType">
      <path value="apple-health-kit-workout-sample.workoutActivityType"/>
      <short value="The sample's workout activity type."/>
      <definition
                  value="When HKSample is an HKWorkoutActivity, the corresponding workoutActivityType."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="extensible"/>
        <valueSet
                  value="https://open-health-manager.github.io/standard-patient-health-record-ig/ValueSet/apple-health-kit-workout-activity-type-value-set"/>
      </binding>
    </element>
    <element id="apple-health-kit-workout-sample.workoutActivities">
      <path value="apple-health-kit-workout-sample.workoutActivities"/>
      <short value="The sample's workout activities."/>
      <definition value="The sample's workout activities."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-health-kit-workout-activity"/>
      </type>
    </element>
    <element id="apple-health-kit-workout-sample.workoutEvents">
      <path value="apple-health-kit-workout-sample.workoutEvents"/>
      <short value="The sample's workout events."/>
      <definition
                  value="The sample's workout events, in agreement with workoutActivities."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-health-kit-workout-event"/>
      </type>
    </element>
  </differential>
</StructureDefinition>