description: '**ActivityDefinition** represents what can be offered and booked as a service.\n\nIt answers the question: _“What service is the patient booking?”_\n\n**Actor-specific obligations**\n\n- **WofPortalClient** only needs to populate `code.coding.code` when submitting a known service type code.\n- **WofPortalServer** populates the full representation, including `meta`, presentation fields, `kind`, and the complete `code` structure.\n\nThis profile intentionally constrains base FHIR to define a stable and testable API contract for WOF Portal.' package_name: servicewell.fhir.wof-portal derivation: constraint name: ActivityDefinitionPortal type: ActivityDefinition elements: meta: elements: versionId: {index: 0} profile: {index: 1} title: {index: 2} status: {index: 3} code: elements: coding: index: 4 elements: display: {index: 5} slicing: rules: open ordered: false discriminator: - {path: system, type: pattern} min: null max: 1 slices: serviceTypeId: match: {system: 'http://canonical.fhir.link/servicewell/wof-connect/identifiercodesystem/service-type-id'} schema: _required: true index: 6 elements: system: pattern: {type: Uri, value: 'http://canonical.fhir.link/servicewell/wof-connect/identifiercodesystem/service-type-id'} index: 7 display: {index: 8} required: [system] timing: choices: [] index: 10 participant: {index: 11} package_version: 1.0.0 class: profile kind: resource url: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal base: https://canonical.fhir.link/servicewell/wof-base/StructureDefinition/wof-base-activity-definition version: 1.0.0 required: [title]