description: Military Service Episode describes a patient/veterans overall experiences of a militiary employment. The profile references military deployments and occupations as well as military branche, seperation and discharge status. A patient/Veteran may have zero or more military service episodes. The episode documents the time spent in the military organization, the dischage status and reason, and a collection of deployment episodes package_name: hl7.fhir.us.military-service.r4b derivation: constraint name: MilitaryServiceEpisode type: Observation elements: category: elements: coding: pattern: type: Coding value: {code: social-history, system: 'http://terminology.hl7.org/CodeSystem/observation-category'} index: 5 referenceRange: {index: 24} hasMember: index: 25 slicing: rules: open discriminator: - {path: $this.resolve(), type: profile} min: null slices: DeploymentHistoryEpisode: match: {} schema: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/us/military-service/StructureDefinition/deployment-history-episode'] array: true index: 26 min: 0 MilitaryOccupation: match: {} schema: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/us/military-service/StructureDefinition/military-service-Occupation'] array: true index: 27 min: 0 derivedFrom: {index: 28} interpretation: {index: 19} encounter: {index: 9} method: {index: 21} specimen: {index: 22} component: mustSupport: true index: 29 slicing: rules: open description: Slice based on the component.code pattern discriminator: - {path: code, type: pattern} min: 1 slices: military-service-Military-Branch: match: code: coding: - {code: 85104-8, system: 'http://loinc.org', display: Compensation and sector employment type} schema: _required: true index: 30 elements: code: pattern: type: CodeableConcept value: coding: - {code: 85104-8, system: 'http://loinc.org', display: Compensation and sector employment type} index: 31 value: mustSupport: true choices: [valueCodeableConcept] index: 33 valueCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 34} required: [value, valueCodeableConcept] military-service-DischargeStatus: match: code: coding: - {code: 9B7095A70B024CD789A36E48A3936592, system: 'http://hl7.org/fhir/us/military-service/CodeSystem/military-service-code-system', display: Discharge Status} schema: index: 36 elements: code: pattern: type: CodeableConcept value: coding: - {code: 9B7095A70B024CD789A36E48A3936592, system: 'http://hl7.org/fhir/us/military-service/CodeSystem/military-service-code-system', display: Discharge Status} index: 37 value: choices: [valueCodeableConcept] index: 39 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 40} required: [value, valueCodeableConcept] military-service-SeparationReason: match: code: coding: - {code: 9CEAD6537D6A4F198549F70598B8F8BF, system: 'http://hl7.org/fhir/us/military-service/CodeSystem/military-service-code-system', display: Separation Reason} schema: index: 42 elements: code: pattern: type: CodeableConcept value: coding: - {code: 9CEAD6537D6A4F198549F70598B8F8BF, system: 'http://hl7.org/fhir/us/military-service/CodeSystem/military-service-code-system', display: Separation Reason} index: 43 value: choices: [valueCodeableConcept] index: 45 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 46} status: {mustSupport: true, index: 4} effective: choices: [effectivePeriod] index: 11 id: {index: 0} code: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 87511-2, system: 'http://loinc.org'} index: 6 identifier: {index: 1} bodySite: {index: 20} focus: {index: 8} issued: {index: 16} device: {index: 23} basedOn: {index: 2} partOf: {index: 3} subject: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/us/military-service/StructureDefinition/usveteran'] index: 7 performer: {index: 17} dataAbsentReason: {index: 18} effectivePeriod: type: Period choiceOf: effective index: 12 elements: start: {mustSupport: true, index: 14} end: {mustSupport: true, index: 15} required: [start] package_version: 1.0.0 class: profile kind: resource url: http://hl7.org/fhir/us/military-service/StructureDefinition/military-service-episode base: http://hl7.org/fhir/StructureDefinition/Observation version: 1.0.0 required: [effectivePeriod, component, id, subject, effective]