Find or Create Facility
Perform Find or Create Facility through Brightree.
brightree_ensure_facilityInputs
- Patient Key
patient_keyexpressionrequiredRequired literal value or workflow expression.
- Facility Name
facility_nameexpressionrequiredRequired literal value or workflow expression.
- Address 1
address_1expressionOptional literal value or workflow expression.
- City
cityexpressionOptional literal value or workflow expression.
- State
stateexpressionOptional literal value or workflow expression.
- Postal Code
postal_codeexpressionOptional literal value or workflow expression.
- Match Address 1
match_address_1expressionOptional literal value or workflow expression.
- Match City
match_cityexpressionOptional literal value or workflow expression.
- Match State
match_stateexpressionOptional literal value or workflow expression.
- Match Postal Code
match_postal_codeexpressionOptional literal value or workflow expression.
- Match Address Source
match_address_sourceexpressionOptional literal value or workflow expression.
- Phone
phoneexpressionOptional literal value or workflow expression.
- Fax
faxexpressionOptional literal value or workflow expression.
- Create If Missing
create_if_missingbooleanOptional true-or-false value.
Default:
true - Require Address
require_addressbooleanOptional true-or-false value.
Default:
true
Outputs
successSuccessmessageMessagefacilityFacilityfacility_textFacility Textfacility_valueFacility Valuefacility_keyFacility KeycreatedCreatedfoundFoundskippedSkippedaction_requiredAction Requiredaction_required_messageAction Required Messageselection_reasonSelection Reasonmissing_fieldsMissing FieldserrorError
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"patient_key",
"facility_name"
],
"properties": {
"fax": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"city": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"phone": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"state": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"address_1": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"match_city": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"match_state": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"patient_key": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"postal_code": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"facility_name": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"match_address_1": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"require_address": {
"type": "boolean",
"default": true,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"create_if_missing": {
"type": "boolean",
"default": true,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"match_postal_code": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"match_address_source": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"found": {},
"created": {},
"message": {},
"skipped": {},
"success": {},
"facility": {},
"facility_key": {},
"facility_text": {},
"facility_value": {},
"missing_fields": {},
"action_required": {},
"selection_reason": {},
"action_required_message": {}
},
"additionalProperties": true
}