8d9c2f1eeec07a055b1d3fd49259e0dba8e06e9d,healthcare/api-client/fhir/fhir_resources.py,,create_patient,#Any#Any#Any#Any#Any#Any#,53

Before Change


        "resourceType": "Patient",
    }

    try:
        response = session.post(fhir_store_path, headers=headers, json=body)
        response.raise_for_status()

        resource = response.json()

        print("Created Patient resource with ID {}".format(resource["id"]))

        return response
    except HttpError as err:
        print(err)
        return ""


// [END healthcare_create_resource]


// [START healthcare_create_encounter]
def create_encounter(
    service_account_json,
    base_url,
    project_id,

After Change


        "resourceType": "Patient",
    }

    response = session.post(fhir_store_path, headers=headers, json=body)
    response.raise_for_status()

    resource = response.json()

    print("Created Patient resource with ID {}".format(resource["id"]))

    return response

// [END healthcare_create_resource]

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 8d9c2f1eeec07a055b1d3fd49259e0dba8e06e9d
Time: 2020-05-11
Author: tmatsuo@google.com
File Name: healthcare/api-client/fhir/fhir_resources.py
Class Name:
Method Name: create_patient


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 8d9c2f1eeec07a055b1d3fd49259e0dba8e06e9d
Time: 2020-05-11
Author: tmatsuo@google.com
File Name: healthcare/api-client/fhir/fhir_resources.py
Class Name:
Method Name: create_observation


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 8d9c2f1eeec07a055b1d3fd49259e0dba8e06e9d
Time: 2020-05-11
Author: tmatsuo@google.com
File Name: healthcare/api-client/fhir/fhir_resources.py
Class Name:
Method Name: create_encounter