EpisodeofcareDiagnosis constructor

EpisodeofcareDiagnosis({
  1. @Default('') @JsonKey(name: 'ID') String? id,
  2. @JsonKey(name: 'Condition') Reference? condition,
  3. @JsonKey(name: 'Role') CodeableConcept? role,
  4. @JsonKey(name: 'Rank') int? rank,
})

Implementation

factory EpisodeofcareDiagnosis({
  @Default('') @JsonKey(name: 'ID') String? id,

  /// Conditions/problems/diagnoses that this episode of care is intended to be providing care for.
  @JsonKey(name: 'Condition') Reference? condition,

  /// Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …).
  @JsonKey(name: 'Role') CodeableConcept? role,

  /// Ranking of the diagnosis (for each role type).
  @JsonKey(name: 'Rank') int? rank,
}) = _EpisodeofcareDiagnosis;