Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric string starting with 0 is converted to a number instead of a string #28

Open
Semalexa opened this issue Nov 9, 2022 · 0 comments
Labels

Comments

@Semalexa
Copy link

Semalexa commented Nov 9, 2022

Number:
2022-11-08_08-24_08

String:
2022-11-08_08-24_19

Template:

resourceType: Patient
id: '$ patientId'        
identifier:
  - system: 'http://fhir.ru/core/systems/snils'
    value: '$ patientSNILS'
    type:
      coding:
      - system: http://terminology.hl7.org/CodeSystem/v2-0203
        code: SB
        display: Social Beneficiary Identifier
  - system: 'http://fhir.ru/core/systems/passport-rf'
    value: '$ patientCardNumber'

Source:

{
  "templateId": "1.2.643.5.1.13.13.14.113.9.2",
  "title": "СТАТИСТИЧЕСКАЯ КАРТА ВЫБЫВШЕГО ИЗ СТАЦИОНАРА",
  "confidentialityCode": "N",
  "id": "744640",
  "setId": "999",
  "versionNumber": 1,
  "patientId": "0b16d46d-3a32-4af2-8eff-f1ae4ec2a0e8",
  "patientSNILS": "36352463277",
  "patientCardType": "1",
  "patientCardSeries": "941968374",
  "patientCardNumber": "941968374"}

Result:

resourceType: Patient
id: 0b16d46d-3a32-4af2-8eff-f1ae4ec2a0e8
identifier:
  - system: 'http://fhir.ru/core/systems/snils'
    value: '36352463277'
    type:
      coding:
        - system: 'http://terminology.hl7.org/CodeSystem/v2-0203'
          code: SB
          display: Social Beneficiary Identifier
  - system: 'http://fhir.ru/core/systems/passport-rf'
    value: 041968374
@Semalexa Semalexa added the bug label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant