rawGetPatientByHealthcarepartyAndIdentifierWithHttpInfo method

Future<Response> rawGetPatientByHealthcarepartyAndIdentifierWithHttpInfo(
  1. String hcPartyId,
  2. String id, {
  3. String? system,
})

Get patient by identifier

It gets patient administrative data based on the identifier (root & extension) parameters.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawGetPatientByHealthcarepartyAndIdentifierWithHttpInfo(String hcPartyId, String id, { String? system, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/patient/{hcPartyId}/{id}'.replaceAll('{hcPartyId}', hcPartyId).replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (system != null) {
    queryParams.addAll(_queryParams('', 'system', system));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}