{% if error %}

{{ error }}

{% elif info.error %}

{{ info.error }}

{{ info|pretty }}
{% else %}

FHIR {{ info.fhirVersion }} {{ info.software }} · formats {{ (info.formats or [])|join(', ') }} · security {{ (info.security or ['none'])|join(', ') }} · messaging {{ 'yes' if info.messaging else 'no' }}

{% if info.token %}

SMART token granted: {{ info.token.scope }} (expires in {{ info.token.expires_in }}s)

{% endif %} {% if info.token_error %}

SMART token failed: {{ info.token_error }}

{% endif %} {% if info.missing_for_flows %}

Not advertised (flows using these will likely fail): {{ info.missing_for_flows|join(', ') }}

{% endif %}
{{ info.resources|length }} resource types {% for t, r in info.resources.items() %}{% endfor %}
TypeInteractionsSearch paramsCond. create
{{ t }}{{ r.interactions|join(' ') }}{{ r.search_params }}{{ r.conditional_create }}
{% endif %}