Skip to content

Commit

Permalink
Added client stu3 method to switch to stu3 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jarimayenburg committed Jan 25, 2024
1 parent f757a34 commit 28e3603
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/fhir-sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ impl<V: Send + Sync> Client<V> {
Client(self.0, PhantomData)
}

/// Switch the client to STU3 mode.
#[must_use]
pub fn stu3(self) -> Client<FhirStu3> {
self.convert_version()
}

/// Switch the client to R4B mode.
#[must_use]
pub fn r4b(self) -> Client<FhirR4B> {
Expand Down

0 comments on commit 28e3603

Please sign in to comment.