{
  "resourceType": "Bundle",
  "type": "transaction",
  "entry": [
    {
      "resource": {
        "source": "https://storage.googleapis.com/payerbox-public/developer_data.ndjson.gz"
      },
      "request": {
        "method": "POST",
        "url": "/$load"
      }
    },
    {
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-admin-user",
        "engine": "matcho",
        "description": "Allow developer-api client to mirror portal-admin Users (created from the Admin Portal) into the sandbox so admins can use its console too (#580)",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "request-method": {
            "$one-of": [
              "get",
              "put",
              "delete"
            ]
          },
          "uri": "#^/User/[a-zA-Z0-9._-]+$"
        }
      },
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-admin-user"
      }
    },
    {
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-access-policy",
        "engine": "matcho",
        "description": "Allow developer-api client to manage per-admin AccessPolicies (admin-*) created with each portal admin (#580)",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "request-method": {
            "$one-of": [
              "get",
              "put",
              "delete"
            ]
          },
          "uri": {
            "$one-of": [
              "#^/AccessPolicy/admin-[a-zA-Z0-9._-]+$",
              "#^/fhir/AccessPolicy/admin-[a-zA-Z0-9._-]+$"
            ]
          }
        }
      },
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-access-policy"
      }
    },
    {
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "dev-backend-service-read",
        "engine": "matcho",
        "description": "Sandbox: any backend service (bulk-api-client) may read/search the shared synthetic dataset before approval, mirroring dev-smart-app-read (#478)",
        "matcho": {
          "client": {
            "type": "bulk-api-client"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirRead",
                "FhirSearch"
              ]
            }
          }
        }
      },
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-backend-service-read"
      }
    },
    {
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "client-created-by",
        "url": "http://aidbox.app/StructureDefinition/Client/created-by",
        "name": "client-created-by",
        "status": "active",
        "kind": "complex-type",
        "abstract": false,
        "type": "Extension",
        "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
        "derivation": "constraint",
        "context": [
          {
            "type": "element",
            "expression": "Client"
          }
        ],
        "differential": {
          "element": [
            {
              "id": "Extension",
              "path": "Extension",
              "min": 0,
              "max": "1"
            },
            {
              "id": "Extension.extension",
              "path": "Extension.extension",
              "max": "0"
            },
            {
              "id": "Extension.url",
              "path": "Extension.url",
              "fixedUri": "http://aidbox.app/StructureDefinition/Client/created-by"
            },
            {
              "id": "Extension.value[x]",
              "path": "Extension.value[x]",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "targetProfile": [
                    "http://health-samurai.io/fhir/core/StructureDefinition/User"
                  ]
                }
              ]
            }
          ]
        }
      },
      "request": {
        "method": "PUT",
        "url": "StructureDefinition/client-created-by"
      }
    },
    {
      "resource": {
        "resourceType": "SearchParameter",
        "id": "Client.created-by",
        "url": "http://aidbox.app/StructureDefinition/Client/created-by",
        "name": "created-by",
        "status": "active",
        "code": "created-by",
        "base": [
          "Client"
        ],
        "type": "token",
        "description": "Client created-by User",
        "expression": "Client.meta.extension.where(url='http://aidbox.app/StructureDefinition/Client/created-by').value.Reference.id"
      },
      "request": {
        "method": "PUT",
        "url": "SearchParameter/Client.created-by"
      }
    },
    {
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "client-status",
        "url": "http://aidbox.app/StructureDefinition/Client/status",
        "name": "client-status",
        "status": "active",
        "kind": "complex-type",
        "abstract": false,
        "type": "Extension",
        "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
        "derivation": "constraint",
        "context": [
          {
            "type": "element",
            "expression": "Client"
          }
        ],
        "differential": {
          "element": [
            {
              "id": "Extension",
              "path": "Extension",
              "min": 0,
              "max": "1"
            },
            {
              "id": "Extension.extension",
              "path": "Extension.extension",
              "max": "0"
            },
            {
              "id": "Extension.url",
              "path": "Extension.url",
              "fixedUri": "http://aidbox.app/StructureDefinition/Client/status"
            },
            {
              "id": "Extension.value[x]",
              "path": "Extension.value[x]",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "constraint": [
                {
                  "key": "enum-client-status",
                  "severity": "error",
                  "human": "status must be one of draft | review | active | rejected",
                  "expression": "$this.subsetOf('draft' | 'review' | 'active' | 'rejected')"
                }
              ]
            }
          ]
        }
      },
      "request": {
        "method": "PUT",
        "url": "StructureDefinition/client-status"
      }
    },
    {
      "resource": {
        "resourceType": "SearchParameter",
        "id": "Client.status",
        "url": "http://aidbox.app/StructureDefinition/Client/status",
        "name": "status",
        "status": "active",
        "code": "status",
        "base": [
          "Client"
        ],
        "type": "token",
        "description": "Client status (draft, review, active, rejected)",
        "expression": "Client.meta.extension.where(url='http://aidbox.app/StructureDefinition/Client/status').value.code"
      },
      "request": {
        "method": "PUT",
        "url": "SearchParameter/Client.status"
      }
    },
    {
      "resource": {
        "resourceType": "Client",
        "id": "smartbox-developer-portal",
        "first_party": true,
        "grant_types": [
          "code"
        ],
        "scope": [
          "openid",
          "profile",
          "email"
        ],
        "auth": {
          "authorization_code": {
            "redirect_uri": "http://localhost:8096/api/developer/auth/callback",
            "access_token_expiration": 3600,
            "token_format": "jwt",
            "pkce": true,
            "refresh_token": true,
            "refresh_token_expiration": 86400
          }
        }
      },
      "request": {
        "method": "PUT",
        "url": "Client/smartbox-developer-portal"
      }
    },
    {
      "resource": {
        "fhirUser": {
          "reference": "Patient/test-pt-1"
        },
        "roles": [
          {
            "type": "admin"
          }
        ]
      },
      "request": {
        "method": "PATCH",
        "url": "User/admin"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-can-get-launch-uri"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "dev-can-get-launch-uri",
        "type": "rpc",
        "engine": "matcho-rpc",
        "rpc": {
          "aidbox.smart/get-launch-uri": {
            "user": {
              "fhirUser": {
                "resourceType": "Patient"
              }
            }
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-smart-app-read"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "dev-smart-app-read",
        "type": "rest",
        "engine": "matcho",
        "matcho": {
          "client": {
            "type": "smart-app"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirSearch",
                "FhirRead"
              ]
            }
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-session"
      },
      "resource": {
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "params": {
            "resource/type": "Session"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirCreate",
                "FhirSearch",
                "FhirRead",
                "FhirUpdate",
                "FhirPatch"
              ]
            }
          }
        },
        "description": "Scoped access for developer API client (sessions)",
        "id": "developer-api-session",
        "resourceType": "AccessPolicy"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-oauth-state"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-oauth-state",
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "request-method": {
            "$one-of": [
              "get",
              "post",
              "delete"
            ]
          },
          "uri": "#^/Basic.*"
        },
        "description": "OAuth login state (PKCE) stored as Basic resources by the portal backend; without this policy the write 403s and state falls back to per-pod memory, breaking the OAuth callback when the portal runs more than one replica"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-identity-provider"
      },
      "resource": {
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "request-method": "get",
          "uri": "#^/IdentityProvider.*"
        },
        "description": "Read-only IdentityProvider access for developer API client (backend maps OIDC third-party initiated login iss to an IdP id)",
        "id": "developer-api-identity-provider",
        "resourceType": "AccessPolicy"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-organization"
      },
      "resource": {
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "params": {
            "resource/type": "Organization"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirSearch",
                "FhirRead"
              ]
            }
          }
        },
        "description": "Scoped access for developer API client (organizations)",
        "id": "developer-api-organization",
        "resourceType": "AccessPolicy"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-user"
      },
      "resource": {
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "params": {
            "resource/type": "User"
          },
          "operation": {
            "id": "FhirRead"
          }
        },
        "description": "Scoped access for developer API client (users)",
        "id": "developer-api-user",
        "resourceType": "AccessPolicy"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-client"
      },
      "resource": {
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "params": {
            "resource/type": "Client"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirSearch",
                "FhirRead",
                "FhirDelete"
              ]
            }
          }
        },
        "description": "Scoped access for developer API client (clients, incl. E2E teardown)",
        "id": "developer-api-client",
        "resourceType": "AccessPolicy"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-footer-config"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-footer-config",
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "params": {
            "resource/id": "#^footer-config-.*",
            "resource/type": "DocumentReference"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirRead",
                "FhirUpdate",
                "FhirCreate"
              ]
            }
          }
        },
        "description": "Allow developer-api client to read/write footer config DocumentReference (id prefix footer-config-*)"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-document-reference"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-document-reference",
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "params": {
            "resource/id": {
              "$one-of": [
                "smartbox-tos",
                "smartbox-privacy",
                "smartbox-enrollment-message"
              ]
            },
            "resource/type": "DocumentReference"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirRead",
                "FhirUpdate",
                "FhirCreate"
              ]
            }
          }
        },
        "description": "Scoped access for developer-api client to DocumentReference resources (tos, privacy, enrollment message)"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-client-search-own"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "dev-client-search-own",
        "engine": "matcho",
        "description": "Developers can search only their own Client apps",
        "matcho": {
          "user": {
            "roles": {
              "$contains": {
                "type": "developer"
              }
            }
          },
          "operation": {
            "id": "FhirSearch"
          },
          "params": {
            "resource/type": "Client",
            "created-by": ".user.id"
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-client-read-write-own"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "dev-client-read-write-own",
        "engine": "sql",
        "sql": {
          "query": "select true from client where id = {{params.resource/id}}\n  and exists (\n  select 1\n  from jsonb_array_elements(resource->'meta'->'extension') ext\nwhere ext->>'url' = 'http://aidbox.app/StructureDefinition/Client/created-by'\n  and ext #>> '{value,Reference,id}' = {{user.id}});"
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-client-create-self-owned"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "dev-client-create-self-owned",
        "engine": "matcho",
        "description": "Developers can create Client apps only when created-by points to themselves",
        "matcho": {
          "user": {
            "roles": {
              "$contains": {
                "type": "developer"
              }
            }
          },
          "operation": {
            "id": "FhirCreate"
          },
          "params": {
            "resource/type": "Client"
          },
          "resource": {
            "meta": {
              "extension": {
                "$contains": {
                  "url": "http://aidbox.app/StructureDefinition/Client/created-by",
                  "value": {
                    "Reference": {
                      "id": ".user.id"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-user-read-self"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-user-read-self",
        "engine": "matcho",
        "description": "Developers can read only their own User resource",
        "matcho": {
          "user": {
            "roles": {
              "$contains": {
                "type": "developer"
              }
            }
          },
          "operation": {
            "id": "FhirRead"
          },
          "params": {
            "resource/type": "User",
            "resource/id": ".user.id"
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/admin-review-sandbox-clients"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "admin-review-sandbox-clients",
        "engine": "matcho",
        "description": "Admins can review sandbox Clients (read/search only)",
        "matcho": {
          "user": {
            "roles": {
              "$contains": {
                "type": "admin"
              }
            }
          },
          "params": {
            "resource/type": "Client"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirSearch",
                "FhirRead"
              ]
            }
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/admin-role-access"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "admin-role-access",
        "description": "Role-based access policy for administrators - allows full system access",
        "engine": "matcho",
        "matcho": {
          "user": {
            "roles": {
              "contains": {
                "type": "admin"
              }
            }
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/patient-role-access"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "patient-role-access",
        "description": "Role-based access policy for patients - allows access to own data and consent management",
        "engine": "matcho",
        "matcho": {
          "user": {
            "roles": {
              "contains": {
                "type": "patient"
              }
            }
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirSearch",
                "FhirRead",
                "FhirPatch",
                "FhirCreate",
                "FhirUpdate"
              ]
            }
          },
          "$or": [
            {
              "params": {
                "resource/type": "Patient"
              },
              "operation": {
                "id": {
                  "$one-of": [
                    "FhirRead"
                  ]
                }
              }
            },
            {
              "params": {
                "resource/type": "Consent"
              },
              "operation": {
                "id": {
                  "$one-of": [
                    "FhirSearch",
                    "FhirRead",
                    "FhirPatch",
                    "FhirCreate",
                    "FhirUpdate"
                  ]
                }
              }
            }
          ]
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "NotificationTemplate/auth-signup-email"
      },
      "resource": {
        "resourceType": "NotificationTemplate",
        "subject": "Confirm your Developer Account",
        "template": "\n<h3>Confirm your Developer Account</h3>\n<p>Hi {{params.resource.firstName}},</p>\n<p>Thank you for registering as a developer on the FHIR Access Portal.</p>\n<p><a target=\"_blank\" href=\"{{params.base-url}}/auth/signup/confirm/{{id}}?redirect_to=aHR0cDovL2xvY2FsaG9zdDo4MDk2L2RldmVsb3Blci9hdXRoL3NpZ251cD9jb25maXJtUGFzc3dvcmQ9dHJ1ZQ==\">Confirm your account</a></p>\n<p>After confirmation, you'll be able to register SMART apps and access the developer sandbox.</p>\n<p>If you didn't request this, please ignore this email.</p>"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "TokenIntrospector/admin-aidbox"
      },
      "resource": {
        "resourceType": "TokenIntrospector",
        "id": "admin-aidbox",
        "type": "jwt",
        "jwt": {
          "iss": "http://localhost:8080"
        },
        "jwks_uri": "http://aidbox-admin:8080/.well-known/jwks.json"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/allow-admin-tokens"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "allow-admin-tokens",
        "description": "Allow requests authenticated with Admin Aidbox JWT tokens",
        "engine": "json-schema",
        "schema": {
          "required": [
            "jwt"
          ],
          "properties": {
            "jwt": {
              "required": [
                "iss"
              ],
              "properties": {
                "iss": {
                  "constant": "http://localhost:8080"
                }
              }
            }
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-client-search-communication"
      },
      "resource": {
        "engine": "matcho",
        "matcho": {
          "user": {
            "roles": {
              "$contains": {
                "type": "developer"
              }
            }
          },
          "params": {
            "resource/type": "Communication",
            "about": "present?"
          },
          "operation": {
            "id": "FhirSearch"
          }
        },
        "description": "Developers can search communication for certain app",
        "id": "dev-client-search-communication",
        "resourceType": "AccessPolicy"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/dev-read-compartment-definition"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "dev-read-compartment-definition",
        "engine": "matcho",
        "description": "Developers can read CompartmentDefinition (SMART scope picker enumerates patient compartment)",
        "matcho": {
          "user": {
            "roles": {
              "$contains": {
                "type": "developer"
              }
            }
          },
          "params": {
            "resource/type": "CompartmentDefinition"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirSearch",
                "FhirRead"
              ]
            }
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/smart-app-can-read-patient-api"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "smart-app-can-read-patient-api",
        "engine": "matcho",
        "matcho": {
          "jwt": {
            "atv": 2,
            "scope": "present?",
            "context": {
              "patient": "present?"
            }
          },
          "client": {
            "type": "smart-app",
            "active": true
          }
        }
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "DocumentReference/smartbox-tos"
      },
      "resource": {
        "resourceType": "DocumentReference",
        "id": "smartbox-tos",
        "status": "current",
        "type": {
          "text": "Terms of Service"
        },
        "category": [
          {
            "text": "legal"
          }
        ],
        "content": [
          {
            "attachment": {
              "contentType": "application/pdf",
              "url": "http://localhost:3000/change-me-smartbox-tos.pdf"
            }
          }
        ]
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "DocumentReference/smartbox-privacy"
      },
      "resource": {
        "resourceType": "DocumentReference",
        "id": "smartbox-privacy",
        "status": "current",
        "type": {
          "text": "Privacy Policy"
        },
        "category": [
          {
            "text": "legal"
          }
        ],
        "content": [
          {
            "attachment": {
              "contentType": "text/html",
              "url": "http://localhost:3000/change-me-smartbox-privacy.html"
            }
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "AidboxConfig",
        "id": "smartbox",
        "smartbox": {
          "logoUrl": "https://storage.googleapis.com/aidbox-public/smartbox/health-system-logo.png"
        }
      },
      "request": {
        "method": "PUT",
        "url": "AidboxConfig/smartbox"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-grant"
      },
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-grant",
        "engine": "matcho",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "request-method": {
            "$one-of": [
              "get",
              "post",
              "put",
              "patch",
              "delete"
            ]
          },
          "uri": {
            "$one-of": [
              "#^/fhir/Grant.*",
              "#^/Grant.*"
            ]
          }
        },
        "description": "Full CRUD access to Grant for developer API client"
      }
    },
    {
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-sql",
        "engine": "matcho",
        "description": "Allow developer-api client to execute SQL queries for patient enrollment lookup",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "uri": "/$sql",
          "request-method": "post"
        }
      },
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-sql"
      }
    },
    {
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "developer-api-audit-event",
        "engine": "matcho",
        "description": "Allow developer-api client to create and read AuditEvent resources for enrollment audit logging",
        "matcho": {
          "client": {
            "id": "developer-api"
          },
          "params": {
            "resource/type": "AuditEvent"
          },
          "operation": {
            "id": {
              "$one-of": [
                "FhirCreate",
                "FhirSearch",
                "FhirRead"
              ]
            }
          }
        }
      },
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-api-audit-event"
      }
    },
    {
      "resource": {
        "resourceType": "AccessPolicy",
        "id": "allow-license-activation",
        "engine": "matcho",
        "description": "Allow unauthenticated access to license activation endpoints",
        "matcho": {
          "uri": {
            "$one-of": [
              "/api/v1/license/activate",
              "/api/v1/license/status",
              "/"
            ]
          }
        }
      },
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/allow-license-activation"
      }
    },
    {
      "resource": {
        "engine": "matcho",
        "matcho": {
          "user": {
            "roles": [
              {
                "type": "developer"
              }
            ]
          },
          "params": {
            "resource/type": "Client"
          }
        },
        "description": "Admin access to Client resources",
        "id": "developer-role-client",
        "resourceType": "AccessPolicy"
      },
      "request": {
        "method": "PUT",
        "url": "AccessPolicy/developer-role-client"
      }
    },
    {
      "resource": {
        "resourceType": "SearchParameter",
        "id": "Communication.about",
        "url": "http://hl7.org/fhir/SearchParameter/Communication-about",
        "name": "about",
        "status": "active",
        "code": "about",
        "base": [
          "Communication"
        ],
        "type": "reference",
        "description": "Search Communication by about reference",
        "expression": "Communication.about"
      },
      "request": {
        "method": "PUT",
        "url": "SearchParameter/Communication.about"
      }
    },
    {
      "request": {
        "method": "PUT",
        "url": "AuthConfig/smartbox"
      },
      "resource": {
        "id": "smartbox",
        "resourceType": "AuthConfig",
        "theme": {
          "styleUrl": "http://localhost:8096/auth.css"
        }
      }
    },
    {
      "resource": {
        "resourceType": "Client",
        "id": "developer-api",
        "secret": "developer-api-secret-change-in-production",
        "grant_types": [
          "client_credentials"
        ]
      },
      "request": {
        "method": "PUT",
        "url": "Client/developer-api"
      }
    }
  ]
}
