You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.1 KiB
XML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="utf-8"?>
<Artifacts version="2.0">
<Artifact type="SqliteArtifact" name="IOS healthdb_secure" version="1" platform="Ios">
<Source type="FileName">healthdb_secure.sqlite</Source>
<Query>
select
data_provenances.origin_device||' ('||data_provenances.source_version||')' as 'Device',
case samples.data_type
when 3 then 'Weight'
when 5 then 'Heart Rate'
when 7 then 'Steps'
when 8 then 'Distance'
when 9 then 'Resting Energy'
when 10 then 'Active Energy'
when 12 then 'Flights Climbed'
when 67 then 'Weekly Calorie Goal'
when 70 then 'Watch On'
when 75 then 'Standing'
when 76 then 'Activity'
when 79 then 'Workout'
when 83 then 'Some workouts'
else samples.data_type -- 20s ~ 30s = Nutrition
end as 'DataType',
quantity_samples.original_quantity||' '||unit_strings.unit_string as 'quantity',
quantity_samples.quantity as 'originalquantity',
samples.start_date as 'StartDate',
samples.end_date as 'EndDate'
from samples
left join activity_caches on activity_caches.data_id = samples.data_id
left join quantity_samples on quantity_samples.data_id = samples.data_id
left join correlations on samples.data_id = correlations.object
left join data_provenances on data_provenances.ROWID = quantity_samples.original_unit
left join unit_strings on unit_strings.ROWID = quantity_samples.original_unit
</Query>
<Fragments>
<Fragment source="Device" alias="Device" datatype="String" category="None" />
<Fragment source="DataType" alias="DataType" datatype="String" category="None" />
<Fragment source="quantity" alias="Quantity" datatype="String" category="None" />
<Fragment source="originalquantity" alias="Original Value" datatype="String" category="None " />
<Fragment source="StartDate" alias="StartDate" datatype="DateTime" dateformat="UNIX Time (ms)" category="DateTime" />
<Fragment source="EndDate" alias="EndDate" datatype="DateTime" dateformat="UNIX Time (ms)" category="DateTime" />
</Fragments>
</Artifact>
<Signature>
</Signature>
</Artifacts>