{"uid":"cap_aDNoxdMXrjSJAE8xH9Woz","slug":"animica-fhir-transform-5bc8417f","name":"Animica FHIR Transform","description":"Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.","url":"https://animica.dev/x402/health/fhir/transform","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","description":"the source document"},"transform":{"type":"string","description":"bundle.flatten | bundle.collect | lab.row-to-observation | demographics.row-to-patient"}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Rf7PnBIK_na15LjBF71gW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Transforms FHIR documents between formats — flattening bundles, collecting resources, and converting lab rows or demographic rows into FHIR-compliant Observations and Patients.","exampleAgentPrompt":"Take this lab result row and convert it into a FHIR Observation using the lab.row-to-observation transform — here's the source document: {lab row JSON}.","exampleUseCases":[{"title":"Lab result row to FHIR Observation","prompt":"I have a lab result row from our EHR export and I need it converted into a proper FHIR Observation resource — can you run a lab.row-to-observation transform on this document?"},{"title":"Flatten FHIR bundle for analytics","prompt":"Take this FHIR bundle and flatten it into individual resources using bundle.flatten so our analytics pipeline can process each entry separately."},{"title":"Demographics row to FHIR Patient","prompt":"Convert this patient demographics row from our intake spreadsheet into a FHIR Patient resource using the demographics.row-to-patient transform."}],"resultDescription":"A JSON object containing the transformed FHIR-compliant data — either a flattened resource list, a collected bundle, a FHIR Observation, or a FHIR Patient — depending on the transform operation specified.","failureModes":["Invalid or malformed source document returns a JSON error response","Unsupported transform value returns an error indicating valid options","Missing required 'input' or 'transform' fields cause a validation error","Payment failure (x402) prevents the call from being processed","Malformed FHIR structure in input may produce incomplete or incorrect output"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call FHIR transformation without standing up your own FHIR server or managing API keys. It covers four common FHIR conversion patterns (bundle flatten, bundle collect, lab row to Observation, demographics row to Patient) and is ideal for agents processing health data in pipelines where FHIR compliance is required but full FHIR server infrastructure is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:47:45.733Z","isFirstParty":false}