Skip to main content
Guide
DG-3070
Version
1.0
Status
Active
Created
Updated

Quick intro

This section outlines a common implementation pattern for writing (creating / updating) information with the PCA™.

Validate resource

The objective of this pattern is to validate the resource and if the validated resource already exists based on some write criteria (usually an identifier), issue an update (where all details will be updated), else issue a create operation:

if (validate.resource?id == true)
    if (read.resource?id != null)
       update.resource?details.json
    else
       create.resource?details.json
else
    log.error(“Resource failed validation”)

 Home | Back: Submit match record | Next: API reference

Trade marks of the Australian Digital Health Agency: 
Provider Connect Australia™, Helping healthcare providers stay connected™

PCA logo
PCA logo

On this page