1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
/// [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifier?language=objc)
// NS_TYPED_ENUM
pub type HKClinicalTypeIdentifier = NSString;
extern "C" {
/// A type identifier for records of allergies or intolerances.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifierallergyrecord?language=objc)
pub static HKClinicalTypeIdentifierAllergyRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records that represent clinical notes.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifierclinicalnoterecord?language=objc)
pub static HKClinicalTypeIdentifierClinicalNoteRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records of a condition, problem, or diagnosis.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifierconditionrecord?language=objc)
pub static HKClinicalTypeIdentifierConditionRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records of vaccine administration.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifierimmunizationrecord?language=objc)
pub static HKClinicalTypeIdentifierImmunizationRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records of lab results.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifierlabresultrecord?language=objc)
pub static HKClinicalTypeIdentifierLabResultRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records of medication prescription, intake, or administration.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifiermedicationrecord?language=objc)
pub static HKClinicalTypeIdentifierMedicationRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records of clinical procedures.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifierprocedurerecord?language=objc)
pub static HKClinicalTypeIdentifierProcedureRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records of vital signs.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifiervitalsignrecord?language=objc)
pub static HKClinicalTypeIdentifierVitalSignRecord: &'static HKClinicalTypeIdentifier;
}
extern "C" {
/// A type identifier for records containing information about the user’s insurance coverage.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltypeidentifiercoveragerecord?language=objc)
pub static HKClinicalTypeIdentifierCoverageRecord: &'static HKClinicalTypeIdentifier;
}
/// ClinicalType.
#[cfg(feature = "HKObjectType")]
impl HKObjectType {
extern_methods!(
#[unsafe(method(clinicalTypeForIdentifier:))]
#[unsafe(method_family = none)]
pub unsafe fn clinicalTypeForIdentifier(
identifier: &HKClinicalTypeIdentifier,
) -> Option<Retained<HKClinicalType>>;
);
}
extern_class!(
/// A type that identifies samples that contain clinical record data.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkclinicaltype?language=objc)
#[unsafe(super(HKSampleType, HKObjectType, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HKObjectType")]
pub struct HKClinicalType;
);
#[cfg(feature = "HKObjectType")]
unsafe impl Send for HKClinicalType {}
#[cfg(feature = "HKObjectType")]
unsafe impl Sync for HKClinicalType {}
#[cfg(feature = "HKObjectType")]
extern_conformance!(
unsafe impl NSCoding for HKClinicalType {}
);
#[cfg(feature = "HKObjectType")]
extern_conformance!(
unsafe impl NSCopying for HKClinicalType {}
);
#[cfg(feature = "HKObjectType")]
unsafe impl CopyingHelper for HKClinicalType {
type Result = Self;
}
#[cfg(feature = "HKObjectType")]
extern_conformance!(
unsafe impl NSObjectProtocol for HKClinicalType {}
);
#[cfg(feature = "HKObjectType")]
extern_conformance!(
unsafe impl NSSecureCoding for HKClinicalType {}
);
#[cfg(feature = "HKObjectType")]
impl HKClinicalType {
extern_methods!();
}
/// Methods declared on superclass `HKObjectType`.
#[cfg(feature = "HKObjectType")]
impl HKClinicalType {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
/// Methods declared on superclass `NSObject`.
#[cfg(feature = "HKObjectType")]
impl HKClinicalType {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}