Skip to content

(feat) KHP3-3708 Add adapter in form engine to handle creating patient identifiers#55

Merged
CynthiaKamau merged 2 commits into
mainfrom
KHP3-3708
Jul 4, 2023
Merged

(feat) KHP3-3708 Add adapter in form engine to handle creating patient identifiers#55
CynthiaKamau merged 2 commits into
mainfrom
KHP3-3708

Conversation

@donaldkibet

Copy link
Copy Markdown
Member

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR adds ability to generate patient identifiers. In addition it also adds ability to populate fields with type patientIdentifer with existing identifiers.

Screenshots

Related Issue

https://thepalladiumgroup.atlassian.net/browse/KHP3-3708

Other

import { ControlRelationsFactory } from '../form-factory/control-relations.factory';
import { NodeBase } from '../form-factory/form-node';
import { DebugModeService } from './../services/debug-mode.service';
import { PatientIdenfierAdapater } from './patient-identifier.adapter';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo in this file name as well as in this import.


const adultForm = require('../../adult.json');
const mockLocationUuid = "some-location-uuid";
fdescribe('Patient identifier Value Adapter:', () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need this fdescribe as there's only this one suite in this file.

const mockLocationUuid = "some-location-uuid";
fdescribe('Patient identifier Value Adapter:', () => {
let adultFormSchema: any;
beforeEach(() => {

@denniskigen denniskigen Jul 3, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation is off for this file. The tab size ought to be 2 instead of 4.

import { Injectable } from "@angular/core";

import { NodeBase, GroupNode, ArrayNode } from "../form-factory/form-node";
import { Form } from "../form-factory";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file ought to use a tab size of 2 as well.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants