Język

FhirResource.Builder.SetType(Int32) Method

Definition

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

Value is one of the following: FhirResource.FHIR_RESOURCE_TYPE_IMMUNIZATION FhirResource.FHIR_RESOURCE_TYPE_ALLERGY_INTOLERANCE FhirResource.FHIR_RESOURCE_TYPE_OBSERVATION FhirResource.FHIR_RESOURCE_TYPE_CONDITION FhirResource.FHIR_RESOURCE_TYPE_PROCEDURE FhirResource.FHIR_RESOURCE_TYPE_MEDICATION FhirResource.FHIR_RESOURCE_TYPE_MEDICATION_REQUEST FhirResource.FHIR_RESOURCE_TYPE_MEDICATION_STATEMENT FhirResource.FHIR_RESOURCE_TYPE_PATIENT FhirResource.FHIR_RESOURCE_TYPE_PRACTITIONER FhirResource.FHIR_RESOURCE_TYPE_PRACTITIONER_ROLE FhirResource.FHIR_RESOURCE_TYPE_ENCOUNTER FhirResource.FHIR_RESOURCE_TYPE_LOCATION FhirResource.FHIR_RESOURCE_TYPE_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.

Applies to