You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: healthcare_utils.go
    path of file: ./repos/magic-modules/mmv1/third_party/terraform/services/healthcare
    
    the code of the file until where you have to start completion: package healthcare

import (
	"fmt"
	"regexp"
	"strings"

	transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
	"github.com/hashicorp/terraform-provider-google/google/verify"
)

type HealthcareDatasetId struct {
	Project  string
	Location string
	Name     string
}

func (s *HealthcareDatasetId) DatasetId() string {
	return fmt.Sprintf("projects/%s/locations/%s/datasets/%s", s.Project, s.Location, s.Name)
}

func (s *HealthcareDatasetId) TerraformId() string {
	return fmt.Sprintf("%s/%s/%s", s.Project, s.Location, s.Name)
}

func ParseHealthcareDatasetId(id string, config *transport_tpg.Config) (*HealthcareDatasetId, error) {
	parts := strings.Split(id, "/")

	datasetIdRegex := regexp.MustCompile("^(" + verify.ProjectRegex + ")/([a-z0-9-])+/([a-zA-Z0-9_-]{1,256})$")
	datasetIdWithoutProjectRegex := regexp.MustCompile("^([a-z0-9-])+/([a-zA-Z0-9_-]{1,256})$")
	datasetRelativeLinkRegex := regexp.MustCompile("^projects/(" + verify.ProjectRegex + ")/locations/([a-z0-9-]+)/datasets/([a-zA-Z0-9_-]{1,256})$")

	if datasetIdRegex.MatchString(id) {
		return &HealthcareDatasetId{
			Project:  parts[0],
			Location:
    
func ParseHealthcareDatasetId(id string, config *transport_tpg.Config) (*HealthcareDatasetId, error) {
	parts := strings.Split(id, "/")

	datasetIdRegex := regexp.MustCompile("^(" + verify.ProjectRegex + ")/([a-z0-9-])+/([a-zA-Z0-9_-]{1,256})$")
	datasetIdWithoutProjectRegex := regexp.MustCompile("^([a-z0-9-])+/([a-zA-Z0-9_-]{1,256})$")
	datasetRelativeLinkRegex := regexp.MustCompile("^projects/(" + verify.ProjectRegex + ")/locations/([a-z0-9-]+)/datasets/([a-zA-Z0-9_-]{1,256})$")

	if datasetIdRegex.MatchString(id) {
		return &HealthcareDatasetId{
			Project:  parts[0],
			Location: parts[1],
			Name:     parts[2],
		}, nil
	}

	if datasetIdWithoutProjectRegex.MatchString(id) {
		if config.Project == "" {
			return nil, fmt.Errorf("The default project for the provider must be set when using the `{location}/{datasetName}` id format.")
		}

		return &HealthcareDatasetId{
			Project:  config.Project,
			Location: parts[0],
			Name:     parts[1],
		}, nil
	}

	if parts := datasetRelativeLinkRegex.FindStringSubmatch(id); parts != nil {
		return &HealthcareDatasetId{
			Project:  parts[1],
			Location: parts[2],
			Name:     parts[3],
		}, nil
	}
	return nil, fmt.Errorf("Invalid Dataset id format, expecting `{projectId}/{locationId}/{datasetName}` or `{locationId}/{datasetName}.`")
}