Convert document to FHIR resource

POST/lang2fhir/document
RequiresBearerauthentication

Body parameters

versionstringrequired
resourcestringrequired
contentstringrequired
configobjectoptional
page_filterobjectoptional
split_classificationsobject[]optional
idstringrequired
descriptionstringrequired
operationstringrequired
groupdrop
resource_reviewobjectoptional
targetsobject[]required
Returns  

Response fields

resourceTypestringoptional
statusstringoptional
titlestringoptional
itemarray<object>optional
linkIdstringoptional
textstringoptional
typestringoptional
POSTRequest
# Get authentication token
PHENOML_TOKEN=$(curl -X POST "https://experiment.app.pheno.ml/v2/auth/token" \
  -u "$PHENOML_CLIENT_ID:$PHENOML_CLIENT_SECRET" \
  | jq -r '.access_token')

curl -X POST "https://experiment.app.pheno.ml/lang2fhir/document" \
  -H "Authorization: Bearer $PHENOML_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "version": "R4",
  "resource": "questionnaire",
  "content": "JVBERi0xLjQKJeLjz9MK...(base64-encoded document bytes)"
}'
200 OKExample Response
{
  "resourceType": "Questionnaire",
  "status": "active",
  "title": "Patient Intake Form",
  "item": [
    {
      "linkId": "1",
      "text": "What is your name?",
      "type": "string"
    },
    {
      "linkId": "2",
      "text": "What is your date of birth?",
      "type": "date"
    }
  ]
}