Skip to content

Instantly share code, notes, and snippets.

@niquola
Last active October 9, 2019 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niquola/22dcc2b98aa85634ac3ef13e9524eac0 to your computer and use it in GitHub Desktop.
Save niquola/22dcc2b98aa85634ac3ef13e9524eac0 to your computer and use it in GitHub Desktop.
id: Patient.name
path: Patient.name
short: A name associated with the patient
definition: A name associated with the individual.
requirements: Need to be able to track the patient by multiple names. Examples are
  your official name and a partner name.
min: 0
max: "*"
base:
  path: Patient.name
  min: 0
  max: "*"
type:
- code: HumanName
isModifier: false
isSummary: true

US Core

---
- id: Patient
  path: Patient
  definition: The US Core Patient Profile is based upon the core FHIR Patient Resource
    and designed to meet the applicable patient demographic data elements from the
    2015 Edition Common Clinical Data Set.
  mustSupport: false
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient
- id: Patient.extension:race
  path: Patient.extension
  sliceName: race
  min: 0
  max: '1'
  type:
  - code: Extension
    profile:
    - http://hl7.org/fhir/us/core/StructureDefinition/us-core-race
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.extension
- id: Patient.extension:ethnicity
  path: Patient.extension
  sliceName: ethnicity
  min: 0
  max: '1'
  type:
  - code: Extension
    profile:
    - http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.extension
- id: Patient.extension:birthsex
  path: Patient.extension
  sliceName: birthsex
  min: 0
  max: '1'
  type:
  - code: Extension
    profile:
    - http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex
  mustSupport: true
  isModifier: false
  binding:
    strength: required
    description: Code for sex assigned at birth
    valueSet: http://hl7.org/fhir/us/core/ValueSet/birthsex
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.extension
- id: Patient.identifier
  path: Patient.identifier
  min: 1
  max: "*"
  type:
  - code: Identifier
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.identifier
- id: Patient.identifier.system
  path: Patient.identifier.system
  min: 1
  max: '1'
  type:
  - code: uri
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.identifier.system
- id: Patient.identifier.value
  path: Patient.identifier.value
  short: The value that is unique within the system.
  min: 1
  max: '1'
  type:
  - code: string
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.identifier.value
- id: Patient.name
  path: Patient.name
  min: 1
  max: "*"
  type:
  - code: HumanName
  constraint:
  - key: us-core-8
    severity: error
    human: Patient.name.given  or Patient.name.family or both SHALL be present
    expression: family.exists() or given.exists()
    xpath: f:given or f:family
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.name
- id: Patient.name.family
  path: Patient.name.family
  min: 0
  max: '1'
  type:
  - code: string
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.name.family
- id: Patient.name.given
  path: Patient.name.given
  min: 0
  max: "*"
  type:
  - code: string
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.name.given
- id: Patient.telecom
  path: Patient.telecom
  min: 0
  max: "*"
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.gender
- id: Patient.telecom.system
  path: Patient.telecom.system
  min: 1
  max: '1'
  mustSupport: true
  isModifier: false
  binding:
    strength: required
    description: Telecommunications form for contact point.
    valueSet: http://hl7.org/fhir/ValueSet/contact-point-system
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.gender
- id: Patient.telecom.value
  path: Patient.telecom.value
  min: 1
  max: '1'
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.gender
- id: Patient.gender
  path: Patient.gender
  min: 1
  max: '1'
  type:
  - code: code
  mustSupport: true
  isModifier: false
  binding:
    strength: required
    valueSet: http://hl7.org/fhir/ValueSet/administrative-gender
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.gender
- id: Patient.birthDate
  path: Patient.birthDate
  min: 0
  max: '1'
  type:
  - code: date
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.birthDate
- id: Patient.address
  path: Patient.address
  min: 0
  max: "*"
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.birthDate
- id: Patient.address.line
  path: Patient.address.line
  min: 0
  max: "*"
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.birthDate
- id: Patient.address.city
  path: Patient.address.city
  min: 0
  max: '1'
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.birthDate
- id: Patient.address.state
  path: Patient.address.state
  min: 0
  max: '1'
  mustSupport: true
  isModifier: false
  binding:
    strength: extensible
    description: Two Letter USPS alphabetic codes.
    valueSet: http://hl7.org/fhir/us/core/ValueSet/us-core-usps-state
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.birthDate
- id: Patient.address.postalCode
  path: Patient.address.postalCode
  short: US Zip Codes
  alias:
  - Zip Code
  min: 0
  max: '1'
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.birthDate
- id: Patient.communication
  path: Patient.communication
  min: 0
  max: "*"
  mustSupport: true
  isModifier: false
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.communication
- id: Patient.communication.language
  path: Patient.communication.language
  min: 1
  max: '1'
  type:
  - code: CodeableConcept
  mustSupport: true
  isModifier: false
  binding:
    extension:
    - url: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      valueCanonical: http://hl7.org/fhir/us/core/ValueSet/simple-language
    strength: extensible
    valueSet: http://hl7.org/fhir/us/core/ValueSet/simple-language
  mapping:
  - identity: argonaut-dq-dstu2
    map: Patient.communication.language

FISH - https://github.com/HL7/fhir-shorthand/wiki/4.-Profiles Goog - https://github.com/google/fhir/blob/master/examples/profiles/demo_profiles.prototxt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment