description: This profile extends the US core encounter to add a constraint that expects the Location.type to always be present, and expects at least one Implementation Curated Site. package_name: fhir.deep6.ai derivation: constraint name: Deep6AIEncounterProfile type: Encounter elements: class: binding: {strength: required, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActEncounterCode', bindingName: EncounterClass} isModifier: true isModifierReason: Constrain ValueSet to only be a v3-ActEncounterCode index: 0 period: index: 1 elements: start: {index: 2} required: [start] reasonCode: elements: coding: constraint: coding-code-or-display: {human: Code codings must include either a code or a display value, source: 'http://deep6.ai/fhir/StructureDefinition/deep-6-ai-encounter-2.0.0', severity: error, expression: coding.all(code or display)} index: 3 diagnosis: elements: use: short: Diagnosis use CodeableConcept constraint requiring a code or display. constraint: coding-code-or-display: {human: Code codings must include either a code or a display value, source: 'http://deep6.ai/fhir/StructureDefinition/deep-6-ai-encounter-2.0.0', severity: error, expression: coding.all(code or display)} mustSupport: true index: 4 location: elements: location: type: Reference short: List of locations where the patient has been, or the Implementation Curated Site which owns the encounter refers: ['http://deep6.ai/fhir/StructureDefinition/deep-6-ai-location-1.0.2'] index: 5 physicalType: short: The physical type of the location (usually the level in the location hierarchy - bed room ward etc. as well as the implementation curated site) binding: {strength: extensible, valueSet: 'http://deep6.ai/fhir/ValueSet/deep-6-ai-location-physical-type'} mustSupport: true index: 6 package_version: 2.4.0 class: profile kind: resource url: http://deep6.ai/fhir/StructureDefinition/deep-6-ai-encounter-2.0.0 base: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter version: 2.4.0 required: [period]