FhirResource.Builder.SetType(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the FHIR resource type.
[Android.Runtime.Register("setType", "(I)Landroid/health/connect/datatypes/FhirResource$Builder;", "", ApiSince=36)]
public Android.Health.Connect.DataTypes.FhirResource.Builder SetType(int type);
[<Android.Runtime.Register("setType", "(I)Landroid/health/connect/datatypes/FhirResource$Builder;", "", ApiSince=36)>]
member this.SetType : int -> Android.Health.Connect.DataTypes.FhirResource.Builder
Parameters
- type
- Int32
Integer values include those of Immunization, AllergyIntolerance, Observation, Condition, Procedure, Medication, MedicationRequest, MedicationStatement, Patient, Practitioner, PractitionerRole, Encounter, Location, and Organization.
Returns
This FHIR resource builder with the resource type set.
- Attributes
Exceptions
type is not a supported FHIR resource type.
Remarks
Sets the FHIR resource type. Supply the type for the "resourceType" field in data; this method does not extract it from the data.
Android reference for android.health.connect.datatypes.FhirResource.Builder.setType.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.