Aetna · Schema

Aetna FHIR R4 CarePlan

JSON Schema for the FHIR R4 CarePlan resource as Aetna profiles it. Derived mechanically from the components.schemas of openapi/aetna-patient-access-api-openapi.yml, which is assembled from the Swagger 2.0 documents Aetna publishes at https://developerportal.aetna.com/managedcontent/yaml/. Not authored - every constraint here is Aetna's. $refs rewritten from #/components/schemas/ to #/$defs/.

Health InsuranceHealthcareFHIRPatient AccessProvider DirectoryDrug FormularyPrior AuthorizationCMS InteroperabilitySMART on FHIRCARIN Blue ButtonDa VinciPayerFortune 100CVS Health
View JSON Schema on GitHub

JSON Schema

aetna-careplan.json Raw ↑
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://raw.githubusercontent.com/api-evangelist/aetna/refs/heads/main/json-schema/aetna-careplan.json",
 "title": "Aetna FHIR R4 CarePlan",
 "description": "JSON Schema for the FHIR R4 CarePlan resource as Aetna profiles it. Derived mechanically from the components.schemas of openapi/aetna-patient-access-api-openapi.yml, which is assembled from the Swagger 2.0 documents Aetna publishes at https://developerportal.aetna.com/managedcontent/yaml/. Not authored - every constraint here is Aetna's. $refs rewritten from #/components/schemas/ to #/$defs/.",
 "x-provenance": {
  "generated": "2026-08-30",
  "method": "derived",
  "source": "openapi/aetna-patient-access-api-openapi.yml"
 },
 "allOf": [
  {
   "$ref": "#/$defs/DomainResource"
  },
  {
   "type": "object",
   "required": [
    "intent",
    "status",
    "subject"
   ],
   "properties": {
    "identifier": {
     "description": "Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Identifier"
     }
    },
    "partOf": {
     "description": "A larger care plan of which this particular care plan is a component or step.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "note": {
     "description": "General notes about the care plan not covered elsewhere.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Annotation"
     }
    },
    "period": {
     "description": "Indicates when the plan did (or is intended to) come into effect and end.",
     "$ref": "#/$defs/Period"
    },
    "addresses": {
     "description": "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "goal": {
     "description": "Describes the intended objective(s) of carrying out the care plan.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "activity": {
     "description": "Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/CarePlan_Activity"
     }
    },
    "replaces": {
     "description": "Completed or terminated care plan whose function is taken by this new care plan.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "subject": {
     "description": "Identifies the patient or group whose intended care is described by the plan.",
     "$ref": "#/$defs/Reference"
    },
    "created": {
     "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?",
     "description": "Represents when this particular CarePlan record was created in the system, which is often a system-generated date.",
     "type": "string"
    },
    "author": {
     "description": "When populated, the author is responsible for the care plan. The care plan is attributed to the author.",
     "$ref": "#/$defs/Reference"
    },
    "description": {
     "pattern": "[ \\r\\n\\t\\S]+",
     "description": "A description of the scope and nature of the plan.",
     "type": "string"
    },
    "encounter": {
     "description": "The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.",
     "$ref": "#/$defs/Reference"
    },
    "instantiatesCanonical": {
     "description": "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
     "type": "array",
     "items": {
      "pattern": "\\S*",
      "type": "string"
     }
    },
    "title": {
     "pattern": "[ \\r\\n\\t\\S]+",
     "description": "Human-friendly name for the care plan.",
     "type": "string"
    },
    "intent": {
     "description": "Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.",
     "type": "string",
     "enum": [
      "proposal",
      "plan",
      "order",
      "option"
     ]
    },
    "instantiatesUri": {
     "description": "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
     "type": "array",
     "items": {
      "pattern": "\\S*",
      "type": "string"
     }
    },
    "contributor": {
     "description": "Identifies the individual(s) or organization who provided the contents of the care plan.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "supportingInfo": {
     "description": "Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include comorbidities, recent procedures, limitations, recent assessments, etc.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "category": {
     "description": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans; e.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", \"wellness plan\", etc.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/CodeableConcept"
     }
    },
    "basedOn": {
     "description": "A care plan that is fulfilled in whole or in part by this care plan.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "careTeam": {
     "description": "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Reference"
     }
    },
    "status": {
     "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
     "type": "string",
     "enum": [
      "draft",
      "active",
      "on-hold",
      "revoked",
      "completed",
      "entered-in-error",
      "unknown"
     ]
    }
   }
  }
 ],
 "$defs": {
  "Address": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "properties": {
      "country": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "Country - a nation as commonly understood or generally accepted.",
       "type": "string"
      },
      "period": {
       "description": "Time period when address was/is in use.",
       "$ref": "#/$defs/Period"
      },
      "city": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The name of the city, town, suburb, village or other community or delivery center.",
       "type": "string"
      },
      "use": {
       "description": "The purpose of this address.",
       "type": "string",
       "enum": [
        "home",
        "work",
        "temp",
        "old",
        "billing"
       ]
      },
      "line": {
       "description": "This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.",
       "type": "array",
       "items": {
        "pattern": "[ \\r\\n\\t\\S]+",
        "type": "string"
       }
      },
      "district": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The name of the administrative area (county).",
       "type": "string"
      },
      "postalCode": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "A postal code designating a region defined by the postal service.",
       "type": "string"
      },
      "text": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.",
       "type": "string"
      },
      "state": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).",
       "type": "string"
      },
      "type": {
       "description": "Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.",
       "type": "string",
       "enum": [
        "postal",
        "physical",
        "both"
       ]
      }
     }
    }
   ]
  },
  "Age": {
   "allOf": [
    {
     "$ref": "#/$defs/Quantity"
    },
    {
     "type": "object"
    }
   ]
  },
  "Annotation": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "authorString": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The individual responsible for making the annotation.",
       "type": "string"
      },
      "authorReference": {
       "description": "The individual responsible for making the annotation.",
       "$ref": "#/$defs/Reference"
      },
      "time": {
       "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?",
       "description": "Indicates when this particular annotation was made.",
       "type": "string"
      },
      "text": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The text of the annotation in markdown format.",
       "type": "string"
      }
     }
    }
   ]
  },
  "Attachment": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "properties": {
      "data": {
       "pattern": "(\\s*([0-9a-zA-Z\\+\\=]){4}\\s*)+",
       "description": "The actual data of the attachment - a sequence of bytes, base64 encoded.",
       "type": "string"
      },
      "size": {
       "format": "int32",
       "description": "The number of bytes of data that make up this attachment (before base64 encoding, if that is done).",
       "type": "integer"
      },
      "language": {
       "pattern": "[^\\s]+(\\s[^\\s]+)*",
       "description": "The human language of the content. The value can be any valid value according to BCP 47.",
       "type": "string"
      },
      "title": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "A label or set of text to display in place of the data.",
       "type": "string"
      },
      "contentType": {
       "pattern": "[^\\s]+(\\s[^\\s]+)*",
       "description": "Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.",
       "type": "string"
      },
      "url": {
       "pattern": "\\S*",
       "description": "A location where the data can be accessed.",
       "type": "string"
      },
      "hash": {
       "pattern": "(\\s*([0-9a-zA-Z\\+\\=]){4}\\s*)+",
       "description": "The calculated hash of the data using SHA-1. Represented using base64.",
       "type": "string"
      },
      "creation": {
       "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?",
       "description": "The date that the attachment was first created.",
       "type": "string"
      }
     }
    }
   ]
  },
  "BackboneElement": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "properties": {
      "modifierExtension": {
       "description": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Extension"
       }
      }
     }
    }
   ]
  },
  "CarePlan_Activity": {
   "allOf": [
    {
     "$ref": "#/$defs/BackboneElement"
    },
    {
     "type": "object",
     "properties": {
      "reference": {
       "description": "The details of the proposed activity represented in a specific resource.",
       "$ref": "#/$defs/Reference"
      },
      "outcomeCodeableConcept": {
       "description": "Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not).",
       "type": "array",
       "items": {
        "$ref": "#/$defs/CodeableConcept"
       }
      },
      "outcomeReference": {
       "description": "Details of the outcome or action resulting from the activity. The reference to an \"event\" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a \u201crequest\u201d resource).",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Reference"
       }
      },
      "progress": {
       "description": "Notes about the adherence/status/progress of the activity.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Annotation"
       }
      },
      "detail": {
       "description": "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
       "$ref": "#/$defs/CarePlan_Activity_Detail"
      }
     }
    }
   ]
  },
  "CarePlan_Activity_Detail": {
   "allOf": [
    {
     "$ref": "#/$defs/BackboneElement"
    },
    {
     "type": "object",
     "required": [
      "status"
     ],
     "properties": {
      "code": {
       "description": "Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.",
       "$ref": "#/$defs/CodeableConcept"
      },
      "goal": {
       "description": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Reference"
       }
      },
      "performer": {
       "description": "Identifies who's expected to be involved in the activity.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Reference"
       }
      },
      "quantity": {
       "description": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
       "$ref": "#/$defs/SimpleQuantity"
      },
      "kind": {
       "description": "A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.",
       "type": "string",
       "enum": [
        "Appointment",
        "CommunicationRequest",
        "DeviceRequest",
        "MedicationRequest",
        "NutritionOrder",
        "Task",
        "ServiceRequest",
        "VisionPrescription"
       ]
      },
      "reasonReference": {
       "description": "Indicates another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Reference"
       }
      },
      "productReference": {
       "description": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
       "$ref": "#/$defs/Reference"
      },
      "description": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.",
       "type": "string"
      },
      "instantiatesCanonical": {
       "description": "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
       "type": "array",
       "items": {
        "pattern": "\\S*",
        "type": "string"
       }
      },
      "instantiatesUri": {
       "description": "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
       "type": "array",
       "items": {
        "pattern": "\\S*",
        "type": "string"
       }
      },
      "scheduledString": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The period, timing or frequency upon which the described activity is to occur.",
       "type": "string"
      },
      "statusReason": {
       "description": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
       "$ref": "#/$defs/CodeableConcept"
      },
      "scheduledTiming": {
       "description": "The period, timing or frequency upon which the described activity is to occur.",
       "$ref": "#/$defs/Timing"
      },
      "scheduledPeriod": {
       "description": "The period, timing or frequency upon which the described activity is to occur.",
       "$ref": "#/$defs/Period"
      },
      "location": {
       "description": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
       "$ref": "#/$defs/Reference"
      },
      "dailyAmount": {
       "description": "Identifies the quantity expected to be consumed in a given day.",
       "$ref": "#/$defs/SimpleQuantity"
      },
      "reasonCode": {
       "description": "Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/CodeableConcept"
       }
      },
      "doNotPerform": {
       "description": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan.",
       "type": "boolean"
      },
      "status": {
       "description": "Identifies what progress is being made for the specific activity.",
       "type": "string",
       "enum": [
        "not-started",
        "scheduled",
        "in-progress",
        "on-hold",
        "completed",
        "cancelled",
        "stopped",
        "unknown",
        "entered-in-error"
       ]
      },
      "productCodeableConcept": {
       "description": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
       "$ref": "#/$defs/CodeableConcept"
      }
     }
    }
   ]
  },
  "CodeableConcept": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "properties": {
      "coding": {
       "description": "A reference to a code defined by a terminology system.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Coding"
       }
      },
      "text": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
       "type": "string"
      }
     }
    }
   ]
  },
  "Coding": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "properties": {
      "system": {
       "pattern": "\\S*",
       "description": "The identification of the code system that defines the meaning of the symbol in the code.",
       "type": "string"
      },
      "code": {
       "pattern": "[^\\s]+(\\s[^\\s]+)*",
       "description": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
       "type": "string"
      },
      "userSelected": {
       "description": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
       "type": "boolean"
      },
      "display": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "A representation of the meaning of the code in the system, following the rules of the system.",
       "type": "string"
      },
      "version": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
       "type": "string"
      }
     }
    }
   ]
  },
  "ContactDetail": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "properties": {
      "name": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The name of an individual to contact.",
       "type": "string"
      },
      "telecom": {
       "description": "The contact details for the individual (if a name was provided) or the organization.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/ContactPoint"
       }
      }
     }
    }
   ]
  },
  "ContactPoint": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "properties": {
      "period": {
       "description": "Time period when the contact point was/is in use.",
       "$ref": "#/$defs/Period"
      },
      "system": {
       "description": "Telecommunications form for contact point - what communications system is required to make use of the contact.",
       "type": "string",
       "enum": [
        "phone",
        "fax",
        "email",
        "pager",
        "url",
        "sms",
        "other"
       ]
      },
      "use": {
       "description": "Identifies the purpose for the contact point.",
       "type": "string",
       "enum": [
        "home",
        "work",
        "temp",
        "old",
        "mobile"
       ]
      },
      "rank": {
       "format": "int32",
       "description": "Specifies a preferred order in which to use a set of contacts. ContactPoints with lower rank values are more preferred than those with higher rank values.",
       "type": "integer"
      },
      "value": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).",
       "type": "string"
      }
     }
    }
   ]
  },
  "Count": {
   "allOf": [
    {
     "$ref": "#/$defs/Quantity"
    },
    {
     "type": "object"
    }
   ]
  },
  "Distance": {
   "allOf": [
    {
     "$ref": "#/$defs/Quantity"
    },
    {
     "type": "object"
    }
   ]
  },
  "DomainResource": {
   "allOf": [
    {
     "$ref": "#/$defs/Resource"
    },
    {
     "type": "object",
     "properties": {
      "contained": {
       "description": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Resource"
       }
      },
      "extension": {
       "description": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Extension"
       }
      },
      "modifierExtension": {
       "description": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
       "type": "array",
       "items": {
        "$ref": "#/$defs/Extension"
       }
      },
      "text": {
       "description": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
       "$ref": "#/$defs/Narrative"
      }
     }
    }
   ]
  },
  "Duration": {
   "allOf": [
    {
     "$ref": "#/$defs/Quantity"
    },
    {
     "type": "object"
    }
   ]
  },
  "Element": {
   "type": "object",
   "properties": {
    "extension": {
     "description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
     "type": "array",
     "items": {
      "$ref": "#/$defs/Extension"
     }
    },
    "id": {
     "pattern": "[A-Za-z0-9\\-\\.]{1,64}",
     "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
     "type": "string"
    }
   }
  },
  "Extension": {
   "allOf": [
    {
     "$ref": "#/$defs/Element"
    },
    {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "valueBase64Binary": {
       "pattern": "(\\s*([0-9a-zA-Z\\+\\=]){4}\\s*)+",
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "type": "string"
      },
      "valueBoolean": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "type": "boolean"
      },
      "valueCoding": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Coding"
      },
      "valueTime": {
       "pattern": "([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?",
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "type": "string"
      },
      "valueIdentifier": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Identifier"
      },
      "valueReference": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Reference"
      },
      "valueMoney": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Money"
      },
      "valueRange": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Range"
      },
      "valueSignature": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Signature"
      },
      "valueUri": {
       "pattern": "\\S*",
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "type": "string"
      },
      "valueDistance": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Distance"
      },
      "valueUrl": {
       "pattern": "\\S*",
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "type": "string"
      },
      "valueContactDetail": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/ContactDetail"
      },
      "valueMeta": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Meta"
      },
      "valueUuid": {
       "pattern": "urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "type": "string"
      },
      "valueCodeableConcept": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/CodeableConcept"
      },
      "valueRatio": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Ratio"
      },
      "valueMarkdown": {
       "pattern": "[ \\r\\n\\t\\S]+",
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "type": "string"
      },
      "valueAttachment": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/Attachment"
      },
      "valueUsageContext": {
       "description": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
       "$ref": "#/$defs/UsageContext"
      },
      "valueDateTime": {
       "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?

# --- truncated at 32 KB (66 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/aetna/refs/heads/main/json-schema/aetna-careplan.json

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/aetna-careplan"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.